* manual/crypt.texi: Document MTASC-safety properties.
[jlayton/glibc.git] / ChangeLog
1 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
2
3         * manual/crypt.texi: Document MTASC-safety properties.
4
5 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
6
7         * manual/conf.texi: Document MTASC-safety properties.
8
9 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
10
11         * manual/arith.texi: Document MTASC-safety properties.
12
13 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
14
15         * manual/argp.texi: Document MTASC-safety properties.
16
17 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
18
19         * manual/macros.texi: Introduce macros to document multi
20         thread, asynchronous signal and asynchronous cancellation
21         safety properties.
22         * manual/intro.texi: Introduce the properties themselves.
23
24 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
25
26         * sysdeps/sh/sh4/Makefile: New file.
27
28 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
29
30         * math/gen-libm-test.pl ($srcdir): New variable.
31         ($auto_input): Use it.
32
33 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34
35         [BZ #16506]
36         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
37         access beyond array bounds when parsing netgroups file.
38
39         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
40         the old buffer before realloc.
41
42 2014-01-27  Allan McRae  <allan@archlinux.org>
43
44         * po/fr.po: Update French translation from translation project.
45
46 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
47
48         * sysdeps/sh/libm-test-ulps: Regenerate.
49
50 2014-01-24  David S. Miller  <davem@davemloft.net>
51
52         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
53
54 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
55
56         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
57         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
58
59 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
60
61         [BZ #16474]
62         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
63         string pointers after reallocation.
64
65 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
66
67         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
68         __SH4A__ instead of __SH_FPU_ANY__.
69
70 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
71
72         * sysdeps/sh/fpu_control.h: New file.
73         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
74         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
75         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
76         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
77         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
78         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
79         * sysdeps/sh/sys/ucontext.h: Remove.
80         * sysdeps/sh/sys: Remove directory.
81
82 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
83
84         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
85         s390/sys/ucontext.h.
86         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
87         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
88
89 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
90
91         [BZ #15605]
92         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
93
94 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
95
96         [BZ#16431]
97         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
98         Adjust the vDSO correctly for internal calls.
99         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
100
101 2014-01-20  Allan McRae  <allan@archlinux.org>
102
103         * po/ca.po: Update Catalan translation from translation project.
104
105 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
106
107         * sysdeps/s390/sotruss-lib.c: New file.
108
109 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
110
111         [BZ#16430]
112         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
113         (__GI___gettimeofday): Alias for a different internal symbol to avoid
114         local calls issues by not having a PLT stub required for IFUNC calls.
115         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
116
117 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
118
119         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
120         * math/test-fpucw-static.c: Likewise.
121
122 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
123
124         [BZ #16453]
125         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
126
127 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
128
129         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
130         implementation for powerpc.
131
132 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
133
134         [BZ #14782]
135         * sysdeps/posix/system.c (__libc_system): Do not enable
136         asynchronous cancellation.
137
138 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
139
140         [BZ #16427]
141         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
142         handling only for numbers special also in the IEEE case.
143
144 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
145
146         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
147
148 2014-01-11  Allan McRae  <allan@archlinux.org>
149
150         * po/bg.po: Update Bulgarian translation from translation project.
151
152         * po/de.po: Update German translation from translation project.
153
154 2014-01-10  Roland McGrath  <roland@hack.frob.com>
155
156         * sysdeps/generic/gcc-compat.h: New file.
157
158 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
159
160         * benchtests/asin-inputs: Correct slow inputs.
161         * benchtests/acos-inputs: Likewise.
162
163 2014-01-10  Allan McRae  <allan@archlinux.org>
164
165         * po:sv.po: Update Swedish translation from translation project.
166
167         * po/vi.po: Update Vietnamese translation from translation project.
168
169         * po/eo.po: Update Esperanto translation from translation project.
170
171         * po/cs.po: Update Czech translation from translation project.
172
173         * po/nl.po: Update Dutch translation from translation project.
174
175         * po/pl.po: Update Polish translation from translation project.
176
177         * po/ru.po: Update Russian translation from translation project.
178
179         * po/uk.po: Update Ukrainian translation from translation project.
180
181 2014-01-08  Brooks Moses  <bmoses@google.com>
182
183         * elf/dl-load.c: Fix comment typo.
184
185 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
186
187         * po/header.pot: Rename to...
188         * po/pot.header: ... this.
189         * po/Makefile: Use pot.header.
190
191 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
192             Maxim Kuvyrkov  <maxim@kugelworks.com>
193
194         [BZ #16394]
195         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
196         SRC and DEST against LEN.
197
198 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
199
200         [BZ #16414]
201         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
202         implementation.
203         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
204
205 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
206
207         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
208
209 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
210
211         [BZ #16408]
212         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
213         for large positive arguments.
214
215 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
216
217         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
218
219         * math/auto-libm-test-in: Mark various tests with
220         xfail-rounding:ldbl-128ibm.
221         * math/auto-libm-test-out: Regenerated.
222
223         [BZ #16407]
224         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
225         Increase overflow threshold.
226
227 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
228
229         [BZ #14286]
230         * stdio-common/vfprintf.c: Check for integer overflow.
231
232 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
233
234         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
235         the first argument and return value of __tls_get_addr_internal.
236
237 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
238
239         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
240         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
241
242 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
243
244         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
245         * sysdeps/s390/rtld-global-offsets.sym: New file.
246         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
247         GLIBC_2.19 symbol.
248         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
249         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
250         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
251         ... this.
252         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
253         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
254         ... this.
255         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
256         Regenerate.
257         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
258         Regenerate.
259         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
260         halfs of GPRs for high_gprs contexts.
261         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
262         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
263         field.
264         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
265         uc_flags field.
266         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
267         64 bit versions:
268         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
269         for high GPRs (uc_high_gprs) and for future extensions
270         (__reserved).
271         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
272         for future extensions (__reserved).
273         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
274         64 bit versions:
275         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
276         SC_HIGHGPRS offset definition.
277         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
278         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
279
280 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
281
282         * Versions.def: Add GLIBC_2.19 for libpthread.
283         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
284         siglongjmp for libpthread with GLIBC_2.19 symver.
285         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
286         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
287         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
288         * sysdeps/s390/__longjmp.c: New file.
289         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
290         * sysdeps/s390/longjmp.c: New file.
291         * sysdeps/s390/setjmp.S: New file.
292         * sysdeps/s390/sigjmp.S: New file.
293         * sysdeps/s390/v1-longjmp.c: New file.
294         * sysdeps/s390/v1-setjmp.h: New file.
295         * sysdeps/s390/v1-sigjmp.c: New file.
296         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
297         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
298         GLIBC_2.19 version.
299         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
300         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
301         versioned symbols for ____longjmp_chk.
302         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
303         Likewise.
304         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
305         Regenerate.
306         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
307         Regenerate.
308         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
309         Regenerate.
310         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
311         Regenerate.
312         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
313         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
314         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
315         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
316         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
317         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
318         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
319         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
320         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
321         * sysdeps/s390/rtld-__longjmp.c: New file.
322         * sysdeps/s390/rtld-setjmp.S: New file.
323
324 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
325
326         [BZ #16400]
327         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
328         Return -__logl (x) for small positive arguments without evaluating
329         a polynomial.
330
331 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
332
333         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
334         Rename to ...
335         (__ptrace_peeksiginfo_args): ... this.
336         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
337         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
338         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
339
340 2014-01-06  Allan McRae  <allan@archlinux.org>
341
342         * inet/netinet/in.h: Fix typo in comment.
343
344 2014-01-05  Andreas Jaeger  <aj@suse.de>
345
346         * sysdeps/i386/fpu/libm-test-ulps: Update.
347
348 2014-01-05  Allan McRae  <allan@archlinux.org>
349
350         * po/libc.pot: Regenerated.
351
352         * malloc/memusagestat.c: Fix gettext call formatting.
353
354 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
355
356         * nscd/nscd.c: Improve usage() output.
357
358 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
359
360         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
361         * sysdeps/unix/sysv/linux/configure: Regenerated.
362         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
363         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
364
365 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
366
367         [BZ #16390]
368         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
369         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
370
371 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
372
373         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
374         extra tokens at end of #undef directive.
375         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
376         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
377         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
378
379 2014-01-03  Andrew Hunter  <ahh@google.com>
380
381         * elf/dl-open.c (dl_open_worker): New comment.
382         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Use
383         atomic_compare_and_exchange_bool_acq
384         (_dl_allocate_static_tls): Block signals.
385         * elf/dl-tls.c (allocate_and_init): Return void.
386         (_dl_update_slotinfo): Block signals, use atomic update.
387
388 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
389
390         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
391
392         * math/auto-libm-test-in: Mark various tests with
393         xfail-rounding:ldbl-128ibm.
394         * math/auto-libm-test-out: Regenerated.
395
396 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
397
398         [BZ #16386]
399         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
400         numbers with subnormal high part when calculating exponent.
401
402         [BZ #16385]
403         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
404         fabs.
405
406         [BZ #16384]
407         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
408         M_LN2l.
409         (__ieee754_acoshl): Use __log1pl not __log1p.
410
411 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
412
413         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all,
414         ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry,
415         __failing_morecore, ptmalloc_init, dump_heap, new_heap, grow_heap,
416         heap_trim, _int_new_arena, get_free_list, reused_arena, arena_get2):
417         Convert to GNU style.
418         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init,
419         mem2mem_check, mem2chunk_check, top_check, realloc_check,
420         memalign_check, __malloc_set_state): Likewise.
421         * malloc/mallocbug.c (main): Likewise.
422         * malloc/malloc.c (__malloc_assert, malloc_init_state, free_perturb,
423         do_check_malloced_chunk, do_check_malloc_state, sysmalloc, systrim,
424         mremap_chunk, __libc_malloc, __libc_free, __libc_realloc, _mid_memalign,
425         _int_malloc, malloc_consolidate, _int_realloc, _int_memalign, mtrim,
426         musable, __libc_mallopt, __posix_memalign, malloc_info): Likewise.
427         * malloc/malloc.h: Likewise.
428         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook, mallochook,
429         memalignhook, reallochook, mabort): Likewise.
430         * malloc/mcheck.h: Likewise.
431         * malloc/memusage.c (update_data, me, malloc, realloc, calloc, free, mmap,
432         mmap64, mremap, munmap, dest): Likewise.
433         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
434         * malloc/morecore.c (__default_morecore): Likewise.
435         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
436         * malloc/obstack.c (_obstack_begin, _obstack_newchunk,
437         _obstack_allocated_p, obstack_free, _obstack_memory_used,
438         print_and_abort): Likewise.
439         * malloc/obstack.h: Likewise.
440         * malloc/set-freeres.c (__libc_freeres): Likewise.
441         * malloc/tst-mallocstate.c (main): Likewise.
442         * malloc/tst-mtrace.c (main): Likewise.
443         * malloc/tst-realloc.c (do_test): Likewise.
444
445 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
446
447         [BZ #16366]
448         * nscd/netgroupcache.c (do_notfound): New function.
449         (addgetnetgrentX): Use it.
450
451         [BZ # 16365]
452         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
453         NSS_STATUS_NOTFOUND.
454
455 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
456
457         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
458         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
459
460 2014-01-01  Allan McRae  <allan@archlinux.org>
461
462         * scripts/update-copyrights: Update configure input file suffix.
463
464         * NEWS: Update copyright year.
465         * catgets/gencat.c: Likewise.
466         * csu/version.c: Likewise.
467         * debug/catchsegv.sh: Likewise.
468         * debug/pcprofiledump.c: Likewise.
469         * debug/xtrace.sh: Likewise.
470         * elf/ldconfig.c: Likewise.
471         * elf/ldd.bash.in: Likewise.
472         * elf/pldd.c: Likewise.
473         * elf/sotruss.ksh: Likewise.
474         * elf/sprof.c: Likewise.
475         * iconv/iconv_prog.c: Likewise.
476         * iconv/iconvconfig.c: Likewise.
477         * locale/programs/locale.c: Likewise.
478         * locale/programs/localedef.c: Likewise.
479         * login/programs/pt_chown.c: Likewise.
480         * malloc/memusage.sh: Likewise.
481         * malloc/memusagestat.c: Likewise.
482         * malloc/mtrace.pl: Likewise.
483         * manual/libc.texinfo: Likewise.
484         * nscd/nscd.c: Likewise.
485         * nss/getent.c: Likewise.
486         * nss/makedb.c: Likewise.
487         * posix/getconf.c: Likewise.
488         * scripts/test-installation.pl: Likewise.
489
490         * All files with FSF copyright notices: Update copyright dates
491         using scripts/update-copyrights.
492         * intl/plural.c: Regenerated.
493         * locale/programs/charmap-kw.h: Likewise.
494         * locale/programs/locfile-kw.h: Likewise.
495
496 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
497
498         * sysdeps/unix/sysv/linux/configure: Regenerated.
499         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
500         the linux/fanotify.h header.
501         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
502         HAVE_LINUX_FANOTIFY_H is defined.
503
504 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
505
506         * benchtests/cos-inputs: New inputs.
507         * benchtests/sin-inputs: Likewise.
508
509         * benchtests/atan-inputs: New inputs. Fix name of multiple
510         precision fallback inputs.
511
512         * benchtests/atanh-inputs: New inputs.
513         * benchtests/tanh-inputs: Likewise.
514
515         * benchtests/acosh-inputs: New inputs.
516         * benchtests/asinh-inputs: Likewise.
517
518         * benchtests/cosh-inputs: New inputs.
519         * benchtests/sinh-inputs: Likewise.
520
521         * benchtests/acos-inputs: Add more inputs.
522         * benchtests/asin-inputs: Likewise.
523
524 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
525
526         [BZ #16375]
527         * manual/arith.texi: Fix spelling.
528         * manual/charset.texi: Likewise.
529         * manual/errno.texi: Likewise.
530         * manual/filesys.texi: Likewise.
531         * manual/lang.texi: Likewise.
532         * manual/llio.texi: Likewise.
533         * manual/locale.texi: Likewise.
534         * manual/message.texi: Likewise.
535         * manual/resource.texi: Likewise.
536         * manual/search.texi: Likewise.
537         * manual/setjmp.texi: Likewise.
538         * manual/stdio.texi: Likewise.
539         * manual/string.texi: Likewise.
540         * manual/sysinfo.texi: Likewise.
541         * manual/time.texi: Likewise.
542
543 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
544
545         * po/sl.po: New file.
546
547 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
548
549         * .gitignore: Add core/.gdbinit/.gdb_history.
550
551 2013-12-27  Allan McRae  <allan@archlinux.org>
552
553         [BZ #16369]
554         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
555         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
556
557 2013-12-24  Brooks Moses  <bmoses@google.com>
558
559         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
560         all compilers that claim C++98 compliance, not just GCC.
561         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
562         Likewise.
563
564 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
565
566         * NEWS: Restore accidentally deleted bug-fix entries.
567
568 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
569             Ondřej Bílka  <neleai@seznam.cz>
570
571         [BZ #15073]
572         * malloc/malloc.c (_int_free): Perform sanity check only if we
573         have_lock.
574
575 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
576
577         [BZ #12986]
578         * manual/stdio.texi (String Input Conversions): Clarify that character
579         classes are not supported.
580
581 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
582
583         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
584
585 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
586
587         [BZ #16337]
588         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
589         Calculate results for small negative arguments directly rather
590         than using reflection formula with special underflow handling.
591
592         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
593         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
594         sysdeps/unix/bsd/bsd4.4/syscalls.list.
595         (fchflags): Likewise.
596         (revoke): Likewise.
597         (setlogin): Likewise.
598         (sigaltstack): Likewise.
599         (wait4): Likewise.
600         (sigblock): Remove.
601         (sigsetmask): Likewise.
602         (wait3): Likewise.
603         (waitpid): Likewise.
604         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
605         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
606         file.
607         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
608         * sysdeps/unix/bsd/Makefile: ... here.
609         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
610         * sysdeps/unix/bsd/Versions: ... here.
611         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
612         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
613         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
614         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
615         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
616         * sysdeps/unix/bsd/sigblock.c: ... here.
617         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
618         * sysdeps/unix/bsd/sigsetmask.c: ... here.
619         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
620         * sysdeps/unix/bsd/sigvec.c: ... here.
621         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
622         * sysdeps/unix/bsd/tcdrain.c: ... here.
623         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
624         * sysdeps/unix/bsd/tcgetattr.c: ... here.
625         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
626         * sysdeps/unix/bsd/tcsetattr.c: ... here.
627         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
628         * sysdeps/unix/bsd/wait.c: ... here.
629         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
630         * sysdeps/unix/bsd/wait3.c: ... here.
631         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
632         * sysdeps/unix/bsd/waitpid.c: ... here.
633
634 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
635
636         [BZ #16356]
637         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
638         round-to-nearest for [!USE_AS_EXPM1L].
639         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
640         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
641         more tests of exp and exp10.  Expect some exp10 tests to miss
642         exceptions or fail in directed rounding modes.
643         * math/auto-libm-test-out: Regenerated.
644         * math/libm-test.inc (exp10_tonearest_test_data): New array.
645         (exp10_test_tonearest): New function.
646         (exp10_towardzero_test_data): New array.
647         (exp10_test_towardzero): New function.
648         (exp10_downward_test_data): New array.
649         (exp10_test_downward): New function.
650         (exp10_upward_test_data): New array.
651         (exp10_test_upward): New function.
652         (main): Call the new functions.
653         * sysdeps/i386/fpu/libm-test-ulps: Update.
654         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
655
656 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
657
658         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
659         asinh, atan, atan2, atanh, cbrt, cos and cosh.
660         * math/auto-libm-test-out: Regenerated.
661         * math/libm-test.inc (acosh_test_data): Add more tests.
662         (atanh_test_data): Likewise.
663         (ceil_test_data): Likewise.
664         (copysign_test_data): Likewise.
665         * sysdeps/i386/fpu/libm-test-ulps: Update.
666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
667
668         * timezone/checktab.awk: Update from tzcode 2013i.
669         * timezone/private.h: Likewise.
670         * timezone/scheck.c: Likewise.
671         * timezone/tzfile.h: Likewise.
672         * timezone/tzselect.ksh: Likewise.
673         * timezone/zdump.c: Likewise.
674         * timezone/zic.c: Likewise.
675
676         * math/auto-libm-test-in: Add tests of cpow.
677         * math/auto-libm-test-out: Regenerated.
678         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
679         * * math/gen-auto-libm-tests.c (func_calc_method): Add value
680         mpc_cc_c.
681         (func_calc_desc): Add mpc_cc_c union field.
682         (test_functions): Add cpow.
683         (special_fill_2pi): New function.
684         (special_real_inputs): Add 2pi.
685         (calc_generic_results): Handle mpc_cc_c.
686         * sysdeps/i386/fpu/libm-test-ulps: Update.
687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
688
689         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
690         csqrt, ctan and ctanh.
691         * math/auto-libm-test-out: Regenerated.
692         * math/libm-test.inc (TEST_COND_x86_64): New macro.
693         (TEST_COND_x86): Likewise.
694         (ccos_test_data): Use AUTO_TESTS_c_c.
695         (ccosh_test_data): Likewise.
696         (cexp_test_data): Likewise.
697         (clog_test_data): Likewise.
698         (csqrt_test_data): Likewise.
699         (ctan_test_data): Likewise.
700         (ctan_tonearest_test_data): Likewise.
701         (ctan_towardzero_test_data): Likewise.
702         (ctan_downward_test_data): Likewise.
703         (ctan_upward_test_data): Likewise.
704         (ctanh_test_data): Likewise.
705         (ctanh_tonearest_test_data): Likewise.
706         (ctanh_towardzero_test_data): Likewise.
707         (ctanh_downward_test_data): Likewise.
708         (ctanh_upward_test_data): Likewise.
709         * math/gen-auto-libm-tests.c (func_calc_method): Add value
710         mpc_c_c.
711         (func_calc_desc): Add mpc_c_c union field.
712         (FUNC_mpc_c_c): New macro.
713         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
714         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
715         ctanh.
716         (special_fill_min_subnorm_p120): New function.
717         (special_real_inputs): Add min_subnorm_p120.
718         (calc_generic_results): Handle mpc_c_c.
719         * sysdeps/i386/fpu/libm-test-ulps: Update.
720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
721
722 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
723
724         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin,
725         do_sin_slow): New functions.
726         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2,
727         cslow2, csloww1, csloww2): Use the new functions.
728
729         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
730         Use M to change sign of result instead of X.  Assume X is
731         positive.
732         (csloww1): Likewise.
733         (__sin): Adjust.
734         (__cos): Adjust.
735
736         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
737         arguments A and DA.
738         (__sin): Adjust.
739         (__cos): Likewise.
740
741         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
742         (__cos): Likewise.
743         (sloww1): Don't adjust sign of DX.
744         (csloww1): Likewise.
745         (sloww2): Use X directly and don't adjust sign of DX.
746         (csloww2): Likewise.
747
748 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
749
750         * math/auto-libm-test-in: Add tests of cabs and carg.
751         * math/auto-libm-test-out: Regenerated.
752         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
753         (carg_test_data): Likewise.
754         * math/gen-auto-libm-tests.c (func_calc_method): Add value
755         mpc_c_f.
756         (func_calc_desc): Add mpc_c_f union field.
757         (test_functions): Add cabs and carg.
758         (calc_generic_results): Handle mpc_c_f.
759
760         * sysdeps/powerpc/powerpc32/libgcc-compat.S
761         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
762         as a macro and a compat symbol.
763         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
764         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
765         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
766         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
767         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
768         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
769         not use .hidden.
770         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
771         Likewise.
772         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
773         Likewise.
774         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
775         Likewise.
776         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
777         Likewise.
778         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
779         Likewise.
780         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
781         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
782         from GLIBC_2.3.2.
783
784 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
785
786         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
787
788 2013-12-19  Paul Pluzhnikov  <ppluzhnikov@google.com>
789
790         * elf/dl-misc.c (ptr_to_signal_safe_allocator_header): New function.
791         (__signal_safe_memalign, __signal_safe_free): Use it.
792         (__signal_safe_realloc): Likewise.
793
794 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
795
796         * manual/texinfo.tex: Update to version 2013-11-26.10 with
797         trailing whitespace removed.
798         * scripts/config.guess: Update to version 2013-11-29.
799         * scripts/config.sub: Update to version 2013-10-01.
800
801         * math/auto-libm-test-in: Add tests of sincos.
802         * math/auto-libm-test-out: Regenerated.
803         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
804         * math/gen-auto-libm-tests.c (func_calc_method): Add value
805         mpfr_f_11.
806         (func_calc_desc): Add mpfr_f_11 union field.
807         (test_functions): Add sincos.
808         (calc_generic_results): Handle mpfr_f_11.
809         * sysdeps/i386/fpu/libm-test-ulps: Update.
810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
811
812 2013-12-19  Andreas Schwab  <schwab@suse.de>
813
814         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
815         CALL_MCOUNT.
816         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
817         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
818         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
819
820 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
821
822         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
823         * sysdeps/i386/fpu/libm-test-ulps: Update.
824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
825
826         [BZ #16293]
827         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
828         round-to-nearest mode when using frndint.
829         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
830         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
831         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
832         Likewise.
833         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
834         sinh test to fail.
835         * math/auto-libm-test-out: Regenerated.
836         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
837         (TEST_COND_x86): Likewise.
838         (expm1_tonearest_test_data): New array.
839         (expm1_test_tonearest): New function.
840         (expm1_towardzero_test_data): New array.
841         (expm1_test_towardzero): New function.
842         (expm1_downward_test_data): New array.
843         (expm1_test_downward): New function.
844         (expm1_upward_test_data): New array.
845         (expm1_test_upward): New function.
846         (main): Run the new test functions.
847         * sysdeps/i386/fpu/libm-test-ulps: Update.
848         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
849
850         * include/features.h: Update comment documenting feature test
851         macros.  Mention _DEFAULT_SOURCE in comment.
852         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
853         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
854         _BSD_SOURCE and _SVID_SOURCE.
855         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
856         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
857         !_SVID_SOURCE]: Likewise.
858         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
859         (__USE_POSIX_IMPLICITLY): Define.
860         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
861         (_POSIX_SOURCE): Undefine and redefine.
862         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
863         (_POSIX_C_SOURCE): Likewise.
864         * manual/creature.texi (_DEFAULT_SOURCE): Document.
865         (Feature Test Macros): Update documentation of default features.
866
867 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
868
869         * benchtests/Makefile: Add bench-strtok.
870         * benchtests/bench-strtok.c: New file: strtok benchtest.
871
872 2013-12-19  Allan McRae  <allan@archlinux.org>
873
874         * manual/install.texi: Suppress menu for plain text output.
875         * INSTALL: Regenerated.
876
877 2013-12-18  Andrew Hunter  <ahh@google.com>
878
879         * sysdeps/generic/ldsodefs.h (__signal_safe_memalign): New prototype.
880         (__signal_safe_malloc, __signal_safe_free): Likewise.
881         (__signal_safe_realloc, __signal_safe_calloc): Likewise.
882         * elf/dl-misc.c (__signal_safe_allocator_header): New struct.
883         (__signal_safe_memalign, __signal_safe_malloc): New function.
884         (__signal_safe_free, __signal_safe_realloc): Likewise.
885         (__signal_safe_calloc): Likewise.
886         * elf/dl-tls.c (allocate_dtv, _dl_clear_dtv): Call signal-safe
887         functions.
888         (_dl_deallocate_tls, _dl_update_slotinfo): Likewise.
889
890 2013-12-18  Andrew Hunter  <ahh@google.com>
891
892         * elf/Versions (ld): Add _dl_clear_dtv.
893         * sysdeps/generic/ldsodefs.h (_dl_clear_dtv): New prototype.
894         * elf/dl-tls.c (_dl_clear_dtv): New function.
895         * nptl/allocatestack.c (get_cached_stack): Call _dl_clear_dtv.
896
897 2013-12-18  Andrew Hunter  <ahh@google.com>
898
899         * sysdeps/generic/ldsodefs.h (_dl_mask_all_signals): New prototype.
900         (_dl_unmask_signals): Likewise.
901         * sysdeps/mach/hurd/dl-sysdep.h (_dl_mask_all_signals): New stub.
902         (_dl_unmask_all_signals): Likewise.
903         * sysdeps/unix/sysv/linux/dl-sysdep.h (_dl_mask_all_signals): New prototype.
904         (_dl_unmask_all_signals): Likewise.
905         * sysdeps/unix/sysv/linux/dl-sysdep.c (_dl_mask_all_signals): New function.
906         (_dl_unmask_signals): Likewise.
907
908 2013-12-18  Brooks Moses  <bmoses@google.com>
909
910         [BZ #15846]
911         * misc/getauxval.c: Include errno.h.
912         (__getauxval): Set errno to ENOENT if the requested type is not
913         found.
914         * misc/sys/auxv.h (getauxval): Document that it may set errno;
915         don't declare with __attribute_const__.
916         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
917         * manual/startup.texi: Document that getauxval sets errno.
918
919 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
920
921         * math/auto-libm-test-in: Add tests of jn and yn.
922         * math/auto-libm-test-out: Regenerated.
923         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
924         (yn_test_data): Likewise.
925         * math/gen-auto-libm-tests.c (func_calc_method): Add value
926         mpfr_if_f.
927         (func_calc_desc): Add mpfr_if_f union field.
928         (FUNC_mpfr_if_f): New macro.
929         (test_functions): Add jn and yn.
930         (calc_generic_results): Assert type of second input for
931         mpfr_ff_f.  Handle mpfr_if_f.
932         (output_for_one_input_case): Disable all checking for arguments
933         fitting floating-point types in case of an integer argument.
934         * sysdeps/i386/fpu/libm-test-ulps: Update.
935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
936
937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
938         Don't expect fegetround reference in libm.so.
939
940 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
941
942         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
943         $(config-cflags-nofma).
944
945 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
946
947         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
948         * math/auto-libm-test-out: Regenerated.
949
950         [BZ #16338]
951         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
952         to determine exponent and adjust argument to have exponent of -1.
953         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
954         log2.
955         * math/auto-libm-test-out: Regenerated.
956         * sysdeps/i386/fpu/libm-test-ulps: Update.
957         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
958
959 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
960
961         * manual/probes.texi: Remove cases when per-thread arenas are
962         disabled.
963
964 2013-12-18  Andreas Schwab  <schwab@suse.de>
965
966         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
967         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
968         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
969         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
970         * sysdeps/i386/i686/multiarch/Makefile: Update.
971         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
972
973 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
974
975         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
976         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
977
978 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
979
980         Support TZ transition times < 00:00:00.
981         This is needed for version-3 tz-format files; it supports time
982         stamps past 2037 for America/Godthab (the only entry in the tz
983         database for which this change is relevant).
984         * manual/time.texi (TZ Variable): Document transition times
985         from -167:59:59 through -00:00:01.
986         * time/tzset.c (tz_rule): Time of day is now signed.
987         (__tzset_parse_tz): Parse negative time of day.
988
989         Document TZ transition times >= 25:00:00.
990         * manual/time.texi (TZ Variable): Document transition times from
991         25:00:00 through 167:59:59.  These are already supported, and this
992         support will help with version-3 tz-format files.
993
994         * manual/time.texi (TZ Variable): Modernize North America example
995         to reflect current (i.e., 2007-and-later) daylight saving rules.
996
997         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
998
999 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1000
1001         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
1002         * sysdeps/unix/bsd/bits/stat.h: Likewise.
1003         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
1004         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
1005         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
1006         * sysdeps/unix/bsd/bsdstat.h: Likewise.
1007         * sysdeps/unix/bsd/clock.c: Likewise.
1008         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
1009         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
1010         * sysdeps/unix/bsd/init-posix.c: Likewise.
1011         * sysdeps/unix/bsd/poll.c: Likewise.
1012         * sysdeps/unix/bsd/ptsname.c: Likewise.
1013         * sysdeps/unix/bsd/seekdir.c: Likewise.
1014         * sysdeps/unix/bsd/setegid.c: Likewise.
1015         * sysdeps/unix/bsd/seteuid.c: Likewise.
1016         * sysdeps/unix/bsd/setgid.c: Likewise.
1017         * sysdeps/unix/bsd/setrgid.c: Likewise.
1018         * sysdeps/unix/bsd/setruid.c: Likewise.
1019         * sysdeps/unix/bsd/setsid.c: Likewise.
1020         * sysdeps/unix/bsd/setuid.c: Likewise.
1021         * sysdeps/unix/bsd/sigaction.c: Likewise.
1022         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
1023         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
1024         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
1025         * sysdeps/unix/bsd/telldir.c: Likewise.
1026         * sysdeps/unix/bsd/times.c: Likewise.
1027         * sysdeps/unix/bsd/usleep.c: Likewise.
1028
1029         * misc/Makefile (install-lib): Remove libbsd-compat.a.
1030         ($(objpfx)libbsd-compat.a): Remove rule.
1031
1032         * include/features.h (__FAVOR_BSD): Do not define.
1033         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
1034         features conflicting with POSIX.
1035         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
1036         (_BSD_SOURCE): Remove description of not being a subset of other
1037         feature test macros.
1038         * manual/job.texi (getpgrp): Do not document BSD version.
1039         (getpgid): Do not document by reference to BSD getpgrp.
1040         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
1041         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
1042         * signal/signal.h [__FAVOR_BSD]: Likewise.
1043         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
1044         instead of making contents conditional on [__FAVOR_BSD].
1045         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
1046
1047 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1048
1049         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1050
1051 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1052
1053         [BZ #16314]
1054         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
1055         values below 2**-450, not 2**-500.
1056         * math/auto-libm-test-in: Don't allow spurious underflow from
1057         hypot.
1058         * math/auto-libm-test-out: Regenerated.
1059
1060         [BZ #16316]
1061         [BZ #16330]
1062         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
1063         values of ha and hb and sort them after adjusting subnormal
1064         arguments.
1065         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
1066         Likewise.
1067         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
1068         values of ea and eb and sort them after adjusting subnormal
1069         arguments.
1070         * math/auto-libm-test-in: Do not expect some hypot tests of
1071         subnormals to fail.  Add more hypot tests.
1072         * math/auto-libm-test-out: Regenerated.
1073
1074 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1075
1076         [BZ #13304]
1077         * sysdeps/sh/s_fma.c: New file.
1078         * sysdeps/sh/s_fmaf.c: New file.
1079         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
1080         version.
1081         * sysdeps/sh/Implies: Add sh/soft-fp.
1082
1083 2013-12-16  Roland McGrath  <roland@hack.frob.com>
1084
1085         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
1086         level of indirection to members `objname', `errstring', `malloced'.
1087         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
1088         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
1089         it as the __longjmp argument (just pass 1 instead).
1090         (_dl_catch_error): Initialize C with argument pointers and address of
1091         volatile local ERRCODE rather than copying values out of C at return.
1092
1093 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
1094
1095         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
1096         * math/auto-libm-test-out: Regenerated.
1097         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
1098         (hypot_test_data): Likewise.
1099         (pow_test_data): Likewise.
1100         (pow_tonearest_test_data): Likewise.
1101         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1102         mpfr_ff_f.
1103         (func_calc_desc): Add mpfr_ff_f union field.
1104         (FUNC_mpfr_ff_f): New macro.
1105         (test_functions): Add atan2, hypot and pow.
1106         (special_fill_min): New function.
1107         (special_fill_minus_min): Likewise.
1108         (special_fill_min_subnorm): Likewise.
1109         (special_fill_minus_min_subnorm): Likewise.
1110         (special_real_inputs): Add min, -min, min_subnorm and
1111         -min_subnorm.
1112         (calc_generic_results): Handle mpfr_ff_f.
1113         * sysdeps/i386/fpu/libm-test-ulps: Update.
1114         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1115
1116 2013-12-16  Will Newton  <will.newton@linaro.org>
1117
1118         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
1119         (Aligned Memory Blocks): Add documentation for aligned_alloc
1120         and suggest it as an alternative to posix_memalign.
1121         (Hooks for Malloc): Document __memalign_hook is also called
1122         for aligned_alloc.  (Summary of Malloc): Add summary for
1123         aligned alloc.  Document __memalign_hook is also called
1124         for aligned_alloc.
1125
1126 2013-12-16  Will Newton  <will.newton@linaro.org>
1127
1128         * manual/memory.texi (Malloc Examples): Clarify default
1129         alignment documentation.  Suggest posix_memalign rather
1130         than memalign or valloc.
1131         (Aligned Memory Blocks): Remove suggestion to use memalign
1132         or valloc.  Remove obsolete comment about BSD.
1133         Document memalign errno values and mark the function obsolete.
1134         Document posix_memalign returned error codes.  Mark valloc
1135         as obsolete.  (Hooks for Malloc): __memalign_hook is also
1136         called for posix_memalign and valloc.
1137         (Summary of Malloc): Add posix_memalign to function summary.
1138         __memalign_hook is also called for posix_memalign and valloc.
1139
1140 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1141
1142         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
1143         TAYLOR_SIN.
1144         (__sin): Adjust.
1145         (__cos): Likewise.
1146         (sloww): Use mynumber union.  Expand ternary operator into
1147         if-else statements.
1148         (cslow): use mynumber union.
1149
1150 2013-12-16  Allan McRae  <allan@archlinux.org>
1151
1152         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
1153         * configure: Regenerated.
1154
1155         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
1156
1157         [BZ #14120]
1158         * configure.ac: Added --enable-maintainer-mode. Check for
1159         autoconf when enabled.
1160         * configure: Regenerated.
1161
1162         * nscd/nscd.service: New file.
1163         * nscd/nscd.tmpfiles: New file.
1164
1165 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
1166
1167         [BZ #12100]
1168         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
1169         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
1170         * sysdeps/x86_64/multiarch/strstr.c: ... here.
1171         (strstr): Add __strstr_sse2_unaligned ifunc.
1172         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
1173         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
1174         (strcasestr): Remove __strcasestr_sse42 ifunc.
1175         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
1176         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1177         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
1178
1179 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1180
1181         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
1182         * sysdeps/sh/bits/fenv.h: ... here.
1183         * sysdeps/sh/sh4/fpu/bits: Remove directory.
1184
1185 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1186
1187         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
1188
1189 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1190
1191         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
1192         hypotf multiarch implementations.
1193         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
1194         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
1195         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
1196         multiarch hypot for PPC64.
1197         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
1198         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
1199         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
1200         multiarch hypotf for PPC64.
1201
1202 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1203
1204         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
1205         modff multiarch implementations.
1206         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
1207         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
1208         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
1209         multiarch modf for PPC64.
1210         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
1211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
1212         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
1213         multiarch modff for PPC64.
1214
1215 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1216
1217         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
1218         and logl multiarch implementations.
1219         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
1220         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
1221         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
1222         multiarch logb for PPC64.
1223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
1224         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
1225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
1226         multiarch logb for PPC64.
1227         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
1228         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
1229         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
1230         multiarch logb for PPC64.
1231
1232 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1233
1234         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
1235         isinff multiarch implementation.
1236         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
1237         file.
1238         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
1239         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
1240         multiarch isinf for PPC64.
1241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
1242         file.
1243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
1244         multiarch isinff for PPC64.
1245
1246 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1247
1248         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
1249         finitef multiarch implementation.
1250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
1251         file.
1252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
1253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
1254         multiarch finite for PPC64.
1255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
1256         file.
1257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
1258         multiarch finitef for PPC64.
1259
1260 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1261
1262         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
1263         lrint multiarch implementation.
1264         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
1265         file.
1266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
1267         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
1268         multiarch llrint for PPC64.
1269         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
1270         multiarch lrint for PPC64.
1271
1272 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1273
1274         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
1275         copysignf multiarch implementation.
1276         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
1277         file.
1278         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
1279         file.
1280         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
1281         multiarch copysign for PPC64.
1282         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
1283         multiarch copysignf for PPC64.
1284
1285 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1286
1287         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
1288         multiarch implementation.
1289         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
1290         file.
1291         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
1292         file.
1293         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
1294         file.
1295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
1296         file.
1297         multiarch llround for PPC64.
1298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
1299         multiarch trunc for PPC64.
1300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
1301         multiarch truncf for PPC64.
1302
1303 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1304
1305         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
1306         multiarch implementation.
1307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
1308         file.
1309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
1310         file.
1311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
1312         file.
1313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
1314         file.
1315         multiarch llround for PPC64.
1316         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
1317         multiarch round for PPC64.
1318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
1319         multiarch roundf for PPC64.
1320
1321 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1322
1323         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
1324         multiarch implementation.
1325         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
1326         file.
1327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
1328         file.
1329         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
1330         file.
1331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
1332         file.
1333         multiarch llround for PPC64.
1334         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
1335         multiarch floor for PPC64.
1336         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
1337         multiarch floorf for PPC64.
1338
1339 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1340
1341         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
1342         multiarch implementation.
1343         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
1344         file.
1345         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
1346         file.
1347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
1348         file.
1349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
1350         file.
1351         multiarch llround for PPC64.
1352         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
1353         multiarch ceil for PPC64.
1354         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
1355         multiarch ceilf for PPC64.
1356
1357 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1358
1359         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
1360         multiarch implementation.
1361         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
1362         file.
1363         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
1364         file.
1365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
1366         file.
1367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
1368         multiarch llround for PPC64.
1369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
1370         multiarch lround for PPC64.
1371
1372 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1373
1374         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
1375         multiarch implementation.
1376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
1377         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
1378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
1379         file.
1380         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
1381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
1382         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
1383         multiarch isnan for PPC64.
1384         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
1385         multiarch isnanf for PPC64.
1386
1387 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1388
1389         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
1390         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
1391         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
1392         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
1393         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
1394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
1395
1396 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1397
1398         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
1399         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
1400         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
1401         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
1402
1403 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1404
1405         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
1406         multiarch implementations.
1407         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1408         (__libc_ifunc_impl_list): Likewise.
1409         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
1410         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
1411         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
1412         multiarch stpcpy for PPC64.
1413
1414 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1415
1416         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
1417         multiarch implementations.
1418         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1419         (__libc_ifunc_impl_list): Likewise.
1420         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
1421         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
1422         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
1423         multiarch strcpy for PPC64.
1424
1425 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1426
1427         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
1428         redefine function name.
1429         (_wordcopy_fwd_dest_aligned): Likewise.
1430         (_wordcopy_bwd_aligned): Likewise.
1431         (_wordcopy_bwd_dest_aligned): Likewise.
1432         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
1433         multiarch implementations.
1434         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1435         (__libc_ifunc_impl_list): Likewise.
1436         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
1437         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
1438         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
1439         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
1440         multiarch wcscpy for PPC64.
1441
1442 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1443
1444         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
1445         multiarch implementations.
1446         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1447         (__libc_ifunc_impl_list): Likewise.
1448         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
1449         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
1450         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
1451         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
1452         multiarch wcscpy for PPC64.
1453
1454 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1455
1456         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
1457         multiarch implementations.
1458         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1459         (__libc_ifunc_impl_list): Likewise.
1460         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
1461         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
1462         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
1463         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
1464         multiarch wcsrchr for PPC64.
1465
1466 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1467
1468         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
1469         multiarch implementations.
1470         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1471         (__libc_ifunc_impl_list): Likewise.
1472         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
1473         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
1474         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
1475         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
1476         multiarch wcschr for PPC64.
1477
1478 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1479
1480         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
1481         multiarch implementations.
1482         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1483         (__libc_ifunc_impl_list): Likewise.
1484         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
1485         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
1486         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
1487         multiarch strchrnul for PPC64.
1488
1489 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1490
1491         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
1492         implementations.
1493         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1494         (__libc_ifunc_impl_list): Likewise.
1495         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
1496         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
1497         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
1498         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
1499         strchr for PPC64.
1500
1501 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1502
1503         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
1504         implementations.
1505         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1506         (__libc_ifunc_impl_list): Likewise.
1507         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
1508         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
1509         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
1510         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
1511         strncmp for PPC64.
1512
1513 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1514
1515         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
1516         multiarch implementations.
1517         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1518         (__libc_ifunc_impl_list): Likewise.
1519         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
1520         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
1521         strncasecmp for PPC64.
1522         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
1523         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
1524         multiarch strncasecmp_l for PPC64.
1525
1526 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1527
1528         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
1529         multiarch implementations.
1530         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1531         (__libc_ifunc_impl_list): Likewise.
1532         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
1533         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
1534         multiarch strcasecmp for PPC64.
1535         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
1536         file.
1537         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
1538         multiarch strcasecmp_l for PPC64.
1539
1540 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1541
1542         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
1543         implementations.
1544         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1545         (__libc_ifunc_impl_list): Likewise.
1546         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
1547         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
1548         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
1549         strnlen for PPC64.
1550
1551 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1552
1553         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
1554         implementations.
1555         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1556         (__libc_ifunc_impl_list): Likewise.
1557         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
1558         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
1559         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
1560         strlen for PPC64.
1561
1562 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1563
1564         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
1565         implementations.
1566         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1567         (__libc_ifunc_impl_list): Likewise.
1568         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
1569         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
1570         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
1571         rawmemrchr for PPC64.
1572
1573 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1574
1575         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
1576         implementation.
1577         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1578         (__libc_ifunc_impl_list): Likewise.
1579         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
1580         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
1581         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
1582         memrchr for PPC64.
1583
1584 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1585
1586         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
1587         implementation.
1588         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1589         (__libc_ifunc_impl_list): Likewise.
1590         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
1591         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
1592         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
1593         memchr for PPC64.
1594
1595 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1596
1597         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
1598         implementation.
1599         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1600         (__libc_ifunc_impl_list): Likewise.
1601         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
1602         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
1603         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
1604         mempcpy for PPC64.
1605
1606 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1607
1608         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
1609         avoid cretion of __bzero symbol.
1610         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
1611         Likewise.
1612         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
1613         Likewise.
1614         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
1615         Likewise.
1616         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
1617         multiarch implementations.
1618         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1619         (__libc_ifunc_impl_list): Likewise.
1620         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
1621         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
1622         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
1623         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
1624         bzero for PPC32.
1625         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
1626         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
1627         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
1628         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
1629         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
1630         memset for PPC64.
1631         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
1632
1633 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1634
1635         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
1636         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
1637         implementations.
1638         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1639         (__libc_ifunc_impl_list): Likewise.
1640         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
1641         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
1642         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
1643         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
1644         memcmp for PPC64.
1645
1646 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1647
1648         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
1649         multiarch for POWER/PPC64.
1650         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1651         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
1652         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
1653         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
1654         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
1655         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
1656         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
1657         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
1658         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
1659         memcpy for PPC64.
1660
1661 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1662
1663         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
1664         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
1665         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
1666         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
1667         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
1668         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
1669         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
1670         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
1671         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
1672         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
1673         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
1674         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
1675         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
1676         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
1677         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
1678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
1679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
1680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
1681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
1682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
1683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
1684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
1685
1686 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1687
1688         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
1689
1690 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1691
1692         * benchtests/Makefile (bench): Add exp2 and log2.
1693         (LDLIBS-bench-exp2): Add -lm.
1694         (LDLIBS-bench-log2): Likewise.
1695         * benchtests/exp2-inputs: New inputs file.
1696         * benchtests/log2-inputs: New inputs file.
1697         * benchtests/log-inputs: Add new inputs.
1698         * benchtests/tan-inputs: Likewise.
1699
1700 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1701
1702         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
1703         definition...
1704         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2,
1705         csloww1, csloww2): ... from here.
1706
1707         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
1708         instead of structures.
1709         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
1710         (POLYNOMIAL): Likewise.
1711         (TAYLOR_SLOW): Likewise.
1712         (__sin): Likewise.
1713         (__cos): Likewise.
1714         (slow1): Likewise.
1715         (slow2): Likewise.
1716         (sloww): Likewise.
1717         (sloww1); Likewise.
1718         (sloww2): Likewise.
1719         (bsloww1): Likewise.
1720         (bsloww2): Likewise.
1721         (cslow2): Likewise.
1722         (csloww): Likewise.
1723         (csloww1): Likewise.
1724         (csloww2): Likewise.
1725
1726 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1727
1728         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
1729         (__malloc_assert, __libc_realloc, __libc_calloc,
1730         _int_realloc): Expand MALLOC_COPY and MALLOC_ZERO to
1731         memcpy and memset.
1732         * malloc/hooks.c (realloc_check): Likewise.
1733
1734 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1735
1736         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
1737         * malloc/arena.c: Remove PER_THREAD conditional.
1738         [!PER_THREAD]: Remove code.
1739         (ptmalloc_unlock_all2): Likewise.
1740         (ptmalloc_init): Likewise.
1741         (_int_new_arena): Likewise.
1742         (arena_get2): Likewise.
1743         * malloc/hooks.c (__malloc_get_state): Likewise.
1744         (__malloc_set_state): Likewise.
1745         * malloc/malloc.c: Likewise.
1746         (struct malloc_state): Likewise.
1747         (struct malloc_par): Likewise.
1748         (__libc_realloc): Likewise.
1749         (__libc_mallopt): Likewise.
1750
1751 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1752
1753         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
1754
1755 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1756
1757         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
1758         macro to a function.  Check for zero perturb_byte.
1759         (_int_malloc, _int_free): Remove zero perturb_byte checks.
1760
1761 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1762
1763         * malloc/malloc.c: (force_reg): Remove.
1764         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
1765         _mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
1766         force_reg by atomic_forced_read.
1767         * malloc/arena.c (ptmalloc_init): Likewise.
1768         * malloc/hooks.c (top_check): Likewise.
1769
1770 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1771
1772         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1773
1774 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
1775
1776         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1777
1778 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
1779
1780         * math/auto-libm-test-in: Add tests of lgamma.
1781         * math/auto-libm-test-out: Regenerated.
1782         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
1783         (M_LOG_2_SQRT_PIl): Likewise.
1784         (lgamma_test_data): Use AUTO_TESTS_f_f1.
1785         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1786         mpfr_f_f1.
1787         (func_calc_desc): Add mpfr_f_f1 union field.
1788         (ARGS1): New macro.
1789         (ARGS2): Likewise.
1790         (ARGS3): Likewise.
1791         (ARGS4): Likewise.
1792         (RET1): Likewise.
1793         (RET2): Likewise.
1794         (CALC): Likewise.
1795         (FUNC): Likewise.
1796         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
1797         (test_functions): Add lgamma.
1798         (calc_generic_results): Handle mpfr_f_f1.
1799         * sysdeps/i386/fpu/libm-test-ulps: Update.
1800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1801
1802 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1803
1804         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
1805         __mpn_add_n for PowerPC64/POWER7.
1806         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
1807         __mpn_sub_n for PowerPC64/POWER7.
1808
1809 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1810
1811         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
1812         __mpn_addmul_1 for PowerPC64.
1813         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
1814         __mpn_submul_1 for PowerPC64.
1815         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
1816         for PowerPC64.
1817         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
1818         for PowerPC64.
1819
1820 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
1821
1822         [BZ #15089]
1823         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
1824
1825 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1826
1827         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
1828
1829 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1830
1831         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
1832         add multiarch folders.
1833         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
1834         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
1835         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
1836         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
1837         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
1838         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
1839         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
1840         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
1841         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
1842         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
1843         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
1844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
1845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
1846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
1847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
1848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
1849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
1850
1851 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1852
1853         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
1854         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
1855         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
1856         New file.
1857         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
1858         New file.
1859         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
1860         multiarch __ieee754_hypot for PowerPC32.
1861         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
1862         New file.
1863         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
1864         New file.
1865         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
1866         multiarch __ieee754_hypotf for PowerPC32.
1867
1868 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1869
1870         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
1871         long_double_symbol only if __logbl is defined.
1872         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
1873         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
1874         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
1875         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
1876         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
1877         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
1878         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
1879         path for implementation.
1880         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
1881         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
1882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
1883         logb, and logbl multiarch implementations for PowerPC32.
1884         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
1885         file.
1886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
1887         file.
1888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
1889         multiarch logb for PowerPC32.
1890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
1891         file.
1892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
1893         file.
1894         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
1895         multiarch logbf for PowerPC32.
1896         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
1897         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
1898         file.
1899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
1900         multiarch logbl implementation for PowerPC32.
1901
1902 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1903
1904         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
1905         and modff multiarch implementations.
1906         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
1907         New file.
1908         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
1909         New file.
1910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
1911         multiarch modf for PowerPC32.
1912         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
1913         New file.
1914         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
1915         New file.
1916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
1917         multiarch modff for PowerPC32.
1918
1919 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1920
1921         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
1922         and lrintf multiarch implementations.
1923         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
1924         New file.
1925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
1926         New file.
1927         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
1928         multiarch lrint for PowerPC32.
1929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
1930         file: multiarch lrintf for PowerPC32.
1931
1932 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1933
1934         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
1935         and lroundf multiarch implementations.
1936         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
1937         New file.
1938         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
1939         New file.
1940         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
1941         New file.
1942         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
1943         multiarch lround for PowerPC32.
1944         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
1945         file: multiarch lroundf for PowerPC32.
1946
1947 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1948
1949         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
1950         copysign and copysignf multiarch implementations.
1951         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
1952         New file.
1953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
1954         New file.
1955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
1956         file: multiarch copysign for PowerPC32.
1957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
1958         file: multiarch copysignf for PowerPC32.
1959
1960 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1961
1962         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
1963         and truncf multiarch implementations.
1964         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
1965         New file.
1966         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
1967         file.
1968         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
1969         multiarch trunc for PowerPC32.
1970         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
1971         New file.
1972         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
1973         New file.
1974         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
1975         multiarch truncf for PowerPC32.
1976
1977 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1978
1979         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
1980         and roundf multiarch implementations.
1981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
1982         New file.
1983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
1984         file.
1985         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
1986         multiarch round for PowerPC32.
1987         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
1988         New file.
1989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
1990         New file.
1991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
1992         multiarch roundf for PowerPC32.
1993
1994 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1995
1996         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
1997         and floorf multiarch implementations.
1998         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1999         New file.
2000         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
2001         file.
2002         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
2003         multiarch floor for PowerPC32.
2004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
2005         New file.
2006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
2007         New file.
2008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
2009         multiarch floorf for PowerPC32.
2010
2011 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2012
2013         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
2014         and ceilf multiarch implementations.
2015         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
2016         New file.
2017         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
2018         file.
2019         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
2020         multiarch ceil for PowerPC32.
2021         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
2022         New file.
2023         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
2024         file.
2025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
2026         multiarch ceilf for PowerPC32.
2027
2028 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2029
2030         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
2031         is defined.
2032         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
2033         FINITEF is defined.
2034         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
2035         and finitef multiarch implementations.
2036         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
2037         New file.
2038         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
2039         file.
2040         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
2041         multiarch finite for PowerPC32.
2042         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
2043         New file.
2044         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
2045         file: multiarch finitef for PowerPC32.
2046
2047 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2048
2049         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
2050         and isinff multiarch implementations.
2051         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
2052         file.
2053         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
2054         file.
2055         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
2056         multiarch isinf for PowerPC32.
2057         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
2058         New file.
2059         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
2060         multiarch isinff for PowerPC32.
2061
2062 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2063
2064         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
2065         alias when __isnan is defined.
2066         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
2067         and isnanf multiarch implementations.
2068         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
2069         file.
2070         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
2071         file.
2072         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
2073         file.
2074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
2075         file.
2076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
2077         multiarch isnan for PowerPC32.
2078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
2079         New file.
2080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
2081         New file.
2082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
2083         multiarch isnanf for PowerPC32.
2084
2085 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2086
2087         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
2088         and sqrtf multiarch implementations.
2089         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
2090         file.
2091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
2092         file.
2093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
2094         multiarch sqrt for PowerPC32.
2095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
2096         file.
2097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
2098         file.
2099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
2100         multiarch sqrtf for PowerPC32.
2101
2102 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2103
2104         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
2105         and llroundf multiarch implementations.
2106         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2107         New file.
2108         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2109         New file.
2110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2111         New file.
2112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
2113         file: multiarch llround for PowerPC32.
2114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
2115         file: multiarch llroundf for PowerPC32.
2116
2117 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2118
2119         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
2120         multiarch PowerPC32 fpu implementations.
2121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2122         New file.
2123         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2124         New file.
2125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
2126         multiarch llrint for PowerPC32.
2127         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2128         New file.
2129         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2130         New file.
2131         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
2132         file.
2133
2134 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2135
2136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
2137
2138 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2139
2140         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
2141         file.
2142         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
2143         file.
2144         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
2145         file.
2146         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
2147         multiarch wordcopy for PPC32.
2148         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2149         wordcopy objects.
2150         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2151         (__libc_ifunc_impl_list): Likewise.
2152         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
2153         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
2154         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
2155         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
2156         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
2157         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
2158
2159 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2160
2161         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
2162         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
2163         file.
2164         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
2165         file.
2166         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
2167         file.
2168         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
2169         multiarch wcscpy for PPC32.
2170         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2171         multiarch objects.
2172         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2173         (__libc_ifunc_impl_list): Likewise.
2174         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2175         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2176         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
2177         sysdeps/powerpc/power6/wcscpy.c.
2178
2179 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2180
2181         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
2182         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
2183         file.
2184         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
2185         file.
2186         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
2187         file.
2188         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
2189         multiarch wcsrchr for PPC32.
2190         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2191         multiarch objects.
2192         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2193         (__libc_ifunc_impl_list): Likewise.
2194         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2195         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2196         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
2197         sysdeps/powerpc/power6/wcsrchr.c.
2198
2199 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2200
2201         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
2202         file.
2203         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
2204         file.
2205         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
2206         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
2207         multiarch wcschr for PPc32.
2208         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2209         multiarch objects.
2210         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2211         (__libc_ifunc_impl_list): Likewise.
2212         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
2213         * sysdeps/powerpc/power6/wcschr.c: ... to here.
2214         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
2215         sysdeps/powerpc/power6/wcschr.c.
2216
2217 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2218
2219         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
2220         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
2221         file.
2222         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
2223         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
2224         file: multiarch strchr for PPC32.
2225         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
2226         multiarch objects.
2227         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2228         (__libc_ifunc_impl_list): Likewise.
2229
2230 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2231
2232         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
2233         name.
2234         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
2235         file.
2236         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
2237         file.
2238         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
2239         multiarch strchrnul for PPC32.
2240         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
2241         multiarch objects.
2242         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2243         (__libc_ifunc_impl_list): Likewise.
2244
2245 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2246
2247         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
2248         file.
2249         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
2250         multiarch strncasecmp for PPC32.
2251         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
2252         file.
2253         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
2254         multiarch strncasecmp_l for PPC32.
2255         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
2256         strncasecmp multiarch objects.
2257         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2258         (__libc_ifunc_impl_list): Likewise.
2259
2260 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2261
2262         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
2263         file.
2264         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
2265         multiarch strncasecmp for PPC32.
2266         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
2267         New file.
2268         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
2269         multiarch strcasecmp_l for PPC32.
2270         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
2271         multiarch objects.
2272         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2273         (__libc_ifunc_impl_list): Likewise.
2274
2275 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2276
2277         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
2278         file.
2279         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
2280         file.
2281         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
2282         multiarch strncmp for PPC32.
2283         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
2284         multiarch objects.
2285         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2286         (__libc_ifunc_impl_list): Likewise.
2287
2288 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2289
2290         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
2291         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
2292         file.
2293         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
2294         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
2295         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
2296         multiarch objects.
2297         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2298         (__libc_ifunc_impl_list): Likewise.
2299
2300 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2301
2302         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
2303         file.
2304         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
2305         file.
2306         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
2307         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
2308         multiarch objects.
2309         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2310         (__libc_ifunc_impl_list): Likewise.
2311
2312 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2313
2314         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
2315         file.
2316         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
2317         file.
2318         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
2319         multiarch rawmemchr for PPC32.
2320         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
2321         multiarch objects.
2322         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2323         (__libc_ifunc_impl_list): Likewise.
2324
2325 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2326
2327         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
2328         file.
2329         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
2330         file.
2331         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
2332         file: memrchr multiarch for PPC32.
2333         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
2334         multiarch objects.
2335         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2336         (__libc_ifunc_impl_list): Likewise.
2337
2338 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2339
2340         * string/memchr.c (__memchr): Using macro to redefine symbol name.
2341         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
2342         file.
2343         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
2344         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
2345         multiarch memchr for PPC32.
2346         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
2347         multiarch objects.
2348         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2349         (__libc_ifunc_impl_list): Likewise.
2350
2351 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2352
2353         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
2354         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
2355         file.
2356         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
2357         file.
2358         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
2359         file: multiarch mempcpy for PPC32.
2360         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
2361         multiarch objects.
2362         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2363         (__libc_ifunc_impl_list): Likewise.
2364
2365 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2366
2367         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
2368         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
2369         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
2370         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
2371         multiarch bzero for PPC32.
2372         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
2373         file.
2374         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
2375         file.
2376         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
2377         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
2378         file: multiarch memset for PPC32.
2379         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
2380         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
2381         memset multiarch objects.
2382         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2383         (__libc_ifunc_impl_list): Likewise.
2384
2385 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2386
2387         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
2388         file.
2389         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
2390         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
2391         memcmp for PPC32.
2392         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
2393         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
2394         multiarch objects.
2395         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2396         (__libc_ifunc_impl_list): Likewise.
2397
2398 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2399
2400         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
2401         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
2402         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
2403         file.
2404         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
2405         file.
2406         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
2407         file.
2408         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
2409         multiarch memcpy for PPC32.
2410         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
2411         multiarch objects.
2412         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2413         (__libc_ifunc_impl_list): Likewise.
2414
2415 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2416
2417         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
2418         support multiarch for POWER/PPC32.
2419         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2420         Likewise.
2421         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
2422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
2423         Implies file to make multiarch folder appers before the fpu and
2424         default folder for power4 configuration.
2425
2426 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2427
2428         * scripts/bench.pl: Append volatile keyword to type.
2429
2430 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2431
2432         * sysdeps/sh/sotruss-lib.c: New file.
2433         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
2434
2435 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2436
2437         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2438
2439 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
2440
2441         [BZ #6810]
2442         * math/w_tgamma.c: Include <errno.h>.
2443         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
2444         * math/w_tgammaf.c: Include <errno.h>.
2445         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
2446         * math/w_tgammal.c: Include <errno.h>.
2447         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
2448         * math/auto-libm-test-in: Do not allow missing errno on tgamma
2449         underflow.  Add more tgamma tests.
2450         * math/auto-libm-test-out: Regenerated.
2451         * sysdeps/i386/fpu/libm-test-ulps: Update.
2452         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2453
2454         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
2455         sin, sinh, tan, tanh, tgamma, y0 and y1.
2456         * math/auto-libm-test-out: Regenerated.
2457         * math/libm-test.inc (TEST_COND_x86_64): New macro.
2458         (TEST_COND_x86): Likewise.
2459         (M_E2l): Remove macro.
2460         (M_E3l): Likewise.
2461         (M_2_SQRT_PIl): Likewise.
2462         (M_SQRT_PIl): Likewise.
2463         (M_1_DIV_El): Likewise.
2464         (log_test_data): Use AUTO_TESTS_f_f.
2465         (log10_test_data): Likewise.
2466         (log1p_test_data): Likewise.
2467         (log2_test_data): Likewise.
2468         (sin_test_data): Likewise.
2469         (sin_tonearest_test_data): Likewise.
2470         (sin_towardzero_test_data): Likewise.
2471         (sin_downward_test_data): Likewise.
2472         (sin_upward_test_data): Likewise.
2473         (sinh_test_data): Likewise.
2474         (sinh_tonearest_test_data): Likewise.
2475         (sinh_towardzero_test_data): Likewise.
2476         (sinh_downward_test_data): Likewise.
2477         (sinh_upward_test_data): Likewise.
2478         (tan_test_data): Likewise.
2479         (tan_tonearest_test_data): Likewise.
2480         (tan_towardzero_test_data): Likewise.
2481         (tan_downward_test_data): Likewise.
2482         (tan_upward_test_data): Likewise.
2483         (tanh_test_data): Likewise.
2484         (tgamma_test_data): Likewise.
2485         (y0_test_data): Likewise.
2486         (y1_test_data): Likewise.
2487         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
2488         (special_real_inputs): Add pi/4.
2489         * sysdeps/i386/fpu/libm-test-ulps: Update.
2490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2491
2492 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2493
2494         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
2495         "longjmp_target" static probes.
2496         (__longjmp): Rename to __longjmp_symbol.
2497         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2498         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
2499         on which longjmp to generate.
2500         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
2501         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
2502         probe.
2503         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2504         (__sigjmp_save): Rename to __sigjmp_save_symbol.
2505         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
2506         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
2507         and __sigjmp_save_symbol based on which sigsetjmp to generated.
2508         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
2509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
2510         __longjmp_symbol based on which __longjmp to generate.
2511         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
2512         probe.
2513         (setjmp): Rename to setjmp_symbol.
2514         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2515         (_setjmp): Rename to _setjmp_symbol.
2516         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2517         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
2518         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
2519         which setjmp to generate.
2520         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
2521         "longjmp_target" static probes.
2522
2523 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2524
2525         * benchtests/README: Add note about output arguments.
2526         * benchtests/bench-sincos.c: Remove file.
2527         * benchtests/sincos-inputs: New file.
2528         * scripts/bench.pl: Identify output arguments and define
2529         static variables for them.
2530
2531         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
2532
2533         [BZ #15941]
2534         * Makefile (INSTALL): Add install-plain.texi as the primary
2535         dependency.
2536         * manual/install-plain.texi: New file.
2537         * manual/install.texi: Include node directive only for
2538         non-plaintext output.
2539
2540 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
2541
2542         * stdlib/longlong.h: Update from GCC.
2543
2544         [BZ #6807]
2545         [BZ #15901]
2546         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
2547         * math/w_j0f.c (y0f): Likewise.
2548         * math/w_j0l.c (__y0l): Likewise.
2549         * math/w_j1.c (y1): Likewise.
2550         * math/w_j1f.c (y1f): Likewise.
2551         * math/w_j1l.c (__y1l): Likewise
2552         * math/w_jn.c (yn): Likewise.
2553         * math/w_jnf.c (ynf): Likewise.
2554         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
2555         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
2556         value for Bessel function domain errors outside _SVID_ mode.
2557         Adjust sign of return value for yn (negative integer, 0).
2558         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
2559         by zero in return for negative x and set sign appropriately for
2560         negative n.
2561         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
2562         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2563         * math/libm-test.inc (y0_test_data): Add more tests and adjust
2564         expectations in error cases.
2565         (y1_test_data): Likewise.
2566         (yn_test_data): Likewise.
2567         * sysdeps/i386/fpu/libm-test-ulps: Update.
2568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2569
2570 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2571
2572         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
2573         "64" to "64-v1".  Add "64-v2".
2574         (abi-64-options): Rename to ...
2575         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
2576         (abi-64-condition): Rename to ...
2577         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
2578         (abi-64-ld-soname): Rename to ...
2579         (abi-64-v1-ld-soname): ... this.
2580         (abi-64-v2-options): Define.
2581         (abi-64-v2-condition): Likewise.
2582         (abi-64-v2-ld-soname): Likewise.
2583         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
2584         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
2585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
2586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
2587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
2588
2589 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2590             Alan Modra  <amodra@gmail.com>
2591
2592         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
2593         New versions for use with the ELFv2 ABI.
2594         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
2595         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
2596         declaration.
2597         (struct La_ppc64v2_retval): Likewise.
2598         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
2599         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
2600         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
2601         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
2602         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
2603         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
2604         Do not save or restore CR.
2605         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
2606         (_dl_profile_resolve): Do no save or restore CR.  Support extended
2607         return values for ELFv2 ABI.  Fix location of FPR return registers.
2608         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
2609         updated values for _CALL_ELF == 2.
2610         (La_regs, La_retval, int_retval): Likewise.
2611
2612 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2613
2614         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
2615         (FRAME_MIN_SIZE_PARM): Likewise.
2616         (FRAME_BACKCHAIN): Likewise.
2617         (FRAME_CR_SAVE): Likewise.
2618         (FRAME_LR_SAVE): Likewise.
2619         (FRAME_TOC_SAVE): Likewise.
2620         (FRAME_PARM_SAVE): Likewise.
2621         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2622         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2623         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2624         (call_mcount_parm_offset): New macro.
2625         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
2626         (PROF): Use symbolic stack frame offsets.
2627         (TAIL_CALL_SYSCALL_ERROR): Likewise.
2628         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
2629         Redefine in terms of FRAME_MIN_SIZE.
2630         (_dl_runtime_resolve): Use symbolic stack frame offsets.
2631         (_dl_profile_resolve): Likewise.  Update comment.
2632         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
2633         symbols stack frame offsets.
2634         (__sigsetjmp): Likewise.
2635         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
2636         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
2637         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
2638         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
2639
2640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
2641         (FRAME_BACKCHAIN): Remove.
2642         (FRAME_CR_SAVE): Likewise.
2643         (FRAME_LR_SAVE): Likewise.
2644         (FRAME_COMPILER_DW): Likewise.
2645         (FRAME_LINKER_DW): Likewise.
2646         (FRAME_TOC_SAVE): Likewise.
2647         (FRAME_PARM_SAVE): Likewise.
2648         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2649         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2650         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
2652         (CHECK_SP): Use symbolic stack frame offsets.
2653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
2654         zone" instead of caller's parameter save area for temp storage.
2655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2656         Likewise.  Also, use symbolic stack frame offsets.
2657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
2658         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
2659         our own stack frame instead of the caller's.
2660         (__socket): Use symbolic stack frame offsets.
2661
2662 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2663             Alan Modra  <amodra@gmail.com>
2664
2665         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
2666         Define.
2667         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
2668         PPC64_LOCAL_ENTRY_OFFSET): Define.
2669         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
2670         New function.
2671         (elf_machine_fixup_plt): Call it.
2672         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
2673         reloc arguments.
2674         (elf_machine_rela): Update call to elf_machine_plt_conflict.
2675         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2676         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
2677         r2 before calling target.
2678
2679 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2680             Alan Modra  <amodra@gmail.com>
2681
2682         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
2683         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
2684         versions of macros to support ELFv2 ABI.
2685         (LOCALENTRY): New macro.
2686         (ENTRY, EALIGN): Use it.
2687         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
2688         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
2689         fall through into ENTRY entry point.
2690         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
2691         Only define if _CALL_ELF != 2.
2692
2693         (elf_machine_matches_host): Verify ABI version matches.
2694         (RTLD_START): Use LOCALENTRY.
2695         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
2696         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
2697         (PLT_ENTRY_WORDS): New macro.
2698         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
2699         (elf_machine_runtime_setup): Support ELFv2 ABI.
2700         (elf_machine_fixup_plt): Likewise.
2701         (elf_machine_plt_conflict): Likewise.
2702         (resolve_ifunc): Likewise.
2703         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
2704         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
2705         Likewise.
2706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
2707         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
2708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2709         (makecontext): Support ELFv2 ABI.
2710         * elf/elf.h (EF_PPC64_ABI): Define.
2711
2712 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2713
2714         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
2715         New assembler macro.
2716         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
2717         [ASSEMBLER] (ENTRY): ... but instead here ...
2718         [ASSEMBLER] (EALIGN): ... and here.
2719         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
2720         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
2721         [!ASSEMBLER] (ENTRY_2): Use it.
2722         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
2723         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
2724         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2725         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
2726         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
2727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
2728         Use PPC64_LOAD_FUNCPTR.
2729
2730 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2731
2732         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
2733
2734 2013-12-04  Alan Modra  <amodra@gmail.com>
2735
2736         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
2737         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
2738         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
2739         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
2740
2741         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
2742         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
2743         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
2744         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
2745         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
2746         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
2747
2748 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2749
2750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2751         (__makecontext): Fix incorrect CFI when backtracing out of
2752         context created via makecontext.
2753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
2754         (__setcontext): Fix incorrect CFI during switch to new context.
2755         (__novec_setcontext): Likewise.
2756
2757 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2758
2759         [BZ #4772]
2760         * time/strptime_l.c (__strptime_internal): Allow modifiers
2761         in strptime.
2762         * time/tst-strptime.c (day_tests): Add testcase.
2763
2764
2765 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2766
2767         * scripts/bench.pl: Skip over blank lines.
2768
2769 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
2770
2771         [BZ #926]
2772         * manual/time.texi (Calendar Time): Clarify what timezone functions
2773         use.
2774
2775 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2776
2777         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2778
2779 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2780
2781         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
2782         implementation.
2783         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
2784         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
2785         * debug/memset_chk.c (__memset_chk): Likewise.
2786         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
2787         * debug/strncpy_chk.c: Likewise.
2788
2789 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2790
2791         [BZ #15268]
2792         [BZ #15425]
2793         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
2794         (__ieee754_exp): For possibly underflowing results, check size of
2795         result and force underflow exception if required.
2796         * math/auto-libm-test-in: Add more tests of exp.
2797         * math/auto-libm-test-out: Regenerated.
2798         * sysdeps/i386/fpu/libm-test-ulps: Update.
2799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2800
2801         [BZ #16283]
2802         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
2803         * math/w_exp2f.c (__exp2f): Likewise.
2804         * math/w_exp2l.c (__exp2l): Likewise.
2805         * math/auto-libm-test-in: Do not allow missing errno on exp2
2806         underflow.
2807         * math/auto-libm-test-out: Regenerated.
2808
2809 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
2810
2811         [BZ #16274]
2812         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
2813         handle filename validation.
2814         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
2815         (do_open): Delete.
2816
2817 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2818
2819         [BZ #6786]
2820         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
2821         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
2822         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
2823         <float.h>.
2824         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
2825         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
2826         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2827         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
2828         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2829         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
2830         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2831         * math/auto-libm-test-in: Don't allow missing errno from erfc.
2832         Add more erfc tests.
2833         * math/auto-libm-test-out: Regenerated.
2834         * sysdeps/i386/fpu/libm-test-ulps: Update.
2835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2836
2837         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
2838         exp2, expm1, j0 and j1.
2839         * math/auto-libm-test-out: Regenerated.
2840         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
2841         (erfc_test_data): Likewise.
2842         (exp_test_data): Likewise.
2843         (exp_tonearest_test_data): Likewise.
2844         (exp_towardzero_test_data): Likewise.
2845         (exp_downward_test_data): Likewise.
2846         (exp_upward_test_data): Likewise.
2847         (exp10_test_data): Likewise.
2848         (exp2_test_data): Likewise.
2849         (expm1_test_data): Likewise.
2850         (j0_test_data): Likewise.
2851         (j1_test_data): Likewise.
2852         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
2853         (input_flag_type): Add flag_xfail_rounding.
2854         (input_flags): Add xfail-rounding.
2855         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
2856         (output_for_one_input_case): Handle flag_xfail_rounding.
2857         * sysdeps/i386/fpu/libm-test-ulps: Update.
2858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2859
2860 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
2861
2862         [BZ #16289]
2863         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
2864         division by 0.
2865
2866 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2867
2868         [BZ #16195]
2869         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2870         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
2871         (STAP_PROBE0): New macro.
2872         (STAP_PROBE1): Likewise.
2873         (STAP_PROBE2): Likewise.
2874         (STAP_PROBE3): Likewise.
2875         (STAP_PROBE4): Likewise.
2876
2877 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
2878
2879         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
2880
2881 2013-12-02  Steve Ellcey  <sellcey@mips.com>
2882
2883         * benchtests/Makefile (bench): Add sqrt.
2884         (LDLIBS-bench-sqrt): New.
2885         * benchtests/sqrt-input: New.
2886
2887 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
2888
2889         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
2890         (GAIH_EAI): Likewise.
2891         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
2892         (gaih_inet): Likewise.
2893         (getaddrinfo): Don't use GAIH_EAI.
2894
2895         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
2896         (struct gaih): Remove definition.
2897
2898 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2899
2900         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
2901         Use HERRNOP directly.
2902
2903 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2904
2905         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2906
2907 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
2908
2909         * math/gen-auto-libm-tests.c (test_functions): Add more
2910         single-argument functions.
2911         (special_fill_pi_2): New function.
2912         (special_fill_minus_pi_2): Likewise.
2913         (special_fill_pi_6): Likewise.
2914         (special_fill_minus_pi_6): Likewise.
2915         (special_fill_pi_3): Likewise.
2916         (special_fill_2pi_3): Likewise.
2917         (special_fill_e): Likewise.
2918         (special_fill_1_e): Likewise.
2919         (special_fill_e_minus_1): Likewise.
2920         (special_real_inputs): Add more special inputs.
2921         (output_for_one_input_case): Do not require ERANGE on underflow to
2922         zero if round-to-nearest result does not underflow to zero, unless
2923         exact results required.
2924         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
2925         atan, atanh, cbrt, cos and cosh.
2926         * math/auto-libm-test-out: Regenerated.
2927         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
2928         (acos_tonearest_test_data): Likewise.
2929         (acos_towardzero_test_data): Likewise.
2930         (acos_downward_test_data): Likewise.
2931         (acos_upward_test_data): Likewise.
2932         (acosh_test_data): Likewise.
2933         (asin_test_data): Likewise.
2934         (asin_tonearest_test_data): Likewise.
2935         (asin_towardzero_test_data): Likewise.
2936         (asin_upward_test_data): Likewise.
2937         (asinh_test_data): Likewise.
2938         (atan_test_data): Likewise.
2939         (atanh_test_data): Likewise.
2940         (cbrt_test_data): Likewise.
2941         (cos_test_data): Likewise.
2942         (cos_tonearest_test_data): Likewise.
2943         (cos_towardzero_test_data): Likewise.
2944         (cos_downward_test_data): Likewise.
2945         (cos_upward_test_data): Likewise.
2946         (cosh_test_data): Likewise.
2947         (cosh_tonearest_test_data): Likewise.
2948         (cosh_towardzero_test_data): Likewise.
2949         (cosh_downward_test_data): Likewise.
2950         (cosh_upward_test_data): Likewise.
2951         * sysdeps/i386/fpu/libm-test-ulps: Update.
2952         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2953
2954 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
2955
2956         [BZ #6787]
2957         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
2958         * math/w_exp10f.c (__exp10f): Likewise.
2959         * math/w_exp10l.c (__exp10l): Likewise.
2960         * math/libm-test.inc (exp10_test_data): Add more tests and expect
2961         errno settings in existing tests.
2962
2963         [BZ #14032]
2964         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
2965         precision control set to double precision.
2966         * sysdeps/i386/fpu/w_sqrt.c: New file.
2967         * math/auto-libm-test-in: Add more tests.
2968         * math/auto-libm-test-out: Update.
2969
2970         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
2971         (sqrt_test_tonearest): New function.
2972         (sqrt_towardzero_test_data): New variable.
2973         (sqrt_test_towardzero): New function.
2974         (sqrt_downward_test_data): New variable.
2975         (sqrt_test_downward): New function.
2976         (sqrt_upward_test_data): New variable.
2977         (sqrt_test_upward): New function.
2978         (main): Call the new functions.
2979
2980         * math/gen-auto-libm-tests.c: New file.
2981         * math/auto-libm-test-in: Likewise.
2982         * math/auto-libm-test-out: New generated file.
2983         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
2984         variables.
2985         (%beautify): Add generated representations of zero.
2986         (top level): Set $auto_input and call parse_auto_input.
2987         (beautify): Remove trailing "f" from hex float constants.
2988         (parse_args): Handle XFAIL_TEST.
2989         (convert_condition): New function.
2990         (or_value): Likewise.
2991         (or_cond_value): Likewise.
2992         (generate_testfile): Handle AUTO_TESTS_* lines.
2993         (parse_auto_input): New function.
2994         * math/libm-test.inc (XFAIL_TEST): New macro.
2995         (ERRNO_UNCHANGED): Update value.
2996         (ERRNO_EDOM): Likewise.
2997         (ERRNO_ERANGE): Likewise.
2998         (IGNORE_RESULT): Likewise.
2999         (TEST_COND_flt_32): New macro.
3000         (TEST_COND_dbl_64): Likewise.
3001         (TEST_COND_ldbl_96_intel): Likewise.
3002         (TEST_COND_ldbl_96_m68k): Likewise.
3003         (TEST_COND_ldbl_128): Likewise.
3004         (TEST_COND_ldbl_128ibm): Likewise.
3005         (TEST_COND_long32): Likewise.
3006         (TEST_COND_long64): Likewise.
3007         (TEST_COND_before_rounding): Likewise.
3008         (TEST_COND_after_rounding): Likewise.
3009         (enable_test): Handle XFAIL_TEST flag.
3010         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
3011         with finite results.
3012         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
3013         auto-libm-test-out.
3014
3015 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3016             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3017
3018         [BZ #16214]
3019         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
3020         __tls_get_addr_internal instead of __tls_get_offset in order to
3021         avoid GOT pointer dependency.  Make rtld export
3022         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
3023         __tls_get_addr since we are a __tls_get_offset platform.
3024         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
3025         GOT pointer being set up before.
3026         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
3027
3028 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
3029
3030         * manual/math.texi (Errors in Math Functions): Document accuracy
3031         goals.
3032
3033         [BZ #15004]
3034         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
3035         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
3036         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3037         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
3038         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
3039         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3040         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
3041         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
3042         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3043         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
3044         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
3045         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
3046         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
3047         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
3048         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
3049         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
3050
3051         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
3052         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
3053         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
3054         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
3055         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
3056         Likewise.
3057         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
3058         Likewise.
3059         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
3060         Likewise.
3061         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
3062         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
3063         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
3064         atomic-feupdateenv and flt-rounds.
3065         * sysdeps/powerpc/nofpu/Versions (libc): Add
3066         __atomic_feholdexcept, __atomic_feclearexcept,
3067         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
3068         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
3069         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
3070         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
3071         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
3072         here.
3073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
3074         Update.
3075
3076         * manual/arith.texi (FP Exceptions): Document that exceptions may
3077         not be raised when matherr is used.
3078         (Math Error Reporting): Document overflow in directed rounding
3079         modes.  Document that errno may not be set when finite values are
3080         returned on overflow.  Document intent to set errno on underflow
3081         only for underflow to zero.
3082
3083         [BZ #16271]
3084         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
3085         round-to-nearest then adjust result for other rounding modes.
3086         * include/fenv.h (fegetround): Use libm_hidden_proto.
3087         * math/fegetround.c (fegetround): Use libm_hidden_def.
3088         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
3089         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
3090         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3091         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
3092         Likewise.
3093         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
3094         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3095         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
3096         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
3097
3098 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3099
3100         [BZ #16077]
3101         * nss/Versions (libnss_files): Add
3102         _nss_files_gethostbyname3_r.
3103         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
3104         New function.
3105         (HOST_DB_LOOKUP): Remove macro.
3106         (_nss_files_gethostbyname_r): Implement function without the
3107         HOST_DB_LOOKUP macro.
3108         (_nss_files_gethostbyname2_r): Likewise.
3109
3110 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
3111
3112         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
3113
3114 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
3115
3116         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
3117         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
3118         warning.
3119
3120 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3121
3122         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
3123         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
3124         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3125         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
3126         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
3127         __fe_nomask_env_priv and attribute_hidden.
3128         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
3129         (libc_feupdateenv_test_ppc): Likewise.
3130         (libc_feresetround_ppc): Likewise.
3131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3132         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
3133         compat_symbol macro.
3134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3135         (__fe_nomask_env): Likewise.
3136         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
3137
3138 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3139
3140         * string/Makefile: Remove ifunc tests.
3141         * string/test-string.h: Define TEST_IFUNC.
3142         * string/test-bcopy-ifunc.c: Remove.
3143         * string/test-bzero-ifunc.c: Likewise.
3144         * string/test-memccpy-ifunc.c: Likewise.
3145         * string/test-memchr-ifunc.c: Likewise.
3146         * string/test-memcmp-ifunc.c: Likewise.
3147         * string/test-memcpy-ifunc.c: Likewise.
3148         * string/test-memmem-ifunc.c: Likewise.
3149         * string/test-memmove-ifunc.c: Likewise.
3150         * string/test-mempcpy-ifunc.c: Likewise.
3151         * string/test-memrchr-ifunc.c: Likewise.
3152         * string/test-memset-ifunc.c: Likewise.
3153         * string/test-rawmemchr-ifunc.c: Likewise.
3154         * string/test-stpcpy-ifunc.c: Likewise.
3155         * string/test-stpncpy-ifunc.c: Likewise.
3156         * string/test-strcasecmp-ifunc.c: Likewise.
3157         * string/test-strcasestr-ifunc.c: Likewise.
3158         * string/test-strcat-ifunc.c: Likewise.
3159         * string/test-strchr-ifunc.c: Likewise.
3160         * string/test-strchrnul-ifunc.c: Likewise.
3161         * string/test-strcmp-ifunc.c: Likewise.
3162         * string/test-strcpy-ifunc.c: Likewise.
3163         * string/test-strcspn-ifunc.c: Likewise.
3164         * string/test-strlen-ifunc.c: Likewise.
3165         * string/test-strncasecmp-ifunc.c: Likewise.
3166         * string/test-strncat-ifunc.c: Likewise.
3167         * string/test-strncmp-ifunc.c: Likewise.
3168         * string/test-strncpy-ifunc.c: Likewise.
3169         * string/test-strnlen-ifunc.c: Likewise.
3170         * string/test-strpbrk-ifunc.c: Likewise.
3171         * string/test-strrchr-ifunc.c: Likewise.
3172         * string/test-strspn-ifunc.c: Likewise.
3173         * string/test-strstr-ifunc.c: Likewise.
3174
3175 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3176
3177         * benchtests/Makefile: Remove ifunc tests.
3178         * benchtests/bench-string.h: Define TEST_IFUNC.
3179         * benchtests/bench-bcopy-ifunc.c: Remove.
3180         * benchtests/bench-bzero-ifunc.c: Likewise.
3181         * benchtests/bench-memccpy-ifunc.c: Likewise.
3182         * benchtests/bench-memchr-ifunc.c: Likewise.
3183         * benchtests/bench-memcmp-ifunc.c: Likewise.
3184         * benchtests/bench-memcpy-ifunc.c: Likewise.
3185         * benchtests/bench-memmem-ifunc.c: Likewise.
3186         * benchtests/bench-memmove-ifunc.c: Likewise.
3187         * benchtests/bench-mempcpy-ifunc.c: Likewise.
3188         * benchtests/bench-memrchr-ifunc.c: Likewise.
3189         * benchtests/bench-memset-ifunc.c: Likewise.
3190         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
3191         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
3192         * benchtests/bench-stpcpy-ifunc.c: Likewise.
3193         * benchtests/bench-stpncpy-ifunc.c: Likewise.
3194         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
3195         * benchtests/bench-strcasestr-ifunc.c: Likewise.
3196         * benchtests/bench-strcat-ifunc.c: Likewise.
3197         * benchtests/bench-strchr-ifunc.c: Likewise.
3198         * benchtests/bench-strchrnul-ifunc.c: Likewise.
3199         * benchtests/bench-strcmp-ifunc.c: Likewise.
3200         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
3201         * benchtests/bench-strcpy-ifunc.c: Likewise.
3202         * benchtests/bench-strcspn-ifunc.c: Likewise.
3203         * benchtests/bench-strlen-ifunc.c: Likewise.
3204         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
3205         * benchtests/bench-strncat-ifunc.c: Likewise.
3206         * benchtests/bench-strncmp-ifunc.c: Likewise.
3207         * benchtests/bench-strncpy-ifunc.c: Likewise.
3208         * benchtests/bench-strnlen-ifunc.c: Likewise.
3209         * benchtests/bench-strpbrk-ifunc.c: Likewise.
3210         * benchtests/bench-strrchr-ifunc.c: Likewise.
3211         * benchtests/bench-strsep-ifunc.c: Likewise.
3212         * benchtests/bench-strspn-ifunc.c: Likewise.
3213         * benchtests/bench-strstr-ifunc.c: Likewise.
3214
3215 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3216
3217         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
3218
3219 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3220
3221         * resolv/netdb.h: Use __glibc_reserved instead __unused.
3222         * rt/aio.h: Likewise.
3223         * sysdeps/gnu/bits/utmp.h: Likewise.
3224         * sysdeps/gnu/bits/utmpx.h: Likewise.
3225         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
3226         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
3227         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
3228         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
3229         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3230         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3231         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
3232         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
3233         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
3234         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
3235         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
3236         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3237         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
3239         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3240         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
3241         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
3242         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
3243         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3244         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3245         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
3246         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
3247         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
3248         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
3249         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3250         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3251         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
3252         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
3253         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
3254         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3255         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3256         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
3257         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
3258         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
3259         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
3260         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
3261         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
3262         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
3263         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
3264         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
3265         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
3266         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
3267
3268 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
3269
3270         [BZ #16245]
3271         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
3272         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
3273
3274 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
3275
3276         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
3277         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
3278         Likewise.
3279
3280 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3281
3282         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3283         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
3284         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
3285         (__fesetround): Remove define.
3286         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
3287         rounding and exceptions handling.
3288         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
3289         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
3290         (__fe_nomask_env): Likewise.
3291         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
3292         __fegetround instead of fegetround.
3293         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
3294         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
3295
3296 2013-11-21  Roland McGrath  <roland@hack.frob.com>
3297
3298         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
3299         it's there.
3300
3301         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
3302
3303 2013-11-21  Meador Inge  <meadori@codesourcery.com>
3304
3305         [BZ #11157]
3306         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
3307         (encrypt_r): Likewise.
3308         * malloc/obstack.h (obstack_free): Likewise.
3309         * posix/unistd.h (encrypt): Likewise.
3310
3311 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
3312
3313         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
3314         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
3315         DL_CALL_DT_FINI() that call the functions directly.
3316         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
3317         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
3318         * elf/dl-fini.c: Likewise.
3319
3320 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
3321
3322         * malloc/hooks.c (memalign_check): Add alignment rounding.
3323         * malloc/malloc.c (_mid_memalign): New function.
3324         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
3325         Implement by calling _mid_memalign.
3326         * manual/probes.texi (Memory Allocation Probes): Remove
3327         memory_valloc_retry and memory_pvalloc_retry.
3328
3329 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3330
3331         * locale/programs/locarchive.c (open_archive): Add const
3332         qualifier to ARCHIVEFNAME and copy default fname to
3333         DEFAULT_FNAME.
3334
3335         [BZ #15601]
3336         * libio/tst-widetext.input: Rename Oriya to Odia.
3337         * locale/iso-639.def: Likewise.
3338
3339         * manual/probes.texi (Mathematical Function Probes): Add
3340         documentation for sin, cos, asin and acos probes.
3341         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
3342         (__sin32): Add slowasin probe.
3343         (__cos32): Add slowacos probe.
3344         (__mpsin): Add slowsin probe.
3345         (__mpcos): Add slowcos probe.
3346
3347 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
3348
3349         [BZ #15483]
3350         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
3351         thread-local __sim_exceptions_thread and global
3352         __sim_exceptions_global.
3353         (__sim_disabled_exceptions): Change to thread-local
3354         __sim_disabled_exceptions_thread and global
3355         __sim_disabled_exceptions_global.
3356         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3357         and global __sim_round_mode_global.
3358         (__simulate_exceptions): Use thread-local floating-point state and
3359         set global state from it as needed.
3360         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
3361         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
3362         __sim_round_mode_thread.
3363         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
3364         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
3365         and global __sim_exceptions_global.
3366         (__sim_disabled_exceptions): Change to thread-local
3367         __sim_disabled_exceptions_thread and global
3368         __sim_disabled_exceptions_global.
3369         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3370         and global __sim_round_mode_global.
3371         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
3372         (SIM_SET_GLOBAL): Likewise.
3373         * sysdeps/powerpc/soft-fp/sfp-machine.h
3374         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
3375         __sim_round_mode_thread.
3376         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
3377         __sim_disabled_exceptions_thread.
3378         (__sim_exceptions): Change to __sim_exceptions_thread.
3379         (__sim_disabled_exceptions): Change to
3380         __sim_disabled_exceptions_thread.
3381         (__sim_round_mode): Change to __sim_round_mode_thread.
3382         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
3383         thread-local floating-point state and set global state from it as
3384         needed.
3385         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
3386         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
3387         (__sim_disabled_exceptions): Remove extern declaration.
3388         (feenableexcept): Use thread-local floating-point state and set
3389         global state from it as needed.
3390         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
3391         extern declaration.
3392         (__sim_disabled_exceptions): Likewise.
3393         (__sim_round_mode): Likewise.
3394         (__fegetenv): Use thread-local floating-point state.
3395         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
3396         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3397         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
3398         floating-point state and set global state from it as needed.
3399         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
3400         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
3401         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
3402         Likewise.
3403         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
3404         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
3405         Likewise.
3406         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
3407         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
3408         Use __sim_round_mode_thread.
3409         * math/test-fenv-tls.c: New file.
3410         * math/Makefile (tests): Add test-fenv-tls.
3411         ($(objpfx)test-fenv-tls): Depend on
3412         $(common-objpfx)nptl/libpthread.so.
3413
3414 2013-11-19  Andreas Schwab  <schwab@suse.de>
3415
3416         * locale/programs/locale.c (show_info): Decode wordarray elements.
3417         * locale/categories.def (LC_MONETARY): Add element for
3418         _NL_MONETARY_CRNCYSTR.
3419         * locale/C-monetary.c (conversion_rate): New variable.
3420         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
3421         element.
3422
3423 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
3424
3425         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
3426         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
3427
3428 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
3429
3430         * elf/Makefile (tst-auxv): New test.
3431         * elf/tst-auxv.c: New
3432         * elf/rtld.c (dl_main): Adjust AT_EXECFN
3433
3434 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
3435
3436         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
3437         (hidden_proto): Caller changed.
3438         (hidden_tls_proto): New macro.
3439         (libc_hidden_tls_proto): Likewise.
3440         (rtld_hidden_tls_proto): Likewise.
3441         (libm_hidden_tls_proto): Likewise.
3442         (libresolv_hidden_tls_proto): Likewise.
3443         (librt_hidden_tls_proto): Likewise.
3444         (libdl_hidden_tls_proto): Likewise.
3445         (libnss_files_hidden_tls_proto): Likewise.
3446         (libnsl_hidden_tls_proto): Likewise.
3447         (libnss_nisplus_hidden_tls_proto): Likewise.
3448         (libutil_hidden_tls_proto): Likewise.
3449
3450 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
3451
3452         [BZ #10253]
3453         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
3454         (decompose_rpath): Defer expansion to fillin_rpath.
3455         (_dl_init_paths): Pass linkmap to fillin_rpath.
3456
3457 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3458
3459         * benchtests/Makefile: Add strsep.
3460         * benchtests/bench-strsep.c: New file: strsep benchtest.
3461         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
3462
3463 2013-11-18  Andreas Schwab  <schwab@suse.de>
3464
3465         * locale/programs/locale.c (show_info) [case byte]: Check for
3466         '\377' instead of '\177'.
3467         * locale/C-monetary.c (not_available): Always use "\377".
3468         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
3469         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
3470         detect unavailable sign_posn locale elements.
3471         * locale/localeconv.c (__localeconv): For grouping and
3472         mon_grouping handle "\177" and "\377" like no grouping.
3473         (INT_ELEM): New macro.  Use it to set all numeric members.
3474         * locale/programs/ld-monetary.c (monetary_read)
3475         <tok_mon_grouping>: Normalize single -1 to the empty string.
3476         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
3477         Likewise.
3478
3479 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3480
3481         [BZ #16055]
3482         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
3483         when we match (nil).
3484         * stdio-common/tst-sscanf.c (struct test): Add testcase.
3485
3486 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
3487
3488         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
3489         (NO_TEST_INLINE): Update value.
3490         (ERRNO_UNCHANGED): Likewise.
3491         (ERRNO_EDOM): Likewise.
3492         (ERRNO_ERANGE): Likewise.
3493         (IGNORE_RESULT): Likewise.
3494         (check_float_internal): Check signs of NaN results if
3495         TEST_NAN_SIGN used.
3496         (check_complex): Pass TEST_NAN_SIGN flag through to second
3497         check_float_internal call.
3498         (copysign_test_data): Add tests with quiet NaNs as second
3499         argument.  Use TEST_NAN_SIGN.
3500         (fabs_test_data): Add test of negative quiet NaN argument.  Use
3501         TEST_NAN_SIGN.
3502         (signbit_test_data): Add tests of quiet NaN argument.
3503         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
3504
3505         * math/gen-libm-test.pl (show_exceptions): Take extra argument
3506         $ignore_result.
3507         (parse_args): Handle function results specified as IGNORE.
3508         * math/libm-test.inc (IGNORE_RESULT): New macro.
3509         (check_float_internal): Do not check numerical result if flag
3510         IGNORE_RESULT set.
3511         (check_complex): Pass through IGNORE_RESULT to second
3512         check_float_internal call.
3513         (check_int): Do not check numerical result if flag IGNORE_RESULT
3514         set.
3515         (check_long): Likewise.
3516         (check_bool): Likewise.
3517         (check_longlong): Likewise.
3518         (lrint_test_data): Add tests of infinite and NaN arguments.
3519         (lrint_tonearest_test_data): Likewise.
3520         (lrint_towardzero_test_data): Likewise.
3521         (lrint_downward_test_data): Likewise.
3522         (lrint_upward_test_data): Likewise.
3523         (llrint_test_data): Likewise.
3524         (llrint_tonearest_test_data): Likewise.
3525         (llrint_towardzero_test_data): Likewise.
3526         (llrint_downward_test_data): Likewise.
3527         (llrint_upward_test_data): Likewise.
3528         (lround_test_data): Likewise.
3529         (llround_test_data): Likewise.
3530
3531         * math/libm-test.inc (NO_TEST_INLINE): New macro.
3532         (ERRNO_UNCHANGED): Update value.
3533         (ERRNO_EDOM): Likewise.
3534         (ERRNO_ERANGE): Likewise.
3535         (NO_TEST_INLINE_FLOAT): New macro.
3536         (NO_TEST_INLINE_DOUBLE): Likewise.
3537         (enable_test): New function.
3538         (RUN_TEST_f_f): Check enable_test before running test.
3539         (RUN_TEST_2_f): Likewise.
3540         (RUN_TEST_fff_f): Likewise.
3541         (RUN_TEST_c_f): Likewise.
3542         (RUN_TEST_f_f1): Likewise.
3543         (RUN_TEST_fF_f1): Likewise.
3544         (RUN_TEST_fI_f1): Likewise.
3545         (RUN_TEST_ffI_f1): Likewise.
3546         (RUN_TEST_c_c): Likewise.
3547         (RUN_TEST_cc_c): Likewise.
3548         (RUN_TEST_f_i): Likewise.
3549         (RUN_TEST_f_i_tg): Likewise.
3550         (RUN_TEST_ff_i_tg): Likewise.
3551         (RUN_TEST_f_b): Likewise.
3552         (RUN_TEST_f_b_tg): Likewise.
3553         (RUN_TEST_f_l): Likewise.
3554         (RUN_TEST_f_L): Likewise.
3555         (RUN_TEST_fFF_11): Likewise.
3556         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
3557         conditionals.
3558         (cosh_test_data): Likewise.
3559         (exp_test_data): Likewise.
3560         (expm1_test_data): Likewise.
3561         (hypot_test_data): Likewise.
3562         (pow_test_data): Likewise.
3563         (sinh_test_data): Likewise.
3564         (tanh_test_data): Likewise.
3565         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
3566         flags argument.
3567
3568         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
3569         tests with quiet NaN input and output.
3570         (acosh_test_data): Likewise.
3571         (asin_test_data): Likewise.
3572         (asinh_test_data): Likewise.
3573         (atan_test_data): Likewise.
3574         (atanh_test_data): Likewise.
3575         (atan2_test_data): Likewise.
3576         (cbrt_test_data): Likewise.
3577         (cos_test_data): Likewise.
3578         (cosh_test_data): Likewise.
3579         (erf_test_data): Likewise.
3580         (erfc_test_data): Likewise.
3581         (exp_test_data): Likewise.
3582         (exp10_test_data): Likewise.
3583         (exp2_test_data): Likewise.
3584         (expm1_test_data): Likewise.
3585         (hypot_test_data): Likewise.
3586         (j0_test_data): Likewise.
3587         (j1_test_data): Likewise.
3588         (jn_test_data): Likewise.
3589         (lgamma_test_data): Likewise.
3590         (log_test_data): Likewise.
3591         (log10_test_data): Likewise.
3592         (log1p_test_data): Likewise.
3593         (log2_test_data): Likewise.
3594         (pow_test_data): Likewise.
3595         (scalb_test_data): Likewise.
3596         (sin_test_data): Likewise.
3597         (sincos_test_data): Likewise.
3598         (sinh_test_data): Likewise.
3599         (tan_test_data): Likewise.
3600         (tanh_test_data): Likewise.
3601         (tgamma_test_data): Likewise.
3602         (y0_test_data): Likewise.
3603         (y1_test_data): Likewise.
3604         (yn_test_data): Likewise.
3605
3606         [BZ #16167]
3607         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
3608         argument being NaN and avoid computations with second argument in
3609         that case.
3610         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3611         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3612         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3613
3614 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
3615
3616         * locale/iso-639.def: Add Chitwani Tharu (the).
3617
3618 2013-11-14  Andreas Schwab  <schwab@suse.de>
3619
3620         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
3621         word instead of empty string.
3622
3623 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3624
3625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3626         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
3627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3628         (__fe_nomask_env): Likewise.
3629
3630 2013-11-13  Steve Ellcey  <sellcey@mips.com>
3631
3632         * benchtests/bench-timing.h: Include time.h.
3633
3634 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
3635
3636         [BZ #15997]
3637         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
3638         to 3.4.0 for x32.
3639         * sysdeps/unix/sysv/linux/configure: Regenerated.
3640
3641 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
3642
3643         [BZ #16151]
3644         * stdlib/strtod_l.c (round_and_return): Do not consider
3645         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
3646         exponent one less than half the least subnormal exponent.
3647         * stdlib/test-strtod-round-data: Add more tests.
3648         * stdlib/tst-strtod-round.c (tests): Regenerated.
3649
3650 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3651
3652         [BZ #14143]
3653         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
3654         (__fe_mask_env): Likewise.
3655         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
3656         libm_hidden_proto and add function prototype.
3657         (__fe_mask_env): Add function prototype.
3658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3659         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
3660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3661         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
3662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3663         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
3664
3665 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3666
3667         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
3668         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
3669
3670 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3671
3672         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
3673         of htab_find_slot().
3674
3675 2013-11-11  David S. Miller  <davem@davemloft.net>
3676
3677         [BZ #16150]
3678         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
3679         symbol in the non-vis3 case in static builds.
3680         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
3681         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
3682         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
3683         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
3684
3685 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3686
3687         [BZ #387]
3688         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
3689         it is empty.
3690
3691 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3692
3693         * benchtests/Makefile: Add bench-strtod.
3694         * benchtests/bench-strtod.c: New file: strtod benchtest
3695
3696 2013-11-11  Andreas Schwab  <schwab@suse.de>
3697
3698         [BZ #16153]
3699         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
3700         terminating NUL in key length.
3701
3702 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3703
3704         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
3705         Add artificial ODP entry for vDSO symbol for PPC64.
3706         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
3707         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
3708
3709 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3710
3711         [BZ #15374]
3712         * nss/getent.c (services_keys): Recognize services starting with digit.
3713
3714 2013-11-06  David S. Miller  <davem@davemloft.net>
3715
3716         [BZ #15985]
3717         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
3718         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
3719
3720 2013-11-06  Will Newton  <will.newton@linaro.org>
3721
3722         * manual/memory.texi (Malloc Examples): Remove register
3723         keyword from examples.
3724
3725 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
3726
3727         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
3728
3729 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
3730
3731         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
3732         depending on [__GCC_IEC_559 > 0].
3733         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
3734         depending on [__GCC_IEC_559_COMPLEX > 0].
3735
3736 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
3737
3738         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
3739         to iso-639.def.
3740
3741 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
3742
3743         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
3744
3745 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
3746
3747         [BZ #16112]
3748         * malloc/malloc (malloc_info): Do not handle first bin as
3749         special case.
3750
3751 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
3752
3753         * locale/iso-639.def: Add Central Nahuatl (nhn).
3754
3755 2013-11-01  Bruno Haible  <bruno@clisp.org>
3756
3757         [BZ #7003]
3758         * manual/math.texi (BSD Random): Specify range upper bound as
3759         in POSIX.
3760
3761 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
3762
3763         * locale/iso-639.def: Add Meadow Mari (mhr).
3764
3765 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
3766
3767         [BZ #14752], [BZ #15763]
3768         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
3769         Validate name.
3770         * rt/tst_shm.c: Add test for escaping directory.
3771
3772 2013-10-31  Andreas Schwab  <schwab@suse.de>
3773
3774         [BZ #15917]
3775         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
3776         followed by 'x' as part of digit sequence.
3777         * stdio-common/tst-sscanf.c (double_tests2): New tests.
3778
3779 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
3780
3781         [BZ #16037]
3782         * configure.ac: allow GNU Make 4.0 and greater.
3783         * configure: Regenerated.
3784
3785 2013-10-30  Will Newton  <will.newton@linaro.org>
3786
3787         [BZ #16038]
3788         * malloc/hooks.c (memalign_check): Limit alignment to the
3789         maximum representable power of two.
3790         * malloc/malloc.c (__libc_memalign): Likewise.
3791         * malloc/tst-memalign.c (do_test): Add test for very
3792         large alignment values.
3793         * malloc/tst-posix_memalign.c (do_test): Likewise.
3794
3795 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3796
3797         [BZ #11087]
3798         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
3799         (munmap_chunk): Likewise.
3800         (mremap_chunk): Likewise.
3801
3802 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3803
3804         [BZ #15799]
3805         * stdlib/div.c (div): Remove obsolete code.
3806         * stdlib/ldiv.c (ldiv): Likewise.
3807         * stdlib/lldiv.c (lldiv): Likewise.
3808
3809 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3810
3811         [BZ #16071]
3812         * nss/nss_files/files-XXX.c (get_contents_ret): New
3813         enumerator.
3814         (get_contents): New function.
3815         (internal_getent): Use it.  Expand size of LINEBUFLEN.
3816
3817 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
3818
3819         * configure.in: Moved to ...
3820         * configure.ac: ... here. Change reference to configure.in
3821         to configure.ac.
3822         * sysdeps/arm/preconfigure.ac: ... here.
3823         configure.in to configure.ac.
3824         * sysdeps/gnu/configure.in: Moved to ...
3825         * sysdeps/gnu/configure.ac: ... here.
3826         * sysdeps/i386/configure.in: Moved to ...
3827         * sysdeps/i386/configure.ac: ... here.
3828         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
3829         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
3830         * sysdeps/mach/configure.in: Moved to ...
3831         * sysdeps/mach/configure.ac: ... here.
3832         * sysdeps/mach/hurd/configure.in: Moved to ...
3833         * sysdeps/mach/hurd/configure.ac: ... here.
3834         * sysdeps/powerpc/configure.in: Moved to ...
3835         * sysdeps/powerpc/configure.ac: ... here.
3836         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
3837         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
3838         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
3839         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
3840         * sysdeps/s390/s390-32/configure.in: Moved to ...
3841         * sysdeps/s390/s390-32/configure.ac: ... here.
3842         * sysdeps/s390/s390-64/configure.in: Moved to ...
3843         * sysdeps/s390/s390-64/configure.ac: ... here.
3844         * sysdeps/sh/configure.in: Moved to ...
3845         * sysdeps/sh/configure.ac: ... here.
3846         * sysdeps/sparc/configure.in: Moved to ...
3847         * sysdeps/sparc/configure.ac: ... here.
3848         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
3849         * sysdeps/unix/sysv/linux/configure.ac: ... here.
3850         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
3851         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
3852         * sysdeps/x86_64/configure.in: Moved to ...
3853         * sysdeps/x86_64/configure.ac: ... here.
3854         * sysdeps/x86_64/preconfigure.in: Moved to ...
3855         * sysdeps/x86_64/preconfigure.ac: ... here.
3856         * aclocal.m4: Change reference to configure.in to configure.ac.
3857         * config.h.in: Likewise.
3858         * manual/install.texi: Likewise.
3859         * manual/maint.texi: Likewise.
3860         * Makefile: Likewise.
3861         * malloc/Makefile: Likewise.
3862         * nscd/Makefile: Likewise.
3863         * Makeconfig: Change reference to configure.in and
3864         preconfigure.in to configure.ac and preconfigure.ac
3865         respectively.
3866         * INSTALL: Regenerated.
3867         * configure: Likewise.
3868         * sysdeps/gnu/configure: Likewise.
3869         * sysdeps/i386/configure: Likewise.
3870         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
3871         * sysdeps/mach/configure: Likewise.
3872         * sysdeps/mach/hurd/configure: Likewise.
3873         * sysdeps/powerpc/configure: Likewise.
3874         * sysdeps/powerpc/powerpc32/configure: Likewise.
3875         * sysdeps/powerpc/powerpc64/configure: Likewise.
3876         * sysdeps/s390/s390-32/configure: Likewise.
3877         * sysdeps/s390/s390-64/configure: Likewise.
3878         * sysdeps/sh/configure: Likewise.
3879         * sysdeps/sparc/configure: Likewise.
3880         * sysdeps/unix/sysv/linux/configure: Likewise.
3881         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
3882         * sysdeps/x86_64/configure: Likewise.
3883         * sysdeps/x86_64/preconfigure: Likewise.
3884
3885 2013-10-29  Andreas Schwab  <schwab@suse.de>
3886
3887         * stdio-common/Makefile (tst-swscanf-ENV): Define.
3888
3889 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3890
3891         * benchtests/pow-inputs: Add new inputs.
3892
3893         * benchtests/exp-inputs: Add new inputs.
3894
3895         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
3896         conditional check for return value.
3897         (__cos32): Likewise.
3898
3899 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3900
3901         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
3902         to provide a boost for large inputs with word alignment.
3903         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
3904         implementation based on optimized PPC64 strcpy.
3905         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
3906         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
3907         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
3908         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
3909
3910 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3911
3912         [BZ #2801]
3913         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
3914
3915 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3916
3917         [BZ #14876]
3918         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
3919         * time/tst-strptime.c (day_tests): Add testcase.
3920
3921 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3922
3923         [BZ #14029]
3924         * manual/pattern.texi: Acknowledge that fnmatch can fail.
3925
3926 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
3927
3928         [BZ #16074]
3929         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
3930         MAP_FAILED on error.
3931
3932 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3933
3934         [BZ #16072]
3935         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
3936         heap for large requests.
3937
3938 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
3939
3940         [BZ #9954]
3941         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
3942         result if the result has no associated interface.
3943         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
3944         interface for all 127.X.Y.Z addresses.
3945
3946 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
3947
3948         * locale/iso-639.def: Add Ligurian (lij)
3949
3950 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
3951
3952         [BZ #15825]
3953         * sunrpc/rpc_main.c: Document rpcgen -5.
3954
3955 2013-10-19  Michael Stahl  <mstahl@redhat.com>
3956
3957         * elf/rtld.c (do_preload): Print the reason why preloading failed.
3958
3959 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
3960
3961         [BZ #10278]
3962         * posix/glob.c: Match only directories when trailing slash is present.
3963         * posix/tst-gnuglob.c (my_opendir): Do not open files.
3964         (main): Add testcase.
3965
3966 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
3967
3968         [BZ #15670]
3969         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
3970
3971 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
3972
3973         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
3974         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
3975         AUTH_DES and cindex for FIPS 140-2.
3976         (DES Encryption): Add cindex FIPS 46-3.
3977
3978         * locale/locarchive.h (struct locarhandle): Add fname.
3979         * locale/programs/localedef.c (main): Pass ARGV[remaining]
3980         if an optional argument was specified to --list-archive,
3981         otherwise NULL.
3982         * locale/programs/locarchive.c (show_archive_content): Take new
3983         argument fname and pass it via ah.fname to open_archive.
3984         * locale/programs/localedef.h: Update decl.
3985         (open_archive): If AH->fname is non-null, open that file
3986         rather than the default file name, and don't ignore ENOENT.
3987         (create_archive): Set AH.fname to NULL.
3988         (delete_locales_from_archive): Likewise.
3989         (add_locales_to_archive): Likewise.
3990         * locale/programs/locfile.c (write_all_categories): Likewise.
3991
3992 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
3993             Aldy Hernandez  <aldyh@redhat.com>
3994
3995         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
3996         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
3997         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
3998         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
3999         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
4000         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
4001         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
4002         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
4003         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
4004         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
4005         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
4006         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
4007         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
4008         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
4009         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
4010         Likewise.
4011         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
4012         Likewise.
4013         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
4014         Likewise.
4015         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
4016         Likewise.
4017         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
4018         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
4019         Likewise.
4020         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
4021         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
4022         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
4023         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
4024         Likewise.
4025         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
4026         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
4027         * sysdeps/powerpc/preconfigure: Likewise.
4028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
4029         Likewise.
4030         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
4031         Replace contents of file by #include of <fenv_libc.h>.
4032         * sysdeps/powerpc/soft-fp/sfp-machine.h
4033         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
4034         and <sys/prctl.h>.
4035         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
4036         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
4037         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
4038         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
4039         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
4040         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
4041         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
4042         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
4043         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
4044         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
4045         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
4046         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
4047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
4048         Allow copysignl PLT reference to be missing.
4049
4050 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
4051             Joseph Myers  <joseph@codesourcery.com
4052
4053         [BZ #15948]
4054         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
4055         single character.
4056         (add_to_tablewc): Assert sequence of wide characters is nonempty.
4057
4058 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4059
4060         * elf/tst-tls-dlinfo.c: Don't include tls.h.
4061         * elf/tst-tls1.c: Likewise.
4062         * elf/tst-tls10.h: Likewise.
4063         * elf/tst-tls14.c: Likewise.
4064         * elf/tst-tls2.c: Likewise.
4065         * elf/tst-tls3.c: Likewise.
4066         * elf/tst-tls4.c: Likewise.
4067         * elf/tst-tls5.c: Likewise.
4068         * elf/tst-tls6.c: Likewise.
4069         * elf/tst-tls7.c: Likewise.
4070         * elf/tst-tls8.c: Likewise.
4071         * elf/tst-tls9.c: Likewise.
4072         * elf/tst-tlsmod1.c: Likewise.
4073         * elf/tst-tlsmod13.c: Likewise.
4074         * elf/tst-tlsmod13a.c: Likewise.
4075         * elf/tst-tlsmod14a.c: Likewise.
4076         * elf/tst-tlsmod16a.c: Likewise.
4077         * elf/tst-tlsmod16b.c: Likewise.
4078         * elf/tst-tlsmod2.c: Likewise.
4079         * elf/tst-tlsmod3.c: Likewise.
4080         * elf/tst-tlsmod4.c: Likewise.
4081         * elf/tst-tlsmod5.c: Likewise.
4082         * elf/tst-tlsmod6.c: Likewise.
4083
4084 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
4085
4086         [BZ #12486]
4087         * malloc/malloc.c: remove checks for statistics.
4088
4089 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4090
4091         [BZ #15277]
4092         * inet/inet_net.c (inet_network): Detect additional invalid strings.
4093         * inet/tst-network.c: Add testcase.
4094
4095 2013-10-17  Andreas Schwab  <schwab@suse.de>
4096
4097         [BZ #15218]
4098         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
4099         to determine canonical name.
4100
4101 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4102
4103         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
4104         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
4105         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4106         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
4107         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4108         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4109         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4110         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
4111         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4112         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4113         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
4114         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4115         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4116         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4117         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
4118         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
4119         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4120         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4121         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4122         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4123         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4124         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4125         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4126         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
4127         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
4128         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4129         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4130         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
4131         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4132         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
4133         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4134         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4135         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
4136         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
4137         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4138         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4139         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4140         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4141         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4142         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4143         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4144         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4145         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
4146         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4147         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4148         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4149         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4150         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4151         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
4152         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4153         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
4154         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
4155         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
4156         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
4157         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4158         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4159         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4160         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4161
4162 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
4163
4164         [BZ #16041]
4165         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
4166         make result into a quiet NaN.
4167
4168 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
4169
4170         * soft-fp/adddf3.c: Fix horizontal whitespace.
4171         * soft-fp/addsf3.c: Likewise.
4172         * soft-fp/addtf3.c: Likewise.
4173         * soft-fp/divdf3.c: Likewise.
4174         * soft-fp/divsf3.c: Likewise.
4175         * soft-fp/divtf3.c: Likewise.
4176         * soft-fp/double.h: Likewise.
4177         * soft-fp/eqdf2.c: Likewise.
4178         * soft-fp/eqsf2.c: Likewise.
4179         * soft-fp/eqtf2.c: Likewise.
4180         * soft-fp/extenddftf2.c: Likewise.
4181         * soft-fp/extended.h: Likewise.
4182         * soft-fp/extendsfdf2.c: Likewise.
4183         * soft-fp/extendsftf2.c: Likewise.
4184         * soft-fp/extendxftf2.c: Likewise.
4185         * soft-fp/fixdfdi.c: Likewise.
4186         * soft-fp/fixdfsi.c: Likewise.
4187         * soft-fp/fixdfti.c: Likewise.
4188         * soft-fp/fixsfdi.c: Likewise.
4189         * soft-fp/fixsfsi.c: Likewise.
4190         * soft-fp/fixsfti.c: Likewise.
4191         * soft-fp/fixtfdi.c: Likewise.
4192         * soft-fp/fixtfsi.c: Likewise.
4193         * soft-fp/fixtfti.c: Likewise.
4194         * soft-fp/fixunsdfdi.c: Likewise.
4195         * soft-fp/fixunsdfsi.c: Likewise.
4196         * soft-fp/fixunsdfti.c: Likewise.
4197         * soft-fp/fixunssfdi.c: Likewise.
4198         * soft-fp/fixunssfsi.c: Likewise.
4199         * soft-fp/fixunssfti.c: Likewise.
4200         * soft-fp/fixunstfdi.c: Likewise.
4201         * soft-fp/fixunstfsi.c: Likewise.
4202         * soft-fp/fixunstfti.c: Likewise.
4203         * soft-fp/floatdidf.c: Likewise.
4204         * soft-fp/floatdisf.c: Likewise.
4205         * soft-fp/floatditf.c: Likewise.
4206         * soft-fp/floatsidf.c: Likewise.
4207         * soft-fp/floatsisf.c: Likewise.
4208         * soft-fp/floatsitf.c: Likewise.
4209         * soft-fp/floattidf.c: Likewise.
4210         * soft-fp/floattisf.c: Likewise.
4211         * soft-fp/floattitf.c: Likewise.
4212         * soft-fp/floatundidf.c: Likewise.
4213         * soft-fp/floatundisf.c: Likewise.
4214         * soft-fp/floatunditf.c: Likewise.
4215         * soft-fp/floatunsidf.c: Likewise.
4216         * soft-fp/floatunsisf.c: Likewise.
4217         * soft-fp/floatunsitf.c: Likewise.
4218         * soft-fp/floatuntidf.c: Likewise.
4219         * soft-fp/floatuntisf.c: Likewise.
4220         * soft-fp/floatuntitf.c: Likewise.
4221         * soft-fp/fmadf4.c: Likewise.
4222         * soft-fp/fmasf4.c: Likewise.
4223         * soft-fp/fmatf4.c: Likewise.
4224         * soft-fp/gedf2.c: Likewise.
4225         * soft-fp/gesf2.c: Likewise.
4226         * soft-fp/getf2.c: Likewise.
4227         * soft-fp/ledf2.c: Likewise.
4228         * soft-fp/lesf2.c: Likewise.
4229         * soft-fp/letf2.c: Likewise.
4230         * soft-fp/muldf3.c: Likewise.
4231         * soft-fp/mulsf3.c: Likewise.
4232         * soft-fp/multf3.c: Likewise.
4233         * soft-fp/negdf2.c: Likewise.
4234         * soft-fp/negsf2.c: Likewise.
4235         * soft-fp/negtf2.c: Likewise.
4236         * soft-fp/op-1.h: Likewise.
4237         * soft-fp/op-2.h: Likewise.
4238         * soft-fp/op-4.h: Likewise.
4239         * soft-fp/op-8.h: Likewise.
4240         * soft-fp/op-common.h: Likewise.
4241         * soft-fp/quad.h: Likewise.
4242         * soft-fp/single.h: Likewise.
4243         * soft-fp/soft-fp.h: Likewise.
4244         * soft-fp/sqrtdf2.c: Likewise.
4245         * soft-fp/sqrtsf2.c: Likewise.
4246         * soft-fp/sqrttf2.c: Likewise.
4247         * soft-fp/subdf3.c: Likewise.
4248         * soft-fp/subsf3.c: Likewise.
4249         * soft-fp/subtf3.c: Likewise.
4250         * soft-fp/truncdfsf2.c: Likewise.
4251         * soft-fp/trunctfdf2.c: Likewise.
4252         * soft-fp/trunctfsf2.c: Likewise.
4253         * soft-fp/trunctfxf2.c: Likewise.
4254         * soft-fp/unorddf2.c: Likewise.
4255         * soft-fp/unordsf2.c: Likewise.
4256         * soft-fp/unordtf2.c: Likewise.
4257
4258 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
4259
4260         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
4261         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
4262
4263 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
4264
4265         * elf/dl-libc.c: Clear initfini list after freeing.
4266
4267 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
4268
4269         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
4270         * soft-fp/addsf3.c: Likewise.
4271         * soft-fp/addtf3.c: Likewise.
4272         * soft-fp/divdf3.c: Likewise.
4273         * soft-fp/divsf3.c: Likewise.
4274         * soft-fp/divtf3.c: Likewise.
4275         * soft-fp/double.h: Likewise.
4276         * soft-fp/eqdf2.c: Likewise.
4277         * soft-fp/eqsf2.c: Likewise.
4278         * soft-fp/eqtf2.c: Likewise.
4279         * soft-fp/extenddftf2.c: Likewise.
4280         * soft-fp/extended.h: Likewise.
4281         * soft-fp/extendsfdf2.c: Likewise.
4282         * soft-fp/extendsftf2.c: Likewise.
4283         * soft-fp/extendxftf2.c: Likewise.
4284         * soft-fp/fixdfdi.c: Likewise.
4285         * soft-fp/fixdfsi.c: Likewise.
4286         * soft-fp/fixdfti.c: Likewise.
4287         * soft-fp/fixsfdi.c: Likewise.
4288         * soft-fp/fixsfsi.c: Likewise.
4289         * soft-fp/fixsfti.c: Likewise.
4290         * soft-fp/fixtfdi.c: Likewise.
4291         * soft-fp/fixtfsi.c: Likewise.
4292         * soft-fp/fixtfti.c: Likewise.
4293         * soft-fp/fixunsdfdi.c: Likewise.
4294         * soft-fp/fixunsdfsi.c: Likewise.
4295         * soft-fp/fixunsdfti.c: Likewise.
4296         * soft-fp/fixunssfdi.c: Likewise.
4297         * soft-fp/fixunssfsi.c: Likewise.
4298         * soft-fp/fixunssfti.c: Likewise.
4299         * soft-fp/fixunstfdi.c: Likewise.
4300         * soft-fp/fixunstfsi.c: Likewise.
4301         * soft-fp/fixunstfti.c: Likewise.
4302         * soft-fp/floatdidf.c: Likewise.
4303         * soft-fp/floatdisf.c: Likewise.
4304         * soft-fp/floatditf.c: Likewise.
4305         * soft-fp/floatsidf.c: Likewise.
4306         * soft-fp/floatsisf.c: Likewise.
4307         * soft-fp/floatsitf.c: Likewise.
4308         * soft-fp/floattidf.c: Likewise.
4309         * soft-fp/floattisf.c: Likewise.
4310         * soft-fp/floattitf.c: Likewise.
4311         * soft-fp/floatundidf.c: Likewise.
4312         * soft-fp/floatundisf.c: Likewise.
4313         * soft-fp/floatunsidf.c: Likewise.
4314         * soft-fp/floatunsisf.c: Likewise.
4315         * soft-fp/floatuntidf.c: Likewise.
4316         * soft-fp/floatuntisf.c: Likewise.
4317         * soft-fp/floatuntitf.c: Likewise.
4318         * soft-fp/fmadf4.c: Likewise.
4319         * soft-fp/fmasf4.c: Likewise.
4320         * soft-fp/fmatf4.c: Likewise.
4321         * soft-fp/gedf2.c: Likewise.
4322         * soft-fp/gesf2.c: Likewise.
4323         * soft-fp/getf2.c: Likewise.
4324         * soft-fp/ledf2.c: Likewise.
4325         * soft-fp/lesf2.c: Likewise.
4326         * soft-fp/letf2.c: Likewise.
4327         * soft-fp/muldf3.c: Likewise.
4328         * soft-fp/mulsf3.c: Likewise.
4329         * soft-fp/multf3.c: Likewise.
4330         * soft-fp/negdf2.c: Likewise.
4331         * soft-fp/negsf2.c: Likewise.
4332         * soft-fp/negtf2.c: Likewise.
4333         * soft-fp/op-1.h: Likewise.
4334         * soft-fp/op-2.h: Likewise.
4335         * soft-fp/op-4.h: Likewise.
4336         * soft-fp/op-8.h: Likewise.
4337         * soft-fp/op-common.h: Likewise.
4338         * soft-fp/quad.h: Likewise.
4339         * soft-fp/single.h: Likewise.
4340         * soft-fp/soft-fp.h: Likewise.
4341         * soft-fp/sqrtdf2.c: Likewise.
4342         * soft-fp/sqrtsf2.c: Likewise.
4343         * soft-fp/sqrttf2.c: Likewise.
4344         * soft-fp/subdf3.c: Likewise.
4345         * soft-fp/subsf3.c: Likewise.
4346         * soft-fp/subtf3.c: Likewise.
4347         * soft-fp/truncdfsf2.c: Likewise.
4348         * soft-fp/trunctfdf2.c: Likewise.
4349         * soft-fp/trunctfsf2.c: Likewise.
4350         * soft-fp/trunctfxf2.c: Likewise.
4351         * soft-fp/unorddf2.c: Likewise.
4352         * soft-fp/unordsf2.c: Likewise.
4353         * soft-fp/unordtf2.c: Likewise.
4354
4355 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
4356
4357         [BZ #15672]
4358         * misc/error.c (error_tail): Fix possible buffer overflow.
4359
4360 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
4361
4362         [BZ #13028]
4363         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
4364         address.
4365
4366 2013-10-14  P. J. McDermott  <pj@pehjota.net>
4367
4368         [BZ #832]
4369         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
4370         testing pipefail option.
4371
4372 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4373
4374         * soft-fp/double.h: Indent preprocessor directives inside #if.
4375         * soft-fp/extended.h: Likewise.
4376         * soft-fp/op-2.h: Likewise.
4377         * soft-fp/op-4.h: Likewise.
4378         * soft-fp/op-common.h: Likewise.
4379         * soft-fp/quad.h: Likewise.
4380         * soft-fp/single.h: Likewise.
4381         * soft-fp/soft-fp.h: Likewise.
4382
4383 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
4384
4385         * iconv/iconv_prog.c: Fix typos.
4386         * stdio-common/psiginfo-data.h: Likewise.
4387
4388 2013-10-12   Reuben Thomas <rrt@sc3d.org>
4389
4390         [BZ #15764]
4391         * locale/setlocale.c: Fix typo.
4392
4393 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4394
4395         [BZ #16036]
4396         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
4397         signaling NaN arguments.
4398         * soft-fp/unordsf2.c (__unordsf2): Likewise.
4399         * soft-fp/unordtf2.c (__unordtf2): Likewise.
4400
4401         [BZ #14910]
4402         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
4403         unordered operands.
4404         * soft-fp/gesf2.c (__gesf2): Likewise.
4405         * soft-fp/getf2.c (__getf2): Likewise.
4406         * soft-fp/ledf2.c (__ledf2): Likewise.
4407         * soft-fp/lesf2.c (__lesf2): Likewise.
4408         * soft-fp/letf2.c (__letf2): Likewise.
4409
4410         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
4411         * soft-fp/eqsf2.c (__eqsf2): Likewise.
4412         * soft-fp/eqtf2.c (__eqtf2): Likewise.
4413         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
4414         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
4415         * soft-fp/fixdfti.c (__fixdfti): Likewise.
4416         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
4417         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
4418         * soft-fp/fixsfti.c (__fixsfti): Likewise.
4419         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
4420         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
4421         * soft-fp/fixtfti.c (__fixtfti): Likewise.
4422         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
4423         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
4424         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
4425         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
4426         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
4427         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
4428         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
4429         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
4430         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
4431         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
4432         * soft-fp/floatdisf.c (__floatdisf): Likewise.
4433         * soft-fp/floatsisf.c (__floatsisf): Likewise.
4434         * soft-fp/floattidf.c (__floattidf): Likewise.
4435         * soft-fp/floattisf.c (__floattisf): Likewise.
4436         * soft-fp/floattitf.c (__floattitf): Likewise.
4437         * soft-fp/floatundidf.c (__floatundidf): Likewise.
4438         * soft-fp/floatundisf.c (__floatundisf): Likewise.
4439         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
4440         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
4441         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
4442         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
4443         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
4444         * soft-fp/gesf2.c (__gesf2): Likewise.
4445         * soft-fp/getf2.c (__getf2): Likewise.
4446         * soft-fp/ledf2.c (__ledf2): Likewise.
4447         * soft-fp/lesf2.c (__lesf2): Likewise.
4448         * soft-fp/letf2.c (__letf2): Likewise.
4449
4450         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
4451         Undefine and redefine.
4452         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
4453         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
4454         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
4455         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
4456         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4457         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
4458         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4459         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
4460         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4461         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
4462         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4463         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
4464         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4465         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
4466         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4467
4468         [BZ #16032]
4469         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
4470         without decrementing exponent if mantissa >= that for the
4471         denominator, not >.
4472         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
4473         denominator, not >.  Decrement exponent in < case instead of
4474         incrementing in >= case.
4475         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
4476         without decrementing exponent if mantissa >= that for the
4477         denominator, not >.
4478
4479         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
4480         computing saturated result for unsigned overflow.
4481
4482 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4483             Jeff Law  <law@redhat.com>
4484
4485         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
4486         (atan2Mp): Add systemtap probe marker.
4487         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
4488         (__ieee754_log): Add systemtap probe marker.
4489         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
4490         (atanMp): Add systemtap probe marker.
4491         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
4492         (tanMp): Add systemtap probe marker.
4493         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
4494         (__slowexp): Add systemtap probe marker.
4495         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
4496         (__slowpow): Add systemtap probe marker.
4497         * manual/probes.texi: Document probes.
4498
4499 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
4500
4501         [BZ #15362]
4502         * libio/fileops.c (_IO_new_file_write): Return count of bytes
4503         written.
4504         (_IO_new_file_xsputn): Don't return EOF if nothing has been
4505         written.
4506         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
4507         written to buffer but not flushed.
4508         * libio/iofwrite_u.c:  Likewise.
4509         * libio/iopadn.c:  Return bytes returned even if EOF was
4510         encountered.
4511         * libio/iowpadn.c:  Likewise.
4512         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
4513         if _IO_padn does not write the whole buffer.
4514         [!COMPILE_WPRINTF] (PAD): Likewise.
4515
4516 2013-10-10  David S. Miller  <davem@davemloft.net>
4517
4518         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
4519         directory block.
4520
4521 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4522
4523         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
4524         instead of FSF address.
4525         * soft-fp/fixdfti.c: Likewise.
4526         * soft-fp/fixsfti.c: Likewise.
4527         * soft-fp/fixtfti.c: Likewise.
4528         * soft-fp/fixunsdfti.c: Likewise.
4529         * soft-fp/fixunssfti.c: Likewise.
4530         * soft-fp/fixunstfti.c: Likewise.
4531         * soft-fp/floattidf.c: Likewise.
4532         * soft-fp/floattisf.c: Likewise.
4533         * soft-fp/floattitf.c: Likewise.
4534         * soft-fp/floatuntidf.c: Likewise.
4535         * soft-fp/floatuntisf.c: Likewise.
4536         * soft-fp/floatuntitf.c: Likewise.
4537         * soft-fp/trunctfxf2.c: Likewise.
4538
4539         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
4540         * soft-fp/fixdfti.c: Likewise.
4541         * soft-fp/fixsfti.c: Likewise.
4542         * soft-fp/fixtfti.c: Likewise.
4543         * soft-fp/fixunsdfti.c: Likewise.
4544         * soft-fp/fixunssfti.c: Likewise.
4545         * soft-fp/fixunstfti.c: Likewise.
4546         * soft-fp/floattidf.c: Likewise.
4547         * soft-fp/floattisf.c: Likewise.
4548         * soft-fp/floattitf.c: Likewise.
4549         * soft-fp/floatuntidf.c: Likewise.
4550         * soft-fp/floatuntisf.c: Likewise.
4551         * soft-fp/floatuntitf.c: Likewise.
4552         * soft-fp/trunctfxf2.c: Likewise.
4553
4554 2013-10-10  David S. Miller  <davem@davemloft.net>
4555
4556         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4557
4558 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
4559
4560         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4561         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
4562         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
4563         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
4564         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
4565         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
4566         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
4567
4568         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
4569         for NaNs before doing comparisons on argument.
4570         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
4571         Likewise.
4572
4573 2013-10-10  Will Newton  <will.newton@linaro.org>
4574
4575         * malloc/hooks.c (memalign_check): Ensure the value of bytes
4576         passed to _int_memalign does not overflow.
4577
4578 2013-10-10  Torvald Riegel  <triegel@redhat.com>
4579
4580         * scripts/bench.pl: Add include-sources directive.
4581         * benchtests/README: Update documentation.
4582
4583 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4584
4585         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
4586         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
4587         instead of FP_INIT_ROUNDMODE.
4588         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
4589         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
4590
4591         [BZ #16034]
4592         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
4593         copy class of input value.
4594         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
4595         not handle exceptions.
4596         * soft-fp/negsf2.c (__negsf2): Likewise.
4597         * soft-fp/negtf2.c (__negtf2): Likewise.
4598         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
4599
4600 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
4601
4602         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
4603         semicolon.  From Linux kernel.
4604
4605 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
4606
4607         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
4608
4609 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
4610
4611         [BZ #156]
4612         * manual/socket.texi: Added statement about buffer
4613         for gethostbyname2_r.
4614
4615 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
4616
4617         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
4618         Use .p2align directive instead, throughout.
4619         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4620         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4621         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
4622         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4623         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4624         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
4625         * sysdeps/x86_64/strchr.S: Likewise.
4626         * sysdeps/x86_64/strrchr.S: Likewise.
4627
4628 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
4629
4630         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
4631
4632         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
4633
4634         * sysdeps/generic/math_private.h (__mpsin1): Remove
4635         declaration.
4636         (__mpcos1): Likewise.
4637         (__mpsin): New argument __range_reduce.
4638         (__mpcos): Likewise.
4639         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4640         (slow): Use __mpsin and __mpcos.
4641         (slow1): Likewise.
4642         (slow2): Likewise.
4643         (sloww): Likewise.
4644         (sloww1): Likewise.
4645         (sloww2): Likewise.
4646         (bsloww): Likewise.
4647         (bsloww1): Likewise.
4648         (bsloww2): Likewise.
4649         (cslow2): Likewise.
4650         (csloww): Likewise.
4651         (csloww1): Likewise.
4652         (csloww2): Likewise.
4653         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
4654         range_reduce.  Merge in __mpsin1.
4655         (__mpcos): Likewise.
4656         (__mpsin1): Remove.
4657         (__mpcos1): Likewise.
4658
4659 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
4660
4661         * locale/loadlocale.c (_nl_intern_locale_data): Use
4662         LOCFILE_ALIGNED_P.
4663         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
4664         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
4665         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
4666         obstack data is appropriately aligned.
4667         (obstack_int32_grow_fast): Likewise.
4668         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
4669         * locale/programs/locfile.c (add_locale_uint32): Likewise.
4670         (add_locale_uint32_array): Likewise.
4671
4672 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
4673
4674         * benchtests/Makefile: Remove ARGLIST and RET variables.
4675         ($(objpfx)bench-%.c): Pass only function name to the script.
4676         * benchtests/README: Update documentation.
4677         * benchtests/acos-inputs: Add new directives.
4678         * benchtests/acosh-inputs: Likewise.
4679         * benchtests/asin-inputs: Likewise.
4680         * benchtests/asinh-inputs: Likewise.
4681         * benchtests/atan-inputs: Likewise.
4682         * benchtests/atanh-inputs: Likewise.
4683         * benchtests/cos-inputs: Likewise.
4684         * benchtests/cosh-inputs: Likewise.
4685         * benchtests/exp-inputs: Likewise.
4686         * benchtests/log-inputs: Likewise.
4687         * benchtests/pow-inputs: Likewise.
4688         * benchtests/rint-inputs: Likewise.
4689         * benchtests/sin-inputs: Likewise.
4690         * benchtests/sinh-inputs: Likewise.
4691         * benchtests/tan-inputs: Likewise.
4692         * benchtests/tanh-inputs: Likewise.
4693         * scripts/bench.pl: Add support for new directives.
4694
4695 2013-10-07  Alan Modra  <amodra@gmail.com>
4696
4697         * README: Fix careless merge.
4698
4699 2013-10-05  Alan Modra  <amodra@gmail.com>
4700
4701         * NEWS: Mention powerpc64le support and bugs fixed.
4702         * README: Both big-endian and little-endian powerpc64 supported.
4703
4704 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4705
4706         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
4707         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
4708         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
4709         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
4710
4711 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
4712
4713         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
4714         match prototype.
4715
4716 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
4717
4718         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
4719         Move -mhard-float appending from
4720         ports/sysdeps/powerpc/powerpc32/Makefile.
4721         [$(with-fp) = yes] (ASFLAGS): Likewise.
4722         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
4723         * sysdeps/powerpc/nofpu: Move directory from
4724         ports/sysdeps/powerpc/nofpu.
4725         * sysdeps/powerpc/soft-fp: Move directory from
4726         ports/sysdeps/powerpc/soft-fp.
4727         * sysdeps/powerpc/powerpc32/405: Move directory from
4728         ports/sysdeps/powerpc/powerpc32/405.
4729         * sysdeps/powerpc/powerpc32/440: Move directory from
4730         ports/sysdeps/powerpc/powerpc32/440.
4731         * sysdeps/powerpc/powerpc32/464: Move directory from
4732         ports/sysdeps/powerpc/powerpc32/464.
4733         * sysdeps/powerpc/powerpc32/476: Move directory from
4734         ports/sysdeps/powerpc/powerpc32/476.
4735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
4736         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
4737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
4738         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
4739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
4740         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
4741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
4742         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
4743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
4744         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
4745         * README: Update for powerpc-*-linux-gnu software floating point
4746         support in libc.
4747
4748         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
4749         case to powerpc/powerpc32*.
4750         * sysdeps/unix/sysv/linux/configure: Regenerated.
4751
4752         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
4753         (_FPU_MASK_OM): Define as 0x04.
4754         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
4755         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
4756         0x00c10080.
4757         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
4758         0x0000003c.
4759         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
4760
4761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4762         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4763         getcontext_e500.
4764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4765         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4766         setcontext_e500.
4767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4768         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
4769         and setcontext_e500.
4770
4771 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
4772
4773         * locale/iso-3166.def: Update iso-1366.def and related occurrences
4774
4775 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4776
4777         * manual/threads.texi (Default Thread Attributes): Fix typo.
4778
4779 2013-10-04  Will Newton  <will.newton@linaro.org>
4780
4781         * malloc/Makefile: Add tst-memalign.
4782         * malloc/tst-memalign.c: New file.
4783
4784         * malloc/tst-posix_memalign.c: Add comments.
4785         (do_test): Add comments and call free on all potentially
4786         allocated pointers. Add space after cast.
4787
4788         * malloc/tst-pvalloc.c: Add comments.
4789         (do_test): Add comments and call free on all potentially
4790         allocated pointers. Remove duplicate check for NULL pointer.
4791         Add space after cast.
4792
4793         * malloc/tst-valloc.c: Add comments.
4794         (do_test): Add comments and call free on all potentially
4795         allocated pointers. Remove duplicate check for NULL pointer.
4796         Add space after cast.
4797
4798 2013-10-04  Alan Modra  <amodra@gmail.com>
4799
4800         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4801         Use stdint types in rather than __attribute__((mode())).
4802         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4803
4804 2013-10-04  Alan Modra  <amodra@gmail.com>
4805
4806         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4807         Correct handling of unaligned relocs for little-endian.
4808         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4809
4810 2013-10-04  Alan Modra  <amodra@gmail.com>
4811
4812         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
4813         * configure: Regenerate.
4814         * nptl/shlib-versions: Powerpc*le starts at 2.18.
4815         * shlib-versions: Likewise.
4816
4817 2013-10-04  Alan Modra  <amodra@gmail.com>
4818
4819         * string/tester.c (test_memrchr): Increment reported test cycle.
4820
4821 2013-10-04  Alan Modra  <amodra@gmail.com>
4822
4823         * string/test-memcpy.c (do_one_test): When reporting errors, print
4824         string address and don't overrun end of string.
4825
4826 2013-10-04  Alan Modra  <amodra@gmail.com>
4827
4828         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
4829         insrdi.  Make better use of reg selection to speed exit slightly.
4830         Schedule entry path a little better.  Remove useless "are we done"
4831         checks on entry to main loop.  Handle wrapping around zero address.
4832         Correct main loop count.  Handle single left-over word from main
4833         loop inline rather than by using loop_small.  Remove extra word
4834         case in loop_small caused by wrong loop count.  Add little-endian
4835         support.
4836         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
4837         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
4838         cache hint.
4839         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
4840         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
4841         support.  Avoid rlwimi.
4842         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
4843
4844 2013-10-04  Alan Modra  <amodra@gmail.com>
4845
4846         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
4847         insrdi.  Formatting.
4848         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
4849         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
4850         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
4851         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
4852         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
4853         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
4854
4855 2013-10-04  Alan Modra  <amodra@gmail.com>
4856
4857         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
4858         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4859         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
4860         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
4861         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
4862         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4863         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4864         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
4865         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
4866         use of regs.  Use power7 mtocrf.  Tidy function tails.
4867
4868 2013-10-04  Alan Modra  <amodra@gmail.com>
4869
4870         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
4871         Formatting.  Consistently use rXXX register defines or rN defines.
4872         Use early exit labels that avoid restoring unused non-volatile regs.
4873         Make cr field use more consistent with rWORDn compares.  Rename
4874         regs used as shift registers for unaligned loop, using rN defines
4875         for short lifetime/multiple use regs.
4876         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4877         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
4878         addi 1,1,64 to pop stack frame.  Simplify return value code.
4879         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4880
4881 2013-10-04  Alan Modra  <amodra@gmail.com>
4882
4883         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
4884         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
4885         rather than rlwimi.
4886         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
4887         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
4888         little-endian support.  Correct typos.
4889         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
4890         rather than rlwimi.
4891         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
4892         in loop and entry code to keep "and." results.
4893         (strchr): Add little-endian support.  Comment.  Move cntlzd
4894         earlier in tail.
4895         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
4896
4897 2013-10-04  Alan Modra  <amodra@gmail.com>
4898
4899         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
4900         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
4901         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
4902         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
4903
4904 2013-10-04  Alan Modra  <amodra@gmail.com>
4905
4906         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
4907         (rTMP): Define as r11.
4908         (strcmp): Add little-endian support.  Optimise tail.
4909         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
4910         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4911         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
4912         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
4913         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
4914         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4915         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
4916
4917 2013-10-04  Alan Modra  <amodra@gmail.com>
4918
4919         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
4920         little-endian support.  Remove unnecessary "are we done" tests.
4921         Handle "s" wrapping around zero and extremely large "size".
4922         Correct main loop count.  Handle single left-over word from main
4923         loop inline rather than by using small_loop.  Correct comments.
4924         Delete "zero" tail, use "end_max" instead.
4925         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
4926
4927 2013-10-04  Alan Modra  <amodra@gmail.com>
4928
4929         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
4930         support.  Don't branch over align.
4931         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
4932         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
4933         support.  Rearrange tmp reg use to suit.  Comment.
4934         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
4935
4936 2013-10-04  Alan Modra  <amodra@gmail.com>
4937
4938         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
4939
4940 2013-10-04  Alan Modra  <amodra@gmail.com>
4941
4942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
4943         conditional form of branch and link when obtaining pc.
4944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
4945
4946 2013-10-04  Alan Modra  <amodra@gmail.com>
4947
4948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
4949         HIWORD/LOWORD.
4950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
4951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
4952
4953 2013-10-04  Alan Modra  <amodra@gmail.com>
4954
4955         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
4956         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
4957         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
4958         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
4959         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
4960         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
4961         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
4962         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
4963         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
4964         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
4965
4966 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4967             Alistair Popple <alistair@ozlabs.au.ibm.com>
4968             Alan Modra <amodra@gmail.com>
4969
4970         [BZ #15723]
4971         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
4972         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
4973         _dl_hwcap access for little-endian.
4974         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
4975         destroy vmx regs when saving unaligned.
4976         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
4977         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
4978         destroy vmx regs when saving unaligned.
4979
4980 2013-10-04  Alan Modra  <amodra@gmail.com>
4981
4982         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
4983         Don't use a union to pack hi/low value.
4984
4985 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4986
4987         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
4988         for little-endian.
4989         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4990         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
4991         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
4992         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4993         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4994
4995 2013-10-04  Alan Modra  <amodra@gmail.com>
4996
4997         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
4998         constants to usual value for .cst8 section, and remove redundant
4999         high address load.
5000         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
5001         constant for 0x1p52.  Load little-endian words of double from
5002         correct stack offsets.
5003
5004 2013-10-04  Alan Modra  <amodra@gmail.com>
5005
5006         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
5007         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
5008         words of double from correct stack offsets.
5009         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
5010         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
5011         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
5012         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
5013         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
5014         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
5015         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
5016         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
5017         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
5018         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
5019         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
5020         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
5021         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5022         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5023         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5024         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
5025         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
5026
5027 2013-10-04  Alan Modra  <amodra@gmail.com>
5028
5029         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
5030         64-bit int/double union.
5031         (_FPU_SETCW): Likewise.
5032         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5033         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
5034
5035 2013-10-04  Alan Modra  <amodra@gmail.com>
5036
5037         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
5038         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
5039
5040 2013-10-04  Alan Modra  <amodra@gmail.com>
5041
5042         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
5043         use vector int constants.
5044         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
5045
5046 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5047
5048         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
5049         array with long long.
5050         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
5051         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
5052         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
5053         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
5054         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
5055         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
5056         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
5057         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
5058         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
5059         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
5060         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
5061         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
5062         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
5063
5064 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5065
5066         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
5067         (__signbit): Likewise.  Correct for little-endian.
5068         (__signbitl): Call __signbit.
5069         (lrint): Correct for little-endian.
5070         (lrintf): Call lrint.
5071
5072 2013-10-04  Alan Modra  <amodra@gmail.com>
5073
5074         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
5075         union 32-bit int array member with 64-bit int array.
5076         (t515, tm256): Double rather than long double.
5077         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
5078
5079 2013-10-04  Alan Modra  <amodra@gmail.com>
5080
5081         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
5082         Delete.
5083         (IEEE854_LONG_DOUBLE_BIAS): Delete.
5084         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
5085         version of math_ldbl.h.
5086
5087 2013-10-04  Alan Modra  <amodra@gmail.com>
5088
5089         [BZ #15734], [BZ #15735]
5090         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
5091         all uses of ieee875 long double macros and unions.  Simplify test
5092         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
5093         ldbl_extract_mantissa value for ix,iy exponents.  Properly
5094         normalize after ldbl_extract_mantissa, and don't add hidden bit
5095         already handled.  Don't treat low word of ieee854 mantissa like
5096         low word of IBM long double and mask off bit when testing for
5097         zero.
5098         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
5099         all uses of ieee875 long double macros and unions.  Simplify tests
5100         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
5101         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
5102         two1022, instead use their values.  Recognise that tests for large
5103         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
5104         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
5105         Rewrite all uses of ieee875 long double macros and unions.  Simplify
5106         test for 0.0L and nan.  Correct negation.
5107         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
5108         ieee875 long double macros and unions.  Correct output for large
5109         magnitude x.  Correct absolute value calculation.
5110         (__erfcl): Likewise.
5111         * math/libm-test.inc: Add tests for errors discovered in IBM long
5112         double versions of fmodl, remainderl, erfl and erfcl.
5113
5114 2013-10-04  Alan Modra  <amodra@gmail.com>
5115
5116         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
5117         all uses of ieee854 long double macros and unions.  Simplify tests
5118         for long doubles that are fully specified by the high double.
5119         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5120         Likewise.
5121         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
5122         Remove dead code too.
5123         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5124         (__ieee754_ynl): Likewise.
5125         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
5126         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
5127         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
5128         Remove dead code too.
5129         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
5130         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
5131         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
5132         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
5133         Simplify.
5134         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
5135         Simplify.
5136         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
5137         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
5138         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
5139         Comment on variable precision.
5140         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
5141         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5142         Likewise.
5143         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5144         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5145         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5146         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
5147         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
5148
5149 2013-10-04  Alan Modra  <amodra@gmail.com>
5150
5151         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
5152         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
5153         all uses of ieee854 long double macros and unions.
5154         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
5155         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5156         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
5157         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
5158         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
5159         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5160         Likewise.
5161         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
5162         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5163         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
5164         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5165         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
5166         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
5167         Simplify sign and nan test too.
5168         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
5169         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
5170         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
5171         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
5172         Likewise.
5173         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5174         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
5175         Likewise.
5176         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5177         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
5178         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
5179         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
5180         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
5181         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
5182
5183 2013-10-04  Alan Modra  <amodra@gmail.com>
5184
5185         * stdio-common/printf_size.c (__printf_size): Don't use
5186         union ieee854_long_double in fpnum union.
5187         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
5188         signbit macro to retrieve sign from long double.
5189         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
5190         retrieve sign from long double.
5191         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
5192         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
5193         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
5194         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5195         * math/test-misc.c (main): Don't use union ieee854_long_double.
5196
5197 2013-10-04  Alan Modra  <amodra@gmail.com>
5198
5199         [BZ #15680]
5200         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
5201         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5202         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
5203         calculation.  Remove unnecessary test for denormal exponent.
5204         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
5205         Correct handling of denormals.  Avoid undefined shift behaviour.
5206         Correct normalisation of low mantissa when low double is denormal.
5207         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
5208         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
5209         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
5210         Correct normalisation of low mantissa.  Test for overflow of high
5211         mantissa and normalise.
5212         (ldbl_nearbyint): Use more readable constant for two52.
5213         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5214         (__mpn_construct_long_double): Fix test for overflow of high
5215         mantissa and correct normalisation.  Avoid undefined shift.
5216
5217 2013-10-04  Alan Modra  <amodra@gmail.com>
5218
5219         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
5220         (union ibm_extended_long_double): Define as an array of ieee754_double.
5221         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
5222         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
5223         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
5224         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5225         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5226         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
5227         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
5228         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5229         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
5230         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
5231         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
5232
5233 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
5234
5235         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
5236         page size instead of calling getpagesize.
5237
5238         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
5239         (LOCFILE_ALIGN_MASK): Likewise.
5240         (LOCFILE_ALIGN_UP): Likewise.
5241         (LOCFILE_ALIGNED_P): Likewise.
5242         * locale/programs/ld-collate.c (collate_output): Use the new
5243         macros instead of __alignof__ (int32_t).
5244         * locale/weight.h (findidx): Likewise.
5245
5246 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
5247
5248         [BZ #431]
5249         * manual/string.texi: Fix strncat and wcsncat.
5250
5251 2013-10-03  Brooks Moses  <bmoses@google.com>
5252
5253         [BZ #15915]
5254         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
5255         * Makerules: ...here, and adjust associated comments.
5256
5257 2013-10-02  Will Newton  <will.newton@linaro.org>
5258
5259         * malloc/Makefile: Add tst-pvalloc.
5260         * malloc/tst-pvalloc.c: New file.
5261
5262 2013-10-02  Will Newton  <will.newton@linaro.org>
5263
5264         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
5265         improve test coverage.
5266
5267 2013-10-02  Will Newton  <will.newton@linaro.org>
5268
5269         * malloc/Makefile: Add tst-posix_memalign.
5270         * malloc/tst-posix_memalign.c: New file.
5271
5272 2013-10-01  Eric Blake  <eblake@redhat.com>
5273
5274         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
5275         Use __THROWNL rather than __THROW on static functions.
5276
5277 2013-09-30  Petr Machata  <pmachata@redhat.com>
5278
5279         * elf/elf.h (R_AARCH64_ABS16): New macro.
5280         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
5281         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
5282         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
5283         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
5284         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
5285         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
5286         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
5287         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
5288         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
5289         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
5290         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
5291         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
5292         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
5293         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
5294         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
5295         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
5296         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
5297         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
5298         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
5299         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
5300         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
5301         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
5302         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
5303         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
5304         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
5305         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
5306         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
5307         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
5308         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
5309         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
5310         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
5311         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
5312         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
5313         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
5314         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
5315         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
5316         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
5317         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
5318         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
5319         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
5320         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
5321         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
5322         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
5323         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
5324         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
5325         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
5326         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
5327         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
5328         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
5329         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
5330         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
5331         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
5332         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
5333         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
5334         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
5335         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
5336         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
5337         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
5338         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
5339         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
5340         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
5341         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
5342         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
5343         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
5344         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
5345         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
5346         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
5347         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
5348         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
5349         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
5350         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
5351         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
5352         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
5353         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
5354         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
5355         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
5356         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
5357         (R_AARCH64_TLSDESC_LDR): Likewise.
5358         (R_AARCH64_TLSDESC_ADD): Likewise.
5359         (R_AARCH64_TLSDESC_CALL): Likewise.
5360
5361 2013-09-30  Andreas Schwab  <schwab@suse.de>
5362
5363         [BZ #15048]
5364         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
5365         the nss database lookup.
5366         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5367         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5368
5369 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
5370
5371         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
5372
5373 2013-09-28  P. J. McDermott  <pj@pehjota.net>
5374
5375         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
5376         ${Bash-specific parameter/pattern/string} parameter expansion.
5377         * sysdeps/unix/make-syscalls.sh: Likewise.
5378
5379 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5380
5381         * sysdeps/sh/stackguard-macros.h: New file.
5382
5383 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
5384
5385         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
5386         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
5387         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
5388         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
5389         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5390         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
5391
5392 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5393
5394         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
5395         Fix thread ID register.
5396
5397 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
5398
5399         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
5400         [POSIX || UNIX98]: Require rather than permitting all symbols from
5401         <time.h>.
5402         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
5403         element of struct sched_param.
5404         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
5405         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
5406         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
5407         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
5408         constant.
5409
5410 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
5411
5412         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
5413         argument calculation.
5414
5415 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5416
5417         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
5418         Expect macro.
5419         [POSIX] (pthread_attr_t): Do not require type.
5420         [POSIX] (pthread_cond_t): Likewise.
5421         [POSIX] (pthread_condattr_t): Likewise.
5422         [POSIX] (pthread_key_t): Likewise.
5423         [POSIX] (pthread_mutex_t): Likewise.
5424         [POSIX] (pthread_mutexattr_t): Likewise.
5425         [POSIX] (pthread_once_t): Likewise.
5426         [POSIX] (pthread_t): Likewise.
5427         [POSIX-based standards] (pthread_atfork): Expect function.
5428
5429 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5430             Richard Sandiford  <richard@codesourcery.com>
5431
5432         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
5433         (swap_endianness_p): New extern variable.
5434         (set_big_endian): New inline function.
5435         (maybe_swap_uint32): Likewise.
5436         (maybe_swap_uint32_array): Likewise.
5437         (maybe_swap_uint32_obstack): Likewise.
5438         * locale/programs/locfile.c: Include <stdbool.h>.
5439         (swap_endianness_p): New variable.
5440         (add_locale_uint32): Call maybe_swap_uint32.
5441         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
5442         (write_locale_data): Call maybe_swap_uint32_array.
5443         * locale/programs/ld-collate.c (obstack_int32_grow): Call
5444         maybe_swap_uint32.
5445         (obstack_int32_grow_fast): Likewise.
5446         (output_weightwc): Call maybe_swap_uint32_obstack.
5447         (collate_output): Likewise.
5448         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
5449         (OPT_LITTLE_ENDIAN): Likewise.
5450         (options): Add --little-endian and --big-endian options.
5451         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
5452         * locale/programs/locarchive.c: Include "locfile.h".
5453         (GET): New macro.
5454         (SET): Likewise.
5455         (INC): Likewise.
5456         (create_archive): Use the new macros to access fields of
5457         structures directly mapped from or written to locale archives.
5458         (oldlocrecentcmp): Likewise.
5459         (enlarge_archive): Likewise.
5460         (insert_name): Likewise.
5461         (add_alias): Likewise.
5462         (add_locale): Likewise.
5463         (delete_locales_from_archive): Likewise.
5464         (show_archive_content): Likewise.
5465         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
5466         locale data.
5467
5468 2013-09-24  Roland McGrath  <roland@hack.frob.com>
5469
5470         * manual/freemanuals.texi: Updated from (newly) canonical copy at
5471         http://www.gnu.org/doc/freemanuals.texi.
5472         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
5473
5474 2013-09-24  Will Newton  <will.newton@linaro.org>
5475
5476         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
5477         macro.
5478
5479 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
5480
5481         * locale/hashval.h (compute_hashval): Interpret bytes of key as
5482         unsigned char.
5483
5484 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
5485
5486         * manual/threads.texi (POSIX Threads): Fix a typo.
5487
5488 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
5489
5490         [BZ #14547]
5491         * string/tst-strcoll-overflow.c: New test case.
5492         * string/Makefile (xtests): Add tst-strcoll-overflow.
5493         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
5494         cache if string sizes may cause integer overflow.
5495
5496         [BZ #14547]
5497         * string/strcoll_l.c (coll_seq): New members rule, idx,
5498         save_idx and back_us.
5499         (get_next_seq_nocache): New function.
5500         (do_compare_nocache): New function.
5501         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
5502         when malloc fails.
5503
5504 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
5505
5506         [BZ #15754]
5507         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
5508         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
5509         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
5510
5511         [BZ #15754]
5512         * elf/Makefile (tests): Add tst-ptrguard1.
5513         (tests-static): Add tst-ptrguard1-static.
5514         (tst-ptrguard1-ARGS): Define.
5515         (tst-ptrguard1-static-ARGS): Define.
5516         * elf/tst-ptrguard1.c: New file.
5517         * elf/tst-ptrguard1-static.c: New file.
5518         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
5519         * sysdeps/i386/stackguard-macros.h: Likewise.
5520         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5521         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5522         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5523         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5524         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5525         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5526
5527 2013-09-23  Hector Marco  <hecmargi@upv.es>
5528             Ismael Ripoll  <iripoll@disca.upv.es>
5529             Carlos O'Donell  <carlos@redhat.com>
5530
5531         [BZ #15754]
5532         * sysdeps/generic/stackguard-macros.h: Define
5533         __pointer_chk_guard_local and POINTER_CHK_GUARD.
5534         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
5535         Define __pointer_chk_guard_local.
5536         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
5537         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
5538
5539 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
5540
5541         [BZ #15859]
5542         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
5543
5544 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
5545
5546         * include/string.h (__ffs): Declare as hidden.
5547         * string/ffs.c (__ffs): Define as hidden.
5548         * sysdeps/i386/ffs.c (__ffs): Likewise.
5549         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
5550         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
5551         * sysdeps/s390/ffs.c (__ffs): Likewise.
5552         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
5553
5554 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
5555
5556         * NEWS: Mention malloc probes.
5557
5558         * malloc/arena.c (new_heap): New memory_heap_new probe.
5559         (grow_heap): New memory_heap_more probe.
5560         (shrink_heap): New memory_heap_less probe.
5561         (heap_trim): New memory_heap_free probe.
5562         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
5563         (systrim): New memory_sbrk_less probe.
5564         * manual/probes.texi: Document them.
5565
5566         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
5567         * manual/probes.texi: Document it.
5568
5569         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
5570         (__libc_realloc): Add memory_realloc_retry probe.
5571         (__libc_memalign): Add memory_memalign_retry probe.
5572         (__libc_valloc): Add memory_valloc_retry probe.
5573         (__libc_pvalloc): Add memory_pvalloc_retry probe.
5574         (__libc_calloc): Add memory_calloc_retry probe.
5575         * manual/probes.texi: Document them.
5576
5577         * malloc/arena.c (get_free_list): Add probe
5578         memory_arena_reuse_free_list.
5579         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
5580         and memory_arena_reuse.
5581         (arena_get2) [!PER_THREAD]: Likewise.
5582         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
5583         memory_arena_reuse_realloc.
5584         * manual/probes.texi: Document them.
5585
5586         * malloc/malloc.c (__libc_free): Add
5587         memory_mallopt_free_dyn_thresholds probe.
5588         (__libc_mallopt): Add multiple memory_mallopt probes.
5589         * manual/probes.texi: Document them.
5590
5591         * malloc/malloc.c: Include stap-probe.h.
5592         (__libc_mallopt): Add memory_mallopt probe.
5593         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
5594         * manual/probes.texi: New.
5595         * manual/Makefile (chapters): Add probes.
5596         * manual/threads.texi: Set next node.
5597
5598 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
5599
5600         [BZ #15963, #13985]
5601         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
5602         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
5603         Add `Chinese' to `nan' entry name.
5604
5605 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5606
5607         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
5608         (POLYNOMIAL): Likewise.
5609         (TAYLOR_SINCOS): Likewise.
5610         (TAYLOR_SLOW): Likewise.
5611         (__sin): Use TAYLOR_SINCOS.
5612         (__cos): Likewise.
5613         (slow): Use TAYLOR_SLOW.
5614         (sloww): Likewise.
5615         (bsloww): Likewise.
5616         (csloww): Likewise.
5617
5618 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5619
5620         * stdlib/strtod_l.c: Fix buffer overrun.
5621
5622 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5623
5624         * benchtests/Makefile (bench): Add sincos.
5625         * benchtests/bench-sincos.c: New file.
5626
5627         * math/libm-test.inc (cos_test_data): New test inputs.
5628         (sin_test_data): Likewise.
5629
5630         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
5631         macro.
5632         (__sin): Use it.
5633         (__cos): Likewise.
5634         (slow1): Likewise.
5635         (slow2): Likewise.
5636         (sloww1): Likewise.
5637         (sloww2): Likewise.
5638         (bsloww1): Likewise.
5639         (bsloww2): Likewise.
5640         (cslow2): Likewise.
5641         (csloww1): Likewise.
5642         (csloww2): Likewise.
5643
5644         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
5645         function.
5646         (__sin): Use it.
5647         (__cos): Likewise.
5648
5649         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
5650         gotos.
5651         (__cos): Likewise.
5652
5653 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
5654
5655         * config.h.in (HAVE_MIPS_NAN2008): New macro.
5656         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
5657         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
5658         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
5659         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
5660         * elf/cache.c (print_entry): Handle the new cache flags.
5661
5662 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5663             Aldy Hernandez  <aldyh@redhat.com>
5664
5665         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
5666         Change condition to [_SOFT_FLOAT].
5667         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
5668         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
5669         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
5670         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
5671         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
5672         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
5673         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
5674         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
5675         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
5676         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
5677         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
5678         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
5679         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
5680         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
5681         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
5682         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
5683         declaration.
5684
5685 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5686
5687         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
5688         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5689         (__longjmp): Use LOAD_GP to load saved GPRs.
5690         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
5691         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5692         (__sigsetjmp): Use SAVE_GP to save GPRs.
5693
5694         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
5695         Do not append -msoft-float.
5696         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
5697
5698 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5699
5700         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
5701
5702 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
5703
5704         [BZ #15966]
5705         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
5706         (_FPU_GETCW): Use initial "__" on variable and field names but not
5707         on macro parameter name.
5708         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
5709         parentheses around reference to macro parameter.
5710
5711 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
5712
5713         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
5714         prototype.
5715         (ctype_startup): Use uint32_t in cast and sizeof for
5716         ctype->charnames.
5717
5718 2013-09-11  Jia Liu  <proljc@gmail.com>
5719
5720         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
5721         __daddr_t_defined.
5722         [__FreeBSD__]: Likewise.
5723
5724 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
5725
5726         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
5727         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
5728         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
5729         (strchr): Remove __strchr_sse42 ifunc selection.
5730         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
5731         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
5732
5733 2013-09-11  Will Newton  <will.newton@linaro.org>
5734
5735         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
5736         parameter to RES. Remove hardcoded 1000 value.
5737         * benchtests/bench-skeleton.c (main): Pass RES parameter
5738         to TIMING_INIT and multiply result by 1000.
5739
5740 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5741
5742         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5743
5744 2013-09-11  Andreas Schwab  <schwab@suse.de>
5745
5746         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
5747         if not defined.
5748         (O_TMPFILE) [__USE_GNU]: Define.
5749         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
5750         Define.
5751
5752 2013-09-11  Will Newton  <will.newton@linaro.org>
5753
5754         [BZ #15857]
5755         * malloc/malloc.c (__libc_memalign): Check the value of bytes
5756         does not overflow.
5757
5758 2013-09-11  Will Newton  <will.newton@linaro.org>
5759
5760         [BZ #15856]
5761         * malloc/malloc.c (__libc_valloc): Check the value of bytes
5762         does not overflow.
5763
5764 2013-09-11  Will Newton  <will.newton@linaro.org>
5765
5766         [BZ #15855]
5767         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
5768         does not overflow.
5769
5770 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
5771
5772         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
5773         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5774         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5775         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5776         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5777
5778 2013-09-10  Allan McRae  <allan@archlinux.org>
5779
5780         [BZ #15748]
5781         * manual/arith.texi (Parsing of Floats): Clarify
5782         cross-reference.
5783
5784         [BZ #15849]
5785         * manual/install.texi (Running make install): Mention
5786         --enable-pt-chown.
5787         * INSTALL: Regenerated.
5788
5789 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
5790
5791         * csu/init-first.c (_init): Remove the !SHARED condition around
5792         FPU control word initialization.
5793         * elf/dl-support.c (_dl_fpu_control): New variable.
5794         (_dl_aux_init) <AT_FPUCW>: Initialize it.
5795         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
5796         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
5797         * math/test-fpucw-static.c: New file.
5798         * math/test-fpucw-ieee.c: New file.
5799         * math/test-fpucw-ieee-static.c: New file.
5800         * math/Makefile (tests): Add `test-fpucw-ieee' and
5801         `$(tests-static)'.
5802         (tests-static): New variable.
5803         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
5804         dependency to...
5805         [($(build-shared),yes)]
5806         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
5807         ... this.
5808         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
5809         New dependency.
5810
5811 2013-09-09  Allan McRae  <allan@archlinux.org>
5812
5813         [BZ #15939]
5814         * manual/string.texi (Collation Functions): Fix typo in
5815         strcoll example.
5816         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
5817
5818         [BZ #15893]
5819         * stdlib/isomac.c (get_null_defines): Fix memory leak.
5820
5821         [BZ #15892]
5822         * libio/memstream.c (open_memstream): Fix memory leak.
5823         * libio/wmemstream.c (open_wmemstream): Likewise.
5824
5825         [BZ #15895]
5826         * nscd/netgroupcache.c: Fix nesting of ifdefs.
5827
5828 2013-09-09  Will Newton  <will.newton@linaro.org>
5829
5830         * malloc/Makefile: Add tst-realloc to tests.
5831         * malloc/tst-realloc.c: New file.
5832
5833 2013-09-09  Allan McRae  <allan@archlinux.org>
5834
5835         [BZ #15844]
5836         * COPYING: Update from GNU website to fix FSF address.
5837         * COPYING.LIB: Likewise.
5838
5839 2013-09-06  David S. Miller  <davem@davemloft.net>
5840
5841         * po/zh_TW.po: Update Chinese (traditional) translation from
5842         translation project.
5843
5844 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
5845             Joseph Myers  <joseph@codesourcery.com>
5846
5847         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
5848         "localeinfo.h".
5849         (obstack_chunk_alloc): New macro.
5850         (obstack_chunk_free): Likewise.
5851         (record_offset): New function.
5852         (init_locale_data): Likewise.
5853         (align_locale_data): Likewise.
5854         (add_locale_empty): Likewise.
5855         (add_locale_raw_data): Likewise.
5856         (add_locale_raw_obstack): Likewise.
5857         (add_locale_string): Likewise.
5858         (add_locale_wstring): Likewise.
5859         (add_locale_uint32): Likewise.
5860         (add_locale_uint32_array): Likewise.
5861         (add_locale_char): Likewise.
5862         (start_locale_structure): Likewise.
5863         (end_locale_structure): Likewise.
5864         (start_locale_prelude): Likewise.
5865         (end_locale_prelude): Likewise.
5866         (write_locale_data): Take locale_file structure rather than an
5867         iovec.
5868         * locale/programs/locfile.h: Include "obstack.h".
5869         (struct locale_file): Change to store locale file contents instead
5870         of header.
5871         (init_locale_data): New prototype.
5872         (align_locale_data): Likewise.
5873         (add_locale_empty): Likewise.
5874         (add_locale_raw_data): Likewise.
5875         (add_locale_raw_obstack): Likewise.
5876         (add_locale_string): Likewise.
5877         (add_locale_wstring): Likewise.
5878         (add_locale_uint32): Likewise.
5879         (add_locale_uint32_array): Likewise.
5880         (add_locale_char): Likewise.
5881         (start_locale_structure): Likewise.
5882         (end_locale_structure): Likewise.
5883         (start_locale_prelude): Likewise.
5884         (end_locale_prelude): Likewise.
5885         (write_locale_data): Update prototype.
5886         * locale/programs/3level.h (struct TABLE): Remove result field.
5887         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
5888         Use new locale_file interface.
5889         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
5890         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
5891         * locale/programs/ld-address.c (address_output): Use new
5892         locale_file interface.
5893         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
5894         NO_ADD_LOCALE.
5895         (collate_finish): Don't call collseq_table_finalize.
5896         (collate_output): Use new locale_file interface.
5897         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
5898         in file.
5899         (NO_FINALIZE): Change to NO_ADD_LOCALE.
5900         (TABLE): Move defines earlier in file.
5901         (ELEMENT): Likewise.
5902         (DEFAULT): Likewise.
5903         (wctrans_table_add): Move macro and inline function earlier in
5904         file.
5905         (struct wctype_table): Move type earlier in file.
5906         (add_locale_wctype_table): New static prototype.
5907         (struct locale_ctype_t): Use logical types instead of struct iovec
5908         pointers for members.
5909         (ctype_output): Use new locale_file interface.
5910         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
5911         new locale_file interface.
5912         (allocate_arrays): Update for use of new locale_file interface.
5913         * locale/programs/ld-identification.c (identification_output): Use
5914         new locale_file interface.
5915         * locale/programs/ld-measurement.c (measurement_output): Likewise.
5916         * locale/programs/ld-messages.c (messages_output): Likewise.
5917         * locale/programs/ld-monetary.c (monetary_output): Likewise.
5918         * locale/programs/ld-name.c (name_output): Likewise.
5919         * locale/programs/ld-numeric.c (numeric_output): Likewise.
5920         * locale/programs/ld-paper.c (paper_output): Likewise.
5921         * locale/programs/ld-telephone.c (telephone_output): Likewise.
5922         * locale/programs/ld-time.c (time_output): Likewise.
5923
5924 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5925
5926         * benchtests/Makefile: Add memrchr benchmark.
5927         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
5928         benchmark as memrchr.
5929         * benchtests/bench-memrchr-ifunc.c: New file.
5930         * benchtests/bench-memrchr.c: New file.
5931
5932 2013-09-06   Will Newton  <will.newton@linaro.org>
5933
5934         * benchtests/Makefile (string-bench): Add memcpy.
5935
5936 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
5937             Cong Wang  <amwang@redhat.com>
5938
5939         [BZ #15850]
5940         * sysdeps/unix/sysv/linux/bits/in.h
5941         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
5942         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
5943         before __USE_KERNEL_IPV6_DEFS uses.
5944         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
5945         IPPROTO_BEETPH.
5946         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
5947         sockaddr_in6, or ipv6_mreq.
5948
5949 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5950
5951         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
5952         memory access for final bytes in some large inputs.
5953         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
5954
5955 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5956
5957         * string/test-memrchr.c: New file.
5958         * string/test-memrchr-ifunc.c: New file.
5959         * string/Makefile: Add new memrchr testcase.
5960
5961 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
5962
5963         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
5964         fanotify_init returns EPERM.
5965
5966 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
5967
5968         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
5969         errors.
5970         (top level): Treat second token from macro or constant entries for
5971         allowed headers as allowed.
5972         * include/complex.h: Condition internal declarations on
5973         [!_ISOMAC].
5974         * include/fenv.h: Condition include of <stdbool.h> and internal
5975         declarations on [!_ISOMAC].
5976
5977 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
5978
5979         [BZ #15923]
5980         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
5981
5982 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
5983
5984         * configure.in (--enable-versioning): Remove configure option.
5985         (libc_cv_asm_symver_directive): Remove configure test.
5986         (libc_cv_ld_version_script_option): Likewise.
5987         (VERSIONING): Remove variable and AC_SUBST.
5988         (DO_VERSIONING): Remove AC_DEFINE.
5989         * configure: Regenerated.
5990         * config.h.in (DO_VERSIONING): Remove macro.
5991         * Makerules [$(versioning) = yes]: Change conditionals to
5992         [$(build-shared) = yes].
5993         * config.make.in (versioning): Remove variable.
5994         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
5995         [$(build-shared) = yes].
5996         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
5997         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
5998         * elf/Makefile [$(versioning) = yes]: Change conditionals to
5999         [$(build-shared) = yes].
6000         * extra-lib.mk [$(versioning) = yes]: Likewise.
6001         * hurd/Makefile [$(versioning) = yes]: Likewise.
6002         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
6003         [SHARED].
6004         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
6005         [SHARED].
6006         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6007         [SHARED && !NO_HIDDEN].
6008         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
6009         [SHARED].
6010         [SHARED && DO_VERSIONING]: Likewise..
6011         * libio/Makefile [$(versioning) = yes]: Change conditionals to
6012         [$(build-shared) = yes].
6013         * manual/install.texi (--disable-versioning): Remove
6014         documentation.
6015         * INSTALL: Regenerated.
6016         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
6017         to [SHARED].
6018         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
6019         [$(build-shared) = yes].
6020         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
6021         * sysdeps/i386/i686/multiarch/strstr-c.c
6022         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6023         [SHARED && !NO_HIDDEN].
6024         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
6025         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
6026         * sysdeps/powerpc/powerpc32/dl-machine.c
6027         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
6028         * sysdeps/powerpc/powerpc32/sysdep.h
6029         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
6030         to [SHARED && PIC && !NO_HIDDEN].
6031         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
6032         conditional to [SHARED].
6033
6034 2013-09-04   Will Newton  <will.newton@linaro.org>
6035
6036         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
6037         * benchtests/bench-string.h: Include bench-timing.h instead
6038         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
6039         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
6040         call to HP_TIMING_DIFF_INIT.
6041         * benchtests/bench-memccpy.c: Use bench-timing.h macros
6042         instead of hp-timing.h macros.
6043         * benchtests/bench-memchr.c: Likewise.
6044         * benchtests/bench-memcmp.c: Likewise.
6045         * benchtests/bench-memcpy.c: Likewise.
6046         * benchtests/bench-memmem.c: Likewise.
6047         * benchtests/bench-memmove.c: Likewise.
6048         * benchtests/bench-memset.c: Likewise.
6049         * benchtests/bench-rawmemchr.c: Likewise.
6050         * benchtests/bench-strcasecmp.c: Likewise.
6051         * benchtests/bench-strcasestr.c: Likewise.
6052         * benchtests/bench-strcat.c: Likewise.
6053         * benchtests/bench-strchr.c: Likewise.
6054         * benchtests/bench-strcmp.c: Likewise.
6055         * benchtests/bench-strcpy.c: Likewise.
6056         * benchtests/bench-strcpy_chk.c: Likewise.
6057         * benchtests/bench-strlen.c: Likewise.
6058         * benchtests/bench-strncasecmp.c: Likewise.
6059         * benchtests/bench-strncat.c: Likewise.
6060         * benchtests/bench-strncmp.c: Likewise.
6061         * benchtests/bench-strncpy.c: Likewise.
6062         * benchtests/bench-strnlen.c: Likewise.
6063         * benchtests/bench-strpbrk.c: Likewise.
6064         * benchtests/bench-strrchr.c: Likewise.
6065         * benchtests/bench-strspn.c: Likewise.
6066         * benchtests/bench-strstr.c: Likewise.
6067
6068 2013-09-04  Will Newton  <will.newton@linaro.org>
6069
6070         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
6071
6072 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
6073
6074         [BZ #15427]
6075         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
6076         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
6077         * math/libm-test.inc (lgamma_test_data): Add more tests.
6078         * sysdeps/i386/fpu/libm-test-ulps: Update.
6079         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6080
6081 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
6082
6083         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
6084         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
6085         Add ifunc.
6086         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
6087         Add strcmp-sse2-unaligned
6088         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
6089
6090 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6091
6092         * Versions.def (libc): Add GLIBC_2.19.
6093
6094 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6095
6096         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
6097         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
6098
6099 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
6100
6101         [BZ #14155]
6102         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
6103         intermediate calculations in recurrence.
6104         (__ieee754_ynf): Likewise.
6105         * math/libm-test.inc (jn_test_data): Do not allow spurious
6106         underflow exception.  Add more tests.
6107         (yn_test_data): Add more tests.
6108         * sysdeps/i386/fpu/libm-test-ulps: Update.
6109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6110
6111 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
6112
6113         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
6114
6115 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6116
6117         * csu/init-first.c: Fix then/than typos.
6118         * locale/programs/ld-collate.c: Likewise.
6119         * locale/programs/linereader.h: Likewise.
6120         * manual/charset.texi: Likewise.
6121         * manual/filesys.texi: Likewise.
6122         * manual/stdio.texi: Likewise.
6123         * manual/string.texi: Likewise.
6124         * stdlib/fmtmsg.c: Likewise.
6125         * sysdeps/i386/stpncpy.S: Likewise.
6126         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6127         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
6128         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6129         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6130
6131 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6132
6133         * elf/dl-open.c: Fix typos.
6134         * iconvdata/gbbig5.c: Likewise.
6135         * iconvdata/iso-2022-jp.c: Likewise.
6136         * iconv/gconv_int.h: Likewise.
6137         * iconv/loop.c: Likewise.
6138         * nis/rpcsvc/nis.h: Likewise.
6139         * resolv/ns_name.c: Likewise.
6140         * stdio-common/vfscanf.c: Likewise.
6141         * streams/stropts.h: Likewise.
6142         * sunrpc/rpc_thread.c: Likewise.
6143         * sysdeps/i386/strpbrk.S: Likewise.
6144         * sysdeps/ieee754/k_standard.c: Likewise.
6145         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6146         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6147         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6148         * sysdeps/mach/hurd/profil.c: Likewise.
6149         * sysdeps/s390/dl-procinfo.h: Likewise.
6150         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6151         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6152         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6153         * sysdeps/x86_64/dl-trampoline.S: Likewise.
6154         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6155
6156 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
6157
6158         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
6159         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
6160
6161 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
6162
6163         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
6164         aix specific files.
6165         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
6166         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
6167         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
6168         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
6169         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
6170         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
6171         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
6172         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
6173
6174 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6175             Roland McGrath  <roland@hack.frob.com>
6176
6177         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
6178         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6179
6180 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6181
6182         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
6183         __executable_start symbol instead of _start.
6184
6185 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6186
6187         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
6188         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
6189         Move macros to...
6190         * sysdeps/gnu/ldsodefs.h: ... this new file.
6191
6192         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
6193         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
6194         instead of ELFOSABI_LINUX.
6195
6196         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
6197         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
6198         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
6199         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
6200         Likewise.
6201         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
6202         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
6203         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
6204         Likewise.
6205         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
6206         (ibm_extended_long_double): Add ieee_nan member.
6207         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
6208         (do_test): New function.
6209
6210         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
6211         TEST_TRUNC.
6212         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
6213         functions, renamed from truncdfsf_test, trunctfsf_test,
6214         trunctfdf_test.
6215         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
6216         functions.
6217         (do_test): Run all these.
6218
6219 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
6220
6221         * argp/argp-help.c: Fix typos.
6222         * argp/argp-parse.c: Likewise.
6223         * debug/backtracesyms.c: Likewise.
6224         * elf/elf.h: Likewise.
6225         * malloc/malloc.c: Likewise.
6226         * nis/nis_print.c: Likewise.
6227         * resolv/res_comp.c: Likewise.
6228         * stdlib/stdlib.h: Likewise.
6229         * sunrpc/clnt_tcp.c: Likewise.
6230         * sunrpc/clnt_udp.c: Likewise.
6231         * sunrpc/clnt_unix.c: Likewise.
6232         * sysdeps/unix/bsd/ptsname.c: Likewise.
6233         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6234         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
6235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
6236         Likewise.
6237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
6238         Likewise.
6239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
6240         Likewise.
6241         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
6242
6243 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6244
6245         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
6246         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
6247
6248 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
6249
6250         [BZ #15897]
6251         * dlfcn/Makefile (tests): Add bug-dl-leaf.
6252         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
6253         ($(objpfx)bug-dl-leaf): New rule.
6254         ($(objpfx)bug-dl-leaf.so): Likewise.
6255         ($(objpfx)bug-dl-leaf.out): Likewise.
6256         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
6257         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
6258         * dlfcn/bug-dl-leaf.c: New test.
6259         * dlfcn/bug-dl-leaf-lib.c: Likewise.
6260         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
6261         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
6262         (dlclose): Likewise.
6263         (dlmopen): Likewise.
6264
6265 2013-08-27  Roland McGrath  <roland@hack.frob.com>
6266
6267         * include/netdb.h [!_ISOMAC]:
6268         Don't include <tls.h>.
6269         (h_errno, __libc_h_errno): Move declaration and macros out of
6270         [_LIBC_REENTRANT].
6271
6272         * include/resolv.h [_RESOLV_H_]:
6273         Don't include <tls.h>.
6274         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
6275         * resolv/res_libc.c: Don't include <tls.h>.
6276         (_res): Use __attribute__ ((nocommon)) in place of
6277         __attribute__ ((section (".bss"))).
6278
6279         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
6280         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
6281
6282         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
6283
6284         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
6285         only under [SIOCGIFCONF && SIOCGIFNETMASK].
6286
6287         * resolv/res_mkquery.c: Include <sys/time.h>.
6288
6289         * inet/ifreq.c: Moved to ...
6290         * sysdeps/unix/ifreq.c: ... here.
6291         * inet/ifreq.c: New file, true stub version.
6292
6293         * socket/sa_len.c: New file.
6294         * socket/Makefile (aux): Add it.
6295         * sysdeps/unix/sysv/linux/Makefile
6296         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
6297         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
6298         and #include <socket/sa_len.c>.
6299         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
6300         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
6301
6302         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
6303         * bits/socket.h: ... here.
6304
6305         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
6306         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
6307         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
6308
6309 2013-08-27  Andreas Schwab  <schwab@suse.de>
6310
6311         [BZ #15736]
6312         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
6313         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
6314         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
6315         * string/test-strcasecmp.c (test_main): Run tests in several
6316         locales.
6317         * string/test-strncasecmp.c (test_main): Likewise.
6318
6319         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
6320         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
6321         to __strcasecmp_nonascii and __strncasecmp_nonascii.
6322         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
6323         (__strncasecmp_ssse3) [PIC]: Likewise.
6324
6325 2013-08-26  Roland McGrath  <roland@hack.frob.com>
6326
6327         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
6328
6329         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
6330         instead of explicitly declaring xdecrypt.
6331         * nis/nss_nis/nis-publickey.c: Likewise.
6332
6333 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6334
6335         [BZ #15890]
6336         * nscd/aicache.c: Include res_hconf.h.
6337         (addhstaiX): Initialize res_hconf.
6338
6339 2013-08-26  Andreas Schwab  <schwab@suse.de>
6340
6341         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
6342         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
6343
6344 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6345
6346         * nscd/aicache.c (addhstaiX): Fix indentation.
6347
6348 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
6349
6350         * configure.ac: Quote $build_pt_chown test.
6351         * configure: Regenerated.
6352
6353 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
6354
6355         [BZ #15532]
6356         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
6357         * math/s_cexpf.c (__cexpf): Likewise.
6358         * math/s_cexpl.c (__cexpl): Likewise.
6359         * math/libm-test.inc (cexp_test_data): Correct expected return
6360         value for NaN + i0.  Add another test.
6361
6362 2013-08-22  David S. Miller  <davem@davemloft.net>
6363
6364         * po/ca.po: Update Catalan translation from translation project.
6365         * po/uk.po: Add Ukrainian translations from translation project.
6366
6367 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
6368
6369         [BZ #15797]
6370         * math/s_fdim.c (__fdim): Check for infinite arguments if result
6371         is infinite, not alongside NaN test.
6372         * math/s_fdimf.c (__fdimf): Likewise.
6373         * math/s_fdiml.c (__fdiml): Likewise.
6374         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
6375         errno is unchanged.
6376
6377 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
6378
6379         * argp/argp-help.c: Fix typos.
6380         * crypt/speeds.c: Likewise.
6381         * csu/check_fds.c: Likewise.
6382         * elf/dl-load.c: Likewise.
6383         * elf/dl-open.c: Likewise.
6384         * elf/reldep3.c: Likewise.
6385         * elf/reldep.c: Likewise.
6386         * elf/sprof.c: Likewise.
6387         * iconv/iconv_charmap.c: Likewise.
6388         * iconv/skeleton.c: Likewise.
6389         * iconv/strtab.c: Likewise.
6390         * io/lockf64.c: Likewise.
6391         * libio/libioP.h: Likewise.
6392         * resolv/gai_notify.c: Likewise.
6393         * resolv/ns_name.c: Likewise.
6394         * resolv/ns_samedomain.c: Likewise.
6395         * resolv/res_send.c: Likewise.
6396         * stdlib/random.c: Likewise.
6397         * sunrpc/rpc/xdr.h: Likewise.
6398         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
6399         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
6400         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6401         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6402         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6403         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
6404         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
6405         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6406         * sysdeps/mach/hurd/check_fds.c: Likewise.
6407         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
6408         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6409         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6410         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
6411         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6412         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
6413         * sysdeps/pthread/aio_notify.c: Likewise.
6414         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6415         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
6416         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
6417         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6418         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
6419
6420 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6421
6422         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
6423         version if bit_Slow_SSE4_2 is set.
6424         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6425         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6426
6427 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6428
6429         [BZ #15867]
6430         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
6431         trampoline stack frame information.
6432         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
6433         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
6434         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
6435         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
6436         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
6437         * sysdeps/unix/sysv/linux/powerpc/init-first.c
6438         (_libc_vdso_platform_setup): Initialize the signal trampolines.
6439         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
6440         sa_flags value.
6441         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
6442         interrupting a syscall and set with option SA_SIGINFO.
6443
6444 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6445
6446         [BZ #15531]
6447         * math/s_cproj.c (__cproj): Only return an infinity if one part of
6448         argument is infinite.
6449         * math/s_cprojf.c (__cprojf): Likewise.
6450         * math/s_cprojl.c (__cprojl): Likewise.
6451         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
6452         * math/libm-test.inc (cproj_test_data): Add more tests.
6453
6454         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
6455
6456         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
6457         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
6458         size.  Use __ffs to determine corresponding shift.
6459
6460 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6461             Roland McGrath  <roland@hack.frob.com>
6462
6463         * Makefile (INSTALL): Remove trailing blank lines from output of
6464         makeinfo.
6465
6466 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6467
6468         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
6469         Align 32 bit compat elf_greg to 8 bytes.
6470
6471 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6472
6473         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
6474
6475 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6476
6477         * string/strcoll_l.c (coll_seq): New structure.
6478         (get_next_seq_cached): New function.
6479         (get_next_seq): New function.
6480         (do_compare): New function.
6481         (STRCOLL): Use GNU style definition.  Simplify implementation
6482         by using get_next_seq, get_next_seq_cached and do_compare.
6483
6484 2013-08-16  Florian Weimer  <fweimer@redhat.com>
6485
6486         [BZ #14699]
6487         CVE-2013-4237
6488         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
6489         member.
6490         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
6491         member.
6492         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
6493         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
6494         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
6495         conditional.
6496         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
6497         GETDENTS_64BIT_ALIGNED.
6498         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6499         * manual/filesys.texi (Reading/Closing Directory): Document
6500         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
6501         strongly.
6502         * manual/conf.texi (Limits for Files): Add portability note to
6503         NAME_MAX, PATH_MAX.
6504         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
6505
6506 2013-08-13  Andreas Schwab  <schwab@suse.de>
6507
6508         [BZ #15749]
6509         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
6510         of fabs.
6511         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
6512         LDBL_MAX_EXP >= 16384]: Add tests for it.
6513
6514 2013-08-12  David S. Miller  <davem@davemloft.net>
6515
6516         * version.h (RELEASE): Set to "development".
6517         (VERSION): Set to "2.18.90".
6518         * NEWS: Add 2.19 section.
6519
6520 2013-08-03  David S. Miller  <davem@davemloft.net>
6521
6522         * po/ko.po: Update Korean translation from translation project.
6523
6524 2013-08-01  David S. Miller  <davem@davemloft.net>
6525
6526         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
6527         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
6528         Bilka.
6529
6530 2013-07-30  David S. Miller  <davem@davemloft.net>
6531
6532         * po/fr.po: Update French translation from translation project.
6533
6534 2013-07-28  David S. Miller  <davem@davemloft.net>
6535
6536         * po/cs.po: Update Czech translation from translation project.
6537
6538         * po/sv.po: Update Swedish translation from translation project.
6539
6540 2013-07-27  David S. Miller  <davem@davemloft.net>
6541
6542         * po/eo.po: Update Esperanto translation from translation project.
6543
6544         * po/vi.po: Update Vietnamese translation from translation project.
6545
6546         * po/de.po: Update German translation from translation project.
6547
6548 2013-07-26  David S. Miller  <davem@davemloft.net>
6549
6550         * po/bg.po: Update Bulgarian translation from translation project.
6551
6552         * po/nl.po: Update Dutch translation from translation project.
6553         * po/pl.po: Update Polish translation from translation project.
6554         * po/ru.po: Update Russian translation from translation project.
6555
6556 2013-07-24  David S. Miller  <davem@davemloft.net>
6557
6558         * po/libc.pot: Update.
6559
6560 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6561
6562         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
6563         variable page size.
6564         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
6565         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
6566         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
6567
6568 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6569
6570         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
6571
6572 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6573             Andreas Schwab  <schwab@suse.de>
6574             Roland McGrath  <roland@hack.frob.com>
6575             Joseph Myers  <joseph@codesourcery.com>
6576             Carlos O'Donell  <carlos@redhat.com>
6577
6578         [BZ #15755]
6579         * config.h.in: Define HAVE_PT_CHOWN.
6580         * config.make.in (build-pt-chown): New variable.
6581         * configure.in (--enable-pt_chown): New configure option.
6582         * configure: Regenerate.
6583         * login/Makefile: Include Makeconfig.  Build pt_chown only if
6584         build-pt-chown is enabled.
6585         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
6586         pt_chown to fix pty ownership.
6587         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
6588         CLOSE_ALL_FDS.
6589         * manual/install.texi (Configuring and compiling): Mention
6590         --enable-pt_chown. Add @findex for grantpt.
6591         * INSTALL: Regenerate.
6592
6593 2013-07-20  David S. Miller  <davem@davemloft.net>
6594
6595         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
6596         difference between 32-bit and 64-bit.
6597
6598 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
6599
6600         [BZ #15711]
6601         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
6602         Avoid system header dependency with -ffreestanding.
6603         ($(objpfx)bits/syscall%d): Likewise.
6604
6605 2013-07-13  David S. Miller  <davem@davemloft.net>
6606
6607         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
6608         underflows from atanl/atan2l due to bug 15319.
6609         (casinh_test_data): Likewise.
6610
6611 2013-07-07  David S. Miller  <davem@davemloft.net>
6612
6613         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
6614
6615 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
6616
6617         * sysdeps/i386/fpu/libm-test-ulps: Update.
6618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6619
6620 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6621
6622         * configure.in (--enable-lock-elision): Fix message text.
6623         * INSTALL: Regenerate.
6624         * configure: Regenerate.
6625
6626 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6627
6628         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6629
6630 2013-07-03  Andreas Jaeger  <aj@suse.de>
6631
6632         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
6633         define.
6634         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
6635         (ptrace_peeksiginfo_args): Add.
6636         (__ptrace_peeksiginfo_flags): Add.
6637         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6638         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6639         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6640
6641 2013-07-03  Allan McRae  <allan@archlinux.org>
6642
6643         * sysdeps/i386/fpu/libm-test-ulps: Update.
6644
6645 2013-07-02  David S. Miller  <davem@davemloft.net>
6646
6647         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6648
6649 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
6650
6651         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6652
6653 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6654
6655         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6657
6658 2013-07-02  Andi Kleen <ak@linux.intel.com>
6659
6660         * config.h.in (ENABLE_LOCK_ELISION): Add.
6661         * configure.in (--enable-lock-elision): Add option.
6662         * manual/install.texi: Document --enable lock elision.
6663         * configure: Regenerate
6664         * INSTALL: Regenerate.
6665
6666 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
6667
6668         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
6669         SSE4.2 strcasecmp for libc.a.
6670         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
6671
6672 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6673
6674         [BZ #13304]
6675         * soft-fp/op-common.h (_FP_FMA): New macro.
6676         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
6677         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
6678         (_FP_MUL_MEAT_1_imm): ... here.
6679         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
6680         (_FP_MUL_MEAT_1_wide): ... here.
6681         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
6682         (_FP_MUL_MEAT_1_hard): ... here.
6683         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
6684         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
6685         (_FP_MUL_MEAT_2_wide): ... here.
6686         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
6687         (_FP_MUL_MEAT_2_wide_3mul): ... here.
6688         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
6689         (_FP_MUL_MEAT_2_gmp): ... here.
6690         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
6691         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
6692         (_FP_MUL_MEAT_4_wide): ... here.
6693         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
6694         (_FP_MUL_MEAT_4_gmp): ... here.
6695         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
6696         (_FP_WFRACBITS_DW_S): Likewise.
6697         (_FP_WFRACXBITS_DW_S): Likewise.
6698         (_FP_HIGHBIT_DW_S): Likewise.
6699         (FP_FMA_S): Likewise.
6700         (_FP_FRAC_HIGH_DW_S): Likewise.
6701         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
6702         (_FP_WFRACBITS_DW_D): Likewise.
6703         (_FP_WFRACXBITS_DW_D): Likewise.
6704         (_FP_HIGHBIT_DW_D): Likewise.
6705         (FP_FMA_D): Likewise.
6706         (_FP_FRAC_HIGH_DW_D): Likewise.
6707         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
6708         (_FP_WFRACBITS_DW_E): Likewise.
6709         (_FP_WFRACXBITS_DW_E): Likewise.
6710         (_FP_HIGHBIT_DW_E): Likewise.
6711         (FP_FMA_E): Likewise.
6712         (_FP_FRAC_HIGH_DW_E): Likewise.
6713         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
6714         (_FP_WFRACBITS_DW_Q): Likewise.
6715         (_FP_WFRACXBITS_DW_Q): Likewise.
6716         (_FP_HIGHBIT_DW_Q): Likewise.
6717         (FP_FMA_Q): Likewise.
6718         (_FP_FRAC_HIGH_DW_Q): Likewise.
6719         * soft-fp/fmasf4.c: New file.
6720         * soft-fp/fmadf4.c: Likewise.
6721         * soft-fp/fmatf4.c: Likewise.
6722
6723 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6724
6725         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
6726         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
6727         Silvermont.
6728         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
6729         macro.
6730         (index_Slow_SSE4_2): Likewise.
6731         (index_Prefer_PMINUB_for_stringop): Likewise.
6732         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
6733         bit_Slow_SSE4_2 is set.
6734         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
6735         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
6736
6737 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6738
6739         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
6740         rtld_global._dl_hwcap2.
6741         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
6742         POWER8.
6743         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
6744         POWER8 feature descriptions defined in _dl_hwcap2.
6745         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
6746         string handling for POWER8 feature bits.
6747         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
6748         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
6749         _dl_powerpc_cap_flags.
6750         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
6751         * sysdeps/powerpc/rtld-global-offsets.sym
6752         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
6753         _dl_hwcap2 in the rtld_global_ro structure.
6754
6755 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6756
6757         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
6758         hardware capabilities in support of AT_HWCAP2.
6759         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
6760         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
6761         GLRO(dl_hwcap2).
6762         (_dl_show_auxv): Add support for calling _dl_procinfo to display
6763         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
6764         explicitly the unknown a_type display mechanism is used.
6765         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
6766         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
6767         struct member.
6768         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
6769         to macro prototype for AT_HWCAP2 support.
6770         * sysdeps/i386/dl-procinfo.h: Likewise.
6771         * sysdeps/s390/dl-procinfo.h: Likewise.
6772         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
6773         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
6774         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
6775         return -1 for unknown a_type display fallback.
6776         * sysdeps/sparc/dl-procinfo.h: Likewise.
6777         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
6778         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
6779
6780 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
6781
6782         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
6783         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
6784
6785 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
6786
6787         [BZ #12492]
6788         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
6789         mprotect making __stack_prot writable.
6790
6791 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
6792             Joseph Myers  <joseph@codesourcery.com>
6793
6794         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
6795         as being properly aligned.
6796
6797 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
6798
6799         * dlfcn/modstatic5.c: New file.
6800         * dlfcn/tststatic5.c: New file.
6801         * dlfcn/Makefile (tests): Add tststatic5.
6802         (tests-static): Likewise.
6803         (modules-names): Add modstatic5.
6804         (tststatic5-ENV): New variable.
6805         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
6806
6807         [BZ #15022]
6808         * elf/dl-support.c (_dl_main_map): New variable.
6809         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
6810         (_dl_nns, _dl_load_adds): Set to 1.
6811         (_dl_initial_searchlist): Refer to _dl_main_map.
6812         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
6813         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
6814         call to _dl_get_origin.
6815         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
6816         around call_map.
6817         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
6818         * dlfcn/modstatic3.c: New file.
6819         * dlfcn/tststatic3.c: New file.
6820         * dlfcn/tststatic4.c: New file.
6821         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
6822         (tests-static): Likewise.
6823         (modules-names): Add modstatic3.
6824         (tststatic3-ENV, tststatic4-ENV): New variables.
6825         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
6826         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
6827
6828 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
6829
6830         * configure.in (CC): Require GCC version 4.4 or later.
6831         * configure: Regenerated.
6832         * manual/install.texi (Tools for Compilation): Update GCC version
6833         requirement.
6834         * INSTALL: Regenerated.
6835
6836 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6837
6838         [BZ #15674]
6839         * string/test-memcmp.c (check2): New.
6840         (main): Call check2.
6841
6842         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
6843
6844 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
6845
6846         [BZ #15022]
6847         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
6848         over to...
6849         (dl_open_worker) [!SHARED]: ... here.
6850
6851 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6852
6853         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
6854
6855 2013-06-25  Richard Henderson  <rth@redhat.com>
6856
6857         * locale/programs/locarchive.c: Include <libc-internal.h>
6858
6859 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
6860
6861         * manual/texinfo.tex: Update to version 2013-06-21.17, with
6862         trailing whitespace removed.
6863
6864 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
6865
6866         [BZ #10283]
6867         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
6868         * locale/programs/locarchive.c: Include libc-mmap.h.
6869         (prepare_address_space): Take two new outputs (the mmap base and len).
6870         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
6871         values.
6872         (create_archive): Declare new mmap base and len values for
6873         prepare_address_space, and store the result in ah.
6874         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
6875         (enlarge_archive): If ah->mmap_base is not NULL, use that and
6876         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
6877         Declare new mmap base and len values for
6878         prepare_address_space, and store the result in new_ah.
6879         (open_archive): Declare new mmap base and len values for
6880         prepare_address_space, and store the result in ah.
6881         (close_archive): If ah->mmap_base is not NULL, use that and
6882         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
6883         * sysdeps/generic/libc-mmap.h: New file.
6884
6885 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
6886
6887         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
6888         (ALIGN_UP): Likewise.
6889         (PTR_ALIGN_DOWN): Likewise.
6890         (PTR_ALIGN_UP): Likewise.
6891
6892 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6893
6894         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
6895         entry mapped to PPC_PLATFORM_POWER8.
6896         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
6897         POWER8.
6898         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
6899         (_dl_string_platform): Add case for exporting platform position for
6900         POWER8.
6901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
6902         search path to sysdeps/powerpc/powerpc32/power8 directory.
6903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
6904         search path to sysdeps/powerpc/powerpc64/power8 directory.
6905         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
6906         power7 directories.
6907         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
6908         power7 directories.
6909
6910 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6911
6912         * INSTALL: Regenerate.
6913
6914         * nscd/connections.c (nscd_init): Fix comment.
6915
6916 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
6917
6918         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
6919
6920         [BZ #15667]
6921         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
6922         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
6923
6924 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
6925
6926         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
6927         DL_DST_REQ_STATIC.
6928         (DL_DST_REQ_STATIC): Remove macro.
6929
6930 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
6931
6932         [BZ #7006]
6933         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
6934         with a shift of 0 bits.
6935
6936 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
6937
6938         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
6939         $(tststatic-ENV).
6940
6941 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6942
6943         [BZ #15655]
6944         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
6945
6946 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6947
6948         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
6949         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
6950         accepts -fno-tree-loop-distribute-patterns.
6951         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
6952         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
6953         recursive call.
6954         * string/memset.c (memset): Likewise.
6955         * string/test-memmove.c (simple_memmove): Disable loop transformation
6956         to library calls.
6957         * string/test-memset.c (simple_memset): Likewise.
6958         * benchtests/bench-memmove.c (simple_memmove): Likewise.
6959         * benchtests/bench-memset.c (simple_memset): Likewise.
6960         * configure: Regenerated.
6961
6962 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
6963
6964         * math/test-misc.c (main): Ignore fesetround failure when failures
6965         of subsequent rounding tests would be ignored.
6966
6967         [BZ #15654]
6968         * math/fedisblxcpt.c (fedisableexcept): Return 0.
6969         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
6970         * math/fegetenv.c (__fegetenv): Return 0.
6971         * math/fegetexcept.c (fegetexcept): Return 0.
6972         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
6973         FE_TONEAREST.
6974         * math/feholdexcpt.c (feholdexcept): Return 0.
6975         * math/fesetenv.c (__fesetenv): Return 0.
6976         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
6977         argument FE_TONEAREST.
6978         * math/feupdateenv.c (__feupdateenv): Return 0.
6979         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
6980
6981 2013-06-18  Roland McGrath  <roland@hack.frob.com>
6982
6983         * elf/rtld-Rules (rtld-compile-command.S): New variable.
6984         (rtld-compile-command.s, rtld-compile-command.c): New variables.
6985         ($(objpfx)rtld-%.os rules): Use them.
6986
6987 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6988
6989         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
6990         fields.
6991
6992 2013-06-17  Roland McGrath  <roland@hack.frob.com>
6993
6994         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
6995         length of target pattern, then descending length of dependency pattern.
6996         * configure.in (AWK): Require gawk 3.1.2 or newer.
6997         * manual/install.texi (Tools for Compilation): Say that we do.
6998         * configure: Regenerated.
6999
7000         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
7001         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
7002         * scripts/sysd-rules.awk: ... this new script.
7003         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
7004         than a glob-style pattern.
7005
7006 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
7007
7008         * math/test-misc.c (main): Do not treat incorrectly rounded
7009         conversions as failure unless ROUNDING_TESTS passes.
7010
7011 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
7012
7013         [BZ #15631]
7014         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
7015         restore exception state around main square root computation, then
7016         check for inexactness explicitly.
7017
7018         * math/libm-test.inc (fma_test_data): Add another test.
7019
7020 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7021
7022         * manual/threads.texi (Non-POSIX Extensions): New document
7023         node.  Document pthread_getattr_default_np and
7024         pthread_setattr_default_np.
7025
7026         * Versions.def (libpthread): Add GLIBC_2.18.
7027         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
7028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7029         Likewise.
7030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7031         Likewise.
7032         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7033         Likewise.
7034         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7035         Likewise.
7036         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
7037         Likewise.
7038         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7039         Likewise.
7040         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7041         Likewise.
7042         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7043         Likewise.
7044         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7045         Likewise.
7046
7047 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7048
7049         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7050         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
7051
7052 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7053             H.J. Lu  <hjl.tools@gmail.com>
7054
7055         [BZ #15627]
7056         * sysdeps/x86_64/rtld-memset.c: Remove file.
7057         * sysdeps/x86_64/rtld-memset.S: New file.
7058
7059 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
7060
7061         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
7062         (test_in_one_mode): Take arguments for whether the rounding mode
7063         is supported for each floating-point type.
7064         (do_test): Pass new arguments to test_in_one_mode using
7065         ROUNDING_TESTS.
7066
7067 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7068
7069         * posix/tst-waitid.c (do_test): Distinguish different instances of
7070         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
7071         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
7072         before entering the kernel for waitpid.
7073
7074 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7075
7076         * NEWS: Fix note on clock function precision.  Text by Roland
7077         McGrath.
7078
7079 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7080
7081         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
7082         it into place only when and if the sanity check passes.
7083
7084 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
7085
7086         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
7087         output for whether conversion result is exact.  Take argument
7088         indicating whether type is IBM long double.
7089         (round_for_all): Change need_exact field to ibm_ld.
7090         * stdlib/tst-strtod-round.c (struct exactness): New type.
7091         (struct test): Change bool ld_ok field to struct exactness exact.
7092         (TEST): Update all definitions for change to field.
7093         (tests): Regenerate array contents.
7094         (test_in_one_mode): Take pointer to new field instead of old ld_ok
7095         field value.  Check for IBM long double here.
7096         (do_test): Update calls to test_in_one_mode.
7097
7098 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7099
7100         [BZ #12515]
7101         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
7102         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
7103
7104 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7105
7106         [BZ #15605]
7107         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
7108         generated by the compiler on loop optimizations.
7109         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
7110         general definitions.
7111
7112 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
7113
7114         * math/bug-nextafter.c: Include <math-tests.h>.
7115         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7116         the relevant type.
7117         * math/bug-nexttoward.c: Include <math-tests.h>.
7118         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7119         the relevant type.
7120         * math/test-misc.c: Include <math-tests.h>.
7121         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7122         the relevant type.
7123
7124 2013-06-12  Andreas Jaeger  <aj@suse.de>
7125
7126         * po/ia.po: Update Interlingua translation from translation
7127         project.
7128
7129 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
7130
7131         * include/fenv.h: Include stdbool.h.
7132         (struct rm_ctx): New structure.
7133         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
7134         Define macro.
7135         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
7136         (SET_RESTORE_ROUNDF): Likewise.
7137         (SET_RESTORE_ROUNDL): Likewise.
7138         (SET_RESTORE_ROUND_NOEX): Likewise.
7139         (SET_RESTORE_ROUND_NOEXF): Likewise.
7140         (SET_RESTORE_ROUND_NOEXL): Likewise.
7141         (SET_RESTORE_ROUND_53BIT): Likewise.
7142         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
7143         (libc_feresetround_noexf_ctx): Likewise.
7144         (libc_feresetround_noexl_ctx): Likewise.
7145         (libc_feholdsetround_53bit_ctx): Likewise.
7146         (libc_feresetround_53bit_ctx): Likewise.
7147         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
7148         (libc_feholdexcept_setround_sse_ctx): New function.
7149         (libc_fesetenv_sse_ctx): Likewise.
7150         (libc_feupdateenv_sse_ctx): Likewise.
7151         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
7152         (libc_feholdexcept_setround_387_ctx): Likewise.
7153         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
7154         (libc_feholdsetround_387_prec_ctx): Likewise.
7155         (libc_feholdsetround_387_ctx): Likewise.
7156         (libc_feholdsetround_387_53bit_ctx): Likewise.
7157         (libc_feholdsetround_sse_ctx): Likewise.
7158         (libc_feresetround_sse_ctx): Likewise.
7159         (libc_feresetround_387_ctx): Likewise.
7160         (libc_feupdateenv_387_ctx): Likewise.
7161         (libc_feholdexcept_setroundf_ctx): Define macro.
7162         (libc_fesetenvf_ctx): Likewise.
7163         (libc_feupdateenvf_ctx): Likewise.
7164         (libc_feholdsetroundf_ctx): Likewise.
7165         (libc_feresetroundf_ctx): Likewise.
7166         (libc_feholdexcept_setround_ctx): Likewise.
7167         (libc_fesetenv_ctx): Likewise.
7168         (libc_feupdateenv_ctx): Likewise.
7169         (libc_feholdsetround_ctx): Likewise.
7170         (libc_feresetround_ctx): Likewise.
7171         (libc_feholdexcept_setroundl_ctx): Likewise.
7172         (libc_feupdateenvl_ctx): Likewise.
7173         (libc_feholdsetroundl_ctx): Likewise.
7174         (libc_feresetroundl_ctx): Likewise.
7175         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
7176         (libc_feresetround_53bit_ctx): Likewise.
7177
7178 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7179
7180         * locale/iso-639.def: Convert to UTF-8.
7181
7182 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
7183
7184         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
7185         (EXCEPTION_TESTS_double): Likewise.
7186         (EXCEPTION_TESTS_long_double): Likewise.
7187         (EXCEPTION_TESTS): Likewise.
7188         * math/libm-test.inc (test_exceptions): Only test exceptions if
7189         EXCEPTION_TESTS (FLOAT).
7190
7191 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7192
7193         * benchtests/Makefile (string-bench): Add strcpy_chk and
7194         stpcpy_chk.
7195         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
7196         * benchtests/bench-stpcpy_chk.c: New file.
7197         * benchtests/bench-strcpy_chk-ifunc.c: New file.
7198         * benchtests/bench-strcpy_chk.c: New file.
7199         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
7200         code.
7201         (do_test): Likewise.
7202
7203 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7204
7205         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
7206         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
7207         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
7208         with tabs where appropriate.
7209         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
7210         dl-procinfo.h.
7211         [PPC_PLATFORM_PPC440]: Likewise.
7212         [PPC_PLATFORM_PPC464]: Likewise.
7213         [PPC_PLATFORM_PPC476]: Likewise.
7214         (_dl_string_platform): Add support for detecting ppc405, ppc440,
7215         ppc464, and ppc476 platform strings merging from ports/
7216         dl-procinfo.h.
7217
7218 2013-06-11  Andreas Schwab  <schwab@suse.de>
7219
7220         [BZ #14991]
7221         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
7222         (from_ucs4_idx): Regenerate.
7223         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
7224         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
7225         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
7226         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
7227         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
7228         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
7229         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
7230         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
7231         from FROM_LOOP and TO_LOOP specific macros.
7232         (BODY): Handle combining characters.
7233         * iconvdata/BIG5HKSCS.irreversible: Update.
7234         * iconvdata/BIG5HKSCS.precomposed: New file.
7235         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
7236         characters.
7237         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
7238
7239 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7240
7241         * include/sys/time.h: Fix indentation and add copyright header.
7242
7243         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
7244         (do_test): Likewise.
7245         * string/test-memchr.c (do_one_test): Likewise.
7246         (do_test): Likewise.
7247         * string/test-memcmp.c (do_one_test): Likewise.
7248         (do_test): Likewise.
7249         * string/test-memcpy.c (do_one_test): Likewise.
7250         (do_test): Likewise.
7251         * string/test-memmem.c (do_one_test): Likewise.
7252         (do_test): Likewise.
7253         (do_random_tests): Likewise.
7254         * string/test-memmove.c (do_one_test): Likewise.
7255         (do_test): Likewise.
7256         * string/test-memset.c (do_one_test): Likewise.
7257         (do_test): Likewise.
7258         * string/test-rawmemchr.c (do_one_test): Likewise.
7259         (do_test): Likewise.
7260         * string/test-strcasecmp.c (do_one_test): Likewise.
7261         (do_test): Likewise.
7262         * string/test-strcasestr.c (do_one_test): Likewise.
7263         (do_test): Likewise.
7264         * string/test-strcat.c (do_one_test): Likewise.
7265         (do_test): Likewise.
7266         * string/test-strchr.c (do_one_test): Likewise.
7267         (do_test): Likewise.
7268         * string/test-strcmp.c (do_one_test): Likewise.
7269         (do_test): Likewise.
7270         * string/test-strcpy.c (do_one_test): Likewise.
7271         (do_test): Likewise.
7272         * string/test-string.h: Likewise.
7273         (test_init): Likewise.
7274         * string/test-strlen.c (do_one_test): Likewise.
7275         (do_test): Likewise.
7276         * string/test-strncasecmp.c (do_one_test): Likewise.
7277         (do_test): Likewise.
7278         * string/test-strncat.c (do_one_test): Likewise.
7279         (do_test): Likewise.
7280         * string/test-strncmp.c (do_one_test): Likewise.
7281         (do_test_limit): Likewise.
7282         (do_test): Likewise.
7283         * string/test-strncpy.c (do_one_test): Likewise.
7284         (do_test): Likewise.
7285         * string/test-strnlen.c (do_one_test): Likewise.
7286         (do_test): Likewise.
7287         * string/test-strpbrk.c (do_one_test): Likewise.
7288         (do_test): Likewise.
7289         * string/test-strrchr.c (do_one_test): Likewise.
7290         (do_test): Likewise.
7291         * string/test-strspn.c (do_one_test): Likewise.
7292         (do_test): Likewise.
7293         * string/test-strstr.c (do_one_test): Likewise.
7294         (do_test): Likewise.
7295
7296         * benchtests/Makefile (string-bench): Add string benchmarks.
7297         * benchtests/bench-bcopy-ifunc.c: New file.
7298         * benchtests/bench-bcopy.c: New file.
7299         * benchtests/bench-bzero-ifunc.c: New file.
7300         * benchtests/bench-bzero.c: New file.
7301         * benchtests/bench-memccpy-ifunc.c: New file.
7302         * benchtests/bench-memccpy.c: New file.
7303         * benchtests/bench-memchr-ifunc.c: New file.
7304         * benchtests/bench-memchr.c: New file.
7305         * benchtests/bench-memcmp-ifunc.c: New file.
7306         * benchtests/bench-memcmp.c: New file.
7307         * benchtests/bench-memmem-ifunc.c: New file.
7308         * benchtests/bench-memmem.c: New file.
7309         * benchtests/bench-memmove-ifunc.c: New file.
7310         * benchtests/bench-memmove.c: New file.
7311         * benchtests/bench-mempcpy-ifunc.c: New file.
7312         * benchtests/bench-mempcpy.c: New file.
7313         * benchtests/bench-memset-ifunc.c: New file.
7314         * benchtests/bench-memset.c: New file.
7315         * benchtests/bench-rawmemchr-ifunc.c: New file.
7316         * benchtests/bench-rawmemchr.c: New file.
7317         * benchtests/bench-stpcpy-ifunc.c: New file.
7318         * benchtests/bench-stpcpy.c: New file.
7319         * benchtests/bench-stpncpy-ifunc.c: New file.
7320         * benchtests/bench-stpncpy.c: New file.
7321         * benchtests/bench-strcasecmp-ifunc.c: New file.
7322         * benchtests/bench-strcasecmp.c: New file.
7323         * benchtests/bench-strcasestr-ifunc.c: New file.
7324         * benchtests/bench-strcasestr.c: New file.
7325         * benchtests/bench-strcat-ifunc.c: New file.
7326         * benchtests/bench-strcat.c: New file.
7327         * benchtests/bench-strchr-ifunc.c: New file.
7328         * benchtests/bench-strchr.c: New file.
7329         * benchtests/bench-strchrnul-ifunc.c: New file.
7330         * benchtests/bench-strchrnul.c: New file.
7331         * benchtests/bench-strcmp-ifunc.c: New file.
7332         * benchtests/bench-strcmp.c: New file.
7333         * benchtests/bench-strcpy-ifunc.c: New file.
7334         * benchtests/bench-strcpy.c: New file.
7335         * benchtests/bench-strcspn-ifunc.c: New file.
7336         * benchtests/bench-strcspn.c: New file.
7337         * benchtests/bench-strlen-ifunc.c: New file.
7338         * benchtests/bench-strlen.c: New file.
7339         * benchtests/bench-strncasecmp-ifunc.c: New file.
7340         * benchtests/bench-strncasecmp.c: New file.
7341         * benchtests/bench-strncat-ifunc.c: New file.
7342         * benchtests/bench-strncat.c: New file.
7343         * benchtests/bench-strncmp-ifunc.c: New file.
7344         * benchtests/bench-strncmp.c: New file.
7345         * benchtests/bench-strncpy-ifunc.c: New file.
7346         * benchtests/bench-strncpy.c: New file.
7347         * benchtests/bench-strnlen-ifunc.c: New file.
7348         * benchtests/bench-strnlen.c: New file.
7349         * benchtests/bench-strpbrk-ifunc.c: New file.
7350         * benchtests/bench-strpbrk.c: New file.
7351         * benchtests/bench-strrchr-ifunc.c: New file.
7352         * benchtests/bench-strrchr.c: New file.
7353         * benchtests/bench-strspn-ifunc.c: New file.
7354         * benchtests/bench-strspn.c: New file.
7355         * benchtests/bench-strstr-ifunc.c: New file.
7356         * benchtests/bench-strstr.c: New file.
7357
7358         * benchtests/Makefile: Disable parallel execution of targets.
7359         (string-bench): Add memcpy.
7360         (benchset): New variable to store a list of benchmark sets.
7361         (bench-func): Renamed from bench.
7362         (bench-set): New target.
7363         (bench): Depend on bench-func and bench-set.
7364         * benchtests/README: Add section on benchmark sets.
7365         * benchtests/bench-memcpy-ifunc.c: New file.
7366         * benchtests/bench-memcpy.c: New file.
7367         * benchtests/bench-string.h: New file.
7368
7369 2013-06-11  Andreas Schwab  <schwab@suse.de>
7370
7371         [BZ #15577]
7372         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
7373         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
7374         values in the triple.
7375         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
7376         terminator in the group key.
7377
7378 2013-06-11  Andreas Jaeger  <aj@suse.de>
7379
7380         * po/zh_TW.po: Update Chinese (traditional) translation from
7381         translation project.
7382
7383 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7384
7385         * include/time.h (__clock_gettime): Add libc_hidden_proto.
7386         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
7387         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
7388         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7389         (clock_getcpuclockid): Likewise.
7390         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
7391         Add weak_alias and libc_hidden_def.
7392         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
7393         * rt/clock_gettime.c (clock_gettime): Rename to
7394         __clock_gettime.  Add weak_alias and libc_hidden_def.
7395         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
7396         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
7397         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
7398         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
7399         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
7400         Likewise.
7401         * rt/clock_settime.c (clock_settime): Rename to
7402         __clock_settime.  Add weak_alias and libc_hidden_def.
7403         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
7404
7405 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
7406
7407         * mach/err_boot.sub: Remove trailing whitespace.
7408         * mach/err_ipc.sub: Likewise.
7409         * mach/err_mach.sub: Likewise.
7410
7411         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
7412         (ROUNDING_TESTS_double): Likewise.
7413         (ROUNDING_TESTS_long_double): Likewise.
7414         (ROUNDING_TESTS): Likewise.
7415         * math/libm-test.inc: Include <math-tests.h>.
7416         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
7417         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
7418         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7419         (IF_ROUND_INIT_FE_UPWARD): Likewise.
7420
7421 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7422
7423         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
7424         of assigning.
7425
7426 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
7427
7428         * sysdeps/gnu/errlist.awk: Do not generate space at end of
7429         otherwise empty TRANS lines.
7430         * sysdeps/gnu/errlist.c: Regenerated.
7431
7432         * catgets/gencat.c (error_print): Use (void) in function
7433         definition.
7434         * crypt/crypt_util.c (__init_des): Likewise.
7435         * crypt/speeds.c (Stop): Likewise.
7436         (main): Likewise.
7437         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
7438         * inet/ruserpass.c (token): Likewise.
7439         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
7440         * intl/localealias.c (extend_alias_table): Likewise.
7441         * intl/plural-exp.c (init_germanic_plural): Likewise.
7442         * libio/fcloseall.c (__fcloseall): Likewise.
7443         * libio/genops.c (_IO_flush_all): Likewise.
7444         (_IO_flush_all_linebuffered): Likewise.
7445         (_IO_cleanup): Likewise.
7446         (_IO_iter_begin): Likewise.
7447         (_IO_iter_end): Likewise.
7448         (_IO_list_lock): Likewise.
7449         (_IO_list_unlock): Likewise.
7450         (_IO_list_resetlock): Likewise.
7451         * libio/getchar.c (getchar): Likewise.
7452         * libio/getchar_u.c (getchar_unlocked): Likewise.
7453         * libio/getwchar.c (getwchar): Likewise.
7454         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7455         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
7456         * login/getpt.c (__getpt): Likewise.
7457         * login/tst-utmp.c (main): Likewise.
7458         * malloc/hooks.c (__malloc_check_init): Likewise.
7459         * malloc/malloc.c (__malloc_stats): Likewise.
7460         * malloc/mtrace.c (tr_break): Likewise.
7461         (mtrace): Likewise.
7462         (muntrace): Likewise.
7463         * misc/fstab.c (endfsent): Likewise.
7464         * misc/getclktck.c (__getclktck): Likewise.
7465         * misc/getdtsz.c (__getdtablesize): Likewise.
7466         * misc/gethostid.c (gethostid): Likewise.
7467         * misc/getpagesize.c (__getpagesize): Likewise.
7468         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
7469         (__get_nprocs): Likewise.
7470         (__get_phys_pages): Likewise.
7471         (__get_avphys_pages): Likewise.
7472         * misc/getttyent.c (getttyent): Likewise.
7473         (setttyent): Likewise.
7474         (endttyent): Likewise.
7475         * misc/getusershell.c (getusershell): Likewise.
7476         (endusershell): Likewise.
7477         (setusershell): Likewise.
7478         (initshells): Likewise.
7479         * misc/hsearch.c (__hdestroy): Likewise.
7480         * misc/sync.c (sync): Likewise.
7481         * misc/syslog.c (closelog_internal): Likewise.
7482         (closelog): Likewise.
7483         * misc/ttyslot.c (ttyslot): Likewise.
7484         * misc/vhangup.c (vhangup): Likewise.
7485         * posix/fork.c (__fork): Likewise.
7486         * posix/getegid.c (__getegid): Likewise.
7487         * posix/geteuid.c (__geteuid): Likewise.
7488         * posix/getgid.c (__getgid): Likewise.
7489         * posix/getpid.c (__getpid): Likewise.
7490         * posix/getppid.c (__getppid): Likewise.
7491         * posix/getuid.c (__getuid): Likewise.
7492         * posix/pause.c (pause): Likewise.
7493         * posix/setpgrp.c (setpgrp): Likewise.
7494         * posix/setsid.c (__setsid): Likewise.
7495         * posix/test-vfork.c (noop): Likewise.
7496         * resolv/gethnamaddr.c (_endhtent): Likewise.
7497         (_gethtent): Likewise.
7498         (ht_endhostent): Likewise.
7499         (gethostent): Likewise.
7500         (dns_service): Likewise.
7501         * stdlib/drand48.c (drand48): Likewise.
7502         * stdlib/lrand48.c (lrand48): Likewise.
7503         * stdlib/mrand48.c (mrand48): Likewise.
7504         * stdlib/rand.c (rand): Likewise.
7505         * stdlib/random.c (__random): Likewise.
7506         * stdlib/setenv.c (clearenv): Likewise.
7507         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
7508         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
7509         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
7510         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
7511         (__get_nprocs): Likewise.
7512         (__get_phys_pages): Likewise.
7513         (__get_avphys_pages): Likewise.
7514         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
7515         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
7516         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
7517         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
7518         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
7519         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
7520         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
7521         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
7522         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
7523         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
7524         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
7525         * sysdeps/mach/hurd/sync.c (sync): Likewise.
7526         * sysdeps/posix/clock.c (clock): Likewise.
7527         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
7528         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
7529         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
7530         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7531         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
7532         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7533         (__get_nprocs_conf): Likewise.
7534         (__get_phys_pages): Likewise.
7535         (__get_avphys_pages): Likewise.
7536         * time/clock.c (clock): Likewise.
7537         * time/tzset.c (__tzname_max): Likewise.
7538
7539 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
7540
7541         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
7542         (__bswap_32): Do not use "register".
7543         * crypt/crypt.c (_ufc_doit_r): Likewise.
7544         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7545         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7546         * gmon/gmon.c (__monstartup): Likewise.
7547         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
7548         * hurd/hurdmalloc.c (more_memory): Likewise.
7549         (malloc): Likewise.
7550         (free): Likewise.
7551         (realloc): Likewise.
7552         (malloc_fork_prepare): Likewise.
7553         (malloc_fork_parent): Likewise.
7554         (malloc_fork_child): Likewise.
7555         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
7556         (_svcauth_des): Likewise.
7557         * inet/inet_lnaof.c (inet_lnaof): Likewise.
7558         * inet/inet_net.c (inet_network): Likewise.
7559         * inet/inet_netof.c (inet_netof): Likewise.
7560         * inet/rcmd.c (__validuser2_sa): Likewise.
7561         * io/fts.c (fts_open): Likewise.
7562         (fts_load): Likewise.
7563         (fts_close): Likewise.
7564         (fts_read): Likewise.
7565         (fts_children): Likewise.
7566         (fts_build): Likewise.
7567         (fts_stat): Likewise.
7568         (fts_sort): Likewise.
7569         (fts_alloc): Likewise.
7570         (fts_lfree): Likewise.
7571         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
7572         (_IO_file_xsgetn): Likewise.
7573         (_IO_file_xsgetn_mmap): Likewise.
7574         * libio/iofopncook.c (_IO_cookie_read): Likewise.
7575         (_IO_cookie_write): Likewise.
7576         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
7577         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
7578         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
7579         * malloc/obstack.c (_obstack_begin): Likewise.
7580         (_obstack_begin_1): Likewise.
7581         (_obstack_newchunk): Likewise.
7582         (_obstack_allocated_p): Likewise.
7583         (obstack_free): Likewise.
7584         (_obstack_memory_used): Likewise.
7585         * misc/getttyent.c (getttynam): Likewise.
7586         (getttyent): Likewise.
7587         (skip): Likewise.
7588         (value): Likewise.
7589         * misc/getusershell.c (initshells): Likewise.
7590         * misc/syslog.c (__vsyslog_chk): Likewise.
7591         * misc/ttyslot.c (ttyslot): Likewise.
7592         * nis/nis_hash.c (__nis_hash): Likewise.
7593         * posix/fnmatch_loop.c (FCT): Likewise.
7594         * posix/getconf.c (print_all): Likewise.
7595         (main): Likewise.
7596         * posix/getopt.c (exchange): Likewise.
7597         * posix/glob.c (globfree): Likewise.
7598         (prefix_array): Likewise.
7599         (__glob_pattern_type): Likewise.
7600         * resolv/arpa/nameser.h (NS_GET16): Likewise.
7601         (NS_GET32): Likewise.
7602         (NS_PUT16): Likewise.
7603         (NS_PUT32): Likewise.
7604         * resolv/gethnamaddr.c (getanswer): Likewise.
7605         (gethostbyname2): Likewise.
7606         (gethostbyaddr): Likewise.
7607         (_gethtent): Likewise.
7608         (_gethtbyname2): Likewise.
7609         (_gethtbyaddr): Likewise.
7610         * resolv/ns_print.c (dst_s_get_int16): Likewise.
7611         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
7612         * resolv/res_init.c (__res_vinit): Likewise.
7613         (net_mask): Likewise.
7614         * resolv/res_mkquery.c (outchar): Likewise.
7615         (PRINT): Likewise.
7616         * stdio-common/printf_fp.c (outchar): Likewise.
7617         (PRINT): Likewise.
7618         * stdio-common/printf_fphex.c (outchar): Likewise.
7619         (PRINT): Likewise.
7620         * stdio-common/printf_size.c (outchar): Likewise.
7621         (PRINT): Likewise.
7622         * stdio-common/test_rdwr.c (main): Likewise.
7623         * stdio-common/tfformat.c (matches): Likewise.
7624         * stdio-common/vfprintf.c (outchar): Likewise.
7625         (printf_unknown): Likewise.
7626         (buffered_vfprintf): Likewise.
7627         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7628         * stdio-common/xbug.c (AppendToBuffer): Likewise.
7629         (ReadFile): Likewise.
7630         * stdlib/qsort.c (SWAP): Likewise.
7631         (_quicksort): Likewise.
7632         * stdlib/setenv.c (__add_to_environ): Likewise.
7633         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7634         * stdlib/strtol_l.c (__strtol_l): Likewise.
7635         * stdlib/tst-strtod.c (main): Likewise.
7636         * stdlib/tst-strtol.c (main): Likewise.
7637         * stdlib/tst-strtoll.c (main): Likewise.
7638         * string/bits/string2.h (__strcmp_cc): Likewise.
7639         (__strcmp_cg): Likewise.
7640         (__strcspn_c1): Likewise.
7641         (__strcspn_c2): Likewise.
7642         (__strcspn_c3): Likewise.
7643         (__strspn_c1): Likewise.
7644         (__strspn_c2): Likewise.
7645         (__strspn_c3): Likewise.
7646         (__strsep_1c): Likewise.
7647         (__strsep_2c): Likewise.
7648         (__strsep_3c): Likewise.
7649         * string/memccpy.c (__memccpy): Likewise.
7650         * string/stpcpy.c (__stpcpy): Likewise.
7651         * string/strcmp.c (strcmp): Likewise.
7652         * string/strrchr.c (strrchr): Likewise.
7653         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
7654         Likewise.
7655         * sysdeps/mach/hurd/getcwd.c
7656         (_hurd_canonicalize_directory_name_internal): Likewise.
7657         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
7658         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
7659         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
7660         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
7661         Likewise, in both definitions.
7662         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
7663         definitions.
7664         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
7665         64] (__bswap_64): Likewise.
7666         * time/test_time.c (main): Likewise.
7667         * time/tzfile.c (__tzfile_read): Likewise.
7668         (__tzfile_compute): Likewise.
7669         * time/tzset.c (__tzset_parse_tz): Likewise.
7670         (tzset_internal): Likewise.
7671         (compute_change): Likewise.
7672         * wcsmbs/wcscat.c (__wcscat): Likewise.
7673         * wcsmbs/wcschr.c (wcschr): Likewise.
7674         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
7675         * wcsmbs/wcscspn.c (wcscspn): Likewise.
7676         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
7677         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
7678         * wcsmbs/wcsspn.c (wcsspn): Likewise.
7679         * wcsmbs/wcsstr.c (wcsstr): Likewise.
7680         * wcsmbs/wmemchr.c (wmemchr): Likewise.
7681         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7682         * wcsmbs/wmemset.c (wmemset): Likewise.
7683
7684 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
7685
7686         * scripts/config.guess: Update to version 2013-05-16.
7687         * scripts/config.sub: Update to version 2013-04-24.
7688         * scripts/install-sh: Update to version 2011-11-20.07.
7689         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
7690         * scripts/move-if-change: Update to version 2012-01-06 07:23.
7691
7692 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
7693
7694         * debug/fgetws_u_chk.c: Fix leading whitespaces.
7695         * elf/sln.c: Likewise.
7696         * hurd/hurd/ioctl.h: Likewise.
7697         * hurd/hurdmalloc.c: Likewise.
7698         * hurd/xattr.c: Likewise.
7699         * include/shlib-compat.h: Likewise.
7700         * inet/ruserpass.c: Likewise.
7701         * libio/iofgets_u.c: Likewise.
7702         * libio/iofgetws_u.c: Likewise.
7703         * locale/programs/ld-identification.c: Likewise.
7704         * locale/programs/ld-time.c: Likewise.
7705         * mach/msg-destroy.c: Likewise.
7706         * nss/nss_files/files-netgrp.c: Likewise.
7707         * resolv/res_data.c: Likewise.
7708         * soft-fp/op-1.h: Likewise.
7709         * soft-fp/op-2.h: Likewise.
7710         * soft-fp/op-4.h: Likewise.
7711         * soft-fp/op-common.h: Likewise.
7712         * stdio-common/printf_fphex.c: Likewise.
7713         * stdlib/strtod_l.c: Likewise.
7714         * sunrpc/rpc/clnt.h: Likewise.
7715         * sysdeps/generic/framestate.c: Likewise.
7716         * sysdeps/i386/bsd-_setjmp.S: Likewise.
7717         * sysdeps/i386/bsd-setjmp.S: Likewise.
7718         * sysdeps/i386/__longjmp.S: Likewise.
7719         * sysdeps/i386/setjmp.S: Likewise.
7720         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7721         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7722         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7723         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7724         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7725         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
7726         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7727         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7728         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7729         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
7730         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
7731         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7732         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7733         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7734         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7735         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7736         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7737         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
7738         * sysdeps/ieee754/support.c: Likewise.
7739         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7740         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
7741         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
7742         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
7743         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
7744         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
7745         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
7746         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
7747         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
7748         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
7749         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
7750         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
7751         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
7752         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
7753         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
7754         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
7755         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
7757
7758 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
7759
7760         * posix/transbug.c: Remove executable mode.
7761
7762 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
7763
7764         * crypt/speeds.c: Remove trailing whitespace.
7765         * dlfcn/default.c: Likewise.
7766         * elf/ifuncdep2.c: Likewise.
7767         * elf/ifuncmain1.c: Likewise.
7768         * elf/ifuncmain1vis.c: Likewise.
7769         * elf/testobj.h: Likewise.
7770         * elf/tst-stackguard1.c: Likewise.
7771         * gmon/sys/gmon.h: Likewise.
7772         * hurd/hurdmsg.c: Likewise.
7773         * hurd/new-fd.c: Likewise.
7774         * hurd/ports-get.c: Likewise.
7775         * iconvdata/ibm1008_420.c: Likewise.
7776         * inet/tst-getni1.c: Likewise.
7777         * inet/tst-getni2.c: Likewise.
7778         * libio/ioungetc.c: Likewise.
7779         * libio/wfiledoalloc.c: Likewise.
7780         * manual/libm-err-tab.pl: Likewise.
7781         * math/w_dremf.c: Likewise.
7782         * misc/ftruncate.c: Likewise.
7783         * posix/bug-glob2.c: Likewise.
7784         * posix/tst-pcre.c: Likewise.
7785         * posix/wait4.c: Likewise.
7786         * resolv/README: Likewise.
7787         * resolv/res_debug.h: Likewise.
7788         * resolv/tst-inet_ntop.c: Likewise.
7789         * setjmp/bug269-setjmp.c: Likewise.
7790         * soft-fp/extended.h: Likewise.
7791         * soft-fp/op-1.h: Likewise.
7792         * soft-fp/op-2.h: Likewise.
7793         * soft-fp/op-4.h: Likewise.
7794         * soft-fp/op-8.h: Likewise.
7795         * soft-fp/testit.c: Likewise.
7796         * stdio-common/bug16.c: Likewise.
7797         * stdlib/random.c: Likewise.
7798         * sunrpc/rpcsvc/rquota.x: Likewise.
7799         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
7800         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7801         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7802         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7803         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7804         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7805         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7806         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7807         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7808         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7809         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7810         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
7811         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7812         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
7813         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7814         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
7815         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
7816         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7817         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
7818         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7819         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7820         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7821         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
7822         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
7823         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
7824         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
7825         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
7826         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7827         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7828         * sysdeps/ieee754/s_lib_version.c: Likewise.
7829         * sysdeps/mach/hurd/check_fds.c: Likewise.
7830         * sysdeps/mach/hurd/getsockname.c: Likewise.
7831         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
7832         * sysdeps/mach/hurd/recvfrom.c: Likewise.
7833         * sysdeps/powerpc/bits/link.h: Likewise.
7834         * sysdeps/powerpc/dl-procinfo.c: Likewise.
7835         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
7836         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
7837         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
7838         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
7839         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7840         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
7841         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
7842         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
7843         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
7844         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
7845         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
7846         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
7847         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
7848         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
7849         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
7850         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
7851         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
7852         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
7853         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
7854         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
7855         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
7856         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
7857         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
7858         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7859         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
7860         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
7861         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
7862         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
7863         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
7864         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
7865         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
7866         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7867         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7868         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
7869         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
7870         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
7871         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
7872         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
7873         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
7874         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
7875         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
7876         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
7877         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
7878         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
7879         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
7880         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
7881         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
7882         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
7883         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
7884         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7885         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7886         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7887         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7888         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
7889         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
7890         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
7891         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
7892         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
7893         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
7894         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
7895         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
7896         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
7897         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
7898         * sysdeps/powerpc/sysdep.h: Likewise.
7899         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
7900         * sysdeps/s390/s390-64/sub_n.S: Likewise.
7901         * sysdeps/sh/dl-trampoline.S: Likewise.
7902         * sysdeps/sh/memset.S: Likewise.
7903         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
7904         * sysdeps/sh/strlen.S: Likewise.
7905         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
7906         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
7907         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
7908         * sysdeps/sparc/sparc32/rem.S: Likewise.
7909         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
7910         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
7911         * sysdeps/sparc/sparc32/strchr.S: Likewise.
7912         * sysdeps/sparc/sparc32/udiv.S: Likewise.
7913         * sysdeps/sparc/sparc32/urem.S: Likewise.
7914         * sysdeps/sparc/sparc64/add_n.S: Likewise.
7915         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7916         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
7917         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
7918         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
7919         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
7920         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
7921         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
7922         * sysdeps/unix/bsd/times.c: Likewise.
7923         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
7924         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
7925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
7926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
7927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
7928         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7929         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
7930         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
7931         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
7932         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
7933         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
7934         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
7935         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
7936         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
7937         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
7938         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7939         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7940         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
7941         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
7942         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
7943         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
7944         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
7945         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
7946         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
7947         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
7948         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7949         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
7950         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
7951         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
7952         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
7953         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
7954         * sysdeps/x86_64/strcspn.S: Likewise.
7955
7956 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7957
7958         * locale/C-translit.h: Revert #include <stdint.h> because this is a
7959         generated file.  Regenerate properly from gen-translit.pl.
7960         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
7961         locale/C-translit.h.
7962
7963 2013-06-05  Andreas Schwab  <schwab@suse.de>
7964
7965         [BZ #15100]
7966         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
7967         week as 6 instead of -1.
7968         * time/tst-strptime.c (day_tests): Add test case.
7969
7970 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7971
7972         * sysdeps/generic/math_private.h
7973         (libc_feholdexcept_setround_53bit): Replace with
7974         libc_feholdsetround_53bit.
7975         (libc_feupdateenv_53bit): Replace with
7976         libc_feresetround_53bit.
7977         (SET_RESTORE_ROUND_53BIT): Adjust.
7978
7979 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
7980
7981         * string/test-strchrnul.c: Add copyright header.
7982
7983         * posix/tst-getaddrinfo4.c: Increase test timeout.
7984
7985 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
7986
7987         [BZ #15536]
7988         * math/libm-test.inc (MAX_EXP): Remove
7989         (MIN_EXP): Define.
7990         (ulp): Use MIN_EXP - MANT_DIG.
7991         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
7992
7993 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
7994
7995         * po/be.po: Revert last change.
7996         * po/zh_CN.po: Likewise.
7997         * po/header.pot: Likewise.
7998
7999 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
8000
8001         * Makefile ($(common-objpfx)linkobj/libc.so): Define
8002         link-libc-deps to empty as target-specific variable.
8003         * Makerules (link-libc-args): New variable.
8004         (libc-for-link): Likewise.
8005         (link-libc-deps): Likewise.
8006         (lib%.so): Depend on $(link-libc-deps).  Link with
8007         $(link-libc-args).
8008         (build-module): Link with $(link-libc-args).
8009         (build-module-asneeded): Likewise.
8010         (build-module-helper-objlist): Filter out $(link-libc-deps) from
8011         list of objects.
8012         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
8013         target-specific variable.
8014         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
8015         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
8016         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
8017         libc.
8018         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
8019         libc and ld.so.
8020         ($(objpfx)libpcprofile.so): Likewise.
8021         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
8022         libc_nonshared.a.
8023         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
8024         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
8025         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
8026         $(link-libc-deps).
8027         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
8028         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
8029         * login/Makefile ($(objpfx)libutil.so): Likewise.
8030         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
8031         * math/Makefile ($(objpfx)libm.so): Likewise.
8032         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
8033         $(objpfx)libnsl.so): Define libc-for-link as target-specific
8034         variable instead of depending directly on libc.
8035         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
8036         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
8037         $(link-libc-deps).
8038         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
8039         libc.
8040         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
8041         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
8042         ($(objpfx)libanl.so): Likewise.
8043         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
8044         ld.so.
8045         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
8046         $(link-libc-deps).
8047         * sysdeps/i386/fpu/Makefile: Remove file.
8048         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
8049         ($(objpfx)libm.so): Remove dependency on ld.so.
8050
8051 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
8052
8053         [BZ # 15553]
8054         * nis/yp_xdr.c (XDRMAXNAME): Define.
8055         (XDRMAXRECORD): Define.
8056         (xdr_domainname): Use XDRMAXNAME.
8057         (xdr_mapname): Likewise.
8058         (xdr_peername): Likewise.
8059         (xdr_keydat): Use XDRMAXRECORD.
8060         (xdr_valdat): Likewise.
8061
8062 2013-05-30  Jeff Law  <law@redhat.com>
8063
8064         [BZ #14256]
8065         * manual/errno.texi (ESTALE): Update to account for more than
8066         just NFS file systems.
8067         * sysdeps/gnu/errlist.c: Regenerated.
8068
8069 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
8070
8071         [BZ #15465]
8072         * elf/Makefile (tests): Add tst-null-argv.
8073         (modules-names):  Add tst-null-argv-lib.
8074         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
8075         (tst-null-argv-ENV): Set environment for tst-null-argv.
8076         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
8077         (RTLD_PROGNAME): New macro.
8078         * elf/tst-null-argv.c: New test case.
8079         * elf/tst-null-argv-lib.c: Library for test case.
8080         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
8081         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8082         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
8083         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
8084         * elf/dl-init.c (call_init): Likewise.
8085         (_dl_init): Likewise.
8086         * elf/dl-load.c (print_search_path): Likewise.
8087         (_dl_map_object): Likewise.
8088         * elf/dl-lookup.c (do_lookup_x): Likewise.
8089         (add_dependency): Likewise.
8090         (_dl_lookup_symbol_x): Likewise.
8091         (_dl_debug_bindings): Likewise.
8092         * elf/dl-open.c (_dl_show_scope): Likewise.
8093         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8094         * elf/dl-version.c (match_symbol): Likewise.
8095         (_dl_check_map_versions): Likewise.
8096         * elf/rtld.c (dl_main): Likewise.
8097         (print_unresolved): Use RTLD_PROGNAME.
8098         (print_missing_version): Likewise.
8099         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8100         (elf_machine_rela): Likewise.
8101         * sysdeps/powerpc/powerpc32/dl-machine.c
8102         (__process_machine_rela): Likewise.
8103         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8104         Likewise.
8105         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
8106         Likewise.
8107         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
8108         Likewise.
8109         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8110         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
8111         Likewise.
8112         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8113         Likewise.
8114         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8115
8116 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
8117
8118         * po/be.po: Add descriptive title.
8119         * po/zh_CN.po: Likewise.
8120         * po/header.pot: Likewise.
8121
8122 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
8123
8124         * locale/programs/locarchive.c (create_archive): Inlucde fname in
8125         error message.
8126         (enlarge_archive): Likewise.
8127
8128 2013-05-28  Ben North  <ben@redfrontdoor.org>
8129
8130         * manual/arith.texi (frexp): It is the magnitude of the return
8131         value which lies in [0.5, 1), not the return value itself.
8132
8133 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8134
8135         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8136
8137 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
8138
8139         * stdio-common/bug26.c (main): Correct fscanf template.
8140
8141         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
8142         declare _dl_skip_args.
8143
8144         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
8145         Don't declare.
8146
8147         * manual/platform.texi: Add missing @end deftypefun.
8148
8149 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8150
8151         [BZ #15529]
8152         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
8153         bit of mantissa of 2^16382.
8154         * math/libm-test.inc (hypot_test_data): Add more tests.
8155
8156         * math/libm-test.inc: Add drem and pow10 to list of tested
8157         functions.
8158         (pow10_test): New function.
8159         (drem_test): Likewise.
8160         (drem_test_tonearest): Likewise.
8161         (drem_test_towardzero): Likewise.
8162         (drem_test_downward): Likewise.
8163         (drem_test_upward): Likewise.
8164         (main): Call the new functions.
8165
8166         * math/libm-test.inc (finite_test_data): Remove.
8167         (finite_test): Run tests from isfinite_test_data.
8168         (gamma_test_data): Remove.
8169         (gamma_test): Run tests from lgamma_test_data.
8170         * sysdeps/i386/fpu/libm-test-ulps: Update.
8171         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8172
8173 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8174
8175         * manual/platform.texi: Add PowerPC PPR function set documentation.
8176         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
8177         implementation.
8178
8179 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
8180
8181         * math/libm-test.inc (MAX_EXP): Define.
8182         (ULPDIFF): Define.
8183         (ulp): New function.
8184         (check_float_internal): Use ULPDIFF.
8185         (cpow_test): Disable failing test.
8186         (check_ulp): Test ulp() implemetnation.
8187         (main): Call check_ulp before starting tests.
8188
8189 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8190
8191         * math/gen-libm-test.pl (generate_testfile): Do not handle
8192         START_DATA and END_DATA.
8193         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
8194         END_DATA.
8195         (acos_tonearest_test_data): Likewise.
8196         (acos_towardzero_test_data): Likewise.
8197         (acos_downward_test_data): Likewise.
8198         (acos_upward_test_data): Likewise.
8199         (acosh_test_data): Likewise.
8200         (asin_test_data): Likewise.
8201         (asin_tonearest_test_data): Likewise.
8202         (asin_towardzero_test_data): Likewise.
8203         (asin_downward_test_data): Likewise.
8204         (asin_upward_test_data): Likewise.
8205         (asinh_test_data): Likewise.
8206         (atan_test_data): Likewise.
8207         (atanh_test_data): Likewise.
8208         (atan2_test_data): Likewise.
8209         (cabs_test_data): Likewise.
8210         (cacos_test_data): Likewise.
8211         (cacosh_test_data): Likewise.
8212         (carg_test_data): Likewise.
8213         (casin_test_data): Likewise.
8214         (casinh_test_data): Likewise.
8215         (catan_test_data): Likewise.
8216         (catanh_test_data): Likewise.
8217         (cbrt_test_data): Likewise.
8218         (ccos_test_data): Likewise.
8219         (ccosh_test_data): Likewise.
8220         (ceil_test_data): Likewise.
8221         (cexp_test_data): Likewise.
8222         (cimag_test_data): Likewise.
8223         (clog_test_data): Likewise.
8224         (clog10_test_data): Likewise.
8225         (conj_test_data): Likewise.
8226         (copysign_test_data): Likewise.
8227         (cos_test_data): Likewise.
8228         (cos_tonearest_test_data): Likewise.
8229         (cos_towardzero_test_data): Likewise.
8230         (cos_downward_test_data): Likewise.
8231         (cos_upward_test_data): Likewise.
8232         (cosh_test_data): Likewise.
8233         (cosh_tonearest_test_data): Likewise.
8234         (cosh_towardzero_test_data): Likewise.
8235         (cosh_downward_test_data): Likewise.
8236         (cosh_upward_test_data): Likewise.
8237         (cpow_test_data): Likewise.
8238         (cproj_test_data): Likewise.
8239         (creal_test_data): Likewise.
8240         (csin_test_data): Likewise.
8241         (csinh_test_data): Likewise.
8242         (csqrt_test_data): Likewise.
8243         (ctan_test_data): Likewise.
8244         (ctan_tonearest_test_data): Likewise.
8245         (ctan_towardzero_test_data): Likewise.
8246         (ctan_downward_test_data): Likewise.
8247         (ctan_upward_test_data): Likewise.
8248         (ctanh_test_data): Likewise.
8249         (ctanh_tonearest_test_data): Likewise.
8250         (ctanh_towardzero_test_data): Likewise.
8251         (ctanh_downward_test_data): Likewise.
8252         (ctanh_upward_test_data): Likewise.
8253         (erf_test_data): Likewise.
8254         (erfc_test_data): Likewise.
8255         (exp_test_data): Likewise.
8256         (exp_tonearest_test_data): Likewise.
8257         (exp_towardzero_test_data): Likewise.
8258         (exp_downward_test_data): Likewise.
8259         (exp_upward_test_data): Likewise.
8260         (exp10_test_data): Likewise.
8261         (exp2_test_data): Likewise.
8262         (expm1_test_data): Likewise.
8263         (fabs_test_data): Likewise.
8264         (fdim_test_data): Likewise.
8265         (finite_test_data): Likewise.
8266         (floor_test_data): Likewise.
8267         (fma_test_data): Likewise.
8268         (fma_towardzero_test_data): Likewise.
8269         (fma_downward_test_data): Likewise.
8270         (fma_upward_test_data): Likewise.
8271         (fmax_test_data): Likewise.
8272         (fmin_test_data): Likewise.
8273         (fmod_test_data): Likewise.
8274         (fpclassify_test_data): Likewise.
8275         (frexp_test_data): Likewise.
8276         (gamma_test_data): Likewise.
8277         (hypot_test_data): Likewise.
8278         (ilogb_test_data): Likewise.
8279         (isfinite_test_data): Likewise.
8280         (isgreater_test_data): Likewise.
8281         (isgreaterequal_test_data): Likewise.
8282         (isinf_test_data): Likewise.
8283         (isless_test_data): Likewise.
8284         (islessequal_test_data): Likewise.
8285         (islessgreater_test_data): Likewise.
8286         (isnan_test_data): Likewise.
8287         (isnormal_test_data): Likewise.
8288         (issignaling_test_data): Likewise.
8289         (isunordered_test_data): Likewise.
8290         (j0_test_data): Likewise.
8291         (j1_test_data): Likewise.
8292         (jn_test_data): Likewise.
8293         (ldexp_test_data): Likewise.
8294         (lgamma_test_data): Likewise.
8295         (lrint_test_data): Likewise.
8296         (lrint_tonearest_test_data): Likewise.
8297         (lrint_towardzero_test_data): Likewise.
8298         (lrint_downward_test_data): Likewise.
8299         (lrint_upward_test_data): Likewise.
8300         (llrint_test_data): Likewise.
8301         (llrint_tonearest_test_data): Likewise.
8302         (llrint_towardzero_test_data): Likewise.
8303         (llrint_downward_test_data): Likewise.
8304         (llrint_upward_test_data): Likewise.
8305         (log_test_data): Likewise.
8306         (log10_test_data): Likewise.
8307         (log1p_test_data): Likewise.
8308         (log2_test_data): Likewise.
8309         (logb_test_data): Likewise.
8310         (logb_downward_test_data): Likewise.
8311         (lround_test_data): Likewise.
8312         (llround_test_data): Likewise.
8313         (modf_test_data): Likewise.
8314         (nearbyint_test_data): Likewise.
8315         (nextafter_test_data): Likewise.
8316         (nexttoward_test_data): Likewise.
8317         (pow_test_data): Likewise.
8318         (pow_tonearest_test_data): Likewise.
8319         (pow_towardzero_test_data): Likewise.
8320         (pow_downward_test_data): Likewise.
8321         (pow_upward_test_data): Likewise.
8322         (remainder_test_data): Likewise.
8323         (remainder_tonearest_test_data): Likewise.
8324         (remainder_towardzero_test_data): Likewise.
8325         (remainder_downward_test_data): Likewise.
8326         (remainder_upward_test_data): Likewise.
8327         (remquo_test_data): Likewise.
8328         (rint_test_data): Likewise.
8329         (rint_tonearest_test_data): Likewise.
8330         (rint_towardzero_test_data): Likewise.
8331         (rint_downward_test_data): Likewise.
8332         (rint_upward_test_data): Likewise.
8333         (round_test_data): Likewise.
8334         (scalb_test_data): Likewise.
8335         (scalbn_test_data): Likewise.
8336         (scalbln_test_data): Likewise.
8337         (signbit_test_data): Likewise.
8338         (sin_test_data): Likewise.
8339         (sin_tonearest_test_data): Likewise.
8340         (sin_towardzero_test_data): Likewise.
8341         (sin_downward_test_data): Likewise.
8342         (sin_upward_test_data): Likewise.
8343         (sincos_test_data): Likewise.
8344         (sinh_test_data): Likewise.
8345         (sinh_tonearest_test_data): Likewise.
8346         (sinh_towardzero_test_data): Likewise.
8347         (sinh_downward_test_data): Likewise.
8348         (sinh_upward_test_data): Likewise.
8349         (sqrt_test_data): Likewise.
8350         (tan_test_data): Likewise.
8351         (tan_tonearest_test_data): Likewise.
8352         (tan_towardzero_test_data): Likewise.
8353         (tan_downward_test_data): Likewise.
8354         (tan_upward_test_data): Likewise.
8355         (tanh_test_data): Likewise.
8356         (tgamma_test_data): Likewise.
8357         (trunc_test_data): Likewise.
8358         (y0_test_data): Likewise.
8359         (y1_test_data): Likewise.
8360         (yn_test_data): Likewise.
8361         (significand_test_data): Likewise.
8362
8363         * math/gen-libm-test.pl (@functions): Remove variable.
8364         (generate_testfile): Don't handle START and END lines.
8365         * math/libm-test.inc (START): New macro.
8366         (END): Likewise.
8367         (END_COMPLEX): Likewise.
8368         (acos_test): Use END macro without arguments.
8369         (acos_test_tonearest): Likewise.
8370         (acos_test_towardzero): Likewise.
8371         (acos_test_downward): Likewise.
8372         (acos_test_upward): Likewise.
8373         (acosh_test): Likewise.
8374         (asin_test): Likewise.
8375         (asin_test_tonearest): Likewise.
8376         (asin_test_towardzero): Likewise.
8377         (asin_test_downward): Likewise.
8378         (asin_test_upward): Likewise.
8379         (asinh_test): Likewise.
8380         (atan_test): Likewise.
8381         (atanh_test): Likewise.
8382         (atan2_test): Likewise.
8383         (cabs_test): Likewise.
8384         (cacos_test): Use END_COMPLEX macro without arguments.
8385         (cacosh_test): Likewise.
8386         (carg_test): Use END macro without arguments.
8387         (casin_test): Use END_COMPLEX macro without arguments.
8388         (casinh_test): Likewise.
8389         (catan_test): Likewise.
8390         (catanh_test): Likewise.
8391         (cbrt_test): Use END macro without arguments.
8392         (ccos_test): Use END_COMPLEX macro without arguments.
8393         (ccosh_test): Likewise.
8394         (ceil_test): Use END macro without arguments.
8395         (cexp_test): Use END_COMPLEX macro without arguments.
8396         (cimag_test): Use END macro without arguments.
8397         (clog_test): Use END_COMPLEX macro without arguments.
8398         (clog10_test): Likewise.
8399         (conj_test): Likewise.
8400         (copysign_test): Use END macro without arguments.
8401         (cos_test): Likewise.
8402         (cos_test_tonearest): Likewise.
8403         (cos_test_towardzero): Likewise.
8404         (cos_test_downward): Likewise.
8405         (cos_test_upward): Likewise.
8406         (cosh_test): Likewise.
8407         (cosh_test_tonearest): Likewise.
8408         (cosh_test_towardzero): Likewise.
8409         (cosh_test_downward): Likewise.
8410         (cosh_test_upward): Likewise.
8411         (cpow_test): Use END_COMPLEX macro without arguments.
8412         (cproj_test): Likewise.
8413         (creal_test): Use END macro without arguments.
8414         (csin_test): Use END_COMPLEX macro without arguments.
8415         (csinh_test): Likewise.
8416         (csqrt_test): Likewise.
8417         (ctan_test): Likewise.
8418         (ctan_test_tonearest): Likewise.
8419         (ctan_test_towardzero): Likewise.
8420         (ctan_test_downward): Likewise.
8421         (ctan_test_upward): Likewise.
8422         (ctanh_test): Likewise.
8423         (ctanh_test_tonearest): Likewise.
8424         (ctanh_test_towardzero): Likewise.
8425         (ctanh_test_downward): Likewise.
8426         (ctanh_test_upward): Likewise.
8427         (erf_test): Use END macro without arguments.
8428         (erfc_test): Likewise.
8429         (exp_test): Likewise.
8430         (exp_test_tonearest): Likewise.
8431         (exp_test_towardzero): Likewise.
8432         (exp_test_downward): Likewise.
8433         (exp_test_upward): Likewise.
8434         (exp10_test): Likewise.
8435         (exp2_test): Likewise.
8436         (expm1_test): Likewise.
8437         (fabs_test): Likewise.
8438         (fdim_test): Likewise.
8439         (finite_test): Likewise.
8440         (floor_test): Likewise.
8441         (fma_test): Likewise.
8442         (fma_test_towardzero): Likewise.
8443         (fma_test_downward): Likewise.
8444         (fma_test_upward): Likewise.
8445         (fmax_test): Likewise.
8446         (fmin_test): Likewise.
8447         (fmod_test): Likewise.
8448         (fpclassify_test): Likewise.
8449         (frexp_test): Likewise.
8450         (gamma_test): Likewise.
8451         (hypot_test): Likewise.
8452         (ilogb_test): Likewise.
8453         (isfinite_test): Likewise.
8454         (isgreater_test): Likewise.
8455         (isgreaterequal_test): Likewise.
8456         (isinf_test): Likewise.
8457         (isless_test): Likewise.
8458         (islessequal_test): Likewise.
8459         (islessgreater_test): Likewise.
8460         (isnan_test): Likewise.
8461         (isnormal_test): Likewise.
8462         (issignaling_test): Likewise.
8463         (isunordered_test): Likewise.
8464         (j0_test): Likewise.
8465         (j1_test): Likewise.
8466         (jn_test): Likewise.
8467         (ldexp_test): Likewise.
8468         (lgamma_test): Likewise.
8469         (lrint_test): Likewise.
8470         (lrint_test_tonearest): Likewise.
8471         (lrint_test_towardzero): Likewise.
8472         (lrint_test_downward): Likewise.
8473         (lrint_test_upward): Likewise.
8474         (llrint_test): Likewise.
8475         (llrint_test_tonearest): Likewise.
8476         (llrint_test_towardzero): Likewise.
8477         (llrint_test_downward): Likewise.
8478         (llrint_test_upward): Likewise.
8479         (log_test): Likewise.
8480         (log10_test): Likewise.
8481         (log1p_test): Likewise.
8482         (log2_test): Likewise.
8483         (logb_test): Likewise.
8484         (logb_test_downward): Likewise.
8485         (lround_test): Likewise.
8486         (llround_test): Likewise.
8487         (modf_test): Likewise.
8488         (nearbyint_test): Likewise.
8489         (nextafter_test): Likewise.
8490         (nexttoward_test): Likewise.
8491         (pow_test): Likewise.
8492         (pow_test_tonearest): Likewise.
8493         (pow_test_towardzero): Likewise.
8494         (pow_test_downward): Likewise.
8495         (pow_test_upward): Likewise.
8496         (remainder_test): Likewise.
8497         (remainder_test_tonearest): Likewise.
8498         (remainder_test_towardzero): Likewise.
8499         (remainder_test_downward): Likewise.
8500         (remainder_test_upward): Likewise.
8501         (remquo_test): Likewise.
8502         (rint_test): Likewise.
8503         (rint_test_tonearest): Likewise.
8504         (rint_test_towardzero): Likewise.
8505         (rint_test_downward): Likewise.
8506         (rint_test_upward): Likewise.
8507         (round_test): Likewise.
8508         (scalb_test): Likewise.
8509         (scalbn_test): Likewise.
8510         (scalbln_test): Likewise.
8511         (signbit_test): Likewise.
8512         (sin_test): Likewise.
8513         (sin_test_tonearest): Likewise.
8514         (sin_test_towardzero): Likewise.
8515         (sin_test_downward): Likewise.
8516         (sin_test_upward): Likewise.
8517         (sincos_test): Likewise.
8518         (sinh_test): Likewise.
8519         (sinh_test_tonearest): Likewise.
8520         (sinh_test_towardzero): Likewise.
8521         (sinh_test_downward): Likewise.
8522         (sinh_test_upward): Likewise.
8523         (sqrt_test): Likewise.
8524         (tan_test): Likewise.
8525         (tan_test_tonearest): Likewise.
8526         (tan_test_towardzero): Likewise.
8527         (tan_test_downward): Likewise.
8528         (tan_test_upward): Likewise.
8529         (tanh_test): Likewise.
8530         (tgamma_test): Likewise.
8531         (trunc_test): Likewise.
8532         (y0_test): Likewise.
8533         (y1_test): Likewise.
8534         (yn_test): Likewise.
8535         (significand_test): Likewise.
8536
8537 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
8538
8539         [BZ #15381]
8540         * libio/genops.c (_IO_no_init): Initialize wide struct info.
8541
8542 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8543
8544         [BZ #14894]
8545         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
8546         __ppc_mdoio and __ppc_mdoom.
8547         * manual/platform.texi: Document new functions __ppc_yield,
8548         __ppc_mdoio and __ppc_mdoom.
8549
8550 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
8551
8552         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
8553         (main): Mention "tls" pseudo-hwcap is legacy.
8554         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
8555
8556 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8557
8558         * math/gen-libm-test.pl (parse_args): Output only string of
8559         arguments as text for test name, not full call or descriptions of
8560         tests for extra outputs.
8561         (generate_testfile): Do not pass function name to parse_args.
8562         Generate this_func variable from START.
8563         * math/libm-test.inc (struct test_f_f_data): Rename test_name
8564         field to arg_str.
8565         (struct test_ff_f_data): Likewise.
8566         (test_ff_f_data_nexttoward): Likewise.
8567         (struct test_fi_f_data): Likewise.
8568         (struct test_fl_f_data): Likewise.
8569         (struct test_if_f_data): Likewise.
8570         (struct test_fff_f_data): Likewise.
8571         (struct test_c_f_data): Likewise.
8572         (struct test_f_f1_data): Likewise.  Remove field extra_name.
8573         (struct test_fF_f1_data): Likewise.
8574         (struct test_ffI_f1_data): Likewise.
8575         (struct test_c_c_data): Rename test_name field to arg_str.
8576         (struct test_cc_c_data): Likewise.
8577         (struct test_f_i_data): Likewise.
8578         (struct test_ff_i_data): Likewise.
8579         (struct test_f_l_data): Likewise.
8580         (struct test_f_L_data): Likewise.
8581         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
8582         and extra2_name.
8583         (COMMON_TEST_SETUP): New macro.
8584         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
8585         (COMMON_TEST_CLEANUP): Likewise.
8586         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
8587         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
8588         macros.
8589         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
8590         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
8591         macros.
8592         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
8593         (RUN_TEST_fff_f): Take argument string.  Call new setup and
8594         cleanup macros.
8595         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
8596         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
8597         macros.
8598         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
8599         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
8600         macros.
8601         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8602         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
8603         cleanup macros.
8604         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8605         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
8606         cleanup macros.
8607         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8608         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
8609         cleanup macros.
8610         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8611         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
8612         macros.
8613         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
8614         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
8615         macros.
8616         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
8617         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
8618         macros.
8619         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
8620         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
8621         cleanup macros.
8622         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
8623         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
8624         cleanup macros.
8625         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
8626         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
8627         macros.
8628         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
8629         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
8630         cleanup macros.
8631         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
8632         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
8633         macros.
8634         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
8635         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
8636         macros.
8637         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
8638         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
8639         cleanup macros.
8640         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
8641
8642 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
8643
8644         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
8645         to _sifields.sigfault.
8646         (si_addr_lsb): Define new macro.
8647         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
8648         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8649         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
8650
8651 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
8652
8653         [BZ #15441]
8654         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
8655         returns -1.
8656         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
8657         null return -1.
8658         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
8659         loading the domain.
8660
8661 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8662
8663         * math/gen-libm-test.pl (parse_args): Do not include expected
8664         result in test name.
8665         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
8666         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8667         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8668         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8669         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8671
8672 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8673
8674         * benchtests/Makefile: Sort function entries.
8675
8676         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
8677         tanh, asinh, acosh, atanh.
8678         * benchtests/acos-inputs: New file.
8679         * benchtests/acosh-inputs: New file.
8680         * benchtests/asin-inputs: New file.
8681         * benchtests/asinh-inputs: New file.
8682         * benchtests/atanh-inputs: New file.
8683         * benchtests/cosh-inputs: New file.
8684         * benchtests/log-inputs: New file.
8685         * benchtests/sinh-inputs: New file.
8686         * benchtests/tanh-inputs: New file.
8687
8688 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
8689
8690         [BZ #15339]
8691         * posix/tst-getaddrinfo4.c: New test.
8692         * posix/Makefile (tests): Add it.
8693
8694 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8695
8696         [BZ #15339]
8697         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
8698         when no services were used.
8699         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
8700         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
8701
8702 2013-05-21  Andreas Schwab  <schwab@suse.de>
8703
8704         [BZ #15014]
8705         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
8706         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
8707         successful.
8708         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
8709         redundant variable declarations and reallocation of buffer when
8710         parsing as IPv6 address.  Always set NSS status when called from
8711         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
8712         buffer too small.  Correct computation of needed size.
8713         * nss/Makefile (tests): Add test-digits-dots.
8714         * nss/test-digits-dots.c: New test.
8715
8716 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8717
8718         * benchtests/Makefile: Remove instructions for adding
8719         benchmark tests.
8720         * benchtests/README: New file to explain how to execute and
8721         enhance the benchmark tests.
8722
8723 2013-05-21  Andreas Schwab  <schwab@suse.de>
8724
8725         [BZ #15493]
8726         * setjmp/Makefile (tests): Add tst-sigsetjmp.
8727         * setjmp/tst-sigsetjmp.c: New test.
8728
8729 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8730
8731         * sysdeps/x86_64/memset.S (memset): New implementation.
8732         (__bzero): Likewise.
8733         (__memset_tail): New function.
8734
8735 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8736
8737         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
8738         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
8739         __memcpy_sse2_unaligned ifunc selection.
8740         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
8741         Add memcpy-sse2-unaligned.S.
8742         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8743         Add: __memcpy_sse2_unaligned.
8744
8745 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
8746
8747         [BZ #15490]
8748         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
8749         math_force_eval before restoring floating-point envrionment.
8750         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
8751         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
8752         Likewise.
8753         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
8754         <math_private.h>.
8755         (__nearbyintl): Use math_force_eval before restoring
8756         floating-point environment.
8757         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
8758
8759         * math/gen-libm-test.pl (special_functions): Remove.
8760         (parse_args): Don't handle TEST_extra.  Handle functions with no
8761         return value.
8762         * math/libm-test.inc (struct test_sincos_data): Replace with
8763         struct test_fFF_11_data.
8764         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
8765         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
8766         (sincos_test_data): Change element type to struct
8767         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
8768         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
8769         RUN_TEST_LOOP_sincos.
8770         * math/README.libm-test: Don't mention special handling of
8771         individual functions.
8772         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
8773         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8774         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8775         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8776         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8778
8779         * math/gen-libm-test.pl (get_variable): Remove function.
8780         (parse_args): Don't show pointer parameters to call in test
8781         names.  Use "extra output N" in test names for extra outputs
8782         rather than naming variables.
8783
8784 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
8785
8786         [BZ #15488]
8787         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
8788         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
8789         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
8790         double tests.
8791         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
8792         disable.
8793         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
8794         check_long_double.
8795
8796         * math/gen-libm-test.pl (@tests): Remove variable.
8797         ($count): Likewise.
8798         (new_test): Remove function.
8799         (show_exceptions): New function.
8800         (special_functions): Use show_exceptions instead of new_test.
8801         (parse_args): Likewise.
8802         (generate_testfile): Pass only function name in generated call to
8803         print_max_error or print_complex_max_error.
8804         (get_ulps): Do not handle complex tests specially.
8805         (output_test): Rename to ...
8806         (get_all_ulps_for_test): ... this.  Return a string rather than
8807         printing to a file.  Require ulps to be present.
8808         (output_ulps): Generate arrays rather than #defines.
8809         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
8810         (struct ulp_data): New type.
8811         (BUILD_COMPLEX_ULP): Remove macro.
8812         (compare_ulp_data): New function.
8813         (find_ulps): Likewise.
8814         (find_test_ulps): Likewise.
8815         (find_function_ulps): Likewise.
8816         (find_complex_function_ulps): Likewise.
8817         (print_max_error): Determine allowed ulps using
8818         find_function_ulps.
8819         (print_complex_max_error): Determine allowed ulps using
8820         find_complex_function_ulps.
8821         (check_float_internal): Determine max ulps using find_test_ulps.
8822         (check_float): Do not take max_ulp parameter.  Update call to
8823         check_float_internal.
8824         (check_complex): Likewise.
8825         (check_int): Do not take max_ulp parameter.
8826         (check_long): Likewise.
8827         (check_bool): Likewise.
8828         (check_longlong): Likewise.
8829         (struct test_f_f_data): Remove max_ulp field.
8830         (struct test_ff_f_data): Likewise.
8831         (struct test_ff_f_data_nexttoward): Likewise.
8832         (struct test_fi_f_data): Likewise.
8833         (struct test_fl_f_data): Likewise.
8834         (struct test_if_f_data): Likewise.
8835         (struct test_fff_f_data): Likewise.
8836         (struct test_c_f_data): Likewise.
8837         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
8838         (struct test_fF_f1_data): Likewise.
8839         (struct test_ffI_f1_data): Likewise.
8840         (struct test_c_c_data): Remove max_ulp field.
8841         (struct test_cc_c_data): Likewise.
8842         (struct test_f_i_data): Likewise.
8843         (struct test_ff_i_data): Likewise.
8844         (struct test_f_l_data): Likewise.
8845         (struct test_f_L_data): Likewise.
8846         (struct test_sincos_data): Likewise.
8847         (RUN_TEST_f_f): Do not handle ulps.
8848         (RUN_TEST_LOOP_f_f): Likewise.
8849         (RUN_TEST_2_f): Likewise.
8850         (RUN_TEST_LOOP_2_f): Likewise.
8851         (RUN_TEST_fff_f): Likewise.
8852         (RUN_TEST_LOOP_fff_f): Likewise.
8853         (RUN_TEST_c_f): Likewise.
8854         (RUN_TEST_LOOP_c_f): Likewise.
8855         (RUN_TEST_f_f1): Likewise.
8856         (RUN_TEST_LOOP_f_f1): Likewise.
8857         (RUN_TEST_fF_f1): Likewise.
8858         (RUN_TEST_LOOP_fF_f1): Likewise.
8859         (RUN_TEST_fI_f1): Likewise.
8860         (RUN_TEST_LOOP_fI_f1): Likewise.
8861         (RUN_TEST_ffI_f1): Likewise.
8862         (RUN_TEST_LOOP_ffI_f1): Likewise.
8863         (RUN_TEST_c_c): Likewise.
8864         (RUN_TEST_LOOP_c_c): Likewise.
8865         (RUN_TEST_cc_c): Likewise.
8866         (RUN_TEST_LOOP_cc_c): Likewise.
8867         (RUN_TEST_f_i): Likewise.
8868         (RUN_TEST_LOOP_f_i): Likewise.
8869         (RUN_TEST_f_i_tg): Likewise.
8870         (RUN_TEST_LOOP_f_i_tg): Likewise.
8871         (RUN_TEST_ff_i_tg): Likewise.
8872         (RUN_TEST_LOOP_ff_i_tg): Likewise.
8873         (RUN_TEST_f_b): Likewise.
8874         (RUN_TEST_LOOP_f_b): Likewise.
8875         (RUN_TEST_f_b_tg): Likewise.
8876         (RUN_TEST_LOOP_f_b_tg): Likewise.
8877         (RUN_TEST_f_l): Likewise.
8878         (RUN_TEST_LOOP_f_l): Likewise.
8879         (RUN_TEST_f_L): Likewise.
8880         (RUN_TEST_LOOP_f_L): Likewise.
8881         (RUN_TEST_sincos): Likewise.
8882         (RUN_TEST_LOOP_sincos): Likewise.
8883
8884 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
8885
8886         [BZ #15480]
8887         [BZ #15485]
8888         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
8889         main case of finite arguments, set rounding mode to FE_TONEAREST
8890         and discard exceptions.
8891         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
8892         exceptions.
8893         (remainder_tonearest_test_data): New variable.
8894         (remainder_test_tonearest): New function.
8895         (remainder_towardzero_test_data): New variable.
8896         (remainder_test_towardzero): New function.
8897         (remainder_downward_test_data): New variable.
8898         (remainder_test_downward): New function.
8899         (remainder_upward_test_data): New variable.
8900         (remainder_test_upward): New function.
8901         (main): Call the new test functions.
8902
8903         * math/libm-test.inc (struct test_f_f1_data): Remove field
8904         extra_init.
8905         (struct test_fF_f1_data): Likewise.
8906         (struct test_ffI_f1_data): Likewise.
8907         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
8908         based on value of EXTRA_EXPECTED.
8909         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8910         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
8911         EXTRA_VAR based on value of EXTRA_EXPECTED.
8912         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8913         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
8914         EXTRA_VAR based on value of EXTRA_EXPECTED.
8915         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8916         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
8917         EXTRA_VAR based on value of EXTRA_EXPECTED.
8918         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8919         * math/gen-libm-test.pl (parse_args): Don't output initializers
8920         for extra output values.
8921
8922         * math/libm-test.inc (check_int): Expect result to be exactly
8923         equal to expected value and do not handle ulps.
8924         (check_long): Likewise.
8925         (check_longlong): Likewise.
8926
8927         * math/libm-test.inc (ceil_test_data): Test for "inexact"
8928         exceptions.
8929         (cimag_test_data): Likewise.
8930         (conj_test_data): Likewise.
8931         (copysign_test_data): Likewise.
8932         (cproj_test_data): Likewise.
8933         (creal_test_data): Likewise.
8934         (fabs_test_data): Likewise.
8935         (fdim_test_data): Likewise.
8936         (finite_test_data): Likewise.
8937         (floor_test_data): Likewise.
8938         (fmax_test_data): Likewise.
8939         (fmin_test_data): Likewise.
8940         (fmod_test_data): Likewise.
8941         (fpclassify_test_data): Likewise.
8942         (frexp_test_data): Likewise.
8943         (ilogb_test_data): Likewise.
8944         (isfinite_test_data): Likewise.
8945         (isgreater_test_data): Likewise.
8946         (isgreaterequal_test_data): Likewise.
8947         (isinf_test_data): Likewise.
8948         (isless_test_data): Likewise.
8949         (islessequal_test_data): Likewise.
8950         (islessgreater_test_data): Likewise.
8951         (isnan_test_data): Likewise.
8952         (isnormal_test_data): Likewise.
8953         (issignaling_test_data): Likewise.
8954         (isunordered_test_data): Likewise.
8955         (ldexp_test_data): Likewise.
8956         (lrint_test_data): Likewise.
8957         (lrint_test_data) [TEST_FLOAT]: Disable one test.
8958         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
8959         (lrint_tonearest_test_data): Test for "inexact" exceptions.
8960         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
8961         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
8962         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
8963         test input.
8964         (lrint_towardzero_test_data): Test for "inexact" exceptions.
8965         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
8966         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
8967         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
8968         that test input.
8969         (lrint_downward_test_data): Test for "inexact" exceptions.
8970         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
8971         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
8972         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
8973         test input.
8974         (lrint_upward_test_data): Test for "inexact" exceptions.
8975         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
8976         test input.
8977         (llrint_test_data): Test for "inexact" exceptions.
8978         (llrint_test_data) [TEST_FLOAT]: Disable one test.
8979         (llrint_tonearest_test_data): Test for "inexact" exceptions.
8980         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
8981         (llrint_towardzero_test_data): Test for "inexact" exceptions.
8982         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
8983         (llrint_downward_test_data): Test for "inexact" exceptions.
8984         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
8985         (llrint_upward_test_data): Test for "inexact" exceptions.
8986         (logb_test_data): Likewise.
8987         (logb_downward_test_data): Likewise.
8988         (nextafter_test_data): Likewise.
8989         (nexttoward_test_data): Likewise.
8990         (remainder_test_data): Likewise.
8991         (remquo_test_data): Likewise.
8992         (scalbn_test_data): Likewise.
8993         (scalbln_test_data): Likewise.
8994         (signbit_test_data): Likewise.
8995         (sqrt_test_data): Likewise.
8996         (significand_test_data): Likewise.
8997
8998 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
8999
9000         [BZ #15424]
9001         * benchtests/bench-modf.c (struct args): Mark arg0 as
9002         volatile.
9003         * scripts/bench.pl: Mark members of struct args as volatile.
9004
9005 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9006
9007         [BZ # 15497]
9008         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
9009         negative infinity on POWER6 or lower.
9010         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
9011
9012 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
9013
9014         [BZ #15442]
9015         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
9016         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
9017         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
9018         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
9019         (_FP_SETQNAN): New macro.
9020         (_FP_SETQNAN_SEMIRAW): Likewise.
9021         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
9022         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
9023         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
9024         (FP_EXTEND): Use _FP_FRAC_SNANP.
9025         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
9026         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
9027         into account.
9028         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9029         New macro.
9030         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9031         Likewise.
9032
9033 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9034
9035         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
9036         with DIVIDE_BY_ZERO_EXCEPTION.
9037         (gamma_test_data): Likewise.
9038         (lgamma_test_data): Likewise.
9039         (log_test_data): Likewise.
9040         (log10_test_data): Likewise.
9041         (log2_test_data): Likewise.
9042         (tgamma_test_data): Likewise.
9043
9044         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
9045         (acos_test_tonearest): Likewise.
9046         (acos_test_towardzero): Likewise.
9047         (acos_test_downward): Likewise.
9048         (acos_test_upward): Likewise.
9049         (acosh_test): Likewise.
9050         (asin_test): Likewise.
9051         (asin_test_tonearest): Likewise.
9052         (asin_test_towardzero): Likewise.
9053         (asin_test_downward): Likewise.
9054         (asin_test_upward): Likewise.
9055         (asinh_test): Likewise.
9056         (atan_test): Likewise.
9057         (atanh_test): Likewise.
9058         (atan2_test): Likewise.
9059         (cabs_test): Likewise.
9060         (cacos_test): Likewise.
9061         (cacosh_test): Likewise.
9062         (casin_test): Likewise.
9063         (casinh_test): Likewise.
9064         (catan_test): Likewise.
9065         (catanh_test): Likewise.
9066         (cbrt_test): Likewise.
9067         (ccos_test): Likewise.
9068         (ccosh_test): Likewise.
9069         (cexp_test): Likewise.
9070         (clog_test): Likewise.
9071         (clog10_test): Likewise.
9072         (cos_test): Likewise.
9073         (cos_test_tonearest): Likewise.
9074         (cos_test_towardzero): Likewise.
9075         (cos_test_downward): Likewise.
9076         (cos_test_upward): Likewise.
9077         (cosh_test): Likewise.
9078         (cosh_test_tonearest): Likewise.
9079         (cosh_test_towardzero): Likewise.
9080         (cosh_test_downward): Likewise.
9081         (cosh_test_upward): Likewise.
9082         (cpow_test): Likewise.
9083         (csin_test): Likewise.
9084         (csinh_test): Likewise.
9085         (csqrt_test): Likewise.
9086         (ctan_test): Likewise.
9087         (ctan_test_tonearest): Likewise.
9088         (ctan_test_towardzero): Likewise.
9089         (ctan_test_downward): Likewise.
9090         (ctan_test_upward): Likewise.
9091         (ctanh_test): Likewise.
9092         (ctanh_test_tonearest): Likewise.
9093         (ctanh_test_towardzero): Likewise.
9094         (ctanh_test_downward): Likewise.
9095         (ctanh_test_upward): Likewise.
9096         (erf_test): Likewise.
9097         (erfc_test): Likewise.
9098         (exp_test): Likewise.
9099         (exp_test_tonearest): Likewise.
9100         (exp_test_towardzero): Likewise.
9101         (exp_test_downward): Likewise.
9102         (exp_test_upward): Likewise.
9103         (exp10_test): Likewise.
9104         (exp2_test): Likewise.
9105         (expm1_test): Likewise.
9106         (fmod_test): Likewise.
9107         (gamma_test): Likewise.
9108         (hypot_test): Likewise.
9109         (j0_test): Likewise.
9110         (j1_test): Likewise.
9111         (jn_test): Likewise.
9112         (lgamma_test): Likewise.
9113         (log_test): Likewise.
9114         (log10_test): Likewise.
9115         (log1p_test): Likewise.
9116         (log2_test): Likewise.
9117         (logb_test_downward): Likewise.
9118         (pow_test): Likewise.
9119         (pow_test_tonearest): Likewise.
9120         (pow_test_towardzero): Likewise.
9121         (pow_test_downward): Likewise.
9122         (pow_test_upward): Likewise.
9123         (remainder_test): Likewise.
9124         (remquo_test): Likewise.
9125         (sin_test): Likewise.
9126         (sin_test_tonearest): Likewise.
9127         (sin_test_towardzero): Likewise.
9128         (sin_test_downward): Likewise.
9129         (sin_test_upward): Likewise.
9130         (sincos_test): Likewise.
9131         (sinh_test): Likewise.
9132         (sinh_test_tonearest): Likewise.
9133         (sinh_test_towardzero): Likewise.
9134         (sinh_test_downward): Likewise.
9135         (sinh_test_upward): Likewise.
9136         (sqrt_test): Likewise.
9137         (tan_test): Likewise.
9138         (tan_test_tonearest): Likewise.
9139         (tan_test_towardzero): Likewise.
9140         (tan_test_downward): Likewise.
9141         (tan_test_upward): Likewise.
9142         (tanh_test): Likewise.
9143         (tgamma_test): Likewise.
9144         (y0_test): Likewise.
9145         (y1_test): Likewise.
9146         (yn_test): Likewise.
9147
9148         * math/gen-libm-test.pl (adjust_arg): Remove function.
9149         (special_function): Remove argument $in_func.  Only handle
9150         generating output for tables of tests, not inside functions.
9151         (parse_args): Likewise.
9152         (generate_testfile): Remove variable $in_func.  Update call to
9153         parse_args.
9154         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
9155         (MINUS_ZERO_INIT): Rename macro to minus_zero.
9156         (PLUS_INFTY_INIT): Rename macro to plus_infty.
9157         (MINUS_INFTY_INIT): Rename macro to minus_infty.
9158         (QNAN_VALUE_INIT): Rename macro to qnan_value.
9159         (MAX_VALUE_INIT): Rename macro to max_value.
9160         (MIN_VALUE_INIT): Rename macro to min_value.
9161         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
9162         (plus_zero): Remove variable.
9163         (minus_zero): Likewise.
9164         (plus_infty): Likewise.
9165         (minus_infty): Likewise.
9166         (qnan_value): Likewise.
9167         (max_value): Likewise.
9168         (min_value): Likewise.
9169         (min_subnorm_value): Likewise.
9170
9171 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9172
9173         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
9174         uint64_t or uint32_t usage.
9175         * crypt/sha256-block.c: Likewise.
9176         * crypt/sha256-crypt.c: Likewise.
9177         * crypt/sha256.c: Likewise.
9178         * crypt/sha512-block.c: Likewise.
9179         * crypt/sha512-crypt.c: Likewise.
9180         * crypt/sha512.c: Likewise.
9181         * debug/backtrace-tst.c: Likewise.
9182         * debug/pcprofiledump.c: Likewise.
9183         * elf/cache.c: Likewise.
9184         * elf/dl-cache.c: Likewise.
9185         * elf/dl-misc.c: Likewise.
9186         * elf/dl-profile.c: Likewise.
9187         * elf/dl-support.c: Likewise.
9188         * elf/ldconfig.c: Likewise.
9189         * elf/sprof.c: Likewise.
9190         * iconv/dummy-repertoire.c: Likewise.
9191         * iconv/iconv_charmap.c: Likewise.
9192         * iconv/skeleton.c: Likewise.
9193         * iconvdata/8bit-generic.c: Likewise.
9194         * iconvdata/cp737.h: Likewise.
9195         * iconvdata/cp775.h: Likewise.
9196         * iconvdata/ibm1008.h: Likewise.
9197         * iconvdata/ibm1025.h: Likewise.
9198         * iconvdata/ibm1046.h: Likewise.
9199         * iconvdata/ibm1097.h: Likewise.
9200         * iconvdata/ibm1112.h: Likewise.
9201         * iconvdata/ibm1122.h: Likewise.
9202         * iconvdata/ibm1123.h: Likewise.
9203         * iconvdata/ibm1124.h: Likewise.
9204         * iconvdata/ibm1129.h: Likewise.
9205         * iconvdata/ibm1130.h: Likewise.
9206         * iconvdata/ibm1132.h: Likewise.
9207         * iconvdata/ibm1133.h: Likewise.
9208         * iconvdata/ibm1137.h: Likewise.
9209         * iconvdata/ibm1140.h: Likewise.
9210         * iconvdata/ibm1141.h: Likewise.
9211         * iconvdata/ibm1142.h: Likewise.
9212         * iconvdata/ibm1143.h: Likewise.
9213         * iconvdata/ibm1144.h: Likewise.
9214         * iconvdata/ibm1145.h: Likewise.
9215         * iconvdata/ibm1146.h: Likewise.
9216         * iconvdata/ibm1147.h: Likewise.
9217         * iconvdata/ibm1148.h: Likewise.
9218         * iconvdata/ibm1149.h: Likewise.
9219         * iconvdata/ibm1153.h: Likewise.
9220         * iconvdata/ibm1154.h: Likewise.
9221         * iconvdata/ibm1155.h: Likewise.
9222         * iconvdata/ibm1156.h: Likewise.
9223         * iconvdata/ibm1157.h: Likewise.
9224         * iconvdata/ibm1158.h: Likewise.
9225         * iconvdata/ibm1160.h: Likewise.
9226         * iconvdata/ibm1161.h: Likewise.
9227         * iconvdata/ibm1162.h: Likewise.
9228         * iconvdata/ibm1163.h: Likewise.
9229         * iconvdata/ibm1164.h: Likewise.
9230         * iconvdata/ibm1166.h: Likewise.
9231         * iconvdata/ibm1167.h: Likewise.
9232         * iconvdata/ibm12712.h: Likewise.
9233         * iconvdata/ibm1390.h: Likewise.
9234         * iconvdata/ibm1399.h: Likewise.
9235         * iconvdata/ibm16804.h: Likewise.
9236         * iconvdata/ibm4517.h: Likewise.
9237         * iconvdata/ibm4899.h: Likewise.
9238         * iconvdata/ibm4909.h: Likewise.
9239         * iconvdata/ibm4971.h: Likewise.
9240         * iconvdata/ibm5347.h: Likewise.
9241         * iconvdata/ibm803.h: Likewise.
9242         * iconvdata/ibm856.h: Likewise.
9243         * iconvdata/ibm901.h: Likewise.
9244         * iconvdata/ibm902.h: Likewise.
9245         * iconvdata/ibm9030.h: Likewise.
9246         * iconvdata/ibm9066.h: Likewise.
9247         * iconvdata/ibm921.h: Likewise.
9248         * iconvdata/ibm922.h: Likewise.
9249         * iconvdata/ibm9448.h: Likewise.
9250         * iconvdata/isiri-3342.h: Likewise.
9251         * iconvdata/jis0201.h: Likewise.
9252         * include/link.h: Likewise.
9253         * include/netdb.h: Likewise.
9254         * inet/check_native.c: Likewise.
9255         * inet/check_pf.c: Likewise.
9256         * inet/getipv4sourcefilter.c: Likewise.
9257         * inet/getnameinfo.c: Likewise.
9258         * inet/getsourcefilter.c: Likewise.
9259         * inet/htonl.c: Likewise.
9260         * inet/setipv4sourcefilter.c: Likewise.
9261         * inet/setsourcefilter.c: Likewise.
9262         * inet/test-inet6_opt.c: Likewise.
9263         * inet/tst-network.c: Likewise.
9264         * locale/C-collate.c: Likewise.
9265         * locale/C-ctype.c: Likewise.
9266         * locale/C-time.c: Likewise.
9267         * locale/C-translit.h: Likewise.
9268         * locale/loadarchive.c: Likewise.
9269         * locale/programs/3level.h: Likewise.
9270         * locale/programs/charmap.c: Likewise.
9271         * locale/programs/charmap.h: Likewise.
9272         * locale/programs/ld-address.c: Likewise.
9273         * locale/programs/ld-collate.c: Likewise.
9274         * locale/programs/ld-ctype.c: Likewise.
9275         * locale/programs/ld-identification.c: Likewise.
9276         * locale/programs/ld-measurement.c: Likewise.
9277         * locale/programs/ld-messages.c: Likewise.
9278         * locale/programs/ld-monetary.c: Likewise.
9279         * locale/programs/ld-name.c: Likewise.
9280         * locale/programs/ld-numeric.c: Likewise.
9281         * locale/programs/ld-paper.c: Likewise.
9282         * locale/programs/ld-telephone.c: Likewise.
9283         * locale/programs/ld-time.c: Likewise.
9284         * locale/programs/linereader.c: Likewise.
9285         * locale/programs/locale.c: Likewise.
9286         * locale/programs/locarchive.c: Likewise.
9287         * locale/programs/locfile.h: Likewise.
9288         * locale/programs/repertoire.c: Likewise.
9289         * locale/programs/simple-hash.c: Likewise.
9290         * locale/programs/simple-hash.h: Likewise.
9291         * malloc/memusage.c: Likewise.
9292         * malloc/memusagestat.c: Likewise.
9293         * nis/nis_defaults.c: Likewise.
9294         * nis/nis_hash.c: Likewise.
9295         * nis/nis_print.c: Likewise.
9296         * nis/nis_xdr.c: Likewise.
9297         * nscd/connections.c: Likewise.
9298         * nscd/hstcache.c: Likewise.
9299         * nscd/nscd_gethst_r.c: Likewise.
9300         * nscd/nscd_getserv_r.c: Likewise.
9301         * nscd/nscd_helper.c: Likewise.
9302         * nscd/servicescache.c: Likewise.
9303         * nss/makedb.c: Likewise.
9304         * nss/nss_db/db-XXX.c: Likewise.
9305         * nss/nss_db/db-initgroups.c: Likewise.
9306         * nss/nss_db/db-netgrp.c: Likewise.
9307         * nss/nss_files/files-network.c: Likewise.
9308         * nss/nss_files/files-parse.c: Likewise.
9309         * posix/bug-regex5.c: Likewise.
9310         * posix/fnmatch_loop.c: Likewise.
9311         * posix/regcomp.c: Likewise.
9312         * posix/regexec.c: Likewise.
9313         * posix/tst-rfc3484-2.c: Likewise.
9314         * posix/tst-rfc3484-3.c: Likewise.
9315         * posix/tst-rfc3484.c: Likewise.
9316         * resolv/nss_dns/dns-canon.c: Likewise.
9317         * resolv/nss_dns/dns-network.c: Likewise.
9318         * resolv/res_init.c: Likewise.
9319         * resolv/res_mkquery.c: Likewise.
9320         * resolv/tst-aton.c: Likewise.
9321         * stdlib/cxa_atexit.c: Likewise.
9322         * stdlib/cxa_finalize.c: Likewise.
9323         * stdlib/gen-fpioconst.c: Likewise.
9324         * stdlib/strtol_l.c: Likewise.
9325         * string/tst-endian.c: Likewise.
9326         * sunrpc/auth_des.c: Likewise.
9327         * sunrpc/clnt_udp.c: Likewise.
9328         * sunrpc/rtime.c: Likewise.
9329         * sunrpc/svcauth_des.c: Likewise.
9330         * sunrpc/xdr.c: Likewise.
9331         * sunrpc/xdr_intXX_t.c: Likewise.
9332         * sunrpc/xdr_rec.c: Likewise.
9333         * sysdeps/generic/ldconfig.h: Likewise.
9334         * sysdeps/generic/ldsodefs.h: Likewise.
9335         * sysdeps/generic/memusage.h: Likewise.
9336         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9337         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
9338         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
9339         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9340         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9341         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9342         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9343         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9344         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9345         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
9346         * sysdeps/posix/getaddrinfo.c: Likewise.
9347         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9348         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9349         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9350         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9351         * sysdeps/powerpc/test-gettimebase.c: Likewise.
9352         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
9353         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
9354         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
9355         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
9356         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
9357         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9358         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9359         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
9360         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
9361         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
9362         * sysdeps/x86_64/dl-tls.h: Likewise.
9363         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
9364         * time/alt_digit.c: Likewise.
9365         * time/era.c: Likewise.
9366         * wcsmbs/tst-c16c32-1.c: Likewise.
9367
9368 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9369
9370         * math/libm-test.inc (struct test_sincos_data): New type.
9371         (RUN_TEST_LOOP_sincos): New macro.
9372         (sincos_test_data): New variable.
9373         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
9374
9375 2013-05-16  Richard Henderson  <rth@redhat.com>
9376
9377         * math/atest-exp2.c (LIMB64): New macro.
9378         (CONSTSZ): New macro.
9379         (mp_exp1, mp_exp_m1, mp_log2): New variables.
9380         (hexdig): Move ...
9381         (print_mpn_fp): ... to function scope.
9382         (read_mpn_hex): Remove.
9383         (get_log2): Remove.
9384         (exp2_mpn): Use mp_log2.
9385         (main): Use mp_exp1.
9386
9387 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9388
9389         * math/libm-test.inc: Remove comment about not testing "inexact"
9390         exceptions.
9391         (INEXACT_EXCEPTION): New macro.
9392         (NO_INEXACT_EXCEPTION): Likewise.
9393         (INVALID_EXCEPTION_OK): Update value.
9394         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9395         (OVERFLOW_EXCEPTION_OK): Likewise.
9396         (UNDERFLOW_EXCEPTION_OK): Likewise.
9397         (IGNORE_ZERO_INF_SIGN): Likewise.
9398         (ERRNO_UNCHANGED): Likewise.
9399         (ERRNO_EDOM): Likewise.
9400         (ERRNO_ERANGE): Likewise.
9401         (test_exceptions): Handle testing "inexact" exceptions.
9402         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
9403         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
9404         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
9405         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
9406         INEXACT_EXCEPTION.
9407         (rint_towardzero_test_data): Likewise.
9408         (rint_downward_test_data): Likewise.
9409         (rint_upward_test_data): Likewise.
9410
9411         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
9412         with OVERFLOW_EXCEPTION.
9413         (exp10_test_data): Likewise.
9414         (exp2_test_data): Likewise.
9415         (expm1_test_data): Likewise.
9416         (lgamma_test_data): Likewise.
9417         (pow_test_data): Likewise.
9418         (tgamma_test_data): Likewise.
9419         (yn_test_data): Remove duplicate test of overflow.
9420
9421         * math/libm-test.inc (struct test_cc_c_data): New type.
9422         (RUN_TEST_LOOP_cc_c): New macro.
9423         (cpow_test_data): New variable.
9424         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
9425
9426         * math/libm-test.inc (struct test_f_L_data): New type.
9427         (RUN_TEST_LOOP_f_L): New macro.
9428         (llrint_test_data): New variable.
9429         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
9430         (llrint_tonearest_test_data): New variable.
9431         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
9432         (llrint_towardzero_test_data): New variable.
9433         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
9434         (llrint_downward_test_data): New variable.
9435         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
9436         (llrint_upward_test_data): New variable.
9437         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
9438         (llround_test_data): New variable.
9439         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
9440
9441 2013-05-13  Peter Collingbourne  <pcc@google.com>
9442
9443         * math/atest-exp2.c (get_log2): Remove const attribute.
9444
9445 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9446
9447         * math/libm-test.inc (struct test_f_l_data): New type.
9448         (RUN_TEST_LOOP_f_l): New macro.
9449         (lrint_test_data): New variable.
9450         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
9451         (lrint_tonearest_test_data): New variable.
9452         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
9453         (lrint_towardzero_test_data): New variable.
9454         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
9455         (lrint_downward_test_data): New variable.
9456         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
9457         (lrint_upward_test_data): New variable.
9458         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
9459         (lround_test_data): New variable.
9460         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
9461
9462 2013-05-15  Peter Collingbourne  <pcc@google.com>
9463
9464         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
9465         (EXTRACT_WORDS64) Use where appropriate.
9466         (INSERT_WORDS64) Likewise.
9467
9468         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
9469         constraints with x constraints.
9470         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
9471
9472         * malloc/obstack.c (_obstack_compat): Add initializer.
9473
9474 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
9475
9476         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
9477         si_trapno and add si_addr_lsb to _sifields.sigfault.
9478         (si_trapno): Remove macro.
9479         (si_addr_lsb): Define new macro.
9480         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
9481
9482 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9483
9484         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
9485         instead of TEST_f_l.
9486         (llrint_test_tonearest): Likewise.
9487         (llrint_test_towardzero): Likewise.
9488         (llrint_test_downward): Likewise.
9489         (llrint_test_upward): Likewise.
9490         (llround_test): Likewise.
9491
9492         * math/libm-test.inc (struct test_f_i_data): Add comment.
9493         (RUN_TEST_LOOP_f_b): New macro.
9494         (RUN_TEST_LOOP_f_b_tg): Likewise.
9495         (finite_test_data): New variable.
9496         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
9497         (isfinite_test_data): New variable.
9498         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9499         (isinf_test_data): New variable.
9500         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9501         (isnan_test_data): New variable.
9502         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9503         (isnormal_test_data): New variable.
9504         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9505         (issignaling_test_data): New variable.
9506         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9507         (signbit_test_data): New variable.
9508         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9509
9510         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
9511         with INVALID_EXCEPTION.
9512         (acosh_test_data): Likewise.
9513         (asin_test_data): Likewise.
9514         (atanh_test_data): Likewise.
9515         (fmod_test_data): Likewise.
9516         (log_test_data): Likewise.
9517         (log10_test_data): Likewise.
9518         (log2_test_data): Likewise.
9519         (pow_test_data): Likewise.
9520         (sqrt_test_data): Likewise.
9521         (y0_test_data): Likewise.
9522         (y1_test_data): Likewise.
9523         (yn_test_data): Likewise.
9524
9525         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
9526         function contents.
9527
9528         * math/libm-test.inc (struct test_ff_i_data): New type.
9529         (RUN_TEST_LOOP_ff_i_tg): New macro.
9530         (isgreater_test_data): New variable.
9531         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9532         (isgreaterequal_test_data): New variable.
9533         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9534         (isless_test_data): New variable.
9535         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9536         (islessequal_test_data): New variable.
9537         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9538         (islessgreater_test_data): New variable.
9539         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9540         (isunordered_test_data): New variable.
9541         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9542
9543 2013-05-14  David S. Miller  <davem@davemloft.net>
9544
9545         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9546
9547 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
9548
9549         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
9550
9551         * math/libm-test.inc (struct test_fF_f1_data): Change type of
9552         extra_test to int.
9553         (struct test_f_i_data): Change type of max_ulp to int.
9554
9555         * math/libm-test.inc (test_ffI_f1_data): New type.
9556         (RUN_TEST_LOOP_ffI_f1): New macro.
9557         (remquo_test_data): New variable.
9558         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
9559
9560         * setjmp/tst-setjmp-fp.c: New file.
9561         * setjmp/Makefile (tests): Add tst-setjmp-fp.
9562         (link-libm): New variable.
9563         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
9564
9565         * math/libm-test.inc (struct test_f_i_data): New type.
9566         (RUN_TEST_LOOP_f_i): New macro.
9567         (RUN_TEST_LOOP_f_i_tg): Likewise.
9568         (fpclassify_test_data): New variable.
9569         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
9570         (ilogb_test_data): New variable.
9571         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
9572
9573         * math/libm-test.inc (scalbln_test): Correct function name in END
9574         call.
9575
9576         * math/libm-test.inc (struct test_f_f1_data): Add comment.
9577         (RUN_TEST_LOOP_fI_f1): New macro.
9578         (frexp_test_data): New variable.
9579         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
9580
9581         * math/libm-test.inc (struct test_fF_f1_data): New type.
9582         (RUN_TEST_LOOP_fF_f1): New macro.
9583         (modf_test_data): New variable.
9584         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
9585
9586         * math/libm-test.inc (struct test_f_f1_data): New type.
9587         (RUN_TEST_LOOP_f_f1): New macro.
9588         (gamma_test_data): New variable.
9589         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9590         (lgamma_test_data): New variable.
9591         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9592
9593 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
9594
9595         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
9596         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
9597         (main): Comment "tls" pseudo-hwcap.
9598
9599 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
9600
9601         * math/libm-test.inc (struct test_fl_f_data): New type.
9602         (RUN_TEST_LOOP_fl_f): New variable.
9603         (scalbln_test_data): New variable.
9604         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
9605
9606         * math/libm-test.inc (struct test_fi_f_data): New type.
9607         (RUN_TEST_LOOP_fi_f): New macro.
9608         (ldexp_test_data): New variable.
9609         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
9610         (scalbn_test_data): New variable.
9611         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
9612
9613         * math/libm-test.inc (struct test_c_f_data): New type.
9614         (RUN_TEST_LOOP_c_f): New macro.
9615         (cabs_test_data): New variable.
9616         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
9617         (carg_test_data): New variable.
9618         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
9619         (cimag_test_data): New variable.
9620         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
9621         (creal_test_data): New variable.
9622         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
9623
9624         * math/libm-test.inc (struct test_if_f_data): New type.
9625         (RUN_TEST_LOOP_if_f): New macro.
9626         (jn_test_data): New variable.
9627         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
9628         (yn_test_data): New variable.
9629         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
9630
9631         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
9632
9633 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9634
9635         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
9636         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
9637
9638 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9639
9640         * benchtests/Makefile (CPPFLAGS-nonlib): Add
9641         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
9642         (bench-deps): Add bench-timing.h.
9643         * benchtests-bench-skeleton.c: Include bench-timing.h.
9644         (main): Use TIMING_* macros instead of clock_gettime.
9645         * benchtests/bench-timing.h: New file.
9646
9647         [BZ #14582]
9648         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
9649         Renamed from _LIB_VERSION.
9650         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
9651
9652 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
9653
9654         * math/libm-test.inc (struct test_fff_f_data): New type.
9655         (RUN_TEST_LOOP_fff_f): New macro.
9656         (fma_test_data): New variable.
9657         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
9658         (fma_towardzero_test_data): New variable.
9659         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
9660         (fma_downward_test_data): New variable.
9661         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
9662         (fma_upward_test_data): New variable.
9663         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
9664
9665         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
9666         (struct test_c_c_data): New type.
9667         (RUN_TEST_LOOP_c_c): New macro.
9668         (cacos_test_data): New variable.
9669         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
9670         (cacosh_test_data): New variable.
9671         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
9672         (casin_test_data): New variable.
9673         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
9674         (casinh_test_data): New variable.
9675         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
9676         (catan_test_data): New variable.
9677         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
9678         (catanh_test_data): New variable.
9679         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
9680         (ccos_test_data): New variable.
9681         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
9682         (ccosh_test_data): New variable.
9683         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
9684         (cexp_test_data): New variable.
9685         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
9686         (clog_test_data): New variable.
9687         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
9688         (clog10_test_data): New variable.
9689         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
9690         (conj_test_data): New variable.
9691         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
9692         (cproj_test_data): New variable.
9693         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
9694         (csin_test_data): New variable.
9695         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
9696         (csinh_test_data): New variable.
9697         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
9698         (csqrt_test_data): New variable.
9699         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
9700         (ctan_test_data): New variable.
9701         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
9702         (ctan_tonearest_test_data): New variable.
9703         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9704         (ctan_towardzero_test_data): New variable.
9705         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9706         (ctan_downward_test_data): New variable.
9707         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9708         (ctan_upward_test_data): New variable.
9709         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9710         (ctanh_test_data): New variable.
9711         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
9712         (ctanh_tonearest_test_data): New variable.
9713         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9714         (ctanh_towardzero_test_data): New variable.
9715         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9716         (ctanh_downward_test_data): New variable.
9717         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9718         (ctanh_upward_test_data): New variable.
9719         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9720         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
9721         of BUILD_COMPLEX.
9722
9723         * math/libm-test.inc (struct test_ff_f_data): New type.
9724         (struct test_ff_f_data_nexttoward): Likewise.
9725         (RUN_TEST_LOOP_2_f): New macro.
9726         (RUN_TEST_LOOP_ff_f): Likewise.
9727         (atan2_test_data): New variable.
9728         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
9729         (copysign_test_data): New variable.
9730         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
9731         (fdim_test_data): New variable.
9732         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
9733         (fmax_test_data): New variable.
9734         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
9735         (fmin_test_data): New variable.
9736         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
9737         (fmod_test_data): New variable.
9738         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
9739         (hypot_test_data): New variable.
9740         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
9741         (nextafter_test_data): New variable.
9742         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
9743         (nexttoward_test_data): New variable.
9744         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
9745         (pow_test_data): New variable.
9746         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
9747         (pow_tonearest_test_data): New variable.
9748         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
9749         (pow_towardzero_test_data): New variable.
9750         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
9751         (pow_downward_test_data): New variable.
9752         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
9753         (pow_upward_test_data): New variable.
9754         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
9755         (remainder_test_data): New variable.
9756         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
9757         (scalb_test_data): New variable.
9758         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
9759         * sysdeps/i386/fpu/libm-test-ulps: Update.
9760
9761 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
9762
9763         * math/libm-test.inc (fma_test): Use max_value instead of local
9764         variable fltmax.
9765         (nextafter_test): Likewise.
9766
9767         * math/libm-test.inc (acos_towardzero_test_data): New variable.
9768         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9769         (acos_downward_test_data): New variable.
9770         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9771         (acos_upward_test_data): New variable.
9772         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9773         (acosh_test_data): New variable.
9774         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
9775         (asin_test_data): New variable.
9776         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
9777         (asin_tonearest_test_data): New variable.
9778         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9779         (asin_towardzero_test_data): New variable.
9780         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9781         (asin_downward_test_data): New variable.
9782         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9783         (asin_upward_test_data): New variable.
9784         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9785         (asinh_test_data): New variable.
9786         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
9787         (atan_test_data): New variable.
9788         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
9789         (atanh_test_data): New variable.
9790         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
9791         (cbrt_test_data): New variable.
9792         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
9793         (ceil_test_data): New variable.
9794         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
9795         (cos_test_data): New variable.
9796         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
9797         (cos_tonearest_test_data): New variable.
9798         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9799         (cos_towardzero_test_data): New variable.
9800         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9801         (cos_downward_test_data): New variable.
9802         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9803         (cos_upward_test_data): New variable.
9804         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9805         (cosh_test_data): New variable.
9806         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
9807         (cosh_tonearest_test_data): New variable.
9808         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9809         (cosh_towardzero_test_data): New variable.
9810         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9811         (cosh_downward_test_data): New variable.
9812         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9813         (cosh_upward_test_data): New variable.
9814         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9815         (erf_test_data): New variable.
9816         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
9817         (erfc_test_data): New variable.
9818         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
9819         (exp_test_data): New variable.
9820         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
9821         (exp_tonearest_test_data): New variable.
9822         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9823         (exp_towardzero_test_data): New variable.
9824         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9825         (exp_downward_test_data): New variable.
9826         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9827         (exp_upward_test_data): New variable.
9828         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9829         (exp10_test_data): New variable.
9830         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
9831         (exp2_test_data): New variable.
9832         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
9833         (expm1_test_data): New variable.
9834         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
9835         (fabs_test_data): New variable.
9836         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
9837         (floor_test_data): New variable.
9838         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
9839         (j0_test_data): New variable.
9840         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
9841         (j1_test_data): New variable.
9842         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
9843         (log_test_data): New variable.
9844         (log_test): Run tests with RUN_TEST_LOOP_f_f.
9845         (log10_test_data): New variable.
9846         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
9847         (log1p_test_data): New variable.
9848         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
9849         (log2_test_data): New variable.
9850         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
9851         (logb_test_data): New variable.
9852         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
9853         (logb_downward_test_data): New variable.
9854         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9855         (nearbyint_test_data): New variable.
9856         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
9857         (rint_test_data): New variable.
9858         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
9859         (rint_tonearest_test_data): New variable.
9860         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9861         (rint_towardzero_test_data): New variable.
9862         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9863         (rint_downward_test_data): New variable.
9864         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9865         (rint_upward_test_data): New variable.
9866         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9867         (round_test_data): New variable.
9868         (round_test): Run tests with RUN_TEST_LOOP_f_f.
9869         (sin_test_data): New variable.
9870         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
9871         (sin_tonearest_test_data): New variable.
9872         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9873         (sin_towardzero_test_data): New variable.
9874         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9875         (sin_downward_test_data): New variable.
9876         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9877         (sin_upward_test_data): New variable.
9878         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9879         (sinh_test_data): New variable.
9880         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
9881         (sinh_tonearest_test_data): New variable.
9882         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9883         (sinh_towardzero_test_data): New variable.
9884         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9885         (sinh_downward_test_data): New variable.
9886         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9887         (sinh_upward_test_data): New variable.
9888         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9889         (sqrt_test_data): New variable.
9890         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
9891         (tan_test_data): New variable.
9892         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
9893         (tan_tonearest_test_data): New variable.
9894         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9895         (tan_towardzero_test_data): New variable.
9896         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9897         (tan_downward_test_data): New variable.
9898         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9899         (tan_upward_test_data): New variable.
9900         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9901         (tanh_test_data): New variable.
9902         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
9903         (tgamma_test_data): New variable.
9904         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
9905         (trunc_test_data): New variable.
9906         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
9907         (y0_test_data): New variable.
9908         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
9909         (y1_test_data): New variable.
9910         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
9911         (significand_test_data): New variable.
9912         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
9913
9914 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
9915
9916         [BZ #12387]
9917         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
9918
9919 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9920
9921         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
9922
9923 2013-05-10  Andreas Jaeger  <aj@suse.de>
9924
9925         [BZ #15448]
9926         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
9927         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
9928
9929 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
9930
9931         * math/gen-libm-test.pl (adjust_arg): New function.
9932         (special_functions): Handle generating output in both functions
9933         and arrays.
9934         (parse_args): Likewise.
9935         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
9936         $in_func argument to parse_args.
9937         * math/libm-test.inc (struct test_f_f_data): New type.
9938         (IF_ROUND_INIT_): New macro.
9939         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
9940         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
9941         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9942         (IF_ROUND_INIT_FE_UPWARD): Likewise.
9943         (ROUND_RESTORE_): Likewise.
9944         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
9945         (ROUND_RESTORE_FE_TONEAREST): Likewise.
9946         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
9947         (ROUND_RESTORE_FE_UPWARD): Likewise.
9948         (RUN_TEST_LOOP_f_f): New macro.
9949         (acos_test_data): New variable.
9950         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
9951         (acos_tonearest_test_data): New variable.
9952         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9953
9954 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9955
9956         * benchtests/bench-skeleton.c (startup): Fix coding style.
9957
9958 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
9959
9960         [BZ #6809]
9961         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
9962         negative infinity argument.
9963         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
9964         negative infinity argument.
9965         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
9966         negative infinity argument.
9967         * math/libm-test.inc (tgamma_test): Expect errno to be set for
9968         domain errors.
9969
9970 2013-05-10  Florian Weimer  <fweimer@redhat.com>
9971
9972         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
9973         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
9974         * iconv/iconv_prog.c (main): Likewise.
9975         * locale/programs/charmap-dir.c (charmap_readdir)
9976         (fopen_uncompressed): Likewise.
9977         * locale/programs/locfile.c (siblings_uncached)
9978         (write_locale_data): Use lstat64 instead of lstat.
9979         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
9980         stat.
9981
9982 2013-05-10  Andreas Jaeger  <aj@suse.de>
9983
9984         [BZ #15395]
9985         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
9986         localization.
9987         Include <locale.h>.
9988
9989 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
9990
9991         * elf/dl-close.c (_dl_close_worker): Add comments.
9992
9993 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
9994
9995         [BZ #15359]
9996         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
9997         high part of pi/2.
9998         (__ieee754_rem_pio2l): Update comments.
9999
10000         [BZ #15429]
10001         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
10002         high part of pi/2.
10003         (__ieee754_rem_pio2l): Update comments.
10004
10005         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
10006         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
10007
10008         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
10009         M_PI_4l.
10010
10011         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
10012         (M_PI_34_LOG10El): Likewise.
10013         (M_PI2_LOG10El): Likewise.
10014         (M_PI4_LOG10El): Likewise.
10015         (M_PI_LOG10El): Likewise.
10016
10017 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10018
10019         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10020
10021 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
10022
10023         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
10024         (MINUS_ZERO_INIT): Likewise.
10025         (PLUS_INFTY_INIT): Likewise.
10026         (MINUS_INFTY_INIT): Likewise.
10027         (QNAN_VALUE_INIT): Likewise.
10028         (MAX_VALUE_INIT): Likewise.
10029         (MIN_VALUE_INIT): Likewise.
10030         (MIN_SUBNORM_VALUE_INIT): Likewise.
10031         (plus_zero): Initialize with PLUS_ZERO_INIT.
10032         (minus_zero): Initialize with MINUS_ZERO_INIT.
10033         (plus_infty): Initialize with PLUS_INFTY_INIT.
10034         (minus_infty): Initialize with MINUS_INFTY_INIT.
10035         (qnan_value): Initialize with QNAN_VALUE_INIT.
10036         (max_value): Initialize with MAX_VALUE_INIT.
10037         (min_value): Initialize with MIN_VALUE_INIT.
10038         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
10039
10040         * math/libm-test.inc (RUN_TEST_if_f): New macro.
10041         (jn_test): Use TEST_if_f instead of TEST_ff_f.
10042         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
10043         (yn_test): Use TEST_if_f instead of TEST_ff_f.
10044
10045         * math/libm-test.inc (RUN_TEST_f_f): New macro.
10046         (RUN_TEST_2_f): Likewise.
10047         (RUN_TEST_ff_f): Likewise.
10048         (RUN_TEST_fi_f): Likewise.
10049         (RUN_TEST_fl_f): Likewise.
10050         (RUN_TEST_fff_f): Likewise.
10051         (RUN_TEST_c_f): Likewise.
10052         (RUN_TEST_f_f1): Likewise.
10053         (RUN_TEST_fF_f1): Likewise.
10054         (RUN_TEST_fI_f1): Likewise.
10055         (RUN_TEST_ffI_f1): Likewise.
10056         (RUN_TEST_c_c): Likewise.
10057         (RUN_TEST_cc_c): Likewise.
10058         (RUN_TEST_f_i): Likewise.
10059         (RUN_TEST_f_i_tg): Likewise.
10060         (RUN_TEST_ff_i_tg): Likewise.
10061         (RUN_TEST_f_b): Likewise.
10062         (RUN_TEST_f_b_tg): Likewise.
10063         (RUN_TEST_f_l): Likewise.
10064         (RUN_TEST_f_L): Likewise.
10065         (RUN_TEST_sincos): Likewise.
10066         * math/gen-libm-test.pl (new_test): Take new argument to indicate
10067         whether to show exceptions.  Do not include ");\n" in return
10068         value.
10069         (special_functions): Output call to RUN_TEST_sincos instead of
10070         check_float calls.  Update calls to new_test.
10071         (parse_args): Output call to single RUN_TEST_* macro instead of
10072         check_* calls and other assignments.  Update calls to new_test.
10073
10074         [BZ #2546]
10075         [BZ #2560]
10076         [BZ #5159]
10077         [BZ #15426]
10078         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
10079         input to result for tgamma overflow.
10080         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
10081         (gamma_coeff): New variable.
10082         (NCOEFF): New macro.
10083         (gamma_positive): New function.
10084         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
10085         underflow here.  Use gamma_positive instead of exp (lgamma) for
10086         other arguments.
10087         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
10088         (gamma_coeff): New variable.
10089         (NCOEFF): New macro.
10090         (gammaf_positive): New function.
10091         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
10092         underflow here.  Use gamma_positive instead of exp (lgamma) for
10093         other arguments.
10094         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
10095         (gamma_coeff): New variable.
10096         (NCOEFF): New macro.
10097         (gammal_positive): New function.
10098         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
10099         underflow here.  Use gamma_positive instead of exp (lgamma) for
10100         other arguments.
10101         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
10102         (gamma_coeff): New variable.
10103         (NCOEFF): New macro.
10104         (gammal_positive): New function.
10105         (__ieee754_gammal_r): Handle positive infinity, overflow and
10106         underflow here.  Handle NaN the same as positive infinity.  Remove
10107         check x < 0xffffffff for negative integers.  Use gamma_positive
10108         instead of exp (lgamma) for other arguments.
10109         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
10110         (gamma_coeff): New variable.
10111         (NCOEFF): New macro.
10112         (gammal_positive): New function.
10113         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
10114         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
10115         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10116         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
10117         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
10118         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10119         * sysdeps/generic/math_private.h (__gamma_productf): New
10120         prototype.
10121         (__gamma_product): Likewise.
10122         (__gamma_productl): Likewise.
10123         * math/Makefile (libm-calls): Add gamma_product.
10124         * math/libm-test.inc (tgamma_test): Add more tests.
10125         * sysdeps/i386/fpu/libm-test-ulps: Update.
10126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10127
10128 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
10129
10130         * benchtests/bench-skeleton.c (main): Preheat CPU.
10131
10132 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
10133
10134         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
10135
10136 2013-05-07  Roland McGrath  <roland@hack.frob.com>
10137
10138         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
10139         and _dl_skip_args_internal.
10140
10141 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
10142
10143         * manual/message.texi (Message Translation): Talk about users.
10144         Message to key mapping impacts design.
10145
10146 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10147
10148         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
10149
10150         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
10151
10152         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
10153         * sysdeps/wordsize-64/glob64.c: ... here.
10154
10155         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
10156         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
10157         New macros.
10158
10159         * debug/getlogin_r_chk.c: Moved to ...
10160         * login/getlogin_r_chk.c: ... here.
10161         * debug/Makefile (routines): Move getlogin_r_chk to ...
10162         * login/Makefile (routines): ... here.
10163         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
10164         * login/Versions (libc: GLIBC_2.4): ... here.
10165
10166         * io/poll.c (__poll): Renamed from poll.
10167         Add libc_hidden_def.
10168         (poll): Define as weak alias.
10169
10170         * debug/ptsname_r_chk.c: Moved to ...
10171         * login/ptsname_r_chk.c: ... here.
10172         * debug/Makefile (routines): Move ptsname_r_chk to ...
10173         * login/Makefile (routines): ... here.
10174         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
10175         * login/Versions (libc: GLIBC_2.4): ... here.
10176
10177         * posix/getlogin.c: Moved to ...
10178         * login/getlogin.c: ... here.
10179         * posix/getlogin_r.c: Moved to ...
10180         * login/getlogin_r.c: ... here.
10181         * posix/getlogin_r.c: Moved to ...
10182         * login/getlogin_r.c: ... here.
10183         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
10184         * login/Makefile (routines): ... here.
10185         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
10186         * login/Versions (libc: GLIBC_2.0): ... here.
10187
10188         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
10189         (setrlimit): Define as weak alias.
10190
10191         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
10192         Call __ names for open, ftruncate, and close.
10193         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
10194         (truncate): Define as weak alias.
10195
10196 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
10197
10198         * math/gen-libm-test.pl (parse_args): Initialize x before each
10199         test of frexp, modf and remquo.
10200
10201         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
10202         test signgam value.
10203
10204 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10205
10206         [BZ #15418]
10207         [BZ #15419]
10208         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
10209         internal tests.
10210         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10211
10212 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10213
10214         * elf/dl-writev.h: New file.
10215         * elf/dl-misc.c: Include it.
10216         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
10217         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
10218
10219 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
10220
10221         * math/libm-test.inc (noXFails): Remove variable.
10222         (noXPasses): Likewise.
10223         (BUILD_COMPLEX_INT): Remove macro.
10224         (print_screen): Remove xfail argument.
10225         (print_screen_max_error): Likewise.
10226         (update_stats): Likewise.
10227         (print_max_error): Likewise.  Update calls to other affected
10228         functions.
10229         (print_complex_max_error): Likewise.
10230         (test_single_exception): Update calls to print_screen.
10231         (test_single_errno): Likewise.
10232         (check_float_internal): Remove xfail argument.  Update calls to
10233         other affected functions.
10234         (check_float): Likewise.
10235         (check_complex): Likewise.
10236         (check_int): Likewise.
10237         (check_long): Likewise.
10238         (check_bool): Likewise.
10239         (check_longlong): Likewise.
10240         (main): Don't print noXFails and noXPasses.
10241         * math/gen-libm-test.pl (top level): Don't mention expected
10242         failure handling in comment.
10243         (new_test): Don't handle expected failures.
10244         (parse_args): Don't mention expected failure handling in comment.
10245         (generate_testfile): Don't handle expected failures.
10246         (parse_ulps): Likewise.
10247         (print_ulps_file): Likewise.
10248         (get_failure): Remove function.
10249         (output_test): Don't handle expected failures.
10250         * make/README.libm-test: Don't mention expected failure handling.
10251
10252         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
10253         (minus_zero): Likewise.
10254         (plus_infty): Likewise.
10255         (minus_infty): Likewise.
10256         (qnan_value): Likewise.
10257         (max_value): Likewise.
10258         (min_value): Likewise.
10259         (min_subnorm_value): Likewise.
10260         (initialize): Do not initialize those variables dynamically.
10261
10262 2013-05-03  Roland McGrath  <roland@hack.frob.com>
10263
10264         * io/open.c (__open_2): Moved to ...
10265         * io/open_2.c: ... this new file.
10266         * io/open64.c (__open64_2): Moved to ...
10267         * io/open64_2.c: ... this new file.
10268         * io/openat.c (__openat_2): Moved to ...
10269         * io/openat_2.c: ... this new file.
10270         * io/openat64.c (__openat64_2): Moved to ...
10271         * io/openat64_2.c: ... this new file.
10272         * io/Makefile (routines): Add them.
10273         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
10274         * sysdeps/unix/sysv/linux/open_2.c: File removed.
10275         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
10276         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
10277         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
10278         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
10279         (__openat64): Add hidden_ver.
10280         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
10281         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
10282
10283         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10284         Separately conditionalize setting of GLRO(dl_sysinfo) so
10285         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
10286         as well, but the actual setting is only under [NEED_DL_SYSINFO].
10287
10288 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10289
10290         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
10291         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
10292         definition.
10293         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
10294         * sysdeps/unix/sysv/linux/powerpc/init-first.c
10295         (_libc_vdso_platform_setup): Add __vdso_time initialization.
10296         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
10297         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
10298
10299 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
10300
10301         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
10302         test signgam value.
10303
10304         * math/libm-test.inc (hypot_test): Do not use
10305         IGNORE_ZERO_INF_SIGN.
10306
10307 2013-05-03  Andreas Jaeger  <aj@suse.de>
10308
10309         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
10310         Linux 3.9.
10311         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
10312         (PF_MAX): Adjust for VSOCK change.
10313
10314 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10315
10316         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10317
10318 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
10319
10320         [BZ #15264]
10321         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
10322         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
10323         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
10324
10325 2013-05-02  David S. Miller  <davem@davemloft.net>
10326
10327         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10328
10329 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
10330
10331         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
10332
10333 2013-05-01  Roland McGrath  <roland@hack.frob.com>
10334
10335         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
10336
10337 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
10338
10339         [BZ #14952]
10340         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
10341         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10342         Use __attribute__ ((__gnu_inline__)).
10343         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10344         Don't use __attribute__ ((__gnu_inline__)).
10345
10346 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
10347
10348         [BZ #15423]
10349         * math/s_catan.c (__catan): Handle small real or imaginary part of
10350         input specially to avoid spurious underflow.
10351         * math/s_catanf.c (__catanf): Likewise.
10352         * math/s_catanh.c (__catanh): Likewise.
10353         * math/s_catanhf.c (__catanhf): Likewise.
10354         * math/s_catanhl.c (__catanhl): Likewise.
10355         * math/s_catanl.c (__catanl): Likewise.
10356         * math/libm-test.inc (catan_test): Add more tests.
10357         (catanh_test): Likewise.
10358         * sysdeps/i386/fpu/libm-test-ulps: Update.
10359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10360
10361 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10362
10363         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10364
10365 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
10366
10367         [BZ #15416]
10368         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
10369         accurately for denominator in atan2.
10370         * math/s_catanf.c (__catanf): Likewise.
10371         * math/s_catanh.c (__catanh): Likewise.
10372         * math/s_catanhf.c (__catanhf): Likewise.
10373         * math/s_catanhl.c (__catanhl): Likewise.
10374         * math/s_catanl.c (__catanl): Likewise.
10375         * math/libm-test.inc (catan_test): Add more tests.
10376         (catanh_test): Likewise.
10377         * sysdeps/i386/fpu/libm-test-ulps: Update.
10378         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10379
10380 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10381
10382         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
10383
10384         * benchtests/Makefile (bench): Remove slow benchmarks.
10385         * benchtests/atan-inputs: Add slow benchmark inputs.
10386         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
10387         (BENCH_FUNC): Accept variant offset.
10388         (VARIANT): Define.
10389         * benchtests/bench-skeleton.c (main): Run benchmark for each
10390         variant.
10391         * benchtests/cos-inputs: Add slow benchmark inputs.
10392         * benchtests/exp-inputs: Likewise.
10393         * benchtests/pow-inputs: Likewise.
10394         * benchtests/sin-inputs: Likewise.
10395         * benchtests/slowatan-inputs: Remove.
10396         * benchtests/slowatan.c: Remove.
10397         * benchtests/slowcos-inputs: Remove.
10398         * benchtests/slowcos.c: Remove.
10399         * benchtests/slowexp-inputs: Remove.
10400         * benchtests/slowexp.c: Remove.
10401         * benchtests/slowpow-inputs: Remove.
10402         * benchtests/slowpow.c: Remove.
10403         * benchtests/slowsin-inputs: Remove.
10404         * benchtests/slowsin.c: Remove.
10405         * benchtests/slowtan-inputs: Remove.
10406         * benchtests/slowtan.c: Remove.
10407         * benchtests/tan-inputs: Add slow benchmark inputs.
10408         * scripts/bench.pl: Parse comments and directives.
10409
10410         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
10411         in CPPFLAGS.
10412         ($(objpfx)bench-%.c): Remove *-ITER.
10413         * benchtests/bench-modf.c: Remove definition of ITER.
10414         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
10415         (main): Loop for DURATION seconds instead of fixed number of
10416         iterations.
10417         * scripts/bench.pl: Don't expect iterations in parameters.
10418
10419 2013-04-29  Roland McGrath  <roland@hack.frob.com>
10420
10421         * io/fchdir.c (__fchdir): Renamed from fchdir.
10422         (fchdir): Define as weak alias.
10423
10424 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10425
10426         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
10427         (ERRNO_EDOM): Likewise.
10428         (ERRNO_ERANGE): Likewise.
10429         (noErrnoTests): New variable.
10430         (init_max_error): Set errno to 0.
10431         (test_single_errno): New function.
10432         (test_errno): Likewise.
10433         (check_float_internal): Call test_errno.  Set errno to 0.
10434         (check_complex): Refer to errno tests in comment.
10435         (check_int): Call test_errno.  Set errno to 0.
10436         (check_long): Likewise.
10437         (check_bool): Likewise.
10438         (check_longlong): Likewise.
10439         (cos_test): Use ERRNO_* flags for errno tests instead of
10440         check_int.
10441         (expm1_test): Likewise.
10442         (fmod_test): Likewise.
10443         (ilogb_test): Likewise.
10444         (lgamma_test): Likewise.
10445         (pow_test): Likewise.
10446         (remainder_test): Likewise.
10447         (sin_test): Likewise.
10448         (tan_test): Likewise.
10449         (yn_test): Likewise.
10450         (initialize): Set errno to 0.
10451         (main): Print number of errno tests.
10452         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
10453
10454 2013-04-29  Andreas Jaeger  <aj@suse.de>
10455
10456         [BZ #15084]
10457         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
10458         and RES_USEVC.
10459
10460         [BZ #15085]
10461         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
10462         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
10463         unimplemented.
10464
10465         [BZ #15380]
10466         * stdlib/random.c (__initstate): Return NULL if
10467         __initstate fails.
10468
10469         [BZ #15086]
10470         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
10471         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
10472         RES_SNGLKUPREOP.
10473
10474 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10475
10476         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10477
10478 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10479
10480         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
10481         of individual tests.
10482         (casin_test): Likewise.
10483         (casinh_test): Likewise.
10484
10485 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
10486
10487         [BZ #15409]
10488         * math/s_catan.c (__catan): Handle arguments with large real or
10489         imaginary part separately without squaring.
10490         * math/s_catanf.c (__catanf): Likewise.
10491         * math/s_catanh.c (__catanh): Likewise.
10492         * math/s_catanhf.c (__catanhf): Likewise.
10493         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10494         and redefine.
10495         (__catanhl): Handle arguments with large real or imaginary part
10496         separately without squaring.
10497         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10498         and redefine.
10499         (__catanl): Handle arguments with large real or imaginary part
10500         separately without squaring.
10501         * math/libm-test.inc (catan_test): Add more tests.
10502         (catanh_test): Likewise.
10503         * sysdeps/i386/fpu/libm-test-ulps: Update.
10504         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10505
10506 2013-04-27  Andreas Jaeger  <aj@suse.de>
10507
10508         [BZ #15007]
10509         * stdlib/stdlib.h: Update guards for qecvt.
10510         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
10511         <stdlib.h>.
10512
10513 2013-04-27  Allan McRae  <allan@archlinux.org>
10514
10515         * sysdeps/i386/fpu/libm-test-ulps: Update.
10516
10517 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
10518
10519         [BZ #15406]
10520         * math/s_catan.c: Include <float.h>.
10521         (__catan): Ensure underflow exception occurs for underflowed
10522         result.
10523         * math/s_catanf.c: Include <float.h>.
10524         (__catanf): Ensure underflow exception occurs for underflowed
10525         result.
10526         * math/s_catanh.c: Include <float.h>.
10527         (__catanh): Ensure underflow exception occurs for underflowed
10528         result.
10529         * math/s_catanhf.c: Include <float.h>.
10530         (__catanhf): Ensure underflow exception occurs for underflowed
10531         result.
10532         * math/s_catanhl.c: Include <float.h>.
10533         (__catanhl): Ensure underflow exception occurs for underflowed
10534         result.
10535         * math/s_catanl.c: Include <float.h>.
10536         (__catanl): Ensure underflow exception occurs for underflowed
10537         result.
10538         * math/libm-test.inc (catan_test): Add more tests.
10539         (catanh_test): Likewise.
10540
10541         [BZ #15405]
10542         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
10543         underflowed result.
10544         * math/s_ccoshf.c (__ccoshf): Likewise.
10545         * math/s_ccoshl.c (__ccoshl): Likewise.
10546         * math/s_csin.c (__csin): Likewise.
10547         * math/s_csinf.c (__csinf): Likewise.
10548         * math/s_csinh.c (__csinh): Likewise.
10549         * math/s_csinhf.c (__csinhf): Likewise.
10550         * math/s_csinhl.c (__csinhl): Likewise.
10551         * math/s_csinl.c (__csinl): Likewise.
10552         * math/libm-test.inc (ccos_test): Add more tests.
10553         (ccosh_test): Likewise.
10554         (csin_test): Likewise.
10555         (csinh_test): Likewise.
10556
10557 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10558
10559         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
10560         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
10561         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
10562         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
10563         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
10564         powerpc/power5+/fpu folders.
10565         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
10566
10567
10568 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10569
10570         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10571
10572 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
10573
10574         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
10575         additions to variable.
10576         [$(config-machine) = x86_64] (modules-names): Likewise.
10577         ($(objpfx)tst-audit3): Remove dependency.
10578         ($(objpfx)tst-audit3.out): Likewise.
10579         ($(objpfx)tst-audit4): Likewise.
10580         ($(objpfx)tst-audit4.out): Likewise.
10581         ($(objpfx)tst-audit5): Likewise.
10582         ($(objpfx)tst-audit5.out): Likewise.
10583         ($(objpfx)tst-audit6): Likewise.
10584         ($(objpfx)tst-audit6.out): Likewise.
10585         ($(objpfx)tst-audit7): Likewise.
10586         ($(objpfx)tst-audit7.out): Likewise.
10587         (tst-audit3-ENV): Remove variable.
10588         (tst-audit4-ENV): Likewise.
10589         (tst-audit5-ENV): Likewise.
10590         (tst-audit6-ENV): Likewise.
10591         (tst-audit7-ENV): Likewise.
10592         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
10593         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
10594         addition to variable.
10595         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
10596         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
10597         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
10598         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
10599         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
10600         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
10601         tst-audit3, tst-audit4 and tst-audit5.
10602         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
10603         tst-audit6 and tst-audit7.
10604         [$(subdir) = elf] (modules-names): Add audit modules for those
10605         tests.
10606         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
10607         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
10608         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
10609         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
10610         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
10611         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
10612         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
10613         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
10614         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
10615         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
10616         [$(subdir) = elf] (tst-audit3-ENV): New variable.
10617         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
10618         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
10619         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
10620         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
10621         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
10622         Likewise.
10623         [$(subdir) = elf && $(config-cflags-avx) = yes]
10624         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
10625         [$(subdir) = elf && $(config-cflags-avx) = yes]
10626         (CFLAGS-tst-auditmod4a.c): Likewise.
10627         [$(subdir) = elf && $(config-cflags-avx) = yes]
10628         (CFLAGS-tst-auditmod4b.c): Likewise.
10629         [$(subdir) = elf && $(config-cflags-avx) = yes]
10630         (CFLAGS-tst-auditmod6b.c): Likewise.
10631         [$(subdir) = elf && $(config-cflags-avx) = yes]
10632         (CFLAGS-tst-auditmod6c.c): Likewise.
10633         [$(subdir) = elf && $(config-cflags-avx) = yes]
10634         (CFLAGS-tst-auditmod7b.c): Likewise.
10635         * elf/tst-audit3.c: Move to ...
10636         * sysdeps/x86_64/tst-audit3.c: ... here.
10637         * elf/tst-audit4.c: Move to ...
10638         * sysdeps/x86_64/tst-audit4.c: ... here.
10639         * elf/tst-audit5.c: Move to ...
10640         * sysdeps/x86_64/tst-audit5.c: ... here.
10641         * elf/tst-audit6.c: Move to ...
10642         * sysdeps/x86_64/tst-audit6.c: ... here.
10643         * elf/tst-audit7.c: Move to ...
10644         * sysdeps/x86_64/tst-audit7.c: ... here.
10645         * elf/tst-auditmod3a.c: Move to ...
10646         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
10647         * elf/tst-auditmod3b.c: Move to ...
10648         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
10649         * elf/tst-auditmod4a.c: Move to ...
10650         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
10651         * elf/tst-auditmod4b.c: Move to ...
10652         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
10653         * elf/tst-auditmod5a.c: Move to ...
10654         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
10655         * elf/tst-auditmod5b.c: Move to ...
10656         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
10657         * elf/tst-auditmod6a.c: Move to ...
10658         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
10659         * elf/tst-auditmod6b.c: Move to ...
10660         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
10661         * elf/tst-auditmod6c.c: Move to ...
10662         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
10663         * elf/tst-auditmod7a.c: Move to ...
10664         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
10665         * elf/tst-auditmod7b.c: Move to ...
10666         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
10667
10668 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
10669
10670         [BZ #15366]
10671         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
10672         define unconditionally.
10673         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
10674         define unconditionally.
10675         (INT8_C, INT16_C, etc.): Likewise.
10676
10677 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
10678
10679         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
10680         __ehdr_start with hidden visibility.
10681
10682         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
10683
10684 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
10685
10686         * math/libm-test.inc (cos_test): Use accurate hex constants.
10687         (sincost_test): Likewise.
10688
10689 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
10690
10691         * math/libm-test.inc (catan_test): Add more tests.
10692         (catanh_test): Likewise.
10693
10694         * math/s_catanf.c (__catanf): Use suffixed floating-point
10695         constants.
10696         * math/s_catanhf.c (__catanhf): Likewise.
10697         * math/s_catanhl.c (__catanhl): Likewise.
10698         * math/s_catanl.c (__catanl): Likewise.
10699
10700         [BZ #15394]
10701         * math/s_catan.c (__catan): Calculate imaginary part of result
10702         with log1p not log unless computing log of number close to 0.
10703         * math/s_catanf.c (__catanf): Likewise.
10704         * math/s_catanl.c (__catanl): Likewise.
10705         * math/s_catanh.c (__catanh): Calculate real part of result with
10706         log1p not log unless computing log of number close to 0.
10707         * math/s_catanhf.c (__catanhf): Likewise.
10708         * math/s_catanhl.c (__catanhl): Likewise.
10709         * math/libm-test.inc (catan_test): Add more tests.
10710         (catanh_test): Likewise.
10711         * sysdeps/i386/fpu/libm-test-ulps: Update.
10712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10713
10714 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10715
10716         * benchtests/Makefile: Mention files in which fast and slow
10717         paths of math functions are implemented.
10718
10719 2013-04-23  Roland McGrath  <roland@hack.frob.com>
10720
10721         * sysdeps/posix/timespec_get.c: New file.
10722
10723 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10724
10725         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
10726         POWER.
10727         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
10728         for POWER.
10729         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
10730         powerpc/power5/fpu folders.
10731         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
10732         * benchtests/Makefile: Add modf testcase.
10733         * benchtests/bench-modf.c: New file: Benchmark test for mo
10734
10735 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
10736
10737         [BZ #14888]
10738         * time/Makefile (tests): Add tst-strptime-whitespace.
10739         * time/strptime_l.c (get_number): Use ISSPACE.
10740         (__strptime_internal): Likewise.
10741         * time/tst-strptime-whitespace.c: New test case.
10742
10743 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
10744
10745         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
10746         member.
10747         (_nss_files_init): Set it here.
10748
10749 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
10750
10751         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
10752         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
10753         unsigned.
10754
10755 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
10756
10757         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
10758
10759 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10760
10761         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
10762         size just once.
10763
10764 2013-04-21  David S. Miller  <davem@davemloft.net>
10765
10766         * po/ru.po: Update Russion translation from translation project.
10767
10768 2013-04-17  Adam Conrad  <adconrad@0c3.net>
10769
10770         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
10771         and setfsgid.
10772
10773 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
10774
10775         * configure.in: Remove i386 configure warning. Remove i386 case.
10776         * configure: Regenerate.
10777         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
10778         Add example to error message.
10779         * sysdeps/i386/configure: Regenerate.
10780
10781 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
10782
10783         * benchtests/Makefile (bench): Add cos, tan, slowcos and
10784         slowtan.
10785         * benchtests/cos-inputs: New file.
10786         * benchtests/slowcos-inputs: New file.
10787         * benchtests/slowcos.c: New file.
10788         * benchtests/slowtan-inputs: New file.
10789         * benchtests/slowtan.c: New file.
10790         * benchtests/tan-inputs: New file.
10791
10792 2013-04-16  Roland McGrath  <roland@hack.frob.com>
10793
10794         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
10795         considered kosher.
10796
10797 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10798
10799         * benchtests/Makefile: Include cppflags-iterator.mk to add
10800         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
10801
10802         * Makefile.in (bench-clean): New target.
10803         * benchtests/Makefile (bench-clean): Likewise.
10804
10805 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
10806
10807         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
10808
10809 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
10810
10811         * stdio-common/tstdiomisc.c: Fix coding-style violation.
10812
10813 2013-04-15  Andreas Schwab  <schwab@suse.de>
10814
10815         * nscd/grpcache.c (cache_addgr): Properly check for short write.
10816         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10817         * nscd/pwdcache.c (cache_addpw): Likewise.
10818         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
10819         more than recsize.
10820
10821 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10822
10823         * benchtests/Makefile (bench): Write all output to
10824         bench-out.tmp together.
10825
10826 2013-04-15  Andreas Schwab  <schwab@suse.de>
10827
10828         * nscd/nscd.c (main): Don't fork again after closing files.
10829
10830 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10831
10832         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
10833
10834         * benchtests/Rules (bench-deps): Collect dependencies into a
10835         single variable.  Add Makefile to dependencies.
10836         ($(objpfx)bench-%.c): Depend on bench-deps.
10837
10838 2013-04-12  Roland McGrath  <roland@hack.frob.com>
10839             Xavier Roche  <roche+kml2@exalead.com>
10840
10841         [BZ #15361]
10842         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
10843         just that it's a file descriptor.
10844         * manual/llio.texi (Synchronizing AIO Operations): Update description
10845         for EBADF error from aio_fsync.
10846
10847 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10848
10849         * Rules (bench): Move target definition...
10850         * benchtests/Makefile: ... here.
10851
10852 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
10853
10854         * math/libm-test.inc (cos_test): Fix PI/2 test.
10855         (sincos_test): Likewise.
10856         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
10857         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
10858
10859 2013-04-11  Andreas Schwab  <schwab@suse.de>
10860
10861         [BZ #13988]
10862         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
10863         accept exponent character only when digits were seen.
10864         * stdio-common/Makefile (tests): Add bug26.
10865         * stdio-common/bug26.c: New file.
10866
10867         [BZ #14293]
10868         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
10869         non-freeable.
10870
10871 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10872
10873         * Makeconfig (rtld-prefix): Define built linker prefix.
10874         * Rules (run-bench): Use it.
10875         * math/Makefile (run-regen-ulps): Likewise.
10876
10877         * Rules (bench): Remove eval.
10878
10879 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10880             Roland McGrath  <roland@hack.frob.com>
10881             Ondrej Bilka  <neleai@seznam.cz>
10882
10883         [BZ #15346]
10884         * time/getdate.c: Include ctype.h and alloca.h.
10885         (__getdate_r): Trim leading and trailing spaces of input.
10886         * time/tst-getdate.c (tests): Add tests with leading and
10887         trailing spaces.
10888
10889 2013-04-08  Roland McGrath  <roland@hack.frob.com>
10890
10891         [BZ #14280]
10892         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
10893         when computing value.
10894
10895 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10896
10897         * math/README.libm-test (How can I generate "libm-test-ulps"?):
10898         Use testrun.sh to run libm tests.
10899
10900         [BZ #15309]
10901         * elf/dl-open.c (dl_open_worker): memset all of seen array.
10902
10903 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
10904
10905         [BZ #15264]
10906         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
10907
10908 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10909
10910         * Makefile.in (regen-ulps): New target.
10911         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
10912         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
10913         [ifneq (no,$(PERL)] (regen-ulps): New target.
10914         [ifeq (no,$(PERL)] (regen-ulps): New target.
10915         * math/libm-test.inc (ulps_file_name): Define.
10916         (output_dir): New variable.
10917         (options): Add "output-dir" option.
10918         (parse_opt): Handle 'o' case.
10919         (main): If output_dir is non-NULL use it as a prefix
10920         otherwise use "".
10921         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
10922
10923 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10924
10925         [BZ #10060, #10062]
10926         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
10927         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
10928         fail configure if __sync_val_compare_and_swap is not inlined.
10929         * sysdeps/i386/configure: Regenerate.
10930         * configure.in: Build for i686 when configured for i386.
10931         * configure: Regenerate.
10932         * README: Remove i386 reference.
10933
10934 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10935
10936         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
10937         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10938
10939 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10940
10941         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
10942         (lmsnanval): New variables.
10943         (F): Add conversion tests.
10944         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
10945         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
10946
10947         * stdio-common/tstdiomisc.c (F): Properly collect individual
10948         tests' results.
10949
10950         [BZ #14686, #15336]
10951         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
10952         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
10953         Instead, use input NaN values or generate a qNaN by arithmetic
10954         operation.  Also fix bugs to comply with the standard.
10955         * math/libm-test.inc (remainder_test): Add more tests.
10956
10957         [BZ #15335, #15342]
10958         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
10959         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
10960         input NaN values or generate a qNaN by arithmetic operation.
10961
10962         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
10963         unreachable code.
10964
10965         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
10966         definitions.
10967
10968 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
10969
10970         [BZ #14478]
10971         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
10972         underflowed result.
10973         * math/s_cexpf.c (__cexpf): Likewise.
10974         * math/s_cexpl.c (__cexpl): Likewise.
10975         * math/libm-test.inc (cexp_test): Add more tests.
10976
10977 2013-04-03  Andreas Schwab  <schwab@suse.de>
10978
10979         [BZ #15330]
10980         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
10981         order arrays from heap if bigger than alloca cutoff.
10982
10983 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
10984
10985         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
10986         (SNAN_TESTS_double): Refer to GCC PR56831.
10987         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
10988         GCC PR56828.
10989
10990 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
10991
10992         * Rules (bench): Move bench.out after the run is complete.
10993
10994         * Rules (bench): Echo currently running benchmark.
10995
10996         * benchtests/Makefile (bench): Add atan and slowatan.
10997         * benchtests/atan-inputs: New file.
10998         * benchtests/slowatan-inputs: New file.
10999         * benchtests/slowatan.c: New file.
11000
11001         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
11002         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
11003         its value.
11004
11005         [BZ #15305]
11006         * sysdeps/unix/sysv/linux/kernel-features.h
11007         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
11008         __ASSUME_XFS_RESTRICTED_CHOWN.
11009         * sysdeps/unix/sysv/linux/pathconf.c
11010         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
11011         Save and restore errno.
11012
11013 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
11014
11015         [BZ #15327]
11016         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
11017         arguments using __kernel_casinh.
11018         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
11019         arguments using __kernel_casinhf.
11020         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
11021         arguments using __kernel_casinhl.
11022         * math/libm-test.inc (cacosh_test): Add more tests.
11023         * sysdeps/i386/fpu/libm-test-ulps: Update.
11024         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11025
11026 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11027
11028         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
11029         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
11030
11031         * bench/Makefile (bench): Add sin and slowsin.
11032         * benchtests/sin-inputs: New file.
11033         * benchtests/slowsin-inputs: New file.
11034         * benchtests/slowsin.c: New file.
11035
11036         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
11037         (bench): Add slowexp and slowpow.
11038         (exp-ITER): Increase iterations.
11039         (pow-ITER): Likewise.
11040         * benchtests/exp-inputs: Change input.
11041         * benchtests/pow-inputs: Likewise.
11042         * benchtests/slowexp-inputs: New file.
11043         * benchtests/slowexp.c: New file.
11044         * benchtests/slowpow-inputs: New file.
11045         * benchtests/slowpow.c: New file.
11046
11047 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11048
11049         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
11050         instructions.
11051         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11052         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
11053         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
11054         * benchtests/Makefile: Add rint benchtest.
11055         * benchtests/rint-inputs: Input for rint benchtest.
11056
11057 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11058
11059         * Versions.def (libm): Add GLIBC_2.18.
11060         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
11061         hidden libm prototypes.
11062         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
11063         * math/Makefile (libm-calls): Add s_issignaling.
11064         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
11065         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
11066         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
11067         declaration.
11068         * math/math.h [__USE_GNU] (issignaling): New macro.
11069         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
11070         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
11071         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
11072         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
11073         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
11074         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
11075         * manual/arith.texi (issignaling): New section.
11076         * manual/libm-err-tab.pl (@all_functions): Update comment.
11077         * math/gen-libm-test.pl (parse_args): Apply special handling for
11078         issignaling.
11079         * math/libm-test.inc (print_float, issignaling_test): New
11080         functions.
11081         (check_float_internal): Add issignaling checks.
11082         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
11083         default definition.
11084         * sysdeps/powerpc/math-tests.h: New file.
11085         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
11086         tests.
11087         * math/test-snan.c (TEST_FUNC): Likewise.
11088
11089 2013-03-30  David S. Miller  <davem@davemloft.net>
11090
11091         * po/de.po: Update from translation team.
11092
11093 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
11094
11095         [BZ #10357]
11096         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11097         imaginary part less than 1.0 and real part less than 0.5
11098         specially.
11099         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11100         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11101         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
11102         (cacos_test): Add more tests.
11103         (casin_test): Likewise.
11104         (casinh_test): Likewise.
11105         * sysdeps/i386/fpu/libm-test-ulps: Update.
11106         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11107
11108 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11109
11110         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
11111         ONE with its value.
11112
11113         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
11114         (__pow_mp): Replace ONE and MONE with their values.
11115         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11116         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
11117         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11118         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
11119         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11120         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11121
11122         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
11123
11124         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
11125         (__pow_mp): Replace ZERO and MZERO with their values.
11126         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11127         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11128         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11129         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
11130         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11131         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
11132         (__sqr): Likewise.
11133
11134         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
11135
11136         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
11137
11138 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11139
11140         * include/stdlib.h [!SHARED] (__call_tls_dtors):
11141         Declare with __attribute__ ((weak)).
11142         * stdlib/exit.c (__libc_atexit) [!SHARED]:
11143         Call __call_tls_dtors only if it's not NULL.
11144
11145 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11146
11147         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
11148         didn't do it already, then set _dl_phdr and _dl_phnum based on the
11149         magic __ehdr_start linker symbol if it's defined.
11150         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
11151         them up here if it was already done.
11152
11153         * elf/dl-support.c (_dl_phdr): Make pointer to const.
11154         (_dl_aux_init): Use const in cast when setting it.
11155         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
11156         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
11157         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
11158
11159         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
11160         Declare them here.
11161         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
11162         * csu/libc-tls.c: Nor here.
11163         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
11164
11165         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
11166         (__libc_message): Never call vsyslog.
11167
11168 2013-03-28  Alan Modra  <amodra@gmail.com>
11169
11170         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
11171         Define as empty.
11172         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
11173         Likewise.
11174
11175 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11176
11177         [BZ #15214]
11178         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
11179         underflow.
11180         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11181
11182 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11183
11184         [BZ #15304]
11185         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
11186         Don't add gid passed as argument.
11187
11188         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
11189
11190 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
11191
11192         [BZ #15307]
11193         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11194         imaginary part between 1.0 and 1.5 and real part less than 0.5
11195         specially.
11196         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11197         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11198         * math/libm-test.inc (cacos_test): Add more tests.
11199         (casin_test): Likewise.
11200         (casinh_test): Likewise.
11201         * sysdeps/i386/fpu/libm-test-ulps: Update.
11202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11203
11204 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11205
11206         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
11207         constants.
11208         (norm): Likewise.
11209         (denorm): Likewise.
11210         (__dbl_mp): Likewise.
11211         (add_magnitudes): Likewise.
11212         (sub_magnitudes): Likewise.
11213         (__add): Likewise.
11214         (__sub): Likewise.
11215         (__mul): Likewise.
11216         (__sqr): Likewise.
11217         (__inv): Likewise.
11218         (__dvd): Likewise.
11219
11220         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
11221         commented code.
11222         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
11223         (__dubcos): Likewise.
11224         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
11225         (__ieee754_acos): Likewise.
11226         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11227         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
11228         (__exp1): Likewise.
11229         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11230         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11231         (log1): Likewise.
11232         (my_log2): Likewise.
11233         (checkint): Likewise.
11234         * sysdeps/ieee754/dbl-64/e_remainder.c
11235         (__ieee754_remainder): Likewise.
11236         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11237         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11238         (bsloww): Likewise.
11239         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11240
11241         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11242         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
11243         MANTISSA_STORE_T to store computations on mantissa.  Use
11244         macros for rounding and division.
11245         (denorm): Likewise.
11246         (__dbl_mp): Likewise.
11247         (add_magnitudes): Likewise.
11248         (sub_magnitudes): Likewise.
11249         (__mul): Likewise.
11250         (__sqr): Likewise.
11251         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11252         powers of two in terms of TWOPOW macro.
11253         (mp_no): Make type of mantissa as MANTISSA_T.
11254         [!RADIXI]: Define RADIXI.
11255         [!TWO52]: Define TWO52.
11256         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11257
11258 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11259
11260         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
11261         llroundl symbol when building for PPC32.
11262
11263 2013-03-24  Mark H Weaver  <mhw@netris.org>
11264
11265         * manual/arith.texi (Normalization Functions): Fix prototypes for
11266         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
11267
11268 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11269
11270         [BZ #13889]
11271         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
11272         high value to check if expl overflow.
11273         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
11274         to check for underflow and overflow.
11275         * math/libm-test.inc: Add exp test.
11276
11277 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
11278
11279         [BZ #11120]
11280         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
11281         with NOT_IN_libc.
11282
11283 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11284
11285         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
11286         symbol.
11287
11288 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11289
11290         * math/gen-libm-test.pl (parse_args, special_functions): Properly
11291         wrap blocks consisting of several statements.
11292
11293         * sysdeps/generic/math-tests.h: New file.
11294         * sysdeps/i386/fpu/math-tests.h: Likewise.
11295         * math/test-snan.c: Include it.
11296         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
11297
11298 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11299
11300         [BZ #15285]
11301         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
11302         (__ieee754_j0l): Do not improve calculations using cos of twice
11303         input for inputs above LDBL_MAX / 2.0L.
11304         (__ieee754_y0l): Likewise.
11305         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
11306         (__ieee754_j1l): Do not improve calculations using cos of twice
11307         input for inputs above LDBL_MAX / 2.0L.
11308         (__ieee754_y1l): Likewise.
11309         * math/libm-test.inc (j0_test): Add another test.
11310         (j1_test): Likewise.
11311         (y0_test): Likewise.
11312         (y1_test): Likewise.
11313         * sysdeps/i386/fpu/libm-test-ulps: Update.
11314
11315 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11316
11317         * Rules ($(objpfx)bench-%.c): Include code from a C source
11318         file.
11319
11320 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11321
11322         [BZ #15287]
11323         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11324         imaginary part 1.0 and real part less than 0.5 specially.
11325         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11326         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11327         * math/libm-test.inc (cacos_test): Add more tests.
11328         (casin_test): Likewise.
11329         (casinh_test): Likewise.
11330         * sysdeps/i386/fpu/libm-test-ulps: Update.
11331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11332
11333 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11334
11335         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
11336         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
11337
11338 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
11339
11340         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
11341         * config.make.in (config-cflags-sse4): Remove variable.
11342         (config-cflags-avx): Likewise.
11343         (config-cflags-sse2avx): Likewise.
11344         (config-cflags-novzeroupper): Likewise.
11345         (config-asflags-i686): Likewise.
11346         (have-mfma4): Likewise.
11347         (have-as-vis3): Likewise.
11348         (MIG): Likewise.
11349         * configure.in (MIG): Do not AC_SUBST.
11350         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
11351         (libc_cv_cc_sse4): Do not AC_SUBST.
11352         (libc_cv_cc_avx): Likewise.
11353         (libc_cv_cc_sse2avx): Likewise.
11354         (libc_cv_cc_novzeroupper): Likewise.
11355         (libc_cv_cc_fma4): Likewise.
11356         (libc_cv_as_i686): Likewise.
11357         (libc_cv_sparc_as_vis3): Likewise.
11358         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
11359         LIBC_CONFIG_VAR.
11360         (config-asflags-i686): Likewise.
11361         (config-cflags-avx): Likewise.
11362         (config-cflags-sse2avx): Likewise.
11363         (have-mfma4): Likewise.
11364         (config-cflags-novzeroupper): Likewise.
11365         * sysdeps/mach/configure.in (MIG): Likewise.
11366         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
11367         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
11368         LIBC_CONFIG_VAR.
11369         (config-cflags-avx): Likewise.
11370         (config-cflags-sse2avx): Likewise.
11371         (have-mfma4): Likewise.
11372         (config-cflags-novzeroupper): Likewise.
11373         * configure: Regenerated.
11374         * sysdeps/i386/configure: Likewise.
11375         * sysdeps/mach/configure: Likewise.
11376         * sysdeps/sparc/configure: Likewise.
11377         * sysdeps/x86_64/configure: Likewise.
11378
11379 2013-03-20  Roland McGrath  <roland@hack.frob.com>
11380
11381         [BZ #14812]
11382         * locale/programs/localedef.c (options): Put N_ translation marker
11383         on argument names, not just descriptions.
11384
11385 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11386
11387         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
11388
11389 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
11390
11391         [BZ #14176]
11392         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
11393
11394 2013-03-19  Roland McGrath  <roland@hack.frob.com>
11395
11396         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
11397         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
11398         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
11399         [!BEFORE_ABORT] (before_abort): New function.
11400         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
11401         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
11402         (writev_for_fatal): New function.
11403         (WRITEV_FOR_FATAL): New macro; call that.
11404         (backtrace_and_maps): New function.
11405         (BEFORE_ABORT): New macro; call that.
11406         (struct str_list): Type removed.
11407         (__libc_message, __libc_fatal): Functions removed.
11408         Include <sysdeps/posix/libc_fatal.c> instead.
11409
11410 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
11411
11412         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
11413         constants.
11414         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
11415         double constants.
11416
11417 2013-03-19  Andreas Schwab  <schwab@suse.de>
11418
11419         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
11420         * sysdeps/gnu/configure: Regenerate.
11421
11422         * configure.in: Substitute libc_cv_rtlddir.
11423         * configure: Regenerate.
11424         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
11425         * Makeconfig (rtlddir, inst_rtlddir): New variables.
11426         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
11427         * elf/Makefile (install-others, CFLAGS-interp.c)
11428         (ldso_install, common-ldd-rewrite): Likewise.
11429         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
11430         $(inst_slibdir)/$(rtld-installed-name).
11431         * scripts/rellns-sh: Add -p option.
11432         * Makerules (make-shlib-link): Use rellns-sh to get relative name
11433         for source.
11434
11435 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11436
11437         * manual/nptl.texi: Renamed to ...
11438         * manual/threads.texi: ... this.
11439         * manual/Makefile (chapters): Update.
11440
11441 2013-03-18  Roland McGrath  <roland@hack.frob.com>
11442
11443         [BZ #14812]
11444         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
11445         on argument names, not just descriptions.
11446         * malloc/memusagestat.c (options): Likewise.
11447         * nss/getent.c (options): Likewise.
11448
11449 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
11450
11451         [BZ #14812]
11452         * iconv/iconv_prog.c (options): Put N_ translation marker
11453         on argument names, not just descriptions.
11454         * iconv/iconvconfig.c (options): Likewise.
11455
11456 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
11457
11458         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
11459         implementation which is faster on all x86_64 architectures.
11460         Tested on AMD, Intel Nehalem, SNB, IVB.
11461         * sysdeps/x86_64/strnlen.S: Likewise.
11462
11463         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
11464         Remove all multiarch strlen and strnlen versions.
11465         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
11466         Remove strlen and strnlen related parts.
11467
11468         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
11469         Inline strlen part.
11470         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
11471
11472         * sysdeps/x86_64/multiarch/strlen.S: Remove.
11473         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
11474         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
11475         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
11476         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
11477         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
11478
11479 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
11480
11481         * manual/memory.texi (Malloc Tunable Parameters):
11482         Sort parameters alphabetically. Add comments for missing entries.
11483
11484 2013-03-17  David S. Miller  <davem@davemloft.net>
11485
11486         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11487
11488 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
11489
11490         [BZ #15283]
11491         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
11492         for arguments at most half maximum finite value.
11493         * math/libm-test.inc (j0_test): Add more tests.
11494         (j1_test): Likewise.
11495         (y0_test): Likewise.
11496         (y1_test): Likewise.
11497         * sysdeps/i386/fpu/libm-test-ulps: Update.
11498         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11499
11500         [BZ #14155]
11501         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
11502         1 / x and functions P and Q for arguments above 0x1p256L.
11503         (__ieee754_y0l): Likewise.
11504         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
11505         (__ieee754_y1l): Likewise.
11506         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
11507         (j1_test): Likewise.
11508         (y0_test): Likewise.
11509         (y1_test): Likewise.
11510
11511 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
11512
11513         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
11514         variable.
11515
11516 2013-03-15  Roland McGrath  <roland@hack.frob.com>
11517
11518         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
11519         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
11520         zero since it's initialized to EXEC_PAGESIZE.
11521
11522         * sysdeps/unix/sysv/linux/ldsodefs.h
11523         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
11524         * sysdeps/generic/ldsodefs.h: ... here.
11525
11526 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
11527
11528         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
11529
11530         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
11531         math/test-snan.c.
11532         * math/test-snan.c: Renamed from
11533         sysdeps/powerpc/fpu/test-powerpc-snan.c.
11534         * math/Makefile (tests): Add test-snan.
11535         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
11536         test-powerpc-snan.
11537
11538         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
11539         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
11540         functions.
11541         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
11542         __builtin_nan family of functions.
11543         * math/libm-test.inc (initialize): Initialize qnan_value with
11544         __builtin_nan family of functions.
11545         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
11546         Remove variables.
11547         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
11548         Remove functions.
11549         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
11550         storage class.  Initialize qNaN_var and sNaN_var with
11551         __builtin_nan and __builtin_nans families of functions,
11552         respectively.
11553
11554         * math/libm-test.inc (acosh_test): Also test with qNaN input.
11555         (sqrt_test): Remove duplicate test with qNaN input.
11556         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
11557         (round_test, signbit_test, significand_test): Note missing +/-Inf
11558         as well as qNaN tests.
11559
11560         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
11561         qNaN_var.  Fix a few strings, too.
11562         * math/libm-test.inc (nan_value): Rename to qnan_value.
11563         * math/gen-libm-test.pl (%beautify): Adjust to that.
11564         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
11565         * math/test-misc.c (main): Likewise.
11566         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
11567         to __qnan_bytes, and __qnan_union, respectively.
11568         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
11569         Likewise.
11570         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
11571         and lqnanval, respectively.
11572         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
11573         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
11574         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
11575         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
11576
11577         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
11578         * math/test-misc.c (main) [__x86_64__]: Enable test for long
11579         doubles.
11580
11581         * math/test-misc.c (main): Fix copy'n'pastos.
11582         * misc/tst-efgcvt.c (special): Likewise.
11583
11584         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
11585         Remove declarations.
11586
11587 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11588
11589         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
11590         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
11591         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
11592         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
11593
11594 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11595
11596         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
11597         macro to return vdso values correctly in IFUNC implementations.
11598         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
11599         Optimization by using IFUNC.
11600
11601 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11602             Richard Henderson  <rth@redhat.com>
11603             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11604
11605         * Makefile.in (bench): New target.
11606         * NEWS: Mention the benchmark framework.
11607         * Rules (bench): Likewise.
11608         (binaries-bench): Generate binaries for functions to
11609         benchmark.
11610         * benchtests/Makefile: New makefile for benchmark tests.
11611         * benchtests/bench-skeleton.c: New skeleton file for benchmark
11612         programs.
11613         * benchtests/exp-inputs: New input file for EXP function.
11614         * benchtests/pow-inputs: New input file for POW function.
11615         * scripts/bench.pl: New script to generate source files for
11616         benchmark programs.
11617
11618 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11619
11620         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11621         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
11622         computations on mantissa.  Use macros for rounding and
11623         division.
11624         (denorm): Likewise.
11625         (__dbl_mp): Likewise.
11626         (add_magnitudes): Likewise.
11627         (sub_magnitudes): Likewise.
11628         (__mul): Likewise.
11629         (__sqr): Likewise.
11630         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11631         powers of two in terms of TWOPOW macro.
11632         (mp_no): Make type of mantissa as MANTISSA_T.
11633         [!RADIXI]: Define RADIXI.
11634         [!TWO52]: Define TWO52.
11635         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11636
11637         * manual/nptl.texi (cindex): Modify threads to pthreads.
11638
11639 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
11640
11641         * sysdeps/x86_64/preconfigure: Regenerated.
11642
11643 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
11644
11645         [BZ #14155]
11646         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
11647         0x1p28 and above.
11648         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
11649         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
11650         0x1p28 and above.
11651         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
11652         * math/libm-test.inc (j0_test): Do not allow one spurious
11653         underflow exception.
11654         (y1_test): Likewise.
11655
11656 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
11657
11658         * manual/Makefile (chapters): Add nptl.
11659         * manual/debug.texi (Debugging Support): Add link to Threads
11660         chapter.
11661         * manual/nptl.texi: New file.
11662
11663         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
11664
11665 2013-03-14  Petr Baudis  <pasky@ucw.cz>
11666
11667         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
11668         for non-NULL pointer before the memory validity test. Pointed
11669         out by Holger Brunck <holger.brunck@keymile.com>.
11670
11671 2013-03-13  Andreas Schwab  <schwab@suse.de>
11672
11673         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
11674         instead of .os.
11675
11676 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
11677
11678         * timezone/zic.c: Update from tzcode 2013b.
11679
11680 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
11681
11682         * manual/install.texi (Configuring and compiling):
11683         Mention i686 and i586.
11684         * INSTALL: Regenerate.
11685
11686 2013-03-12  Roland McGrath  <roland@hack.frob.com>
11687
11688         * sysdeps/init_array/elf-init.c: New file.
11689         * csu/elf-init.c
11690         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
11691         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
11692
11693         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
11694         __gmon_start__ as global, but as static with a .preinit_array pointer.
11695         * sysdeps/init_array/gmon-start.c: New file.  Use that.
11696         * sysdeps/init_array/crti.S: New file, empty except for comments.
11697         * sysdeps/init_array/crtn.S: Likewise.
11698
11699 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
11700
11701         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
11702         definining bcopy.
11703         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11704         Remove Prefer_SSE_for_memop.
11705         * sysdeps/x86_64/multiarch/init-arch.h: Remove
11706         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
11707         HAS_PREFER_SSE_FOR_MEMOP.
11708         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
11709         memset-x86-64.
11710         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
11711         Remove bzero, memset ifunc support.
11712         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
11713         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
11714         * sysdeps/x86_64/multiarch/memset.S: Likewise.
11715         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
11716
11717 2013-03-11  Andreas Schwab  <schwab@suse.de>
11718
11719         [BZ #15234]
11720         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
11721         by SHLIB_COMPAT.
11722         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
11723         (GLIBC_2.16): Remove pthread_atfork.
11724
11725 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
11726
11727         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
11728         (ptestcases.h): Likewise.
11729
11730 2013-03-08  Roland McGrath  <roland@hack.frob.com>
11731
11732         * Makeconfig ($(common-objpfx)config.status): Depend on
11733         sysdeps/*/preconfigure{,.in} too.
11734
11735 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
11736
11737         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
11738         (__free_hook): Use void * instead of __malloc_ptr_t.
11739         (__malloc_hook): Likewise.
11740         (__realloc_hook): Likewise.
11741         (__memalign_hook): Likewise.
11742         (__after_morecore_hook): Likewise.
11743         * malloc/arena.c (save_malloc_hook): Likewise.
11744         (save_free_hook): Likewise.
11745         * malloc/hooks.c (malloc_hook_ini): Likewise.
11746         (realloc_hook_ini): Likewise.
11747         (memalign_hook_ini): Likewise.
11748         * malloc/malloc.c (malloc_hook_ini): Likewise.
11749         (realloc_hook_ini): Likewise.
11750         (memalign_hook_ini): Likewise.
11751         (__free_hook): Likewise.
11752         (__malloc_hook): Likewise.
11753         (__realloc_hook): Likewise.
11754         (__memalign_hook): Likewise.
11755         (__libc_malloc): Likewise.
11756         (__libc_free): Likewise.
11757         (__libc_realloc): Likewise.
11758         (__libc_memalign): Likewise.
11759         (__libc_valloc): Likewise.
11760         (__libc_pvalloc): Likewise.
11761         (__libc_calloc): Likewise.
11762         (__posix_memalign): Likewise.
11763         * malloc/morecore.c (__sbrk): Likewise.
11764         (__default_morecore): Likewise.
11765
11766         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
11767
11768         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
11769         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
11770         __malloc_ptrdiff_t.
11771
11772         * malloc/malloc.h (__malloc_size_t): Remove macro.
11773         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
11774         __malloc_size_t.
11775         (old_memalign_hook): Likewise.
11776         (old_realloc_hook): Likewise.
11777         (struct hdr): Likewise.
11778         (flood): Likewise.
11779         (mallochook): Likewise.
11780         (memalignhook): Likewise.
11781         (reallochook): Likewise.
11782         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
11783         (tr_old_realloc_hook): Likewise.
11784         (tr_old_memalign_hook): Likewise.
11785         (tr_mallochook): Likewise.
11786         (tr_reallochook): Likewise.
11787         (tr_memalignhook): Likewise.
11788
11789 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11790
11791         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
11792         default_ldbl_pack and using as default implementation.
11793         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
11794         implementation.
11795         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
11796         redundant definition.
11797         (ldbl_insert_mantissa): Likewise.
11798         (ldbl_canonicalize): Likewise.
11799         (ldbl_nearbyint): Likewise.
11800         (ldbl_pack): Rename to ldbl_pack_ppc.
11801         (ldbl_unpack): Rename to ldbl_unpack_ppc.
11802         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
11803         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
11804
11805 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11806
11807         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
11808         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
11809         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
11810         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
11811         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
11812         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
11813         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
11814         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
11815
11816 2013-03-07  Andreas Jaeger  <aj@suse.de>
11817
11818         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11819         bits/mman-linux.h.
11820
11821 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
11822
11823         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
11824         Include mpa.h and declare __MPEXP.
11825         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
11826         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
11827         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
11828         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
11829         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
11830         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
11831         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
11832
11833         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
11834         (__slowpow): Use long double EXPL and LOGL functions to
11835         compute POW.
11836         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
11837         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
11838         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
11839         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
11840         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
11841         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
11842
11843         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
11844         intermediate variable to calculate exponent.
11845         (__sqr): Likewise.
11846         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
11847         Likewise.
11848         (__sqr): Likewise.
11849
11850         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
11851         [!NO__SQR]: Define __sqr.
11852         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
11853         and NO__SQR.  Remove all code except __mul and __sqr.  Include
11854         sysdeps/ieee754/dbl-64/mpa.c.
11855         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11856
11857         [BZ #12723]
11858         * posix/Makefile (tests): Add tst-pathconf.
11859         * posix/tst-pathconf.c: New test case.
11860         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
11861         _PC_PIPE_BUF.
11862         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
11863
11864 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
11865
11866         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
11867
11868 2013-03-06  Andreas Jaeger  <aj@suse.de>
11869
11870         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
11871         definition via __MAP_ANONYMOUS.
11872
11873         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
11874         it's not part of Linux headers.
11875
11876         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
11877         (MAP_HUGE_MASK): Define.
11878
11879         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11880         Define.
11881         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11882         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11883         Define.
11884         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11885         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11886         Define.
11887         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11888         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
11889         Define.
11890         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11891
11892         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
11893         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
11894         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
11895         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
11896         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
11897         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
11898
11899         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
11900         Handle f2fs.
11901
11902         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11903         Handle f2fs and efivarfs.
11904
11905         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
11906         f2fs.
11907
11908         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
11909         (EFIVARFS_MAGIC): Add.
11910         (F2FS_LINK_MAX): Add.
11911
11912 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11913
11914         * stdio-common/vfprintf.c: Replace __builtin_expect with
11915         __glibc_unlikely.
11916
11917 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
11918
11919         [BZ #13550]
11920         * sysdeps/generic/bp-sym.h: Remove file.
11921         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
11922         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
11923         <bp-sym.h> and <bp-asm.h>.
11924         (__longjmp): Don't use BP_SYM.
11925         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
11926         and <bp-asm.h>.
11927         (memcpy): Don't use BP_SYM.
11928         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
11929         <bp-sym.h> and <bp-asm.h>.
11930         (memcpy): Don't use BP_SYM.
11931         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
11932         <bp-asm.h>.
11933         (memcpy): Don't use BP_SYM.
11934         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
11935         <bp-asm.h>.
11936         (memset): Don't use BP_SYM.
11937         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11938         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11939         (__bzero): Don't use BP_SYM.
11940         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11941         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11942         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
11943         <bp-sym.h> and <bp-asm.h>.
11944         (memcmp): Don't use BP_SYM.  Remove comment about bounded
11945         pointers.
11946         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
11947         <bp-sym.h> and <bp-asm.h>.
11948         (memcpy): Don't use BP_SYM.
11949         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
11950         <bp-sym.h> and <bp-asm.h>.
11951         (memset): Don't use BP_SYM.
11952         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11953         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11954         (__bzero): Don't use BP_SYM.
11955         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11956         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11957         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
11958         <bp-sym.h> and <bp-asm.h>.
11959         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11960         pointers.
11961         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
11962         <bp-sym.h> and <bp-asm.h>.
11963         (memcpy): Don't use BP_SYM.
11964         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
11965         <bp-sym.h> and <bp-asm.h>.
11966         (memset): Don't use BP_SYM.
11967         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11968         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11969         (__bzero): Don't use BP_SYM.
11970         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11971         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11972         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
11973         <bp-sym.h> and <bp-asm.h>.
11974         (__memchr): Don't use BP_SYM.
11975         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
11976         <bp-sym.h> and <bp-asm.h>.
11977         (memcmp): Don't use BP_SYM.  Remove comment about bounded
11978         pointers.
11979         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
11980         <bp-sym.h> and <bp-asm.h>.
11981         (memcpy): Don't use BP_SYM.
11982         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
11983         <bp-sym.h> and <bp-asm.h>.
11984         (__mempcpy): Don't use BP_SYM.
11985         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
11986         <bp-sym.h> and <bp-asm.h>.
11987         (__memrchr): Don't use BP_SYM.
11988         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
11989         <bp-sym.h> and <bp-asm.h>.
11990         (memset): Don't use BP_SYM.
11991         (__bzero): Likewise.
11992         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
11993         <bp-sym.h> and <bp-asm.h>.
11994         (__rawmemchr): Don't use BP_SYM.
11995         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
11996         <bp-sym.h> and <bp-asm.h>.
11997         (__STRCMP): Don't use BP_SYM.
11998         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
11999         <bp-sym.h> and <bp-asm.h>.
12000         (strchr): Don't use BP_SYM.
12001         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
12002         <bp-sym.h> and <bp-asm.h>.
12003         (__strchrnul): Don't use BP_SYM.
12004         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
12005         <bp-sym.h> and <bp-asm.h>.
12006         (strlen): Don't use BP_SYM.
12007         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
12008         <bp-sym.h> and <bp-asm.h>.
12009         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12010         pointers.
12011         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
12012         <bp-sym.h> and <bp-asm.h>.
12013         (__strnlen): Don't use BP_SYM.
12014         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
12015         <bp-sym.h> and <bp-asm.h>.
12016         (__GI__setjmp): Don't use BP_SYM.
12017         (_setjmp): Likewise.
12018         (__sigsetjmp): Likewise.
12019         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
12020         (L(start_addresses)): Don't use BP_SYM.
12021         (_start): Likewise.
12022         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
12023         <bp-asm.h>.
12024         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
12025         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
12026         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12027         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12028         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
12029         <bp-asm.h>.
12030         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
12031         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
12032         about bounded pointers.
12033         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12034         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12035         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
12036         <bp-asm.h>.
12037         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12038         about bounded pointers.  Remove GKM FIXME comments.
12039         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12040         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
12041         <bp-asm.h>.
12042         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
12043         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
12044         Remove GKM FIXME comments.
12045         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12046         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12047         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
12048         <bp-asm.h>.
12049         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12050         about bounded pointers.  Remove GKM FIXME comment.
12051         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
12052         and <bp-asm.h>.
12053         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12054         pointers.
12055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
12056         <bp-sym.h> and <bp-asm.h>.
12057         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
12059         <bp-sym.h> and <bp-asm.h>.
12060         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12061         comment.
12062
12063 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12064
12065         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
12066         call free(NULL).
12067
12068 2013-03-05  David S. Miller  <davem@davemloft.net>
12069
12070         * po/es.po: Update from translation team.
12071
12072 2013-03-05  Andreas Jaeger  <aj@suse.de>
12073
12074         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
12075         <bits/mman-linux.h>.
12076         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12077         is fine.
12078         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
12079         <bits/mman-linux.h> to end of file.
12080         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12081         is fine.
12082         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
12083         <bits/mman-linux.h> to end of file.
12084         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12085         is fine.
12086         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
12087         <bits/mman-linux.h> to end of file.
12088
12089         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
12090         (MCL_CURRENT, MCL_FUTURE): Define here.
12091
12092 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12093
12094         [BZ #15232]
12095         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
12096         attribute_hidden.
12097         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
12098
12099 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12100
12101         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
12102         fourth parameter needed for rt_sigprocmask syscall.
12103         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
12104         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
12105         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
12106         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
12107         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
12108         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
12109
12110 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
12111
12112         [BZ #13550]
12113         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
12114         comment about bounded pointers.
12115         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
12116         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
12117
12118 2013-03-04  Andreas Jaeger  <aj@suse.de>
12119
12120         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
12121         common definitions.
12122
12123         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
12124         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
12125         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
12126         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12127         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
12128         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
12129
12130 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12131
12132         [BZ #15055]
12133         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
12134         __ieee754_sqrl instead of __sqrl.
12135
12136 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
12137
12138         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
12139         * sysdeps/powerpc/fpu_control.h: ... here.
12140         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
12141         * sysdeps/powerpc/bits/fenvinline.h: ... here.
12142         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
12143         * sysdeps/powerpc/bits/mathinline.h: ... here.
12144
12145 2013-03-01  Roland McGrath  <roland@hack.frob.com>
12146
12147         * elf/dl-hwcaps.c (_dl_important_hwcaps):
12148         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
12149         to just [NEED_DL_SYSINFO_DSO].
12150         * elf/dl-support.c: Likewise.
12151         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
12152         * elf/rtld.c (dl_main): Likewise.
12153         * elf/setup-vdso.h (setup_vdso): Likewise.
12154         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
12155         * sysdeps/unix/sysv/linux/dl-sysdep.c
12156         (_dl_discover_osversion): Likewise.
12157
12158 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
12159
12160         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
12161         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12162
12163 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12164
12165         * NEWS: Mention libm performance improvements and non-x86 PI
12166         futex support.
12167
12168         * csu/libc-start.c (__pthread_initialize_minimal): Change
12169         function arguments.
12170         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12171
12172 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
12173
12174         [BZ #13550]
12175         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
12176         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
12177         <bp-sym.h> and <bp-asm.h>.
12178         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12179         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
12180         and <bp-asm.h>.
12181         (memcpy): Don't use BP_SYM.
12182         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
12183         <bp-asm.h>.
12184         (__mpn_add_n): Don't use BP_SYM.
12185         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
12186         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
12187         and <bp-asm.h>.
12188         (__mpn_addmul_1): Don't use BP_SYM.
12189         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12190         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
12191         <bp-sym.h>.
12192         (_setjmp): Don't use BP_SYM.
12193         (__novmx_setjmp): Likewise.
12194         (__GI__setjmp): Likewise.
12195         (__vmx_setjmp): Likewise.
12196         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
12197         <bp-sym.h>.
12198         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
12199         (__bzero): Don't use BP_SYM.
12200         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12201         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12202         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
12203         <bp-sym.h> and <bp-asm.h>.
12204         (memcpy): Don't use BP_SYM.
12205         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
12206         <bp-sym.h> and <bp-asm.h>.
12207         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12208         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
12209         <bp-sym.h> and <bp-asm.h>.
12210         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12211         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
12212         <bp-asm.h>.
12213         (__mpn_lshift): Don't use BP_SYM.
12214         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12215         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
12216         <bp-asm.h>.
12217         (memset): Don't use BP_SYM.
12218         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12219         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12220         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
12221         <bp-asm.h>.
12222         (__mpn_mul_1): Don't use BP_SYM.
12223         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12224         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
12225         <bp-sym.h> and <bp-asm.h>.
12226         (memcmp): Don't use BP_SYM.
12227         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
12228         <bp-sym.h> and <bp-asm.h>.
12229         (memcpy): Don't use BP_SYM.
12230         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
12231         <bp-sym.h> and <bp-asm.h>.
12232         (memset): Don't use BP_SYM.
12233         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
12234         <bp-sym.h> and <bp-asm.h>.
12235         (strncmp): Don't use BP_SYM.
12236         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
12237         <bp-sym.h> and <bp-asm.h>.
12238         (memcpy): Don't use BP_SYM.
12239         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
12240         <bp-sym.h> and <bp-asm.h>.
12241         (memset): Don't use BP_SYM.
12242         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
12243         <bp-sym.h> and <bp-asm.h>.
12244         (__memchr): Don't use BP_SYM.
12245         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
12246         <bp-sym.h> and <bp-asm.h>.
12247         (memcmp): Don't use BP_SYM.
12248         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
12249         <bp-sym.h> and <bp-asm.h>.
12250         (memcpy): Don't use BP_SYM.
12251         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
12252         <bp-sym.h> and <bp-asm.h>.
12253         (__mempcpy): Don't use BP_SYM.
12254         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
12255         <bp-sym.h> and <bp-asm.h>.
12256         (__memrchr): Don't use BP_SYM.
12257         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
12258         <bp-sym.h> and <bp-asm.h>.
12259         (memset): Don't use BP_SYM.
12260         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
12261         <bp-sym.h> and <bp-asm.h>.
12262         (__rawmemchr): Don't use BP_SYM.
12263         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
12264         <bp-sym.h> and <bp-asm.h>.
12265         (__STRCMP): Don't use BP_SYM.
12266         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
12267         <bp-sym.h> and <bp-asm.h>.
12268         (strchr): Don't use BP_SYM.
12269         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
12270         <bp-sym.h> and <bp-asm.h>.
12271         (__strchrnul): Don't use BP_SYM.
12272         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
12273         <bp-sym.h> and <bp-asm.h>.
12274         (strlen): Don't use BP_SYM.
12275         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
12276         <bp-sym.h> and <bp-asm.h>.
12277         (strncmp): Don't use BP_SYM.
12278         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
12279         <bp-sym.h> and <bp-asm.h>.
12280         (__strnlen): Don't use BP_SYM.
12281         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
12282         <bp-asm.h>.
12283         (__mpn_rshift): Don't use BP_SYM.
12284         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12285         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
12286         <bp-sym.h> and <bp-asm.h>.
12287         (__sigsetjmp): Don't use BP_SYM.
12288         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
12289         (L(start_addresses)): Don't use BP_SYM.
12290         (_start): Likewise.
12291         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
12292         <bp-asm.h>.
12293         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
12294         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12295         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12296         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
12297         <bp-asm.h>.
12298         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
12299         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12300         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12301         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
12302         <bp-asm.h>.
12303         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12304         comments.
12305         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12306         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
12307         <bp-asm.h>.
12308         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
12309         FIXME comments.
12310         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12311         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12312         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
12313         <bp-asm.h>.
12314         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12315         comment.
12316         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
12317         and <bp-asm.h>.
12318         (strncmp): Don't use BP_SYM,
12319         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
12320         <bp-asm.h>.
12321         (__mpn_sub_n): Don't use BP_SYM.
12322         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12323         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
12324         and <bp-asm.h>.
12325         (__mpn_submul_1): Don't use BP_SYM.
12326         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
12328         <bp-sym.h> and <bp-asm.h>.
12329         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
12331         <bp-sym.h> and <bp-asm.h>.
12332         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12333         comment.
12334
12335 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12336
12337         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
12338         Use ZK to minimize writes to Z.
12339         (sub_magnitudes): Simplify code a bit.
12340         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
12341         Use ZK to minimize writes to Z.
12342         (sub_magnitudes): Simplify code a bit.
12343
12344 2013-02-27  Roland McGrath  <roland@hack.frob.com>
12345
12346         * csu/gmon-start.c: Add special exception to license text.
12347
12348 2013-02-27  Richard Henderson  <rth@redhat.com>
12349
12350         * scripts/config.guess: Update from config.git.
12351         * scripts/config.sub: Likewise.
12352
12353 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
12354
12355         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
12356
12357         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
12358
12359         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
12360
12361         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
12362
12363         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
12364
12365 2013-02-26  Roland McGrath  <roland@hack.frob.com>
12366
12367         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
12368         [$(build-shared = yes].
12369
12370 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12371
12372         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
12373         (__mul): Reduce iterations for calculating mantissa.
12374
12375         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
12376         MPTWO.
12377         (__mpranred): Likewise.
12378
12379         [BZ #15160]
12380         * malloc/memusagestat.c (main): Draw graphs for heap and stack
12381         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
12382
12383 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12384
12385         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
12386         Define __attribute__.
12387
12388 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12389
12390         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
12391         unused.
12392         * posix/regex_internal.h (__attribute): Remove.
12393         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
12394         (re_string_context_at): Likewise.
12395         (bitset_not): Use __attribute__ and mark function as possibly
12396         unused.
12397         (bitset_merge): Likewise.
12398         (bitset_mask): Likewise.
12399         (re_string_char_size_at): Likewise.
12400         (re_string_wchar_at): Likewise.
12401         (re_string_elem_size_at): Likewise.
12402
12403 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12404
12405         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
12406         code.
12407         (cc32): Likewise.
12408
12409         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
12410         (__acr): Likewise.
12411         (__cpy): Likewise.
12412         (norm): Likewise.
12413         (denorm): Likewise.
12414         (__dbl_mp): Likewise.
12415         (add_magnitudes): Likewise.
12416         (sub_magnitudes): Likewise.
12417         (__mul): Likewise.
12418         (__inv): Likewise.
12419
12420         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
12421         style.
12422
12423         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
12424         style.
12425
12426         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
12427         code.
12428
12429         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
12430         up changes with default code.
12431         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
12432         Likewise.
12433
12434 2013-02-24  Allan McRae  <allan@archlinux.org>
12435
12436         * manual/socket.texi (The Internet Namespace): Order menu items
12437         to match that in the file.
12438
12439         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
12440         node listing of the info page menu.
12441
12442 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
12443
12444         [BZ #13550]
12445         * sysdeps/i386/bp-asm.h: Remove file.
12446         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12447         (PARMS): Do not use macros from bp-asm.h.
12448         (S1): Likewise.
12449         (S2): Likewise.
12450         (SIZE): Likewise.
12451         (__mpn_add_n): Do not use BP_SYM
12452         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
12453         "bp-asm.h".
12454         (PARMS): Do not use macros from bp-asm.h.
12455         (S1): Likewise.
12456         (SIZE): Likewise.
12457         (__mpn_addmul_1): Do not use BP_SYM
12458         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
12459         "bp-asm.h".
12460         (PARMS): Do not use macros from bp-asm.h.
12461         (SIGMSK): Likewise.
12462         (_setjmp): Likewise.  Do not use BP_SYM.
12463         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
12464         "bp-asm.h".
12465         (PARMS): Do not use macros from bp-asm.h.
12466         (SIGMSK): Likewise.
12467         (setjmp): Likewise.  Do not use BP_SYM.
12468         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
12469         "bp-asm.h".
12470         (PARMS): Do not use macros from bp-asm.h.
12471         (__frexp): Do not use BP_SYM.
12472         (frexp): Likewise.
12473         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
12474         "bp-asm.h".
12475         (PARMS): Do not use macros from bp-asm.h.
12476         (__frexpf): Do not use BP_SYM.
12477         (frexpf): Likewise.
12478         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
12479         "bp-asm.h".
12480         (PARMS): Do not use macros from bp-asm.h.
12481         (__frexpl): Do not use BP_SYM.
12482         (frexpl): Likewise.
12483         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
12484         "bp-asm.h".
12485         (PARMS): Do not use macros from bp-asm.h.
12486         (__remquo): Do not use BP_SYM.
12487         (remquo): Likewise.
12488         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
12489         "bp-asm.h".
12490         (PARMS): Do not use macros from bp-asm.h.
12491         (__remquof): Do not use BP_SYM.
12492         (remquof): Likewise.
12493         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
12494         "bp-asm.h".
12495         (PARMS): Do not use macros from bp-asm.h.
12496         (__remquol): Do not use BP_SYM.
12497         (remquol): Likewise.
12498         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
12499         "bp-asm.h".
12500         (PARMS): Do not use macros from bp-asm.h.
12501         (DEST): Likewise.
12502         (SRC): Likewise.
12503         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
12504         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
12505         "bp-asm.h".
12506         (PARMS): Do not use macros from bp-asm.h.
12507         (strlen): Do not use BP_SYM.
12508         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
12509         "bp-asm.h".
12510         (PARMS): Do not use macros from bp-asm.h.
12511         (S1): Likewise.
12512         (S2): Likewise.
12513         (SIZE): Likewise.
12514         (__mpn_add_n): Do not use BP_SYM.
12515         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
12516         "bp-asm.h".
12517         (PARMS): Do not use macros from bp-asm.h.
12518         (S1): Likewise.
12519         (SIZE): Likewise.
12520         (__mpn_addmul_1): Do not use BP_SYM.
12521         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
12522         weak_alias.
12523         (bzero): Likewise.
12524         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
12525         "bp-asm.h".
12526         (PARMS): Do not use macros from bp-asm.h.
12527         (S): Likewise.
12528         (SIZE): Likewise.
12529         (__mpn_lshift): Do not use BP_SYM.
12530         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
12531         "bp-asm.h".
12532         (PARMS): Do not use macros from bp-asm.h.
12533         (DEST): Likewise.
12534         (SRC): Likewise.
12535         (LEN): Likewise.
12536         (memcpy): Likewise.  Do not use BP_SYM.
12537         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
12538         libc_hidden_def and weak_alias.
12539         (mempcpy): Do not use BP_SYM in weak_alias.
12540         * sysdeps/i386/i586/memset.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         (LEN): Likewise.
12545         [!BZERO_P] (CHR): Likewise.
12546         (memset): Likewise.  Do not use BP_SYM.
12547         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
12548         "bp-asm.h".
12549         (PARMS): Do not use macros from bp-asm.h.
12550         (S1): Likewise.
12551         (SIZE): Likewise.
12552         (__mpn_mul_1): Do not use BP_SYM.
12553         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
12554         "bp-asm.h".
12555         (PARMS): Do not use macros from bp-asm.h.
12556         (S): Likewise.
12557         (SIZE): Likewise.
12558         (__mpn_rshift): Do not use BP_SYM.
12559         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
12560         "bp-asm.h".
12561         (PARMS): Do not use macros from bp-asm.h.
12562         (STR): Likewise.
12563         (CHR): Likewise.
12564         (strchr): Likewise.  Do not use BP_SYM.
12565         (index): Do not use BP_SYM in weak_alias.
12566         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
12567         "bp-asm.h".
12568         (PARMS): Do not use macros from bp-asm.h.
12569         (DEST): Likewise.
12570         (SRC): Likewise.
12571         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
12572         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
12573         "bp-asm.h".
12574         (PARMS): Do not use macros from bp-asm.h.
12575         (strlen): Do not use BP_SYM.
12576         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
12577         "bp-asm.h".
12578         (PARMS): Do not use macros from bp-asm.h.
12579         (S1): Likewise.
12580         (S2): Likewise.
12581         (SIZE): Likewise.
12582         (__mpn_sub_n): Do not use BP_SYM.
12583         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
12584         "bp-asm.h".
12585         (PARMS): Do not use macros from bp-asm.h.
12586         (S1): Likewise.
12587         (SIZE): Likewise.
12588         (__mpn_submul_1): Do not use BP_SYM.
12589         * sysdeps/i386/i686/add_n.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         (S2): Likewise.
12594         (SIZE): Likewise.
12595         (__mpn_add_n): Do not use BP_SYM.
12596         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
12597         weak_alias.
12598         (bzero): Likewise.
12599         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
12600         "bp-asm.h".
12601         (PARMS): Do not use macros from bp-asm.h.
12602         (BLK2): Likewise.
12603         (LEN): Likewise.
12604         (memcmp): Do not use BP_SYM.
12605         (bcmp): Do not use BP_SYM in weak_alias.
12606         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
12607         "bp-asm.h".
12608         (PARMS): Do not use macros from bp-asm.h.
12609         (DEST): Likewise.
12610         (SRC): Likewise.
12611         (LEN): Likewise.
12612         (memcpy): Likewise.  Do not use BP_SYM.
12613         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
12614         "bp-asm.h".
12615         (PARMS): Do not use macros from bp-asm.h.
12616         (DEST): Likewise.
12617         (SRC): Likewise.
12618         (LEN): Likewise.
12619         (memmove): Likewise.  Do not use BP_SYM.
12620         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
12621         "bp-asm.h".
12622         (PARMS): Do not use macros from bp-asm.h.
12623         (DEST): Likewise.
12624         (SRC): Likewise.
12625         (LEN): Likewise.
12626         (__mempcpy): Likewise.  Do not use BP_SYM.
12627         (mempcpy): Do not use BP_SYM in weak_alias.
12628         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
12629         "bp-asm.h".
12630         (PARMS): Do not use macros from bp-asm.h.
12631         (DEST): Likewise.
12632         (LEN): Likewise.
12633         [!BZERO_P] (CHR): Likewise.
12634         (memset): Likewise.  Do not use BP_SYM.
12635         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
12636         "bp-asm.h".
12637         (PARMS): Do not use macros from bp-asm.h.
12638         (STR2): Likewise.
12639         (strcmp): Do not use BP_SYM.
12640         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
12641         "bp-asm.h".
12642         (PARMS): Do not use macros from bp-asm.h.
12643         (STR): Likewise.
12644         (DELIM): Likewise.
12645         [USE_AS_STRTOK_R] (SAVE): Likewise.
12646         (FUNCTION): Likewise.  Do not use BP_SYM.
12647         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
12648         aliases.
12649         (strtok_r): Likewise.
12650         (__GI___strtok_r): Likewise.
12651         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12652         (PARMS): Do not use macros from bp-asm.h.
12653         (S): Likewise.
12654         (SIZE): Likewise.
12655         (__mpn_lshift): Do not use BP_SYM.
12656         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12657         (PARMS): Do not use macros from bp-asm.h.
12658         (STR): Likewise.
12659         (CHR): Likewise.
12660         (__memchr): Do not use BP_SYM.
12661         (memchr): Do not use BP_SYM in weak_alias.
12662         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12663         (PARMS): Do not use macros from bp-asm.h.
12664         (BLK2): Likewise.
12665         (LEN): Likewise.
12666         (memcmp): Do not use BP_SYM.
12667         (bcmp): Do not use BP_SYM in weak_alias.
12668         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
12669         (PARMS): Do not use macros from bp-asm.h.
12670         (S1): Likewise.
12671         (SIZE): Likewise.
12672         (__mpn_mul_1): Do not use BP_SYM.
12673         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
12674         "bp-asm.h".
12675         (PARMS): Do not use macros from bp-asm.h.
12676         (STR): Likewise.
12677         (CHR): Likewise.
12678         (__rawmemchr): Do not use BP_SYM.
12679         (rawmemchr): Do not use BP_SYM in weak_alias.
12680         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12681         (PARMS): Do not use macros from bp-asm.h.
12682         (S): Likewise.
12683         (SIZE): Likewise.
12684         (__mpn_rshift): Do not use BP_SYM.
12685         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12686         (PARMS): Do not use macros from bp-asm.h.
12687         (SIGMSK): Likewise.
12688         (__sigsetjmp): Likewise.  Do not use BP_SYM.
12689         * sysdeps/i386/start.S: Do not include "bp-sym.h".
12690         (_start): Do not use BP_SYM.
12691         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
12692         (PARMS): Do not use macros from bp-asm.h.
12693         (DEST): Likewise.
12694         (SRC): Likewise.
12695         (__stpcpy): Likewise.  Do not use BP_SYM.
12696         (stpcpy): Do not use BP_SYM in weak_alias.
12697         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
12698         "bp-asm.h".
12699         (PARMS): Do not use macros from bp-asm.h.
12700         (DEST): Likewise.
12701         (SRC): Likewise.
12702         (LEN): Likewise.
12703         (__stpncpy): Likewise.  Do not use BP_SYM.
12704         (stpncpy): Do not use BP_SYM in weak_alias.
12705         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12706         (PARMS): Do not use macros from bp-asm.h.
12707         (STR): Likewise.
12708         (CHR): Likewise.
12709         (strchr): Likewise.  Do not use BP_SYM.
12710         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
12711         "bp-asm.h".
12712         (PARMS): Do not use macros from bp-asm.h.
12713         (STR): Likewise.
12714         (CHR): Likewise.
12715         (__strchrnul): Likewise.  Do not use BP_SYM.
12716         (strchrnul): Do not use BP_SYM in weak_alias.
12717         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
12718         "bp-asm.h".
12719         (PARMS): Do not use macros from bp-asm.h.
12720         (STOP): Likewise.
12721         (strcspn): Do not use BP_SYM.
12722         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
12723         "bp-asm.h".
12724         (PARMS): Do not use macros from bp-asm.h.
12725         (STR): Likewise.
12726         (STOP): Likewise.
12727         (strpbrk): Likewise.  Do not use BP_SYM.
12728         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
12729         "bp-asm.h".
12730         (PARMS): Do not use macros from bp-asm.h.
12731         (STR): Likewise.
12732         (CHR): Likewise.
12733         (strrchr): Likewise.  Do not use BP_SYM.
12734         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
12735         (PARMS): Do not use macros from bp-asm.h.
12736         (SKIP): Likewise.
12737         (strspn): Do not use BP_SYM.
12738         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
12739         (PARMS): Do not use macros from bp-asm.h.
12740         (STR): Likewise.
12741         (DELIM): Likewise.
12742         (SAVE): Likewise.
12743         (FUNCTION): Likewise.  Do not use BP_SYM.
12744         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
12745         aliases.
12746         (strtok_r): Likewise.
12747         (__GI___strtok_r): Likewise.
12748         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12749         (PARMS): Do not use macros from bp-asm.h.
12750         (S1): Likewise.
12751         (S2): Likewise.
12752         (SIZE): Likewise.
12753         (__mpn_sub_n): Do not use BP_SYM.
12754         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
12755         "bp-asm.h".
12756         (PARMS): Do not use macros from bp-asm.h.
12757         (S1): Likewise.
12758         (SIZE): Likewise.
12759         (__mpn_submul_1): Do not use BP_SYM.
12760         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
12761         <bp-sym.h>.
12762         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
12763         and <bp-asm.h>.
12764         (PARMS): Do not use macros from bp-asm.h.
12765         (FLAGS): Likewise.
12766         (PTID): Likewise.
12767         (TLS): Likewise.
12768         (CTID): Likewise.
12769         (__clone): Do not use BP_SYM.
12770         (clone): Do not use BP_SYM in weak_alias.
12771         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
12772         and <bp-asm.h>.
12773         (PARMS): Do not use macros from bp-asm.h.
12774         (LEN): Likewise.
12775         (__mmap64): Do not use BP_SYM.
12776         (mmap64): Do not use BP_SYM in weak_alias.
12777         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
12778         <bp-sym.h> and <bp-asm.h>.
12779         (PARMS): Do not use macros from bp-asm.h.
12780         (__posix_fadvise64_l64): Do not use BP_SYM.
12781         * sysdeps/unix/sysv/linux/i386/semtimedop.S
12782         (PARMS): Do not use macros from bp-asm.h.
12783         (NSOPS): Likewise.
12784         (semtimedop): Do not use BP_SYM.
12785         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
12786         and <bp-asm.h>.
12787
12788 2013-02-21  Allan McRae  <allan@archlinux.org>
12789
12790         * manual/message.texi (Charset conversion in gettext):
12791         Move @end statement to beginning of line.
12792
12793 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12794
12795         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
12796         static.
12797         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
12798         Likewise.
12799
12800         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
12801         (denorm): Likewise.
12802         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
12803         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
12804
12805 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12806
12807         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
12808         tail-call to the resolved function if pltexit isn't needed.
12809
12810 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12811
12812         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
12813         or Y being zero as being unlikely.
12814         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
12815         Likewise.
12816
12817 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
12818
12819         * manual/nss.texi (System Databases and Name Service Switch):
12820         Remove frobnicate @pxref.
12821
12822 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
12823
12824         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
12825         __attribute__ ((unused)) to __attribute__ ((__unused__)).
12826
12827 2013-02-20  Petr Machata  <pmachata@redhat.com>
12828
12829         * elf/elf.h (R_ARM_TARGET1): New macro.
12830         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
12831         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
12832         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
12833         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
12834         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
12835         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
12836         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
12837         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
12838         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
12839         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
12840         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
12841         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
12842         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
12843         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
12844         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
12845         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
12846         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
12847         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
12848         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
12849         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
12850         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
12851         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
12852         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
12853         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
12854         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
12855         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
12856         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
12857         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
12858         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
12859         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
12860         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
12861         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
12862         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
12863         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
12864         (R_ARM_THM_GOT_BREL12): Likewise.
12865         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
12866         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
12867         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
12868         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
12869         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
12870         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
12871         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
12872         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
12873         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
12874
12875 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
12876
12877         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
12878         __attribute_used__ to __attribute__ ((unused)).
12879
12880 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12881
12882         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
12883         powerpc mpa.c.
12884         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
12885         comment formatting.
12886         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
12887
12888 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
12889
12890         [BZ #13550]
12891         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
12892         Remove macro.
12893         (ENTER): Remove both macro definitions.
12894         (LEAVE): Likewise.
12895         (CHECK_BOUNDS_LOW): Likewise.
12896         (CHECK_BOUNDS_HIGH): Likewise.
12897         (CHECK_BOUNDS_BOTH): Likewise.
12898         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
12899         (RETURN_BOUNDED_POINTER): Likewise.
12900         (RETURN_NULL_BOUNDED_POINTER): Likewise.
12901         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
12902         (POP_ERRNO_LOCATION_RETURN): Likewise.
12903         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
12904         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12905         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
12906         macros.
12907         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12908         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
12909         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
12910         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
12911         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
12912         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
12913         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
12914         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
12915         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
12916         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
12917         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
12918         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
12919         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12920         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
12921         removed macros.
12922         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12923         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
12924         macros.
12925         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12926         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
12927         * sysdeps/i386/i586/memset.S (memset): Likewise.
12928         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
12929         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12930         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
12931         macros.
12932         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12933         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
12934         Change uses of L(2) to L(out).
12935         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
12936         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
12937         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
12938         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12939         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
12940         removed macros.
12941         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12942         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
12943         macros.
12944         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12945         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
12946         (RETURN): Do not use macro LEAVE.
12947         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
12948         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
12949         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
12950         * sysdeps/i386/i686/memset.S (memset): Likewise.
12951         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
12952         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
12953         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12954         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
12955         Likewise.
12956         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12957         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
12958         L(1_2) and L(1_3) into L(1).
12959         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
12960         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
12961         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12962         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
12963         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12964         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
12965         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
12966         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12967         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
12968         macros.
12969         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
12970         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12971         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
12972         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
12973         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
12974         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12975         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
12976         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
12977         * sysdeps/i386/strcspn.S (strcspn): Likewise.
12978         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
12979         * sysdeps/i386/strrchr.S (strrchr): Likewise.
12980         * sysdeps/i386/strspn.S (strspn): Likewise.
12981         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
12982         conditional code.
12983         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12984         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
12985         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
12986         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
12987         L(1_3) into L(1_1).
12988         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
12989         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12990         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
12991         macros.
12992         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12993
12994 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
12995
12996         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
12997         macro.
12998
12999 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13000
13001         * math/atest-exp.c (exp_mpn): Remove ROUND.
13002         * math/atest-exp2.c (exp_mpn): Likewise.
13003         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
13004
13005         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
13006         * stdlib/tst-tls-atexit-lib.c: Likewise.
13007         * stdlib/tst-tls-atexit.c: Likewise.
13008
13009 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13010
13011         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
13012         and __attribute_alloc_size__.
13013
13014 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13015
13016         * include/programs/xmalloc.h: Change __attribute_alloc_size to
13017         __attribute_alloc_size__.
13018         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
13019         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
13020
13021 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13022
13023         * include/programs/xmalloc.h: New file.
13024         * catgets/gencat.c: Include it.
13025         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
13026         * elf/pldd.c: Likewise.
13027         * iconv/iconv_charmap.c: Likewise.
13028         * iconv/iconvconfig.c: Likewise.
13029         * iconv/strtab.c: Likewise.
13030         * locale/programs/locale.c: Likewise.
13031         * locale/programs/localedef.h: Likewise.
13032         * locale/programs/simple-hash.c: Likewise.
13033         * nscd/nscd.h: Likewise.
13034         * nss/makedb.c: Likewise.
13035         * sysdeps/generic/ldconfig.h: Likewise.
13036
13037 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13038
13039         * Versions.def: Add GLIBC_2.18.
13040         * include/link.h (struct link_map): New member l_tls_dtor_count.
13041         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
13042         (__call_tls_dtors): Likewise.
13043         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
13044         __cxa_thread_atexit_impl.
13045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13046         Likewise.
13047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13048         Likewise.
13049         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
13050         Likewise.
13051         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
13052         Likewise.
13053         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13054         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
13055         Likewise.
13056         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
13057         Likewise.
13058         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13059         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13060         Likewise.
13061         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
13062         (tests): Add test case tst-tls-atexit.
13063         (modules-names): Add shared library for tst-tls-atexit.
13064         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
13065         (GLIBC_PRIVATE): Add __call_tls_dtors.
13066         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
13067         for libstdc++.
13068         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
13069         * stdlib/tst-tls-atexit.c: New test case.
13070         * stdlib/tst-tls-atexit-lib.c: New test case.
13071
13072         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
13073
13074         * elf/Versions (ld): Add _dl_find_dso_for_object.
13075         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
13076         * elf/dl-open.c (_dl_find_dso_for_object): New function.
13077         (dl_open_worker): Use _dl_find_dso_for_object.
13078         * elf/dl-sym.c (do_sym): Likewise.
13079         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
13080
13081 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13082
13083         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
13084         Syntactic changes only.
13085         (_dl_runtime_profile): Do a tail-call to the resolved function.
13086
13087 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
13088
13089         [BZ #13550]
13090         * sysdeps/x86_64/bp-asm.h: Remove file.
13091         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
13092         <bp-sym.h> and <bp-asm.h>.
13093         (__clone): Do not use BP_SYM.
13094         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
13095         <bp-sym.h> and <bp-asm.h>.
13096         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13097         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
13098         "bp-asm.h".
13099         (_setjmp): Do not use BP_SYM.
13100         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
13101         "bp-asm.h".
13102         (setjmp): Do not use BP_SYM.
13103         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
13104         libc_hidden_def.
13105         (mempcpy): Do not use BP_SYM in weak_alias.
13106         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
13107         "bp-asm.h".
13108         (strchr): Do not use BP_SYM.
13109         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
13110         "bp-asm.h".
13111         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
13112         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
13113         (_start): Do not use BP_SYM.
13114         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
13115         "bp-asm.h".
13116         (strcat): Do not use BP_SYM.
13117         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
13118         "bp-asm.h".
13119         (STRCMP): Do not use BP_SYM.
13120         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
13121         "bp-asm.h".
13122         (STRCPY): Do not use BP_SYM.
13123         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
13124         "bp-asm.h".
13125         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
13126         "bp-asm.h".
13127         (FUNCTION): Do not use BP_SYM.
13128         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
13129         weak_alias.
13130         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
13131
13132 2013-02-17  Andreas Jaeger  <aj@suse.de>
13133
13134         * time/Versions: Sort entries.
13135         * string/Versions: Likewise.
13136         * resolv/Versions: Likewise.
13137         * posix/Versions: Likewise.
13138         * iconv/Versions: Likewise.
13139         * elf/Versions: Likewise.
13140         * wcsmbs/Versions: Likewise.
13141
13142 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
13143
13144         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
13145         loop termination condition.
13146
13147         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
13148         variable to calculate EZ.
13149         (__sqr): Likewise.
13150
13151         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
13152         the lower precision input.
13153
13154 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
13155
13156         [BZ #13550]
13157         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
13158         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
13159         (run-via-rtld-prefix): Do not handle %-bp tests.
13160         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
13161         (all-object-suffixes): Remove .ob.
13162         (bppfx): Remove variable.
13163         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
13164         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
13165         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
13166         [$(build-bounded) = yes] (libtype.ob): Likewise.
13167         * Makerules (elide-routines.ob): Remove variable.
13168         (do-tests-clean): Do not handle *-bp.out.
13169         (common-mostlyclean): Do not handle *-bp and *-bp.out.
13170         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
13171         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
13172         (tests): Do not include $(tests-bp.out).
13173         (xtests): Do not include $(xtests-bp.out).
13174         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
13175         [$(build-bounded) = yes] ($(addprefix
13176         $(objpfx),$(binaries-bounded))): Remove rule.
13177         ($(objpfx)%-bp.out): Remove rule.
13178         * config.make.in (build-bounded): Remove variable.
13179         * crypt/Makefile [$(build-bounded) = yes]
13180         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
13181         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
13182         append to variable.
13183         [$(build-bounded) = yes] (install-lib): Likewise.
13184         [$(build-bounded) = yes] (generated): Likewise.
13185         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
13186         Remove rule.
13187         * intl/Makefile [$(build-bounded) = yes]
13188         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
13189         * math/Makefile [$(build-bounded) = yes]
13190         ($(tests:%=$(objpfx)%-bp): Likewise.
13191         * misc/Makefile [$(build-bounded) = yes]
13192         ($(objpfx)tst-tsearch-bp): Likewise.
13193         * nptl/Makeconfig (bounded-thread-library): Remove variable.
13194         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
13195         Remove dependency.
13196         * string/Makefile (o-objects.ob): Remove variable.
13197         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
13198         (CFLAGS-.ob): Remove variable.
13199         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
13200         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
13201         both definitions of variable.
13202         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
13203         (ASFLAGS-.ob): Remove variable.
13204
13205 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
13206
13207         [BZ #13550]
13208         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
13209         Remove __BOUNDED_POINTERS__ from condition.
13210         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
13211         * string/bits/string2.h [!__NO_STRING_INLINES &&
13212         !__BOUNDED_POINTERS__]: Likewise.
13213         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
13214         Likewise.
13215         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
13216         Remove conditional code.
13217         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
13218         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
13219         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
13220         condition.
13221
13222         [BZ #13550]
13223         * csu/libc-start.c: Do not include <bp-sym.h>.
13224         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
13225         * elf/dl-open.c: Do not include <bp-sym.h>.
13226         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
13227         * math/fegetenv.c: Do not include <bp-sym.h>.
13228         (fegetenv): Do not use BP_SYM in versioned symbols.
13229         * nptl/sysdeps/pthread/bits/libc-lockP.h
13230         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
13231         <bp-sym.h>.
13232         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13233         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
13234         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13235         (__pthread_mutex_destroy): Likewise.
13236         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13237         (__pthread_mutex_lock): Likewise.
13238         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13239         (__pthread_mutex_trylock): Likewise.
13240         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13241         (__pthread_mutex_unlock): Likewise.
13242         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13243         (__pthread_mutexattr_init): Likewise.
13244         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13245         (__pthread_mutexattr_destroy): Likewise.
13246         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13247         (__pthread_mutexattr_settype): Likewise.
13248         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13249         (__pthread_rwlock_init): Likewise.
13250         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13251         (__pthread_rwlock_destroy): Likewise.
13252         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13253         (__pthread_rwlock_rdlock): Likewise.
13254         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13255         (__pthread_rwlock_tryrdlock): Likewise.
13256         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13257         (__pthread_rwlock_wrlock): Likewise.
13258         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13259         (__pthread_rwlock_trywrlock): Likewise.
13260         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13261         (__pthread_rwlock_unlock): Likewise.
13262         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13263         (__pthread_key_create): Likewise.
13264         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13265         (__pthread_setspecific): Likewise.
13266         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13267         (__pthread_getspecific): Likewise.
13268         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
13269         Likewise.
13270         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13271         (_pthread_cleanup_push_defer): Likewise.
13272         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13273         (_pthread_cleanup_pop_restore): Likewise.
13274         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13275         (pthread_setcancelstate): Likewise.
13276         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
13277         <bp-sym.h>.
13278         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
13279         (memchr): Do not use BP_SYM in weak_alias.
13280         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
13281         (fegetenv): Do not use BP_SYM in versioned symbols.
13282         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
13283         (fesetenv): Do not use BP_SYM in versioned symbols.
13284         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13285         (feupdateenv): Do not use BP_SYM in versioned symbols.
13286         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13287         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13288         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
13289         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
13290         (open64): Do not use BP_SYM in weak_alias.
13291         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
13292         (fegetenv): Do not use BP_SYM in versioned symbols.
13293         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
13294         (fesetenv): Do not use BP_SYM in versioned symbols.
13295         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13296         (feupdateenv): Do not use BP_SYM in versioned symbols.
13297         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
13298         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
13299         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
13300         (feraiseexcept): Do not use BP_SYM in versioned symbols.
13301         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13302         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13303         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
13304         <bp-sym.h>.
13305         (__libc_start_main): Do not use BP_SYM.
13306
13307 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13308
13309         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
13310         redundant return line.
13311         (norm): Likewise.
13312         (denorm): Likewise.
13313         (dbl_mp): Likewise.
13314         (sub_magnitudes): Likewise.
13315         (__add): Likewise.
13316         (__sub): Likewise.
13317         (__mul): Likewise.
13318         (__inv): Likewise.
13319         (__dvd): Likewise.
13320         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
13321         (norm): Likewise.
13322         (denorm): Likewise.
13323         (dbl_mp): Likewise.
13324         (sub_magnitudes): Likewise.
13325         (__add): Likewise.
13326         (__sub): Likewise.
13327         (__mul): Likewise.
13328         (__inv): Likewise.
13329         (__dvd): Likewise.
13330
13331         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
13332         instead of __mul.
13333         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13334         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
13335         (cc32): Likewise.
13336
13337         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
13338         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
13339         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
13340         of __mul for squares.
13341         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
13342         function
13343         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
13344         Likewise.
13345         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
13346         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13347
13348 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
13349
13350         [BZ #13550]
13351         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
13352         code.
13353         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
13354         prototype or function definition.  Rename ubp_* variables and
13355         parameters.  Remove argv definitions conditional on
13356         [__BOUNDED_POINTERS__].
13357         * debug/backtrace.c (__backtrace): Do not use __unbounded.
13358         * elf/dl-runtime.c (_dl_fixup): Likewise.
13359         * include/set-hooks.h (RUN_HOOK): Likewise.
13360         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
13361         definition.
13362         * string/strcpy.c (strcpy): Do not use __unbounded.
13363         * sysdeps/generic/frame.h (struct layout): Likewise.
13364         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
13365         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
13366         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
13367         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
13368         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
13369         (__backtrace): Likewise.
13370         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
13371         use __ptrvalue.
13372         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
13373         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
13374         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
13375         Likewise.
13376         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
13377         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
13378         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
13379         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13380         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
13381         Do not use __unbounded.
13382         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
13383         Rename __unboundedrlimits parameter to rlimits in prototype.
13384         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
13385         Do not use __unbounded.
13386         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
13387         not use __ptrvalue.
13388         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13389         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
13390         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13391         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
13392         __ptrvalue or __unbounded.
13393         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
13394         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
13395         use __unbounded.
13396         (__new_msgctl): Do not use __ptrvalue.
13397         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
13398         __unbounded.
13399         (__libc_msgrcv): Do not use __ptrvalue.
13400         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
13401         startup_info): Do not use __unbounded.
13402         (__libc_start_main): Likewise.  Rename ubp_* variables and
13403         parameters.  Remove argv definitions conditional on
13404         [__BOUNDED_POINTERS__].
13405         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
13406         __ptrvalue.
13407         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
13408         use __unbounded.
13409         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
13410         or __ptrvalue.
13411         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
13412         use __unbounded.
13413         (__new_shmctl): Do not use __ptrvalue.
13414         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
13415         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
13416         Likewise.
13417         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
13418         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
13419         (__libc_sigaction): Likewise.
13420         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
13421         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
13422         Likewise.
13423         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13424
13425 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
13426
13427         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
13428
13429         * string/mempcpy.c: Implement by calling memcpy.
13430
13431 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13432
13433         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
13434
13435         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
13436         evaluation.
13437
13438         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
13439         values in the mantissa.
13440
13441         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
13442         minimize writes to Z.
13443         (sub_magnitudes): Simplify code a bit.
13444
13445 2013-02-12  Roland McGrath  <roland@hack.frob.com>
13446
13447         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
13448         from the message.  The linker prefixes all warnings with that already.
13449
13450 2013-02-12  Andreas Schwab  <schwab@suse.de>
13451
13452         [BZ #15078]
13453         * posix/regexec.c (extend_buffers): Add parameter min_len.
13454         (check_matching): Pass minimum needed length.
13455         (clean_state_log_if_needed): Likewise.
13456         (get_subexp): Likewise.
13457         * posix/Makefile (tests): Add bug-regex34.
13458         (bug-regex34-ENV): Define.
13459         * posix/bug-regex34.c: New file.
13460
13461         [BZ #11561]
13462         * posix/regcomp.c (parse_bracket_exp): When looking up collating
13463         elements compare against the byte sequence of it, not its name.
13464         * posix/Makefile (tests): Add bug-regex35.
13465         (bug-regex35-ENV): Define.
13466         * posix/bug-regex35.c: New file.
13467
13468 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13469
13470         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
13471         comment.
13472         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
13473         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
13474         (CHECK_EOL): Add undef.
13475
13476 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
13477
13478         * bits/stdlib-bsearch.h: New file.
13479         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
13480         * stdlib/stdlib.h: Likewise.
13481
13482 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13483
13484         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
13485         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
13486         declaration.
13487         * manual/search.texi (Array Search Function): Add missing const in
13488         lfind prototype.
13489         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
13490         declaration to use rlim_t.
13491         (Basic Scheduling Functions): Remove erroneous const from
13492         sched_getparam prototype.  Remove erroneous * from
13493         sched_get_priority_max and sched_get_priority_min prototypes.
13494         (Resource Usage): Fix summary @comment on vtimes to refer to
13495         sys/vtimes.h rather than vtimes.h.
13496         Add missing *s in vtimes prototype.
13497         (Limits on Resources): Fix ulimit prototype to return long int.
13498         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
13499         prototypes to use long int rather than double.
13500         (BSD Random): Fix initstate and setstate to use char *, not void *.
13501         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
13502         prototype to make second argument 'struct aiocb64 *const[]'.
13503         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
13504         (Status of AIO Operations): Remove erroneous const in aio_return and
13505         aio_return64 prototypes.
13506         (Synchronizing I/O): Fix sync prototype to return void.
13507         * manual/startup.texi (Suboptions): Remove an erroneous const in
13508         getsubopt prototype.
13509         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
13510         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
13511         use size_t rather than int.
13512         (Scanning All Users): Likewise for getpwent_r.
13513         (Setting Groups): Add missing const to setgroups prototype.
13514         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
13515         * manual/socket.texi (Host Names): Fix gethostbyaddr and
13516         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
13517         'const void *' rather than 'const char *'.
13518         (Host Address Functions): Likewise for inet_ntop.
13519         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
13520         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
13521         ssize_t for return value.
13522         (Sending Data): Likewise for send, sendto, sendmsg.
13523         (Socket Option Functions): Add a missing const in setsockopt prototype.
13524         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
13525         use wchar_t for the argument.
13526         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
13527         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
13528         take no arguments.
13529         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
13530         double/float/long double for second argument.
13531         Fix return types of significand, significandf, significandl.
13532         * manual/filesys.texi (Setting Permissions): Use mode_t for second
13533         argument in fchmod prototype.
13534         (File Owner): Use uid_t and gid_t in fchown prototype.
13535         (File Times): Add const to utimes, futimes, and lutimes prototypes.
13536         (Making Special Files): Use mode_t and dev_t in mknod prototype.
13537         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
13538         use 'const struct dirent **' as argument types to CMP function pointer
13539         argument.
13540         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
13541         (File Times): Fix summary magic @comment for struct utimbuf and utime
13542         to refer to utime.h, not time.h.
13543         * manual/string.texi (Argz Functions): Add missing const in
13544         argz_extract and argz_next prototypes.
13545         (Finding Tokens in a String): Likewise for basename.
13546         (String/Array Comparison): Fix typo in wcscasecmp prototype.
13547         (Copying and Concatenation): Fix typo in wmemmove prototype.
13548         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
13549         (Signal Stack): Remove erroneous const in sigstack prototype.
13550         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
13551         prototype.
13552         (Simple Calendar Time): Likewise for stime.
13553         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
13554         prototype.
13555         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
13556         say sys/sysctl.h instead.
13557         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
13558         and vsyslog prototypes.
13559
13560 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13561
13562         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
13563         Remove.
13564
13565 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13566
13567         * misc/sys/mman.h: Fix typo in mremap comment.
13568
13569 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13570
13571         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
13572         the '\0' terminator.
13573
13574 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13575
13576         [BZ #13550]
13577         * debug/segfault.c: Don't include <bp-checks.h>.
13578         * sysdeps/generic/bp-checks.h: Remove file.
13579         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
13580         (__GETDENTS): Don't use CHECK_N.
13581         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
13582         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
13583         (__getgroups): Don't use CHECK_N.
13584         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
13585         (setgroups): Don't use CHECK_N.
13586         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
13587         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13588         (__libc_msgrcv): Don't use CHECK_N.
13589         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
13590         (__libc_msgsnd): Don't use CHECK_N.
13591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
13592         <bp-checks.h>.
13593         (__libc_pread): Don't use CHECK_N.
13594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
13595         include <bp-checks.h>.
13596         (__libc_pread64): Don't use CHECK_N.
13597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
13598         include <bp-checks.h>.
13599         (__libc_pwrite): Don't use CHECK_N.
13600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
13601         include <bp-checks.h>.
13602         (__libc_pwrite64): Don't use CHECK_N.
13603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
13604         <bp-checks.h>.
13605         (__libc_pread): Don't use CHECK_N.
13606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
13607         include <bp-checks.h>.
13608         (__libc_pread64): Don't use CHECK_N.
13609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
13610         include <bp-checks.h>.
13611         (__libc_pwrite): Don't use CHECK_N.
13612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
13613         include <bp-checks.h>.
13614         (__libc_pwrite64): Don't use CHECK_N.
13615         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
13616         (do_pread): Don't use CHECK_N.
13617         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
13618         (do_pread64): Don't use CHECK_N.
13619         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
13620         (do_pwrite): Don't use CHECK_N.
13621         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
13622         (do_pwrite64): Don't use CHECK_N.
13623         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
13624         (__libc_readv): Don't use CHECK_N.
13625         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
13626         (semop): Don't use CHECK_N.
13627         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
13628         <bp-checks.h>.
13629         (semtimedop): Don't use CHECK_N.
13630         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
13631         (__libc_pread): Don't use CHECK_N.
13632         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
13633         <bp-checks.h>.
13634         (__libc_pread64): Don't use CHECK_N.
13635         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
13636         <bp-checks.h>.
13637         (__libc_pwrite): Don't use CHECK_N.
13638         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
13639         <bp-checks.h>.
13640         (__libc_pwrite64): Don't use CHECK_N.
13641         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
13642         <bp-checks.h>.
13643         (__libc_msgrcv): Don't use CHECK_N.
13644         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
13645         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
13646         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
13647         (__libc_writev): Don't use CHECK_N.
13648
13649 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13650
13651         * string/strcpy.c: Removed unused variable.
13652
13653         * Makeconfig (+sysdep-includes): Define with := rather than =.
13654         Use an existing include/ subdir of each sysdeps dir before it.
13655
13656 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13657
13658         * nscd/connection.c (register_traced_file): Comment function.
13659         [HAVE_INOTIFY] (union __inev): Define.
13660         [HAVE_INOTIFY] (inotify_check_files): New function.
13661         [HAVE_INOTIFY] (clear_db_cache): Likewise.
13662         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
13663         clear_db_cache.
13664         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
13665
13666 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13667
13668         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
13669         loaded if not already and that a failure is permanent.
13670
13671 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13672
13673         [BZ #15006]
13674         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
13675         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
13676
13677 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13678
13679         [BZ #13550]
13680         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
13681         (CHECK_1_NULL_OK): Likewise.
13682         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
13683         (__fxstat): Do not use CHECK_1.
13684         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
13685         <bp-checks.h>.
13686         (___fxstat64): Do not use CHECK_1.
13687         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
13688         <bp-checks.h>.
13689         (__fxstatat): Do not use CHECK_1.
13690         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
13691         <bp-checks.h>.
13692         (__fxstatat64): Do not use CHECK_1.
13693         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
13694         <bp-checks.h>.
13695         (__fxstat): Do not use CHECK_1.
13696         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
13697         <bp-checks.h>.
13698         (__fxstatat): Do not use CHECK_1.
13699         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13700         <bp-checks.h>.
13701         (__getresgid): Do not use CHECK_1.
13702         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13703         <bp-checks.h>.
13704         (__getresuid): Do not use CHECK_1.
13705         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
13706         <bp-checks.h>.
13707         (__lxstat): Do not use CHECK_1.
13708         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13709         <bp-checks.h>.
13710         (__old_msgctl): Do not use CHECK_1.
13711         (__new_msgctl): Likewise.
13712         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
13713         <bp-checks.h>.
13714         (__new_setrlimit): Do not use CHECK_1.
13715         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13716         <bp-checks.h>.
13717         (__old_shmctl): Do not use CHECK_1.
13718         (__new_shmctl): Likewise.
13719         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
13720         <bp-checks.h>.
13721         (__xstat): Do not use CHECK_1.
13722         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
13723         (__lxstat): Do not use CHECK_1.
13724         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
13725         <bp-checks.h>.
13726         (___lxstat64): Do not use CHECK_1.
13727         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
13728         (__old_msgctl): Do not use CHECK_1.
13729         (__new_msgctl): Likewise.
13730         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
13731         <bp-checks.h>.
13732         (__gettimeofday): Do not use CHECK_1.
13733         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
13734         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
13735         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
13736         <bp-checks.h>.
13737         (__gettimeofday): Do not use CHECK_1.
13738         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
13739         (__old_shmctl): Do not use CHECK_1_NULL_OK.
13740         (__new_shmctl): Do not use CHECK_1.
13741         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
13742         <bp-checks.h>.
13743         (do_sigtimedwait): Do not use CHECK_1.
13744         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
13745         <bp-checks.h>.
13746         (do_sigwaitinfo): Do not use CHECK_1.
13747         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
13748         <bp-checks.h>.
13749         (msgctl): Do not use CHECK_1.
13750         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
13751         <bp-checks.h>.
13752         (shmctl): Do not use CHECK_1.
13753         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
13754         (ustat): Do not use CHECK_1.
13755         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
13756         <bp-checks.h>.
13757         (__fxstat): Do not use CHECK_1.
13758         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
13759         <bp-checks.h>.
13760         (__fxstatat): Do not use CHECK_1.
13761         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
13762         <bp-checks.h>.
13763         (__lxstat): Do not use CHECK_1.
13764         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
13765         <bp-checks.h>.
13766         (__xstat): Do not use CHECK_1.
13767         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
13768         (__xstat): Do not use CHECK_1.
13769         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
13770         (___xstat64): Do not use CHECK_1.
13771
13772         [BZ #13550]
13773         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
13774         definitions.
13775         (CHECK_BOUNDS_HIGH): Likewise.
13776         * string/strcpy.c: Do not include <bp-checks.h>.
13777         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
13778
13779 2013-02-07  Roland McGrath  <roland@hack.frob.com>
13780
13781         * nscd/nscd-client.h (__nscd_drop_map_ref):
13782         Add __attribute__ ((unused)).
13783         * nis/nss-nisplus.h (niserr2nss): Likewise.
13784
13785         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
13786         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
13787
13788         * csu/libc-tls.c (init_static_tls, init_slotinfo):
13789         Remove inline keyword.
13790         * include/rounding-mode.h (round_away): Likewise.
13791         * libio/wfileops.c (adjust_wide_data): Likewise.
13792         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
13793         (__m128i_strloadu_tolower): Likewise.
13794         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
13795         (__m128i_strloadu_tolower): Likewise.
13796         * time/mktime.c (ydhms_diff): Likewise.
13797         * locale/elem-hash.h (elem_hash): Likewise.
13798         * locale/setlocale.c (setdata): Likewise.
13799         * posix/regex_internal.h (re_string_char_size_at): Likewise.
13800         (re_string_wchar_at): Likewise.
13801         (bitset_not, bitset_merge, bitset_mask): Likewise.
13802         [!(__GNUC__ > 3)] (inline): Remove macro.
13803         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
13804         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
13805         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
13806         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
13807         * string/memcmp.c (memcmp_bytes): Likewise.
13808         * locale/programs/locarchive.c (compute_hashval): Likewise.
13809         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
13810         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
13811         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
13812         * nss/getent.c (print_rpc, print_protocols): Likewise.
13813         (print_passwd, print_group, print_aliases): Likewise.
13814         * nis/nss-nisplus.h (niserr2nss): Likewise.
13815         * nscd/connections.c (restart_p): Likewise.
13816         Change return type to bool.
13817
13818 2013-02-05  Roland McGrath  <roland@hack.frob.com>
13819
13820         * Makeconfig (all-Depend-files): Add existing
13821         $(sorted-subdirs:=/Depend) files.
13822         (all-subdirs): Remove nss.
13823         * sysdeps/unix/inet/Subdirs: Add it here instead.
13824         * hesiod/Depend: New file.
13825
13826         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
13827         instead of calling alloca.
13828
13829         * io/lseek.c (__lseek): Rename to __libc_lseek.
13830         Define __lseek as an alias.
13831
13832         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
13833
13834 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
13835
13836         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
13837         else clause and remove check for non-standard endianness.
13838
13839 2013-02-04  David S. Miller  <davem@davemloft.net>
13840
13841         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13842
13843 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
13844
13845         [BZ #13550]
13846         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
13847         (__ubp_memchr): Remove prototype.
13848         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
13849         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
13850         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
13851         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
13852         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
13853         Remove alias.
13854         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
13855         (__ubp_memchr): Likewise.
13856         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
13857         (__ubp_memchr): Likewise.
13858         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
13859         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
13860         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
13861         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
13862         CHECK_STRING.
13863         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
13864         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
13865         (__getcwd): Do not use CHECK_STRING.
13866         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
13867         <bp-checks.h>.
13868         (__real_chown): Do not use CHECK_STRING.
13869         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
13870         <bp-checks.h>.
13871         (fchownat): Do not use CHECK_STRING.
13872         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
13873         CHECK_STRING.
13874         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13875         <bp-checks.h>.
13876         (__lchown): Do not use CHECK_STRING.
13877         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13878         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13879         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13880         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
13881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13882         include <bp-checks.h>.
13883         (truncate64): Do not use CHECK_STRING.
13884         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13885         <bp-checks.h>.
13886         (__real_chown): Do not use CHECK_STRING.
13887         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13888         <bp-checks.h>.
13889         (__lchown): Do not use CHECK_STRING.
13890         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13891         <bp-checks.h>.
13892         (__chown): Do not use CHECK_STRING.
13893         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
13894         <bp-checks.h>.
13895         (truncate64): Do not use CHECK_STRING.
13896         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
13897         Likewise.
13898         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
13899         (__xmknod): Do not use CHECK_STRING.
13900         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
13901         <bp-checks.h>.
13902         (__xmknodat): Do not use CHECK_STRING.
13903         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13904         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
13905
13906 2013-02-04  Andreas Schwab  <schwab@suse.de>
13907
13908         [BZ #14142]
13909         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
13910         * include/netdb.h: Likewise for h_errno.
13911         * elf/tst-stackguard1.c: Include <tls.h>.
13912
13913 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13914
13915         * elf/link.h (struct link_map): Extend the l_addr comment.
13916         * include/link.h (struct link_map): Likewise.
13917
13918 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
13919
13920         [BZ #13550]
13921         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
13922         (BOUNDED_1): Remove macro.
13923         * debug/backtrace.c: Don't include <bp-checks.h>.
13924         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
13925         (__backtrace): Likewise.
13926         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
13927         <bp-checks.h>.
13928         (__backtrace): Don't use BOUNDED_1.
13929         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
13930         <bp-checks.h>.
13931         (__backtrace): Don't use BOUNDED_1.
13932         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
13933         (__backtrace): Don't use BOUNDED_1.
13934         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
13935         (shmat): Don't use BOUNDED_N.
13936
13937 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
13938
13939         [BZ #13550]
13940         * sysdeps/generic/bp-start.h: Remove file.
13941         * csu/libc-start.c: Don't include <bp-start.h>.
13942         (LIBC_START_MAIN): Set up __environ directly instead of using
13943         INIT_ARGV_and_ENVIRON.
13944         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
13945         <bp-start.h>.
13946
13947         [BZ #13550]
13948         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
13949         definitions.
13950         (CHECK_FCNTL): Likewise.
13951         (CHECK_N_PAGES): Likewise.
13952
13953         [BZ #13550]
13954         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
13955         definitions.
13956         (CHECK_SIGSET_NULL_OK): Likewise.
13957         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
13958         <bp-checks.h>.
13959         (sigpending): Don't use CHECK_SIGSET.
13960         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
13961         <bp-checks.h>.
13962         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
13963         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
13964         <bp-checks.h>.
13965         (do_sigsuspend): Don't use CHECK_SIGSET.
13966         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
13967         use CHECK_SIGSET.
13968         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
13969         (do_sigwait): Don't use CHECK_SIGSET.
13970         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
13971         use CHECK_SIGSET.
13972         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
13973         include <bp-checks.h>.
13974         (sigpending): Don't use CHECK_SIGSET.
13975         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
13976         include <bp-checks.h>.
13977         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
13978         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
13979         <bp-checks.h>.
13980         (sigpending): Don't use CHECK_SIGSET.
13981         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
13982         <bp-checks.h>.
13983         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
13984
13985         [BZ #13550]
13986         * sysdeps/generic/bp-semctl.h: Remove file.
13987         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
13988         <bp-checks.h> and <bp-semctl.h>.
13989         (__old_semctl): Don't use CHECK_SEMCTL.
13990         (__new_semctl): Likewise.
13991         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
13992         and <bp-semctl.h>.
13993         (__old_semctl): Don't use CHECK_SEMCTL.
13994         (__new_semctl): Likewise.
13995         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
13996         <bp-checks.h> and <bp-semctl.h>.
13997         (__old_semctl): Don't use CHECK_SEMCTL.
13998         (__new_semctl): Likewise.
13999         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
14000         <bp-checks.h> and <bp-semctl.h>.
14001         (semctl): Don't use CHECK_SEMCTL.
14002
14003         [BZ #13550]
14004         * Makerules (elide-bp-thunks): Remove variable.
14005         (elide-routines.oS): Don't use $(elide-bp-thunks).
14006         (elide-routines.os): Likewise.
14007         (elide-routines.o): Likewise.
14008         (elide-routines.op): Likewise.
14009         (elide-routines.og): Likewise.
14010         (objects): Don't use $(bp-thunks).
14011         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
14012         include.
14013         (common-generated): Do not add s-proto-bp.d.
14014         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
14015         (int): Likewise.
14016         (typ): Likewise.
14017         Do not generate makefile rules for bounded-pointer thunks.
14018         * sysdeps/generic/bp-thunks.h: Remove file.
14019         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
14020         * sysdeps/unix/s-proto-bp.S: Likewise.
14021
14022         [BZ #15062]
14023         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
14024         parts of result separately when argument is not close to line from
14025         -i to i and one part of argument is small.
14026         * math/k_casinhf.c (__kernel_casinhf): Likewise.
14027         * math/k_casinhl.c (__kernel_casinhl): Likewise.
14028         * math/libm-test.inc (cacos_test): Add more tests.
14029         (casin_test): Likewise.
14030         (casinh_test): Likewise.
14031         * sysdeps/i386/fpu/libm-test-ulps: Update.
14032         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14033
14034 2013-01-31  David S. Miller  <davem@davemloft.net>
14035
14036         * po/de.po: Update from translation team.
14037
14038 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
14039
14040         * time/tzfile.c: Include stdint.h for SIZE_MAX.
14041
14042 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
14043
14044         * configure.in (_AC_PROG_CC_C89): New definition.
14045         * configure: Regenerate.
14046
14047         * configure.in (AC_PROG_CPP): New definition.
14048         * configure: Regenerate.
14049
14050 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14051
14052         * debug/tst-backtrace.h: New file.
14053         * debug/tst-backtrace2.c: Include tst-backtrace.h.
14054         (ret): Remove variable.
14055         (x): Likewise.
14056         (FAIL): Remove macro.
14057         (NO_INLINE): Likewise.
14058         (fn1): Use match function instead of strstr.
14059         * debug/tst-backtrace3.c: Include tst-backtrace.h.
14060         (ret): Remove variable.
14061         (x): Likewise.
14062         (FAIL): Remove macro.
14063         (NO_INLINE): Likewise.
14064         (fn): Use match function instead of strstr.
14065         * debug/tst-backtrace4.c: Include tst-backtrace.h.
14066         (ret): Remove variable.
14067         (x): Likewise.
14068         (FAIL): Remove macro.
14069         (NO_INLINE): Likewise.
14070         (handle_signal): Use match function instead of strstr.
14071         * debug/tst-backtrace5.c: Include tst-backtrace.h.
14072         (ret): Remove variable.
14073         (x): Likewise.
14074         (FAIL): Remove macro.
14075         (NO_INLINE): Likewise.
14076         (handle_signal): Use match function instead of strstr.
14077
14078 2013-01-23  Roland McGrath  <roland@hack.frob.com>
14079
14080         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
14081
14082 2013-01-23  David S. Miller  <davem@davemloft.net>
14083
14084         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
14085         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
14086         argument of CAS if possible.
14087         * sysdeps/sparc/sparc64/bits/atomic.h
14088         (__arch_compare_and_exchange_val_32_acq): Likewise.
14089         (__arch_compare_and_exchange_val_64_acq): Likewise.
14090
14091 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
14092
14093         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
14094         * sysdeps/posix/ulimit.c: ... this.
14095         Include <limits.h>.
14096         * sysdeps/unix/bsd/ulimit.c: Remove file.
14097
14098 2013-01-23  Adam Conrad  <adconrad@0c3.net>
14099
14100         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
14101         (LDFLAGS-tst-array5): Likewise.
14102
14103 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14104
14105         [BZ #15036]
14106         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
14107         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
14108         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
14109         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
14110
14111 2013-01-21  David S. Miller  <davem@davemloft.net>
14112
14113         * sysdeps/sparc/backtrace.c: New file.
14114         * sysdeps/sparc/sparc32/backtrace.h: New file.
14115         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
14116         * sysdeps/sparc/sparc64/backtrace.h: New file.
14117         * sysdeps/sparc/sparc64/backtrace.c: Delete.
14118         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
14119         -funwind-tables.
14120
14121 2013-01-21  Andreas Schwab  <schwab@suse.de>
14122
14123         [BZ #15020]
14124         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
14125         closed its stdout.
14126
14127 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
14128
14129         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
14130         "mpa2.h".
14131         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14132
14133 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
14134             Mark Mitchell  <mark@codesourcery.com>
14135             Tom de Vries  <tom@codesourcery.com>
14136             Paul Pluzhnikov  <ppluzhnikov@google.com>
14137
14138         * debug/tst-backtrace2.c: New file.
14139         * debug/tst-backtrace3.c: Likewise.
14140         * debug/tst-backtrace4.c: Likewise.
14141         * debug/tst-backtrace5.c: Likewise.
14142         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
14143         (CFLAGS-tst-backtrace3.c): Likewise.
14144         (CFLAGS-tst-backtrace4.c): Likewise.
14145         (CFLAGS-tst-backtrace5.c): Likewise.
14146         (LDFLAGS-tst-backtrace2): Likewise.
14147         (LDFLAGS-tst-backtrace3): Likewise.
14148         (LDFLAGS-tst-backtrace4): Likewise.
14149         (LDFLAGS-tst-backtrace5): Likewise.
14150         (tests): Add new tests tst-backtrace2, tst-backtrace3,
14151         tst-backtrace4 and tst-backtrace5.
14152
14153 2013-01-18  Anton Blanchard  <anton@samba.org>
14154             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14155
14156         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
14157         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
14158         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
14159         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
14160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
14161         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
14162         "+r" and remove output regs list as redundant.  Add explicit inline
14163         asm to specify register of return val to work around compiler codegen
14164         bug.  Remove (int) cast on return value.  Add return type parameter to
14165         use in macro so that this macro does not truncate return value for
14166         64-bit values.
14167         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
14168         pass to INTERNAL_VSYSCALL_NCS.
14169         (INLINE_VSYSCALL): Add 'long int' as return type to
14170         INTERNAL_VSYSCALL_NCS macro invocation.
14171         (INTERNAL_VSYSCALL): Add 'long int' as return type to
14172         INTERNAL_VSYSCALL_NCS macro invocation.
14173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14174
14175 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14176
14177         [BZ #14496]
14178         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
14179         Fix application of SIMD FP exception mask.
14180
14181         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
14182         mp_no from a power of two.
14183         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
14184         __mpexp_twomm1.  Use __pow_mp.
14185
14186         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
14187         multiplication.
14188
14189 2013-01-17  David S. Miller  <davem@davemloft.net>
14190
14191         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14192
14193 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14194
14195         [BZ #15023]
14196         * include/complex.h: Condition contents on [!_COMPLEX_H].
14197         (__kernel_casinhf): New prototype.
14198         (__kernel_casinh): Likewise.
14199         (__kernel_casinhl): Likewise.
14200         * math/Makefile (libm_calls): Add k_casinh.
14201         * math/k_casinh.c: New file.
14202         * math/k_casinhf.c: Likewise.
14203         * math/k_casinhl.c: Likewise.
14204         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
14205         finite nonzero arguments.
14206         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
14207         finite nonzero arguments.
14208         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
14209         finite nonzero arguments.
14210         * math/s_casinh.c: Do not include <float.h>.
14211         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
14212         * math/s_casinhf.c: Do not include <float.h>.
14213         (__casinhf): Move code for finite nonzero arguments to
14214         k_casinhf.c.
14215         * math/s_casinhl.c: Do not include <float.h>.
14216         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
14217         redefine.
14218         (__casinhl): Move code for finite nonzero arguments to
14219         k_casinhl.c.
14220         * math/libm-test.inc (cacos_test): Add more tests.
14221         * sysdeps/i386/fpu/libm-test-ulps: Update.
14222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14223
14224 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
14225
14226         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
14227         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
14228         [!HAVE_MREMAP]: Remove [defined linux] case.
14229         * malloc/arena.c: Do not include <malloc-sysdep.h>.
14230
14231 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
14232
14233         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
14234
14235 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14236
14237         * elf/elf.h (R_386_SIZE32): New relocation.
14238         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
14239         R_386_SIZE32.
14240         (elf_machine_rela): Likewise.
14241         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
14242         R_X86_64_SIZE64 and R_X86_64_SIZE32.
14243
14244 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14245
14246         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
14247         (FP_FAST_FMA): Do not define.
14248         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
14249         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
14250         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
14251         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
14252         !_SOFT_FLOAT]: Likewise.
14253         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
14254         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
14255         value.
14256         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
14257         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
14258         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
14259         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
14260         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
14261         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
14262         file.
14263
14264 2013-01-16  Andreas Schwab  <schwab@suse.de>
14265
14266         [BZ #14327]
14267         * include/stdlib.h (__mktemp): Add declaration.
14268         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
14269         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
14270
14271 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14272
14273         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
14274         definitions.
14275         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
14276         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
14277         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
14278         definitions here.
14279         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
14280         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
14281         definitions.
14282         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
14283         and ONE.
14284         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
14285         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
14286         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
14287         definitions.
14288         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
14289         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
14290         definitions.
14291         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
14292
14293         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
14294
14295 2013-01-15  David S. Miller  <davem@davemloft.net>
14296
14297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14298         trunc{,f} to libm-sysdep_routes.
14299         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
14301         file.
14302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
14303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
14304         file.
14305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
14306         file.
14307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
14308         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
14309         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
14310         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
14311         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
14312         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
14313         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
14314         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
14315
14316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14317         nearbyint{,f} to libm-sysdep_routes.
14318         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
14320         New file.
14321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
14322         file.
14323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
14324         New file.
14325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
14326         file.
14327         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
14328         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
14329         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
14330         file.
14331         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
14332         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
14333         file.
14334         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
14335         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
14336         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
14337
14338         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
14339         libc_feholdexcept and libc_fesetenv.
14340
14341 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
14342
14343         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
14344
14345 2013-01-14  David S. Miller  <davem@davemloft.net>
14346
14347         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
14348         (SPARC_ASM_VIS2_IFUNC): Likewise.
14349         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
14350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
14351         use of 'siam' instruction.
14352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
14353         Likewise.
14354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
14355         Likewise.
14356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
14357         Likewise.
14358         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
14359         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
14360         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
14361         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
14362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
14363         file.
14364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
14365         file.
14366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
14367         file.
14368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
14369         file.
14370         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
14371         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
14372         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
14373         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
14374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
14375         new VIS2 routines.
14376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
14377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
14379         Likewise.
14380         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
14381         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
14382         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
14383         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
14384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
14385         routines to libm-sysdep_routines.
14386         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14387
14388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14389         fdim/fdimf to libm-sysdep_routines.
14390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
14391         file.
14392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
14393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
14394         file.
14395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
14396         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
14397         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
14398         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
14399         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
14400         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
14401         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
14402
14403 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14404
14405         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
14406         to optimize copies.
14407
14408         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
14409         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14410         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14411
14412         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
14413         local variable MPTWO.
14414         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
14415         Likewise.
14416
14417 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14418
14419         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
14420         GLOB_NOESCAPE.
14421
14422 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14423
14424         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
14425
14426 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14427
14428         * manual/pattern.texi (glob_t): Document gl_flags.
14429         (glob64_t): Likewise.
14430
14431 2013-01-11  David S. Miller  <davem@davemloft.net>
14432
14433         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
14434         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
14435         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
14436         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
14437         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
14438         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
14439         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
14440         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
14441         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
14442         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
14443         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
14444         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
14445         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
14446
14447         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14448         sparc V9 rather than using V8 code.
14449         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14450         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14451
14452         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
14453         Move to...
14454         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
14455         Here.
14456
14457 2013-01-11  Roland McGrath  <roland@hack.frob.com>
14458
14459         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
14460         not in the main loop.
14461         * configure: Regenerated.
14462
14463 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
14464
14465         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
14466         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
14467         to just #else.
14468         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
14469         [!__GLIBC_HAVE_LONG_LONG] case.
14470         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
14471         condition to just #else.
14472         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
14473         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
14474         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
14475         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
14476         unconditional.
14477         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
14478         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14479         #elif condition to just #else.
14480         * sysdeps/unix/sysv/linux/sys/sysmacros.h
14481         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
14482         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14483         #elif condition to just #else.
14484
14485 2013-01-11  Steve Ellcey  <sellcey@mips.com>
14486
14487         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
14488         (EF_MIPS_ARCH_64): Fix value.
14489         (EF_MIPS_ARCH_32R2): New.
14490         (EF_MIPS_ARCH_64R2): New.
14491
14492 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
14493
14494         * Makeconfig (+link-pie-before-libc): New.
14495         (+link-pie-after-libc): Likewise.
14496         (+link-pie-tests): Likewise.
14497         (+link-pie): Rewritten.
14498         (link-before-libc): Remove $(config-LDFLAGS).
14499         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
14500         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
14501         (config-LDFLAGS): Renamed to ...
14502         (rtld-LDFLAGS): This.
14503         (rtld-tests-LDFLAGS): New macro.
14504         (link-libc-rpath-link): Likewise.
14505         (link-libc-tests-rpath-link): Likewise.
14506         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
14507         (link-libc): Prepand $(link-libc-rpath-link).
14508         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
14509         (test-program-prefix): New macro.
14510         (test-via-rtld-prefix): Likewise.
14511         (test-program-cmd): Likewise.
14512         (host-test-program-cmd): Likewise.
14513         * Makefile ($(common-objpfx)testrun.sh): Replace
14514         $(run-program-prefix) with $(test-program-prefix).
14515         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
14516         $(rtld-LDFLAGS).
14517         ($(common-objpfx)shlib.lds): Likewise.
14518         (build-module-helper): Likewise.
14519         ($(common-objpfx)format.lds): Likewise.
14520         * Rules (binaries-pie-tests): New.
14521         (binaries-pie-notests): Likewise.
14522         (binaries-pie): Rewritten.
14523         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
14524         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
14525         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
14526         (make-test-out): Replace $(host-built-program-cmd) with
14527         $(host-test-program-cmd).
14528         * config.make.in (build-hardcoded-path-in-tests): New variable.
14529         * configure.in (--enable-hardcoded-path-in-tests): New configure
14530         option.
14531         (hardcoded_path_in_tests): New AC_SUBST.
14532         * configure: Regenerated.
14533         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
14534         $(built-program-cmd) with $(test-program-cmd).
14535         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
14536         (test_program_cmd): This.
14537         * elf/Makefile ($(objpfx)order.out): Run test with
14538         $(test-program-prefix).
14539         ($(objpfx)order2.out): Likewise.
14540         ($(objpfx)tst-initorder.out): Likewise.
14541         ($(objpfx)tst-initorder2.out): Likewise.
14542         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
14543         $(test-program-cmd).
14544         ($(objpfx)tst-array1-static.out): Likewise.
14545         ($(objpfx)tst-array2.out): Likewise.
14546         ($(objpfx)tst-array3.out): Likewise.
14547         ($(objpfx)tst-array4.out): Likewise.
14548         ($(objpfx)tst-array5.out): Likewise.
14549         ($(objpfx)tst-array5-static.out): Likewise.
14550         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
14551         $(test-program-cmd).
14552         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
14553         $(run-program-prefix) with $(test-program-prefix).
14554         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
14555         (test_program_prefix): This.
14556         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
14557         $(run-program-prefix) with $(test-program-prefix).
14558         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
14559         (test_program_prefix): This.
14560         * iconvdata/tst-tables.sh: Likewise.
14561         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
14562         $(run-program-prefix) with $(test-program-prefix).
14563         ($(objpfx)tst-translit.out): Likewise.
14564         ($(objpfx)tst-gettext2.out): Likewise.
14565         ($(objpfx)tst-gettext4.out): Likewise.
14566         ($(objpfx)tst-gettext6.out): Likewise.
14567         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
14568         (test_program_prefix): This.
14569         * intl/tst-gettext2.sh: Likewise.
14570         * intl/tst-gettext4.sh  Likewise.
14571         * intl/tst-gettext6.sh: Likewise.
14572         * intl/tst-translit.sh: Likewise.
14573         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
14574         with $(test-program-cmd).
14575         * libio/Makefile ($(objpfx)test-freopen.out): Replace
14576         $(run-program-prefix) with $(test-program-prefix).
14577         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
14578         (test_program_prefix): This.
14579         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
14580         $(run-program-prefix) with $(test-program-prefix).
14581         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
14582         (test_program_prefix): This.
14583         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
14584         * posix/Makefile ($(objpfx)globtest.out): Replace
14585         $(run-via-rtld-prefix) and $(test-wrapper) with
14586         $(test-program-prefix) and $(test-via-rtld-prefix).
14587         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
14588         $(test-program-prefix).
14589         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
14590         $(host-test-program-cmd).
14591         (tst-spawn-ARGS): Likewise.
14592         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
14593         $(test-program-prefix).
14594         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
14595         (test_via_rtld_prefix): This.
14596         (test_wrapper): Renamed to ...
14597         (test_program_prefix): This.
14598         (run_program_prefix): Replaced by test_program_prefix.
14599         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
14600         (test_program_prefix): This.
14601         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
14602         with $(host-test-program-cmd).
14603         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
14604         $(run-program-prefix) with $(test-program-prefix).
14605         ($(objpfx)tst-printf.out): Likewise.
14606         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
14607         $(test-program-cmd).
14608         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
14609         (test_program_prefix): This.
14610         * stdio-common/tst-unbputc.sh: Likewise.
14611         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
14612         $(run-program-prefix) with $(test-program-prefix).
14613         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
14614         (test_program_prefix): This.
14615         * string/Makefile ($(objpfx)tst-svc.out):  Replace
14616         $(built-program-cmd) with $(test-program-cmd).
14617
14618 2013-01-11  Andreas Jaeger  <aj@suse.de>
14619
14620         [BZ #15003]
14621         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
14622         value. Sync with Linux 3.7.
14623
14624 2013-01-10  David S. Miller  <davem@davemloft.net>
14625
14626         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
14627         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14628         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14629
14630 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14631
14632         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
14633         never set.
14634         * configure: Regenerated.
14635
14636 2013-01-10  David S. Miller  <davem@davemloft.net>
14637
14638         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14639         sparc V9 rather than using V8 code.
14640         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14641         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14642
14643 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14644
14645         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
14646         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
14647         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
14648         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
14649         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
14650         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
14651         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
14652         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
14653         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
14654         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
14655         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
14656         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
14657         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
14658         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
14659         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
14660         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
14661         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
14662         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
14663         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
14664         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
14665         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
14666         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
14667         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
14668         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
14669         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
14670         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
14671         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
14672
14673 2013-01-10  David S. Miller  <davem@davemloft.net>
14674
14675         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14676
14677 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14678
14679         * posix/Makefile (tests-static): New variable.
14680         (tests): Add $(tests-static).
14681         (tst-exec-static-ARGS): New variable.
14682         (tst-spawn-static-ARGS): Likewise.
14683         * posix/tst-exec-static.c: New file.
14684         * posix/tst-spawn-static.c: Likewise.
14685         * posix/tst-exec.c: Support run directly.
14686         * posix/tst-spawn.c: Likewise.
14687
14688 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
14689
14690         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
14691         long.
14692         * math/bits/mathcalls.h (llrint): Likewise.
14693         (llround): Likewise.
14694         * stdlib/stdlib.h (struct drand48_data): Likewise.
14695         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
14696         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
14697         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
14698         Likewise.
14699         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
14700         Likewise.
14701         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
14702         (elf_greg_t): Likewise.
14703         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
14704         (__jmp_buf): Likewise.
14705         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
14706         definitions.
14707         (llrint): Likewise, for all definitions.
14708         (llrintl): Likewise.
14709
14710         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
14711         Remove [__GNUC__] condition.
14712         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
14713         condition to just [__USE_ISOC99].
14714         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
14715
14716 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14717
14718         [BZ #14200]
14719         * sysdeps/unix/sysv/linux/x86/bits/environments.h
14720         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
14721         defined.
14722         (_POSIX_V6_ILP32_OFF32): Likewise.
14723         (_XBS5_ILP32_OFF32): Likewise.
14724         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
14725         (__ILP32_OFFBIG_LDFLAGS): Likewise.
14726
14727 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14728
14729         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
14730
14731         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
14732         doubles __mpexp_twomm1.  Adjust usage.
14733         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
14734         Remove.
14735
14736 2013-01-10  Andreas Schwab  <schwab@suse.de>
14737
14738         [BZ #14964]
14739         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
14740         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
14741
14742 2013-01-09  David S. Miller  <davem@davemloft.net>
14743
14744         [BZ #15003]
14745         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
14746         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
14747         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
14748         TCP_FASTOPEN): Define.
14749         (tcp_repair_opt): New structure.
14750         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
14751         enum values.
14752         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
14753         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
14754         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
14755         (tcp_cookie_transactions): New structure.
14756
14757 2013-01-09  Anton Blanchard  <anton@samba.org>
14758
14759         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
14760         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
14761         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
14762         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
14763
14764 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
14765
14766         * include/features.h (__USE_ANSI): Remove.
14767
14768 2013-01-09  Roland McGrath  <roland@hack.frob.com>
14769
14770         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
14771
14772         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
14773
14774 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
14775
14776         * sysdeps/s390/fpu/libm-test-ulps: Update.
14777
14778         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14779
14780         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
14781         (__acr): Likewise.
14782         (__cpy): Likewise.
14783         (norm): Likewise.
14784         (denorm): Likewise.
14785         (__mp_dbl): Likewise.
14786         (__dbl_mp): Likewise.
14787         (add_magnitudes): Likewise.
14788         (sub_magnitudes): Likewise.
14789         (__add): Likewise.
14790         (__sub): Likewise.
14791         (__mul): Likewise.
14792         (__inv): Likewise.
14793         (__dvd): Likewise.
14794         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
14795         (__acr): Likewise.
14796         (__cpy): Likewise.
14797         (norm): Likewise.
14798         (denorm): Likewise.
14799         (__mp_dbl): Likewise.
14800         (__dbl_mp): Likewise.
14801         (add_magnitudes): Likewise.
14802         (sub_magnitudes): Likewise.
14803         (__add): Likewise.
14804         (__sub): Likewise.
14805         (__mul): Likewise.
14806         (__inv): Likewise.
14807         (__dvd): Likewise.
14808         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
14809         (__acr): Likewise.
14810         (__cpy): Likewise.
14811         (norm): Likewise.
14812         (denorm): Likewise.
14813         (__mp_dbl): Likewise.
14814         (__dbl_mp): Likewise.
14815         (add_magnitudes): Likewise.
14816         (sub_magnitudes): Likewise.
14817         (__add): Likewise.
14818         (__sub): Likewise.
14819         (__mul): Likewise.
14820         (__inv): Likewise.
14821         (__dvd): Likewise.
14822
14823 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
14824
14825         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
14826         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
14827         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
14828         2 && __USE_EXTERN_INLINES]: Likewise.
14829
14830 2013-01-08  Andreas Jaeger  <aj@suse.de>
14831
14832         [BZ# 14985]
14833         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
14834         Remove.
14835         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
14836         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
14837
14838 2013-01-07  Anton Blanchard  <anton@samba.org>
14839
14840         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
14841         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
14842         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
14843         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
14844         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14845         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
14846         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
14847         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
14848         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14849         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
14850         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14851         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14852         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
14853         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14854         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
14855         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14856         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14857         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14858         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
14859         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14860         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
14861         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
14862         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14863         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
14864         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
14865         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14866         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14867         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
14868         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
14869         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
14870         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
14871         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14872         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
14873         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
14874         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
14875         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14876         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14877         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
14878         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
14879         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
14880         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
14881         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14882         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
14883
14884 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
14885
14886         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
14887         (__MALLOC_PMT): Likewise.
14888         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
14889         [__GNUC__], only on [_LIBC].
14890         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
14891         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
14892         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
14893         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
14894         forward declaration.
14895         (realloc_hook_ini): Likewise.
14896         (memalign_hook_ini): Likewise.
14897         (__libc_memalign): Do not use __MALLOC_PMT in variable
14898         declaration.
14899         (__libc_valloc): Likewise.
14900         (__libc_pvalloc): Likewise.
14901         (__libc_calloc): Likewise.
14902         (__posix_memalign): Likewise.
14903
14904         [BZ #14996]
14905         * math/s_casinh.c: Include <float.h>.
14906         (__casinh): Do not do computation with squaring and square root
14907         for large arguments.
14908         * math/s_casinhf.c: Include <float.h>.
14909         (__casinhf): Do not do computation with squaring and square root
14910         for large arguments.
14911         * math/s_casinhl.c: Include <float.h>.
14912         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
14913         (__casinhl): Do not do computation with squaring and square root
14914         for large arguments.
14915         * math/libm-test.inc (casin_test): Add more tests.
14916         (casinh_test): Likewise.
14917         * sysdeps/i386/fpu/libm-test-ulps: Update.
14918         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14919
14920 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
14921
14922         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
14923         (__x86_64_raw_data_cache_size): Likewise.
14924         (__x86_64_data_cache_size_half): Likewise.
14925         (__x86_64_raw_data_cache_size_half): Likewise.
14926         (__x86_64_shared_cache_size): Likewise.
14927         (__x86_64_raw_shared_cache_size): Likewise.
14928         (__x86_64_shared_cache_size_half): Likewise.
14929         (__x86_64_raw_shared_cache_size_half): Likewise.
14930         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
14931         to ...
14932         (__x86_data_cache_size): This.
14933         (__x86_64_raw_data_cache_size): Renamed to ...
14934         (__x86_raw_data_cache_size): This.
14935         (__x86_64_data_cache_size_half): Renamed to ...
14936         (__x86_data_cache_size_half): This.
14937         (__x86_64_raw_data_cache_size_half): Renamed to ...
14938         (__x86_raw_data_cache_size_half): This.
14939         (__x86_64_shared_cache_size): Renamed to ...
14940         (__x86_shared_cache_size): This.
14941         (__x86_64_raw_shared_cache_size): Renamed to ...
14942         (__x86_raw_shared_cache_size): This.
14943         (__x86_64_shared_cache_size_half): Renamed to ...
14944         (__x86_shared_cache_size_half): This.
14945         (__x86_64_raw_shared_cache_size_half): Renamed to ...
14946         (__x86_raw_shared_cache_size_half): This.
14947         * sysdeps/x86_64/memcpy.S: Updated.
14948         * sysdeps/x86_64/memset.S: Likewise.
14949         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
14950         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14951         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14952
14953 2013-01-04  David S. Miller  <davem@davemloft.net>
14954
14955         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14956
14957 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
14958
14959         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
14960         1 to avoid redefinition warning.
14961         (__USE_GNU): Don't define.
14962         (init_signaling_nan): Protoize.
14963
14964         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14965
14966 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14967
14968         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
14969         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
14970         (__cpymn): Likewise.
14971         (norm): Remove commented code.
14972         (denorm): Likewise.
14973         (__mp_dbl): Likewise.
14974         (__inv): Likewise.
14975         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
14976         (__cpymn): Likewise.
14977         (norm): Remove commented code.
14978         (denorm): Likewise.
14979         (__mp_dbl): Likewise.
14980         (__inv): Likewise.
14981
14982         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
14983         mp_no value for 1.0 and 2.0.
14984         (norm): Use RADIXI instead of radixi.d.
14985         (denorm): Likewise.
14986         (__mul): Use 0.0 instead of zero.d.
14987         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
14988         mp_no value for 1.0 and 2.0.
14989         (norm): Use RADIXI instead of radixi.d.
14990         (denorm): Likewise.
14991         (__mul): Use 0.0 instead of zero.d.
14992
14993 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
14994
14995         [BZ #14994]
14996         * math/s_casinh.c (__casinh): Reduce finite argument to first
14997         quadrant then set signs of results at the end.
14998         * math/s_casinhf.c (__casinhf): Likewise.
14999         * math/s_casinhl.c (__casinhl): Likewise.
15000         * math/libm-test.inc (casin_test): Add more tests.
15001         (casinh_test): Likewise.
15002         * sysdeps/i386/fpu/libm-test-ulps: Update.
15003         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15004
15005 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15006
15007         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
15008
15009         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
15010
15011         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
15012         declarations.
15013         (denorm): Likewise.
15014         (__mp_dbl): Likewise.
15015         (__inv): Likewise.
15016
15017         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
15018         and adjust the header comment.
15019
15020         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
15021         variable name from declaration.
15022
15023 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15024
15025         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15026         Initialize COMMON_CPUID_INDEX_7 element.
15027         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
15028         (CPUID_RTM): Likewise.
15029         (HAS_RTM): Likewise.
15030         (COMMON_CPUID_INDEX_7): New enum.
15031
15032 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
15033
15034         [BZ #14981]
15035         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
15036         size is zero, record memory as freed.
15037
15038 2013-01-03  Andreas Jaeger  <aj@suse.de>
15039
15040         * po/ia.po: Add new Interlingua translation.
15041
15042 2012-01-03  Allan McRae  <allan@archlinux.org>
15043
15044         * locale/programs/localedef.c: Fix description of '--posix' flag.
15045
15046 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
15047
15048         * NEWS: Update dates in second copyright notice.
15049         * README: Update copyright dates in example.
15050         * manual/libc.texinfo: Update copyright dates.
15051         * scripts/test-installation.pl: Update copyright date in --version
15052         output.
15053
15054         * hurd/ctty-input.c: Fix copyright notice formatting.
15055         * hurd/ctty-output.c: Likewise.
15056         * hurd/dtable.c: Likewise.
15057         * hurd/hurd-raise.c: Likewise.
15058         * hurd/hurdprio.c: Likewise.
15059         * hurd/msgportdemux.c: Likewise.
15060         * misc/sys/file.h: Likewise.
15061         * misc/sys/ioctl.h: Likewise.
15062         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
15063         * sysdeps/mach/hurd/chdir.c: Likewise.
15064         * sysdeps/mach/hurd/fchdir.c: Likewise.
15065         * sysdeps/mach/hurd/rename.c: Likewise.
15066         * sysdeps/mach/hurd/rmdir.c: Likewise.
15067         * sysdeps/mach/hurd/seekdir.c: Likewise.
15068         * sysdeps/mach/hurd/setsid.c: Likewise.
15069         * sysdeps/posix/wait3.c: Likewise.
15070
15071         * All files with FSF copyright notices: Update copyright dates
15072         using scripts/update-copyrights.
15073         * intl/plural.c: Regenerated.
15074         * locale/programs/charmap-kw.h: Likewise.
15075         * locale/programs/locfile-kw.h: Likewise.
15076
15077 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
15078
15079         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
15080         four values.
15081
15082         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
15083         calculation loop and add branch prediction.
15084
15085         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
15086         check access beyond bounds of m1np.
15087
15088         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15089         MPTWO.
15090         (__inv): Remove local variable MPTWO to use the global
15091         constant.
15092         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
15093         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15094         variable MPTWO.
15095         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
15096         MP3HALFS static const.
15097
15098 2013-01-01  David S. Miller  <davem@davemloft.net>
15099
15100         * po/ca.po: Update from translation team.
15101
15102 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
15103
15104         * scripts/update-copyrights: New file.
15105         * Makeconfig: Reformat copyright notice.
15106         * ctype/ctype.h: Likewise.
15107         * debug/swprintf_chk.c: Likewise.
15108         * elf/dl-cache.c: Likewise.
15109         * elf/dl-debug.c: Likewise.
15110         * elf/dl-object.c: Likewise.
15111         * grp/initgroups.c: Likewise.
15112         * hurd/Makefile: Likewise.
15113         * hurd/hurd/signal.h: Likewise.
15114         * hurd/hurdfault.c: Likewise.
15115         * hurd/hurdioctl.c: Likewise.
15116         * hurd/hurdlookup.c: Likewise.
15117         * hurd/intr-msg.c: Likewise.
15118         * iconv/gconv_open.c: Likewise.
15119         * libio/swprintf.c: Likewise.
15120         * locale/lc-ctype.c: Likewise.
15121         * locale/nl_langinfo.c: Likewise.
15122         * mach/Machrules: Likewise.
15123         * mach/Makefile: Likewise.
15124         * malloc/obstack.h: Likewise.
15125         * manual/Makefile: Likewise.
15126         * manual/tsort.awk: Likewise.
15127         * misc/bits/stab.def: Likewise.
15128         * nis/nis_print_group_entry.c: Likewise.
15129         * nis/nis_table.c: Likewise.
15130         * nis/nss_compat/compat-pwd.c: Likewise.
15131         * nis/nss_compat/compat-spwd.c: Likewise.
15132         * po/Makefile: Likewise.
15133         * posix/fnmatch.c: Likewise.
15134         * posix/regex.h: Likewise.
15135         * resolv/Makefile: Likewise.
15136         * resolv/nss_dns/dns-network.c: Likewise.
15137         * resolv/res_hconf.c: Likewise.
15138         * scripts/gen-sorted.awk: Likewise.
15139         * soft-fp/soft-fp.h: Likewise.
15140         * stdio-common/printf.h: Likewise.
15141         * stdlib/monetary.h: Likewise.
15142         * stdlib/random.c: Likewise.
15143         * stdlib/random_r.c: Likewise.
15144         * sysdeps/generic/Makefile: Likewise.
15145         * sysdeps/gnu/Makefile: Likewise.
15146         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15147         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15148         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15149         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15150         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15151         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15152         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15153         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15154         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15155         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15156         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15157         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15158         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15159         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15160         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15161         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15162         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15163         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15164         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15165         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15166         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15167         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15168         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15169         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
15170         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
15171         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15172         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
15173         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
15174         * sysdeps/mach/hurd/errnos.awk: Likewise.
15175         * sysdeps/mach/hurd/fork.c: Likewise.
15176         * sysdeps/mach/hurd/getcwd.c: Likewise.
15177         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
15178         * sysdeps/mach/hurd/mmap.c: Likewise.
15179         * sysdeps/mach/hurd/utimes.c: Likewise.
15180         * sysdeps/mach/hurd/xmknod.c: Likewise.
15181         * sysdeps/posix/profil.c: Likewise.
15182         * sysdeps/posix/readdir_r.c: Likewise.
15183         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15184         * sysdeps/powerpc/bits/setjmp.h: Likewise.
15185         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
15186         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
15187         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
15188         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
15189         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15190         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15191         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
15192         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
15193         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15194         * sysdeps/pthread/lio_listio.c: Likewise.
15195         * sysdeps/sparc/dl-procinfo.h: Likewise.
15196         * sysdeps/unix/i386/sysdep.S: Likewise.
15197         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
15198         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
15199         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
15200         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
15201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15202         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
15203         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
15204         * sysdeps/unix/sysv/linux/speed.c: Likewise.
15205         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
15206         * sysdeps/wordsize-32/divdi3.c: Likewise.
15207         * time/sys/time.h: Likewise.
15208         * wcsmbs/Makefile: Likewise.
15209
15210 2013-01-01  David S. Miller  <davem@davemloft.net>
15211
15212         * po/fr.po: Update from translation team.
15213
15214         * catgets/gencat.c: Update copyright year.
15215         * csu/version.c: Likewise.
15216         * debug/catchsegv.sh: Likewise.
15217         * debug/pcprofiledump.c: Likewise.
15218         * debug/xtrace.sh: Likewise.
15219         * elf/ldconfig.c: Likewise.
15220         * elf/ldd.bash.in: Likewise.
15221         * elf/pldd.c: Likewise.
15222         * elf/sotruss.ksh: Likewise.
15223         * elf/sprof.c: Likewise.
15224         * iconv/iconv_prog.c: Likewise.
15225         * iconv/iconvconfig.c: Likewise.
15226         * locale/programs/locale.c: Likewise.
15227         * locale/programs/localedef.c: Likewise.
15228         * login/programs/pt_chown.c: Likewise.
15229         * malloc/memusage.sh: Likewise.
15230         * malloc/memusagestat.c: Likewise.
15231         * malloc/mtrace.pl: Likewise.
15232         * nscd/nscd.c: Likewise.
15233         * nss/getent.c: Likewise.
15234         * nss/makedb.c: Likewise.
15235         * posix/getconf.c: Likewise.
15236
15237 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
15238
15239         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
15240         numbers.
15241
15242 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
15243
15244         * math/bits/mathcalls.h (modf): Use __nonnull.
15245
15246 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15247
15248         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
15249         (split): Use macro CN instead of the bare value.
15250         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
15251         could be used.
15252         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
15253         instead of the bare value.
15254         (power1): Likewise.
15255
15256 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15257
15258         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
15259         __ATAN_TWOM.
15260         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15261
15262         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
15263         their values.
15264         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
15265         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
15266         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
15267         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
15268
15269 2012-12-28  Andreas Jaeger  <aj@suse.de>
15270
15271         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
15272         values are from Linux 3.7.
15273
15274         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
15275         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
15276
15277 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15278
15279         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
15280         TRUE case.
15281
15282         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
15283         (norm): Likewise.
15284         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
15285         variables with preprocessor constants.
15286         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15287         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15288         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15289
15290 2012-12-27  Bruno Haible  <bruno@clisp.org>
15291
15292         [BZ #14317]
15293         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
15294         only if needed.
15295
15296 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15297
15298         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
15299         and use variable directly.
15300         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
15301
15302         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15303         MPONE.
15304         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
15305         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15306         variable MPONE.
15307         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
15308         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
15309         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
15310         include directive.  Remove local variable MPONE.
15311         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
15312         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
15313         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15314
15315 2012-12-25  David S. Miller  <davem@davemloft.net>
15316
15317         * version.h (RELEASE): Set to "development".
15318         (VERSION): Set to "2.17.90".
15319         * NEWS: Add 2.18 section.
15320
15321 2012-12-21  David S. Miller  <davem@davemloft.net>
15322
15323         * po/hr.po: Update from translation team.
15324
15325 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15326
15327         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
15328
15329 2012-12-19  Steve Ellcey  <sellcey@mips.com>
15330
15331         * NEWS:  Mention new memcpy for MIPS.
15332
15333 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15334
15335         * manual/contrib.texi (Contributors): Spelling correction.
15336
15337 2012-12-15  David S. Miller  <davem@davemloft.net>
15338
15339         * po/ru.po: Update from translation team.
15340
15341 2012-12-13  David S. Miller  <davem@davemloft.net>
15342
15343         * NEWS: Mention IFUNC testsuite enhancements.
15344
15345         * po/pl.po: Update from translation team.
15346         * po/bg.po: Likewise.
15347
15348         * manual/contrib.texi (Contributors): Update entries for Hongjiu
15349         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
15350
15351 2012-12-11  David S. Miller  <davem@davemloft.net>
15352
15353         * po/sv.po: Update from translation team.
15354
15355         * po/vi.po: Update from translation team.
15356
15357         * po/cs.po: Update from translation team.
15358
15359         * po/de.po: Update from translation team.
15360         * po/eo.po: Likewise.
15361         * po/nl.po: Likewise.
15362
15363 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15364
15365         [BZ #14246]
15366         * manual/argp.texi (Argp Helper Functions): Move node to follow
15367         Argp Parsing State.
15368
15369         [BZ #14872]
15370         * manual/conf.texi (Limits on File System Capacity): Mention if
15371         terminating null is included in the max size.
15372
15373 2012-12-10  Andreas Jaeger  <aj@suse.de>
15374
15375         * po/cs.po: Update from translation team.
15376
15377 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
15378
15379         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
15380         void pointer and cast to uintptr_t.
15381         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
15382         path.
15383         * sysdeps/s390/s390-64/memcpy.S: Likewise.
15384         * sysdeps/s390/s390-64/memset.S: Likewise.
15385
15386 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
15387
15388         [BZ #14833]
15389         * menual/message.texi (Message Translation): Fix typos.
15390         (Helper programs for gettext): Likewise.
15391
15392 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
15393
15394         [BZ #14898]
15395         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
15396         Change to -1.
15397
15398 2012-12-07  David S. Miller  <davem@davemloft.net>
15399
15400         * po/libc.pot: Update.
15401
15402 2012-12-07  Richard Henderson  <rth@redhat.com>
15403
15404         [BZ #10114]
15405         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
15406         normal/normal case to before the switch.
15407         (_FP_DIV): Likewise.
15408
15409 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
15410             Mike Frysinger  <vapier@gentoo.org>
15411
15412         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
15413         check for __NR_fadvise64_64.
15414
15415 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
15416
15417         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
15418         0, not just to plain "0" as a statement.
15419         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
15420         with cw.
15421
15422 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
15423
15424         * NEWS: Use sourceware.org in Bugzilla URL.
15425
15426 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
15427
15428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
15429         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15430
15431         * stdio-common/tst-put-error.c (do_test): Add newline to the
15432         padded test to ensure flush.
15433
15434 2012-12-05  Jeff Law  <law@redhat.com>
15435
15436         * sunrpc/etc.rpc (fedfs_admin): Add entry.
15437
15438 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
15439
15440         * README: Don't refer to ports add-on as distributed separately.
15441         Mention AArch64 in list of systems supported in the ports add-on.
15442
15443         * LICENSES: Add more non-FSF copyright and license notices.
15444
15445         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
15446         ((unused)).
15447
15448         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
15449
15450         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
15451         10000 as width of padded output.
15452
15453 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15454
15455         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
15456
15457         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
15458         variable LX with __attribute__ ((unused)).
15459         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
15460         Likewise.
15461         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
15462         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15463         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
15464         with __attribute__ ((unused)).
15465
15466 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
15467
15468         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
15469
15470 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15471
15472         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
15473         (CFLAGS-nldbl-acos.c): New variable.
15474         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
15475         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
15476         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
15477         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
15478         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
15479         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
15480         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
15481         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
15482         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
15483         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
15484         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
15485         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
15486         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
15487         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
15488         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
15489         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
15490         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
15491         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
15492         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
15493         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
15494         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
15495         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
15496         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
15497         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
15498         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
15499         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
15500         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
15501         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
15502         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
15503         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
15504         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
15505         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
15506         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
15507         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
15508         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
15509         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
15510         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
15511         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
15512         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
15513         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
15514         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
15515         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
15516         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
15517         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
15518         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
15519         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
15520         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
15521         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
15522         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
15523         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
15524         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
15525         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
15526         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
15527         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
15528         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
15529         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
15530         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
15531         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
15532         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
15533         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
15534         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
15535         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
15536         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
15537         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
15538         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
15539         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
15540         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
15541         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
15542         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
15543         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
15544         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
15545         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
15546         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
15547         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
15548         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
15549         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
15550         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
15551         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
15552         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
15553         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
15554         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
15555         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
15556         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
15557         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
15558         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
15559         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
15560         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
15561         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
15562         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
15563         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
15564         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
15565         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
15566         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
15567         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
15568         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
15569         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
15570         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
15571
15572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
15573         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15574
15575         [BZ #14914]
15576         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
15577         whole low double instead of just low 47 bits when splitting values
15578         into two parts.
15579
15580 2012-12-03  Allan McRae  <allan@archlinux.org>
15581
15582         * manual/stdio.texi (Predefined Printf Handlers): Remove
15583         @hsep and @vsep usage.
15584
15585 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
15586
15587         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
15588         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
15589
15590 2012-12-03  Jeff Law  <law@redhat.com>
15591
15592         * time/sys/time.h (settimeofday): Do not mark TV argument
15593         as __nonnull.
15594
15595 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
15596
15597         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
15598         when currently writing and seek to current position when not.
15599         * libio/Makefile (tests): Remove bug-fclose1.
15600         * libio/bug-fclose1.c: Delete.
15601
15602 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
15603
15604         * manual/arith.texi (feenableexcept): Fix typo.
15605         (fedisableexcept): Likewise.
15606
15607 2012-11-30  Roland McGrath  <roland@hack.frob.com>
15608
15609         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
15610         second, differently-typed declaration, rather than a cast.
15611
15612 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15613
15614         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
15615         * include/rpc/svc.h: ... here.
15616
15617 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
15618
15619         [BZ #13013]
15620         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
15621         depending n and resplen2 to catch cases where answer
15622         equals answerp2.
15623
15624 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
15625
15626         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
15627         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
15628
15629 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
15630
15631         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
15632
15633 2012-11-29  Roland McGrath  <roland@hack.frob.com>
15634
15635         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
15636
15637 2012-11-28  Jeff Law  <law@redhat.com>
15638
15639         [BZ #13761]
15640         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
15641         dataset_temporary.  Track alloca usage into alloca_used.
15642         If dataset is large allocate and release it via malloc/free.
15643
15644 2012-06-04  Florian Weimer  <fweimer@redhat.com>
15645
15646         [BZ #14197]
15647         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
15648
15649 2012-11-28  David S. Miller  <davem@davemloft.net>
15650
15651         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15652
15653 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15654
15655         [BZ #14803]
15656         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
15657         of pi/2 rounded to nearest to 64 bits.
15658         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
15659         nearest to 64 bits.
15660         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
15661         bits.
15662
15663 2012-11-28  Jeff Law <law@redhat.com>
15664             Martin Osvald <mosvald@redhat.com>
15665
15666         [BZ #14889]
15667         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
15668         * sunrpc/svc.c: Include time.h.
15669         (__svc_accept_failed): New function.
15670         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
15671         any reason other than EINTR, call __svc_accept_failed.
15672         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
15673         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
15674
15675 2012-11-28  Andreas Schwab  <schwab@suse.de>
15676
15677         * scripts/abilist.awk: Also handle indirect functions in .opd
15678         section.
15679
15680 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15681
15682         [BZ #13881]
15683         * sysdeps/x86/fpu/powl_helper.c: New file.
15684         * sysdeps/x86/fpu/Makefile: Likewise.
15685         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
15686         (p3): New object.
15687         (__ieee754_powl): Use __powl_helper for finite arguments except
15688         integer exponents below 8.
15689         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
15690         (p3): New object.
15691         (__ieee754_powl): Use __powl_helper for finite arguments except
15692         integer exponents below 8.
15693         * math/libm-test.inc (pow_test): Add more tests and enable some
15694         previously disabled tests.
15695         * sysdeps/i386/fpu/libm-test-ulps: Update.
15696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15697
15698 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15699             Carlos O'Donell  <carlos_odonell@mentor.com>
15700
15701         * nss/makedb.c (is_prime): Assert that input is odd and greater
15702         than 4.  Note that fact in a comment too.
15703         (next_prime): Add 4 to input.
15704
15705 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15706
15707         [BZ #11741]
15708         * libio/Makefile (tests): Add test case tst-fwrite-error.
15709         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
15710         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
15711         * libio/tst-fwrite-error.c: New test case.
15712
15713 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
15714
15715         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
15716         before casting to void *.
15717         * include/libc-internal.h (__pointer_type): New macro.
15718         (__integer_if_pointer_type_sub): Likewise.
15719         (__integer_if_pointer_type): Likewise.
15720         (cast_to_integer): Likewise.
15721         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
15722         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
15723         before casting to atomic64_t.
15724         (atomic_exchange_acq): Likewise.
15725         (__arch_exchange_and_add_body): Likewise.
15726         (__arch_add_body): Likewise.
15727         (atomic_add_negative): Likewise.
15728         (atomic_add_zero): Likewise.
15729
15730 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
15731
15732         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
15733         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
15734         (add_fdes): Likewise.
15735         (linear_search_fdes): Likewise.
15736         (binary_search_unencoded_fdes): Likewise.
15737
15738 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
15739
15740         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
15741
15742 2012-11-24  Adam Conrad  <adconrad@0c3.net>
15743
15744         * configure.in: Autodetect C++ header directories.
15745         * configure: Regenerated.
15746
15747 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
15748
15749         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
15750
15751 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
15752
15753         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15754
15755 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
15756
15757         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
15758         LDBL_MANT_DIG == 106]: Disable some tests.
15759         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15760         Likewise.
15761         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15762         Likewise.
15763
15764         [BZ #14871]
15765         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
15766         input for small inputs.  Return +/- pi/2 for large inputs.
15767         * math/libm-test.inc (atan_test): Add more tests.
15768
15769         * sysdeps/generic/unwind-dw2-fde-glibc.c
15770         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
15771         __attribute__ ((unused)).
15772
15773         [BZ #14645]
15774         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
15775         x * y if x and y are nonzero and z is zero.
15776
15777         [BZ #14811]
15778         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
15779         nonzero exponents with absolute value below 0x1p-117 to +/-
15780         0x1p-117.
15781
15782         [BZ #14869]
15783         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
15784         up arguments below 2**-450, not just those below 2**-500.
15785         * math/libm-test.inc (hypot_test): Add another test.
15786
15787         [BZ #14868]
15788         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
15789         Return a+b for ratio over 2**120, not 2**60.
15790         * math/libm-test.inc (hypot_test): Add another test.
15791
15792         * math/libm-test.inc (clog_test): Use
15793         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
15794         (clog10_test): Likewise.
15795
15796         [BZ #6778]
15797         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
15798
15799 2012-11-22  Andreas Schwab  <schwab@suse.de>
15800
15801         * sysdeps/i386/fpu/libm-test-ulps: Update.
15802
15803 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
15804
15805         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
15806         printf output with newline.
15807
15808 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
15809
15810         [BZ #14865]
15811         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
15812         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
15813         -z nodlopen, -z initfirst and -z execstack support.
15814         * configure: Regenerated.
15815
15816         * elf/elf.h (DF_1_NODIRECT): New macro.
15817         (DF_1_IGNMULDEF): Likewise.
15818         (DF_1_NOKSYMS): Likewise.
15819         (DF_1_NOHDR): Likewise.
15820         (DF_1_EDITED): Likewise.
15821         (DF_1_NORELOC): Likewise.
15822         (DF_1_SYMINTPOSE): Likewise.
15823         (DF_1_GLOBAUDIT): Likewise.
15824         (DF_1_SINGLETON): Likewise.
15825         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
15826         DT_1_SUPPORTED_MASK bits.
15827         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
15828
15829 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
15830
15831         * sysdeps/unix/make-syscalls.sh: Document prefixes.
15832
15833 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
15834
15835         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
15836         macro.
15837
15838         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
15839         (sendmmsg): Move declarations...
15840         * socket/sys/socket.h: ... here.
15841         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
15842         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
15843         include it from...
15844         * socket/recvmmsg.c: ... this new file.
15845         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
15846         (sendmmsg): Rename to __sendmmsg, create weak alias and make
15847         definition of __sendmmsg hidden.
15848         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
15849         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
15850         Move ENOSYS stub into and include it from...
15851         * socket/sendmmsg.c: ... this new file.
15852         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
15853         (sysdep_routines): Move recvmmsg and sendmmsg...
15854         * socket/Makefile (routines): ... here.
15855         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
15856         (GLIBC_PRIVATE): Add __sendmmsg.
15857         * include/sys/socket.h (__sendmmsg): Add declarations.
15858         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
15859         sendmmsg.
15860
15861 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
15862
15863         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
15864         variable I1 with __attribute__ ((unused)).
15865         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
15866
15867 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
15868
15869         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
15870         DUMMY variables with __attribute__ ((unused)).
15871
15872         * bits/byteswap.h: Include <bits/types.h>.
15873         (__bswap_64): Use __uint64_t instead of unsigned long long int.
15874
15875 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
15876
15877         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
15878         string_t.  Do not manually set errno.
15879         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
15880         length with __strnlen.  Make sure to both set errno and return it on
15881         failure.
15882
15883 2012-11-19  David S. Miller  <davem@davemloft.net>
15884
15885         With help from Joseph Myers.
15886         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
15887         very large arguments properly.
15888         * math/libm-test.inc (atan_test): New tests.
15889         (atan2_test): New tests.
15890         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15891         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15892
15893 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
15894
15895         [BZ #14856]
15896         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
15897         Define to 3.
15898
15899         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
15900         [POSIX] (EADDRNOTAVAIL): Likewise.
15901         [POSIX] (EAFNOSUPPORT): Likewise.
15902         [POSIX] (EALREADY): Likewise.
15903         [POSIX] (ECONNABORTED): Likewise.
15904         [POSIX] (ECONNREFUSED): Likewise.
15905         [POSIX] (ECONNRESET): Likewise.
15906         [POSIX] (EDESTADDRREQ): Likewise.
15907         [POSIX] (EDQUOT): Likewise.
15908         [POSIX] (EHOSTUNREACH): Likewise.
15909         [POSIX] (EIDRM): Likewise.
15910         [POSIX] (EISCONN): Likewise.
15911         [POSIX] (ELOOP): Likewise.
15912         [POSIX] (EMULTIHOP): Likewise.
15913         [POSIX] (ENETDOWN): Likewise.
15914         [POSIX] (ENETUNREACH): Likewise.
15915         [POSIX] (ENOBUFS): Likewise.
15916         [POSIX] (ENODATA): Likewise.
15917         [POSIX] (ENOLINK): Likewise.
15918         [POSIX] (ENOMSG): Likewise.
15919         [POSIX] (ENOPROTOOPT): Likewise.
15920         [POSIX] (ENOSR): Likewise.
15921         [POSIX] (ENOSTR): Likewise.
15922         [POSIX] (ENOTCONN): Likewise.
15923         [POSIX] (ENOTSOCK): Likewise.
15924         [POSIX] (EOPNOTSUPP): Likewise.
15925         [POSIX] (EOVERFLOW): Likewise.
15926         [POSIX] (EPROTO): Likewise.
15927         [POSIX] (EPROTONOSUPPORT): Likewise.
15928         [POSIX] (EPROTOTYPE): Likewise.
15929         [POSIX] (ESTALE): Likewise.
15930         [POSIX] (ETIME): Likewise.
15931         [POSIX] (ETXTBSY): Likewise.
15932         [POSIX] (EWOULDBLOCK): Likewise.
15933         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
15934         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
15935         [POSIX] (SEEK_CUR): Likewise.
15936         [POSIX] (SEEK_END): Likewise.
15937         [POSIX || UNIX98] (mode_t): Do not require.
15938         [POSIX] (off_t): Likewise.
15939         [POSIX] (pid_t): Likewise.
15940         [POSIX] (sys/stat.h): Do not allow header.
15941         [POSIX] (unistd.h): Likewise.
15942         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
15943         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
15944         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
15945         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
15946         require.
15947         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
15948         sigevent): Specify elements.
15949         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
15950         entry.
15951         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
15952         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
15953
15954         * conform/data/cpio.h-data [POSIX]: Disable whole file.
15955         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
15956         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
15957         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
15958         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
15959         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
15960         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
15961         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
15962         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
15963         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
15964         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
15965         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
15966         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
15967         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
15968         Likewise.
15969         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
15970         Likewise.
15971         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
15972         Likewise.
15973         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
15974         Likewise.
15975         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
15976         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
15977         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
15978         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
15979         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
15980         Specify lower bound on value.
15981         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
15982         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
15983         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
15984         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
15985         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
15986         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
15987         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
15988         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
15989         value.
15990         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
15991         as optional.
15992         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
15993         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
15994         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
15995         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
15996         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
15997         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
15998         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
15999         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
16000         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
16001         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
16002         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
16003         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
16004         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
16005         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
16006         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
16007         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
16008         entry.
16009         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
16010         optional.
16011         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
16012         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
16013         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
16014         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
16015         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
16016         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
16017         Likewise.
16018         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
16019         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
16020         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
16021         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
16022         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
16023         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
16024         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
16025         as optional.
16026         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
16027         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
16028         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
16029         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
16030         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
16031         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
16032         specify as optional.
16033         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
16034         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
16035         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
16036         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
16037         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
16038         [XPG3] (NL_LANGMAX): Likewise.
16039         [POSIX || XPG3] (NL_MSGMAX): Likewise.
16040         [POSIX || XPG3] (NL_NMAX): Likewise.
16041         [POSIX || XPG3] (NL_SETMAX): Likewise.
16042         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
16043         [XPG3] (NZERO): Likewise.
16044         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
16045         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
16046         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
16047         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
16048         (REG_ERANGE): Expect.
16049         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
16050         optional-constant.
16051         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
16052         Use (void) in prototype.
16053         [POSIX] (*_t): Allow.
16054         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
16055         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
16056         (WRDE_BADVAL): Expect.
16057
16058         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
16059         expect.
16060         [XPG3 || XPG4] (O_RSYNC): Likewise.
16061         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
16062         Likewise.
16063         [XPG3 || XPG4] (pthread_sigmask): Likewise.
16064         [XPG3 || XPG4] (sigqueue): Likewise.
16065         [XPG3 || XPG4] (sigtimedwait): Likewise.
16066         [XPG3 || XPG4] (sigwaitinfo): Likewise.
16067         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
16068         [XPG3 || XPG4] (vsnprintf): Likewise.
16069         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
16070         Likewise.
16071         [XPG3 || XPG4] (blksize_t): Likewise.
16072         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
16073         Likewise.
16074         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
16075         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
16076         [XPG3 || XPG4] (struct itimerspec): Likewise.
16077         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
16078         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
16079         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
16080         [XPG3 || XPG4] (clockid_t): Likewise.
16081         [XPG3 || XPG4] (timer_t): Likewise.
16082         [XPG3 || XPG4] (clock_getres): Likewise.
16083         [XPG3 || XPG4] (clock_gettime): Likewise.
16084         [XPG3 || XPG4] (clock_settime): Likewise.
16085         [XPG3 || XPG4] (nanosleep): Likewise.
16086         [XPG3 || XPG4] (timer_create): Likewise.
16087         [XPG3 || XPG4] (timer_delete): Likewise.
16088         [XPG3 || XPG4] (timer_gettime): Likewise.
16089         [XPG3 || XPG4] (timer_getoverrun): Likewise.
16090         [XPG3 || XPG4] (timer_settime): Likewise.
16091         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
16092         [XPG3 || XPG4] (getlogin_r): Likewise.
16093         [XPG3 || XPG4] (pread): Likewise.
16094         [XPG3 || XPG4] (pthread_atfork): Likewise.
16095         [XPG3 || XPG4] (pwrite): Likewise.
16096
16097         [BZ #14835]
16098         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
16099         <bits/siginfo.h>.
16100
16101 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
16102
16103         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
16104         finalizing MALLSTREAM.
16105
16106         * sysdeps/mach/hurd/syncfs.c: New file.
16107
16108 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
16109
16110         [BZ #14719]
16111         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
16112         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
16113         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
16114         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
16115         (_nss_dns_gethostbyname4_r): Likewise.
16116         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
16117         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
16118
16119 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
16120
16121         [BZ #13763]
16122         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
16123
16124 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
16125
16126         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
16127         * elf/cache.c (print_entry): Print ",AArch64" for
16128         FLAG_AARCH64_LIB64
16129
16130         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
16131         * elf/cache.c (print_entry): Print ",hard-float" for
16132         FLAG_ARM_LIBHF.
16133
16134 2012-11-18  David S. Miller  <davem@davemloft.net>
16135
16136         With help from Joseph Myers.
16137         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
16138         cutoff to 2**-13.
16139         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
16140         cutoff to 2**-25.
16141         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
16142         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
16143         small.
16144         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
16145         * math/libm-test.inc (y0_test): New tests.
16146         (y1_test): New tests.
16147         * sysdeps/i386/fpu/libm-test-ulps: Update.
16148         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16149         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16150
16151 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
16152
16153         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
16154         64-bit targets.
16155         * configure: Regenerated.
16156
16157 2012-11-17  David S. Miller  <davem@davemloft.net>
16158
16159         [BZ #14811]
16160         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
16161         nonzero exponents with absolute value below 0x1p-128 to +/-
16162         0x1p-128.
16163
16164 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
16165
16166         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
16167
16168         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
16169
16170         * posix/getconf-speclist.c: New file.
16171         * posix/posix-envs.def: Likewise.
16172         * posix/confstr.c (START_ENV_GROUP): New macro.
16173         (END_ENV_GROUP): Likewise.
16174         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16175         (KNOWN_PRESENT_ENV_STRING): Likewise.
16176         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16177         (UNKNOWN_ENVIRONMENT): Likewise.
16178         (confstr): Include posix-envs.def instead of handling
16179         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
16180         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
16181         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
16182         (END_ENV_GROUP): Likewise.
16183         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16184         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16185         (UNKNOWN_ENVIRONMENT): Likewise.
16186         (__sysconf): Include posix-envs.def instead of handling associated
16187         cases directly here.
16188         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
16189         preprocessing getconf-speclist.c rather than running getconf or
16190         generating empty file.
16191
16192 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
16193
16194         * scripts/check-local-headers.sh: Ignore 'mach' headers.
16195
16196 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
16197
16198         [BZ #14672]
16199         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
16200
16201 2012-11-16  David S. Miller  <davem@davemloft.net>
16202
16203         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
16204         smaller than LDBL_EPSILON/2.0L, just return xm1.
16205
16206 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
16207
16208         * elf/tst-array1.c (init): Set constructor priority to 1000.
16209         (fini): Set destructor priority to 1000.
16210         * elf/tst-array2dep.c: Likewise.
16211
16212 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16213
16214         [BZ #11741]
16215         * libio/fileops.c (_IO_new_file_write): Correctly return error.
16216         (_IO_new_file_xsputn): Also return EOF if none of the input
16217         data was written when overflow failed.
16218         * libio/iopadn.c (_IO_padn): Likewise.
16219         * libio/iowpadn.c (_IO_wpadn): Likewise.
16220         * stdio-common/tst-put-error.c: Add copyright notice.
16221         (do_test): Add case for printing padded string.
16222         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
16223         _IO_padn returned error.
16224         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
16225         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
16226         return EOF.
16227
16228 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16229
16230         * libio/libioP.h: Add comment note that the references to C++
16231         bits are now obsolete.
16232
16233 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16234
16235         * math/libm-test.inc (check_complex): Use asprintf.
16236
16237 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
16238
16239         * debug/pcprofiledump.c (print_version): Update copyright year.
16240         * malloc/memusagestat.c (print_version): Likewise.
16241
16242 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
16243
16244         [BZ #14831]
16245         * elf/Makefile (tests): Add tst-audit8.
16246         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
16247         ($(objpfx)tst-audit8.out): New target.
16248         (tst-audit8-ENV): New variable.
16249         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
16250         audit if l_reloc_result is NULL.
16251         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
16252         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
16253         * elf/tst-audit8.c: New file.
16254
16255 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16256
16257         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
16258         * misc/Makefile (CFLAGS-select.c): Define.
16259         * posix/Makefile (CFLAGS-pause.c): Define.
16260
16261 2012-11-13  David S. Miller  <davem@davemloft.net>
16262
16263         * crypt/Makefile: Move test targets after toplevel Rules
16264         inclusion.  Grab any necessary sysdep routines when linking.
16265         * crypt/md5.c (md5_process_block): Remove define, we will always
16266         name it __md5_process_block.
16267         (md5_finish_ctx): Update md5_process_block call.
16268         (md5_stream): Likewise.
16269         (md5_process_bytes): Likewise.
16270         (md5_process_block): Rename to __md5_process_block and move to ...
16271         * crypt/md5-block.c: ... here.
16272         * crypt/sha256.c (sha256_process_block): Move to ...
16273         * crypt/sha256-block.c: ... here.
16274         * crypt/sha512.c (sha512_process_block): Move to ...
16275         * crypt/sha512-block.c: ... here.
16276         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
16277         path.
16278         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
16279         * sysdeps/sparc/sparc64/multiarch/Makefile
16280         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
16281         crypt subdir.
16282         (localedef-aux): Add md5 crypto assembler when in locale subdir.
16283         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
16284         multiarch changes.
16285         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
16286         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
16287         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
16288         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
16289         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
16290         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
16291         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
16292         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
16293         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
16294         file.
16295         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
16296         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
16297         file.
16298         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
16299
16300 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
16301
16302         * timezone/tzselect.ksh: Update from tzcode git revision
16303         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
16304         * timezone/zdump.c: Likewise.
16305         * timezone/zic.c: Likewise.
16306         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
16307         in TZVERSION setting, not $(PKGVERSION).
16308         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
16309         REPORT_BUGS_TO settings.
16310
16311         [BZ #14838]
16312         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
16313         macro.
16314
16315 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16316
16317         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
16318         detection to immediately after _FP_ROUND().
16319         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
16320         bits are 0.
16321
16322 2012-11-11  David S. Miller  <davem@davemloft.net>
16323
16324         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
16325         inttypes.h
16326         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
16327         __close rather than their public counterparts.
16328
16329 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
16330
16331         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
16332         file.
16333         [UNIX98] (sem_timedwait): Do not expect.
16334         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
16335         [XPG4 || UNIX98] (sockatmark): Do not expect.
16336         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
16337         (clock_getcpuclockid): Do not expect.
16338         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
16339         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
16340         Do not expect.
16341         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
16342         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
16343         [UNIX98] (vwscanf): Likewise.
16344         [UNIX98] (vswscanf): Likewise.
16345
16346 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
16347
16348         * timezone/version.h: Remove file.
16349         * timezone/README: Do not refer to version.h.
16350         * timezone/Makefile ($(objpfx)zic.o): New dependency on
16351         $(objpfx)version.h.
16352         ($(objpfx)zdump.o): Likewise.
16353         ($(objpfx)version.h): New target.
16354
16355         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
16356         2012i.
16357         * timezone/README: Don't mention modification to tzselect.ksh.
16358         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
16359         work on unmodified tzselect.ksh.  Substitute version numbers in
16360         tzselect.ksh.
16361
16362         * Makefile (format-me): Remove.
16363         (INSTALL): Adjust indentation.  Use commands directly instead of
16364         using $(format-me).
16365
16366         * aclocal.m4 (ACX_PKGVERSION): New macro.
16367         (ACX_BUGURL): Likewise.
16368         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
16369         (PKGVERSION): New AC_DEFINE_UNQUOTED.
16370         (REPORT_BUGS_TO): Likewise.
16371         * configure: Regenerated.
16372         * config.h.in (PKGVERSION): New macro.
16373         (REPORT_BUGS_TO): Likewise.
16374         * config.make.in (PKGVERSION): New variable.
16375         (PKGVERSION_TEXI): Likewise.
16376         (REPORT_BUGS_TO): Likewise.
16377         (REPORT_BUGS_TEXI): Likewise.
16378         * Makefile (format-me): Use -I$(common-objpfx)manual.
16379         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
16380         ($(common-objpfx)manual/%): New target.
16381         (manual/%): Remove target.
16382         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
16383         (print_version): Use PKGVERSION.
16384         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
16385         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
16386         and REPORT_BUGS_TO.
16387         ($(objpfx)xtrace): Likewise.
16388         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
16389         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
16390         (print_version): Use PKGVERSION.
16391         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
16392         (do_version): Use PKGVERSION.
16393         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
16394         REPORT_BUGS_TO.
16395         (common-ldd-rewrite): Likewise.
16396         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
16397         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
16398         (print_version): Use PKGVERSION.
16399         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
16400         * elf/pldd.c (argp_program_bug_address): Remove variable.
16401         (more_help): New function.
16402         (argp): Use more_help.
16403         (print_version): Use PKGVERSION.
16404         * elf/sln.c (main): Use PKGVERSION.
16405         (usage): Use REPORT_BUGS_TO.
16406         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
16407         (top level): Use PKGVERSION.
16408         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
16409         (print_version): Use PKGVERSION.
16410         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
16411         (print_version): Use PKGVERSION.
16412         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
16413         (print_version): Use PKGVERSION.
16414         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
16415         (print_version): Use PKGVERSION.
16416         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
16417         (print_version): Use PKGVERSION.
16418         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
16419         (print_version): Use PKGVERSION.
16420         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
16421         and BUGURL.
16422         ($(objpfx)memusage): Likewise.
16423         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
16424         (do_version): Use PKGVERSION.
16425         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
16426         (print_version): Use PKGVERSION.
16427         * malloc/mtrace.pl ($PACKAGE): Remove variable.
16428         ($PKGVERSION): New variable.
16429         ($REPORT_BUGS_TO): Likewise.
16430         (usage): Use $REPORT_BUGS_TO.
16431         (top level): Use $PKGVERSION.
16432         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
16433         ($(objpfx)pkgvers.texi): New rule.
16434         ($(objpfx)stamp-pkgvers): Likewise.
16435         * manual/install.texi: Include pkgvers.texi.
16436         (--with-pkgversion): Document new configure option.
16437         (--with-bugurl): Likewise.
16438         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
16439         than necessarily for this particular distribution.  Use
16440         REPORT_BUGS_TO for where to report bugs.
16441         * INSTALL: Regenerated.
16442         * manual/libc.texinfo: Include pkgvers.texi.
16443         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
16444         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
16445         (print_version): Use PKGVERSION.
16446         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
16447         (print_version): Use PKGVERSION.
16448         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
16449         (print_version): Use PKGVERSION.
16450         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
16451         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
16452         macro.
16453         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
16454         (print_version): Use PKGVERSION.
16455         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
16456         (print_version): Use PKGVERSION.
16457         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
16458         and PKGVERSION.
16459
16460         * timezone/checktab.awk: Update from tzcode 2012i.
16461         * timezone/ialloc.c: Likewise.
16462         * timezone/private.h: Likewise.
16463         * timezone/scheck.c: Likewise.
16464         * timezone/tzfile.h: Likewise.
16465         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
16466         (TZVERSION): Hardcode tzcode version number.
16467         * timezone/zdump.c: Update from tzcode 2012i.
16468         * timezone/zic.c: Likewise.
16469         * timezone/version.h: New file.
16470         * timezone/README: Describe version.h.  Update upstream location.
16471
16472         [BZ #14824]
16473         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
16474         (mktemp): Enable declaration.
16475         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
16476         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
16477         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
16478         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
16479         Likewise.
16480         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
16481         Likewise.
16482         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
16483         Likewise.
16484         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
16485         Likewise.
16486         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
16487         Likewise.
16488         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
16489         Likewise.
16490
16491         [BZ #14821]
16492         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
16493         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
16494         for copies of such integer values.
16495         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16496         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16497
16498 2012-11-09  Andreas Jaeger  <aj@suse.de>
16499
16500         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
16501         definitions and declarations that are provided by
16502         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
16503
16504 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16505
16506         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
16507         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
16508         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
16509         definition.
16510
16511 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16512
16513         * elf/elf.h: Update comment before AArch64 relocations.
16514
16515 2012-11-07  David S. Miller  <davem@davemloft.net>
16516
16517         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
16518         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16519         (__start_context): Declare.
16520         (__makecontext_ret): Delete.
16521         (__makecontext): Hook up __start_context instead of
16522         __makecontext_ret.
16523         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
16524         (sysdep_routines): Add __start_context when in stdlib.
16525
16526 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16527
16528         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
16529         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
16530         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
16531         hardcoded "nm".
16532         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
16533         (READELF): New variable.  Use it instead of hardcoded "readelf".
16534
16535 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16536
16537         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
16538         * sysdeps/x86/Makefile: Here.
16539         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
16540         * sysdeps/x86/tst-xmmymm.sh: This.
16541
16542 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16543
16544         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
16545         expectations.
16546         [UNIX98] (pthread_barrier_t): Do not expect.
16547         [UNIX98] (pthread_barrierattr_t): Likewise.
16548         [UNIX98] (pthread_spinlock_t): Likewise.
16549         [UNIX98] (pthread_barrier_destroy): Likewise.
16550         [UNIX98] (pthread_barrier_init): Likewise.
16551         [UNIX98] (pthread_barrier_wait): Likewise.
16552         [UNIX98] (pthread_barrierattr_destroy): Likewise.
16553         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
16554         [UNIX98] (pthread_barrierattr_init): Likewise.
16555         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
16556         [UNIX98] (pthread_getcpuclockid): Likewise.
16557         [UNIX98] (pthread_mutex_timedlock): Likewise.
16558         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
16559         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
16560         [UNIX98] (pthread_sigmask): Likewise.
16561         [UNIX98] (pthread_spin_destroy): Likewise.
16562         [UNIX98] (pthread_spin_init): Likewise.
16563         [UNIX98] (pthread_spin_lock): Likewise.
16564         [UNIX98] (pthread_spin_trylock): Likewise.
16565         [UNIX98] (pthread_spin_unlock): Likewise.
16566         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
16567         Do not expect.
16568         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
16569         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
16570         [XPG3 || XPG4] (pthread_cond_t): Likewise.
16571         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
16572         [XPG3 || XPG4] (pthread_key_t): Likewise.
16573         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
16574         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
16575         [XPG3 || XPG4] (pthread_once_t): Likewise.
16576         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
16577         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
16578         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
16579         [XPG3 || XPG4] (pthread_t): Likewise.
16580
16581         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
16582         not expect.
16583         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
16584
16585         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
16586         Change function return type to int.
16587
16588         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
16589         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
16590         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
16591         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
16592         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
16593         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
16594         [!POSIX] (posix_madvise): Likewise.
16595         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
16596         && !UNIX98].
16597         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
16598         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
16599         (mode_t): Likewise.
16600         (posix_mem_offset): Likewise.
16601         (posix_typed_mem_get_info): Likewise.
16602         (posix_typed_mem_open): Likewise.
16603
16604         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
16605         Change condition to [XOPEN2K8].
16606
16607         * conform/conformtest.pl: Preprocess allow-header data with -x c
16608         instead of from stdin.
16609         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
16610         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
16611         [C99-based standards] (cerfc): Likewise.
16612         [C99-based standards] (cexp2): Likewise.
16613         [C99-based standards] (cexpm1): Likewise.
16614         [C99-based standards] (clog10): Likewise.
16615         [C99-based standards] (clog1p): Likewise.
16616         [C99-based standards] (clog2): Likewise.
16617         [C99-based standards] (clgamma): Likewise.
16618         [C99-based standards] (ctgamma): Likewise.
16619         [C99-based standards] (cerff): Likewise.
16620         [C99-based standards] (cerfcf): Likewise.
16621         [C99-based standards] (cexp2f): Likewise.
16622         [C99-based standards] (cexpm1f): Likewise.
16623         [C99-based standards] (clog10f): Likewise.
16624         [C99-based standards] (clog1pf): Likewise.
16625         [C99-based standards] (clog2f): Likewise.
16626         [C99-based standards] (clgammaf): Likewise.
16627         [C99-based standards] (ctgammaf): Likewise.
16628         [C99-based standards] (cerfl): Likewise.
16629         [C99-based standards] (cerfcl): Likewise.
16630         [C99-based standards] (cexp2l): Likewise.
16631         [C99-based standards] (cexpm1l): Likewise.
16632         [C99-based standards] (clog10l): Likewise.
16633         [C99-based standards] (clog1pl): Likewise.
16634         [C99-based standards] (clog2l): Likewise.
16635         [C99-based standards] (clgammal): Likewise.
16636         [C99-based standards] (ctgammal): Likewise.
16637         * conform/data/inttypes.h-data [C99-based standards]: Include
16638         stdint.h-data.  Remove all expectations for stdint.h contents.
16639         [C99-based standards] (PRI*): Do not allow.
16640         [C99-based standards] (SCN*): Likewise.
16641         [C99-based standards] (*_t): Likewise.
16642         [C99-based-standards] (PRId8): Expect macro.
16643         [C99-based-standards] (PRIi8): Likewise.
16644         [C99-based-standards] (PRIo8): Likewise.
16645         [C99-based-standards] (PRIu8): Likewise.
16646         [C99-based-standards] (PRIx8): Likewise.
16647         [C99-based-standards] (PRIX8): Likewise.
16648         [C99-based-standards] (SCNd8): Likewise.
16649         [C99-based-standards] (SCNi8): Likewise.
16650         [C99-based-standards] (SCNo8): Likewise.
16651         [C99-based-standards] (SCNu8): Likewise.
16652         [C99-based-standards] (SCNx8): Likewise.
16653         [C99-based-standards] (PRIdLEAST8): Likewise.
16654         [C99-based-standards] (PRIiLEAST8): Likewise.
16655         [C99-based-standards] (PRIoLEAST8): Likewise.
16656         [C99-based-standards] (PRIuLEAST8): Likewise.
16657         [C99-based-standards] (PRIxLEAST8): Likewise.
16658         [C99-based-standards] (PRIXLEAST8): Likewise.
16659         [C99-based-standards] (SCNdLEAST8): Likewise.
16660         [C99-based-standards] (SCNiLEAST8): Likewise.
16661         [C99-based-standards] (SCNoLEAST8): Likewise.
16662         [C99-based-standards] (SCNuLEAST8): Likewise.
16663         [C99-based-standards] (SCNxLEAST8): Likewise.
16664         [C99-based-standards] (PRIdFAST8): Likewise.
16665         [C99-based-standards] (PRIiFAST8): Likewise.
16666         [C99-based-standards] (PRIoFAST8): Likewise.
16667         [C99-based-standards] (PRIuFAST8): Likewise.
16668         [C99-based-standards] (PRIxFAST8): Likewise.
16669         [C99-based-standards] (PRIXFAST8): Likewise.
16670         [C99-based-standards] (SCNdFAST8): Likewise.
16671         [C99-based-standards] (SCNiFAST8): Likewise.
16672         [C99-based-standards] (SCNoFAST8): Likewise.
16673         [C99-based-standards] (SCNuFAST8): Likewise.
16674         [C99-based-standards] (SCNxFAST8): Likewise.
16675         [C99-based-standards] (PRId16): Likewise.
16676         [C99-based-standards] (PRIi16): Likewise.
16677         [C99-based-standards] (PRIo16): Likewise.
16678         [C99-based-standards] (PRIu16): Likewise.
16679         [C99-based-standards] (PRIx16): Likewise.
16680         [C99-based-standards] (PRIX16): Likewise.
16681         [C99-based-standards] (SCNd16): Likewise.
16682         [C99-based-standards] (SCNi16): Likewise.
16683         [C99-based-standards] (SCNo16): Likewise.
16684         [C99-based-standards] (SCNu16): Likewise.
16685         [C99-based-standards] (SCNx16): Likewise.
16686         [C99-based-standards] (PRIdLEAST16): Likewise.
16687         [C99-based-standards] (PRIiLEAST16): Likewise.
16688         [C99-based-standards] (PRIoLEAST16): Likewise.
16689         [C99-based-standards] (PRIuLEAST16): Likewise.
16690         [C99-based-standards] (PRIxLEAST16): Likewise.
16691         [C99-based-standards] (PRIXLEAST16): Likewise.
16692         [C99-based-standards] (SCNdLEAST16): Likewise.
16693         [C99-based-standards] (SCNiLEAST16): Likewise.
16694         [C99-based-standards] (SCNoLEAST16): Likewise.
16695         [C99-based-standards] (SCNuLEAST16): Likewise.
16696         [C99-based-standards] (SCNxLEAST16): Likewise.
16697         [C99-based-standards] (PRIdFAST16): Likewise.
16698         [C99-based-standards] (PRIiFAST16): Likewise.
16699         [C99-based-standards] (PRIoFAST16): Likewise.
16700         [C99-based-standards] (PRIuFAST16): Likewise.
16701         [C99-based-standards] (PRIxFAST16): Likewise.
16702         [C99-based-standards] (PRIXFAST16): Likewise.
16703         [C99-based-standards] (SCNdFAST16): Likewise.
16704         [C99-based-standards] (SCNiFAST16): Likewise.
16705         [C99-based-standards] (SCNoFAST16): Likewise.
16706         [C99-based-standards] (SCNuFAST16): Likewise.
16707         [C99-based-standards] (SCNxFAST16): Likewise.
16708         [C99-based-standards] (PRId32): Likewise.
16709         [C99-based-standards] (PRIi32): Likewise.
16710         [C99-based-standards] (PRIo32): Likewise.
16711         [C99-based-standards] (PRIu32): Likewise.
16712         [C99-based-standards] (PRIx32): Likewise.
16713         [C99-based-standards] (PRIX32): Likewise.
16714         [C99-based-standards] (SCNd32): Likewise.
16715         [C99-based-standards] (SCNi32): Likewise.
16716         [C99-based-standards] (SCNo32): Likewise.
16717         [C99-based-standards] (SCNu32): Likewise.
16718         [C99-based-standards] (SCNx32): Likewise.
16719         [C99-based-standards] (PRIdLEAST32): Likewise.
16720         [C99-based-standards] (PRIiLEAST32): Likewise.
16721         [C99-based-standards] (PRIoLEAST32): Likewise.
16722         [C99-based-standards] (PRIuLEAST32): Likewise.
16723         [C99-based-standards] (PRIxLEAST32): Likewise.
16724         [C99-based-standards] (PRIXLEAST32): Likewise.
16725         [C99-based-standards] (SCNdLEAST32): Likewise.
16726         [C99-based-standards] (SCNiLEAST32): Likewise.
16727         [C99-based-standards] (SCNoLEAST32): Likewise.
16728         [C99-based-standards] (SCNuLEAST32): Likewise.
16729         [C99-based-standards] (SCNxLEAST32): Likewise.
16730         [C99-based-standards] (PRIdFAST32): Likewise.
16731         [C99-based-standards] (PRIiFAST32): Likewise.
16732         [C99-based-standards] (PRIoFAST32): Likewise.
16733         [C99-based-standards] (PRIuFAST32): Likewise.
16734         [C99-based-standards] (PRIxFAST32): Likewise.
16735         [C99-based-standards] (PRIXFAST32): Likewise.
16736         [C99-based-standards] (SCNdFAST32): Likewise.
16737         [C99-based-standards] (SCNiFAST32): Likewise.
16738         [C99-based-standards] (SCNoFAST32): Likewise.
16739         [C99-based-standards] (SCNuFAST32): Likewise.
16740         [C99-based-standards] (SCNxFAST32): Likewise.
16741         [C99-based-standards] (PRId64): Likewise.
16742         [C99-based-standards] (PRIi64): Likewise.
16743         [C99-based-standards] (PRIo64): Likewise.
16744         [C99-based-standards] (PRIu64): Likewise.
16745         [C99-based-standards] (PRIx64): Likewise.
16746         [C99-based-standards] (PRIX64): Likewise.
16747         [C99-based-standards] (SCNd64): Likewise.
16748         [C99-based-standards] (SCNi64): Likewise.
16749         [C99-based-standards] (SCNo64): Likewise.
16750         [C99-based-standards] (SCNu64): Likewise.
16751         [C99-based-standards] (SCNx64): Likewise.
16752         [C99-based-standards] (PRIdLEAST64): Likewise.
16753         [C99-based-standards] (PRIiLEAST64): Likewise.
16754         [C99-based-standards] (PRIoLEAST64): Likewise.
16755         [C99-based-standards] (PRIuLEAST64): Likewise.
16756         [C99-based-standards] (PRIxLEAST64): Likewise.
16757         [C99-based-standards] (PRIXLEAST64): Likewise.
16758         [C99-based-standards] (SCNdLEAST64): Likewise.
16759         [C99-based-standards] (SCNiLEAST64): Likewise.
16760         [C99-based-standards] (SCNoLEAST64): Likewise.
16761         [C99-based-standards] (SCNuLEAST64): Likewise.
16762         [C99-based-standards] (SCNxLEAST64): Likewise.
16763         [C99-based-standards] (PRIdFAST64): Likewise.
16764         [C99-based-standards] (PRIiFAST64): Likewise.
16765         [C99-based-standards] (PRIoFAST64): Likewise.
16766         [C99-based-standards] (PRIuFAST64): Likewise.
16767         [C99-based-standards] (PRIxFAST64): Likewise.
16768         [C99-based-standards] (PRIXFAST64): Likewise.
16769         [C99-based-standards] (SCNdFAST64): Likewise.
16770         [C99-based-standards] (SCNiFAST64): Likewise.
16771         [C99-based-standards] (SCNoFAST64): Likewise.
16772         [C99-based-standards] (SCNuFAST64): Likewise.
16773         [C99-based-standards] (SCNxFAST64): Likewise.
16774         [C99-based-standards] (PRIdMAX): Likewise.
16775         [C99-based-standards] (PRIiMAX): Likewise.
16776         [C99-based-standards] (PRIoMAX): Likewise.
16777         [C99-based-standards] (PRIuMAX): Likewise.
16778         [C99-based-standards] (PRIxMAX): Likewise.
16779         [C99-based-standards] (PRIXMAX): Likewise.
16780         [C99-based-standards] (SCNdMAX): Likewise.
16781         [C99-based-standards] (SCNiMAX): Likewise.
16782         [C99-based-standards] (SCNoMAX): Likewise.
16783         [C99-based-standards] (SCNuMAX): Likewise.
16784         [C99-based-standards] (SCNxMAX): Likewise.
16785         [C99-based-standards] (PRIdPTR): Likewise.
16786         [C99-based-standards] (PRIiPTR): Likewise.
16787         [C99-based-standards] (PRIoPTR): Likewise.
16788         [C99-based-standards] (PRIuPTR): Likewise.
16789         [C99-based-standards] (PRIxPTR): Likewise.
16790         [C99-based-standards] (PRIXPTR): Likewise.
16791         [C99-based-standards] (SCNdPTR): Likewise.
16792         [C99-based-standards] (SCNiPTR): Likewise.
16793         [C99-based-standards] (SCNoPTR): Likewise.
16794         [C99-based-standards] (SCNuPTR): Likewise.
16795         [C99-based-standards] (SCNxPTR): Likewise.
16796         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
16797         allow.
16798         * conform/data/stdint.h-data: Update comments to clarify
16799         requirements.
16800         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
16801         type.
16802         [C99-based standards] (INT8_MAX): Likewise.
16803         [C99-based standards] (INT16_MIN): Likewise.
16804         [C99-based standards] (INT16_MAX): Likewise.
16805         [C99-based standards] (INT32_MIN): Likewise.
16806         [C99-based standards] (INT32_MAX): Likewise.
16807         [C99-based standards] (INT64_MIN): Likewise.
16808         [C99-based standards] (INT64_MAX): Likewise.
16809         [C99-based standards] (UINT8_MAX): Likewise.
16810         [C99-based standards] (UINT16_MAX): Likewise.
16811         [C99-based standards] (UINT32_MAX): Likewise.
16812         [C99-based standards] (UINT64_MAX): Likewise.
16813         [C99-based standards] (INT_LEAST8_MIN): Likewise.
16814         [C99-based standards] (INT_LEAST8_MAX): Likewise.
16815         [C99-based standards] (INT_LEAST16_MIN): Likewise.
16816         [C99-based standards] (INT_LEAST16_MAX): Likewise.
16817         [C99-based standards] (INT_LEAST32_MIN): Likewise.
16818         [C99-based standards] (INT_LEAST32_MAX): Likewise.
16819         [C99-based standards] (INT_LEAST64_MIN): Likewise.
16820         [C99-based standards] (INT_LEAST64_MAX): Likewise.
16821         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
16822         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
16823         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
16824         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
16825         [C99-based standards] (INT_FAST8_MIN): Likewise.
16826         [C99-based standards] (INT_FAST8_MAX): Likewise.
16827         [C99-based standards] (INT_FAST16_MIN): Likewise.
16828         [C99-based standards] (INT_FAST16_MAX): Likewise.
16829         [C99-based standards] (INT_FAST32_MIN): Likewise.
16830         [C99-based standards] (INT_FAST32_MAX): Likewise.
16831         [C99-based standards] (INT_FAST64_MIN): Likewise.
16832         [C99-based standards] (INT_FAST64_MAX): Likewise.
16833         [C99-based standards] (UINT_FAST8_MAX): Likewise.
16834         [C99-based standards] (UINT_FAST16_MAX): Likewise.
16835         [C99-based standards] (UINT_FAST32_MAX): Likewise.
16836         [C99-based standards] (UINT_FAST64_MAX): Likewise.
16837         [C99-based standards] (INTPTR_MIN): Likewise.
16838         [C99-based standards] (INTPTR_MAX): Likewise.
16839         [C99-based standards] (UINTPTR_MAX): Likewise.
16840         [C99-based standards] (INTMAX_MIN): Likewise.
16841         [C99-based standards] (INTMAX_MAX): Likewise.
16842         [C99-based standards] (UINTMAX_MAX): Likewise.
16843         [C99-based standards] (PTRDIFF_MIN): Likewise.
16844         [C99-based standards] (PTRDIFF_MAX): Likewise.
16845         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
16846         [C99-based standards] (SIZE_MAX): Likewise.
16847         [C99-based standards] (WCHAR_MAX): Likewise.
16848         [C99-based standards] (WINT_MAX): Likewise.
16849         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
16850         constraint on value.
16851         [C99-based standards] (WCHAR_MIN): Likewise.
16852         [C99-based standards] (WINT_MIN): Likewise.
16853         [C99-based standards] (*_t): Allow.
16854         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
16855         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
16856         Include math.h-data and complex.h-data.  Remove all expectations
16857         of math.h and complex.h contents.
16858         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
16859         at end of line.
16860         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
16861         (struct tm): Expect tag.
16862         [C99-based-standards] (wcstof): Expect function.
16863         [C99-based-standards] (wcstold): Likewise.
16864         [C99-based-standards] (wcstoll): Likewise.
16865         [C99-based-standards] (wcstoull): Likewise.
16866         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
16867         macro-int-constant.  Specify type.
16868         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
16869         constraint on value.
16870         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
16871         Specify type.
16872         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
16873         Specify value.
16874         [ISO C standards]: Do not allow headers.
16875         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
16876         wcs[abcdefghijklmnopqrstuvwxyz]*.
16877         [ISO C standards] (*_t): Do not allow.
16878         * conform/data/wctype.h-data [C99-based standards] (iswblank):
16879         Expect function.
16880         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
16881         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
16882         Specify type.
16883         [ISO C standards]: Do not allow headers.
16884         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
16885         is[abcdefghijklmnopqrstuvwxyz]*.
16886         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
16887         to[abcdefghijklmnopqrstuvwxyz]*.
16888         [ISO C standards] (*_t): Do not allow.
16889         * conform/data/stdalign.h-data: New file.
16890         * conform/data/stdbool.h-data: Likewise.
16891         * conform/data/stdnoreturn.h-data: Likewise.
16892
16893 2012-11-07  Roland McGrath  <roland@hack.frob.com>
16894
16895         [BZ #14815]
16896         * manual/filesys.texi (Directory Entries): Typo fix.
16897         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
16898
16899 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16900
16901         * elf/elf.h (EM_AARCH64): New macro.
16902         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
16903         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
16904         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
16905         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
16906         (R_AARCH64_TLSDESC): Likewise.
16907         (NT_ARM_TLS): Likewise.
16908         (NT_ARM_HW_BREAK): Likewise.
16909         (NT_ARM_HW_WATCH): Likewise.
16910
16911 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16912
16913         [BZ #14811]
16914         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
16915         (__ieee754_powl): Saturate nonzero exponents with absolute value
16916         below 0x1p-79 to +/- 0x1p-79.
16917         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
16918         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
16919         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
16920         nonzero exponents with absolute value below 0x1p-32 to +/-
16921         0x1p-32.
16922         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
16923         (__ieee754_powl): Saturate nonzero exponents with absolute value
16924         below 0x1p-79 to +/- 0x1p-79.
16925         * math/libm-test.inc (pow_test): Add more tests.
16926
16927 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16928
16929         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
16930         _dl_s390_cap_flags with kernel. Increase string length.
16931         (_dl_s390_platforms): Add z196 and zEC12.
16932
16933 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16934
16935         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
16936         Change XOPEN21K to XOPEN2K.
16937
16938 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
16939
16940         * string/memmove.c: Use memcpy when possible.
16941
16942 2012-11-06  Andreas Jaeger  <aj@suse.de>
16943
16944         * po/eo.po: Update from translation team.
16945
16946 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
16947
16948         [BZ #14793]
16949         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
16950         exponent and small x and y exponents, scale x or y up.  Increase
16951         by 2 the exponent used in scaling up.
16952         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16953         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16954         * math/libm-test.inc (fma_test): Add more tests.
16955         (fma_test_towardzero): Likewise.
16956         (fma_test_downward): Likewise.
16957         (fma_test_upward): Likewise.
16958
16959 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
16960
16961         [BZ #14805]
16962         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
16963         fenv_t *.
16964
16965         [BZ #14801]
16966         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
16967         namespace for names of struct fields.
16968         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
16969         fenv_t fields.
16970         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
16971         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
16972
16973 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16974
16975         [BZ #3665]
16976         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
16977
16978 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
16979
16980         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
16981         PTR_DEMANGLE.
16982
16983         [BZ #5246]
16984         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
16985         PTR_DEMANGLE.
16986
16987 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
16988
16989         [BZ #14797]
16990         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
16991         definitely overflow as x * y not x * y + z.
16992         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16993         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16994         * math/libm-test.inc (fma_test): Add more tests.
16995         (fma_test_towardzero): Likewise.
16996         (fma_test_downward): Likewise.
16997         (fma_test_upward): Likewise.
16998
16999 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17000
17001         [BZ #157]
17002
17003         * include/stub-tag.h: Remove file.
17004         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
17005         '#include' of it.
17006         * manual/maint.texi (Porting): Don't reference it.
17007         * Makerules ($(objpfx)stubs): Likewise.
17008         * dirent/closedir.c: Don't include <stub-tag.h>.
17009         * dirent/dirfd.c: Likewise.
17010         * dirent/fdopendir.c: Likewise.
17011         * dirent/getdents.c: Likewise.
17012         * dirent/getdents64.c: Likewise.
17013         * dirent/opendir.c: Likewise.
17014         * dirent/readdir.c: Likewise.
17015         * dirent/readdir64.c: Likewise.
17016         * dirent/readdir64_r.c: Likewise.
17017         * dirent/readdir_r.c: Likewise.
17018         * dirent/rewinddir.c: Likewise.
17019         * dirent/seekdir.c: Likewise.
17020         * dirent/telldir.c: Likewise.
17021         * gmon/profil.c: Likewise.
17022         * grp/setgroups.c: Likewise.
17023         * inet/if_index.c: Likewise.
17024         * io/access.c: Likewise.
17025         * io/chdir.c: Likewise.
17026         * io/chmod.c: Likewise.
17027         * io/chown.c: Likewise.
17028         * io/close.c: Likewise.
17029         * io/dup.c: Likewise.
17030         * io/dup2.c: Likewise.
17031         * io/dup3.c: Likewise.
17032         * io/euidaccess.c: Likewise.
17033         * io/faccessat.c: Likewise.
17034         * io/fchdir.c: Likewise.
17035         * io/fchmod.c: Likewise.
17036         * io/fchmodat.c: Likewise.
17037         * io/fchown.c: Likewise.
17038         * io/fchownat.c: Likewise.
17039         * io/fcntl.c: Likewise.
17040         * io/flock.c: Likewise.
17041         * io/fstatfs.c: Likewise.
17042         * io/fstatfs64.c: Likewise.
17043         * io/fstatvfs.c: Likewise.
17044         * io/fstatvfs64.c: Likewise.
17045         * io/futimens.c: Likewise.
17046         * io/fxstat.c: Likewise.
17047         * io/fxstat64.c: Likewise.
17048         * io/fxstatat.c: Likewise.
17049         * io/fxstatat64.c: Likewise.
17050         * io/getcwd.c: Likewise.
17051         * io/isatty.c: Likewise.
17052         * io/lchmod.c: Likewise.
17053         * io/lchown.c: Likewise.
17054         * io/link.c: Likewise.
17055         * io/linkat.c: Likewise.
17056         * io/lseek.c: Likewise.
17057         * io/lseek64.c: Likewise.
17058         * io/lxstat64.c: Likewise.
17059         * io/mkdir.c: Likewise.
17060         * io/mkdirat.c: Likewise.
17061         * io/mkfifo.c: Likewise.
17062         * io/mkfifoat.c: Likewise.
17063         * io/open.c: Likewise.
17064         * io/open64.c: Likewise.
17065         * io/openat.c: Likewise.
17066         * io/openat64.c: Likewise.
17067         * io/pipe.c: Likewise.
17068         * io/pipe2.c: Likewise.
17069         * io/poll.c: Likewise.
17070         * io/posix_fadvise.c: Likewise.
17071         * io/posix_fadvise64.c: Likewise.
17072         * io/posix_fallocate.c: Likewise.
17073         * io/posix_fallocate64.c: Likewise.
17074         * io/read.c: Likewise.
17075         * io/readlink.c: Likewise.
17076         * io/readlinkat.c: Likewise.
17077         * io/rmdir.c: Likewise.
17078         * io/sendfile.c: Likewise.
17079         * io/sendfile64.c: Likewise.
17080         * io/statfs.c: Likewise.
17081         * io/statfs64.c: Likewise.
17082         * io/statvfs.c: Likewise.
17083         * io/statvfs64.c: Likewise.
17084         * io/symlink.c: Likewise.
17085         * io/symlinkat.c: Likewise.
17086         * io/ttyname.c: Likewise.
17087         * io/ttyname_r.c: Likewise.
17088         * io/umask.c: Likewise.
17089         * io/unlink.c: Likewise.
17090         * io/unlinkat.c: Likewise.
17091         * io/utime.c: Likewise.
17092         * io/utimensat.c: Likewise.
17093         * io/write.c: Likewise.
17094         * io/xmknod.c: Likewise.
17095         * io/xmknodat.c: Likewise.
17096         * io/xstat.c: Likewise.
17097         * io/xstat64.c: Likewise.
17098         * login/getpt.c: Likewise.
17099         * login/grantpt.c: Likewise.
17100         * login/unlockpt.c: Likewise.
17101         * math/e_acoshl.c: Likewise.
17102         * math/e_acosl.c: Likewise.
17103         * math/e_asinl.c: Likewise.
17104         * math/e_atan2l.c: Likewise.
17105         * math/e_atanhl.c: Likewise.
17106         * math/e_coshl.c: Likewise.
17107         * math/e_expl.c: Likewise.
17108         * math/e_fmodl.c: Likewise.
17109         * math/e_gammal_r.c: Likewise.
17110         * math/e_hypotl.c: Likewise.
17111         * math/e_j0l.c: Likewise.
17112         * math/e_j1l.c: Likewise.
17113         * math/e_jnl.c: Likewise.
17114         * math/e_lgammal_r.c: Likewise.
17115         * math/e_log10l.c: Likewise.
17116         * math/e_log2l.c: Likewise.
17117         * math/e_logl.c: Likewise.
17118         * math/e_powl.c: Likewise.
17119         * math/e_rem_pio2l.c: Likewise.
17120         * math/e_sinhl.c: Likewise.
17121         * math/e_sqrtl.c: Likewise.
17122         * math/fclrexcpt.c: Likewise.
17123         * math/fedisblxcpt.c: Likewise.
17124         * math/feenablxcpt.c: Likewise.
17125         * math/fegetenv.c: Likewise.
17126         * math/fegetexcept.c: Likewise.
17127         * math/fegetround.c: Likewise.
17128         * math/feholdexcpt.c: Likewise.
17129         * math/fesetenv.c: Likewise.
17130         * math/fesetround.c: Likewise.
17131         * math/feupdateenv.c: Likewise.
17132         * math/fgetexcptflg.c: Likewise.
17133         * math/fraiseexcpt.c: Likewise.
17134         * math/fsetexcptflg.c: Likewise.
17135         * math/ftestexcept.c: Likewise.
17136         * math/k_cosl.c: Likewise.
17137         * math/k_rem_pio2l.c: Likewise.
17138         * math/k_sinl.c: Likewise.
17139         * math/k_tanl.c: Likewise.
17140         * math/s_asinhl.c: Likewise.
17141         * math/s_atanl.c: Likewise.
17142         * math/s_cbrtl.c: Likewise.
17143         * math/s_erfl.c: Likewise.
17144         * math/s_expm1l.c: Likewise.
17145         * math/s_log1pl.c: Likewise.
17146         * math/s_tanhl.c: Likewise.
17147         * misc/acct.c: Likewise.
17148         * misc/brk.c: Likewise.
17149         * misc/chflags.c: Likewise.
17150         * misc/chroot.c: Likewise.
17151         * misc/fchflags.c: Likewise.
17152         * misc/fgetxattr.c: Likewise.
17153         * misc/flistxattr.c: Likewise.
17154         * misc/fremovexattr.c: Likewise.
17155         * misc/fsetxattr.c: Likewise.
17156         * misc/fsync.c: Likewise.
17157         * misc/ftruncate.c: Likewise.
17158         * misc/futimes.c: Likewise.
17159         * misc/futimesat.c: Likewise.
17160         * misc/getdomain.c: Likewise.
17161         * misc/getdtsz.c: Likewise.
17162         * misc/gethostid.c: Likewise.
17163         * misc/gethostname.c: Likewise.
17164         * misc/getloadavg.c: Likewise.
17165         * misc/getpagesize.c: Likewise.
17166         * misc/getsysstats.c: Likewise.
17167         * misc/getxattr.c: Likewise.
17168         * misc/gtty.c: Likewise.
17169         * misc/ioctl.c: Likewise.
17170         * misc/lgetxattr.c: Likewise.
17171         * misc/listxattr.c: Likewise.
17172         * misc/llistxattr.c: Likewise.
17173         * misc/lremovexattr.c: Likewise.
17174         * misc/lsetxattr.c: Likewise.
17175         * misc/lutimes.c: Likewise.
17176         * misc/madvise.c: Likewise.
17177         * misc/mincore.c: Likewise.
17178         * misc/mlock.c: Likewise.
17179         * misc/mlockall.c: Likewise.
17180         * misc/mmap.c: Likewise.
17181         * misc/mprotect.c: Likewise.
17182         * misc/msync.c: Likewise.
17183         * misc/munlock.c: Likewise.
17184         * misc/munlockall.c: Likewise.
17185         * misc/munmap.c: Likewise.
17186         * misc/preadv.c: Likewise.
17187         * misc/preadv64.c: Likewise.
17188         * misc/ptrace.c: Likewise.
17189         * misc/pwritev.c: Likewise.
17190         * misc/pwritev64.c: Likewise.
17191         * misc/readv.c: Likewise.
17192         * misc/reboot.c: Likewise.
17193         * misc/remap_file_pages.c: Likewise.
17194         * misc/removexattr.c: Likewise.
17195         * misc/revoke.c: Likewise.
17196         * misc/select.c: Likewise.
17197         * misc/setdomain.c: Likewise.
17198         * misc/setegid.c: Likewise.
17199         * misc/seteuid.c: Likewise.
17200         * misc/sethostid.c: Likewise.
17201         * misc/sethostname.c: Likewise.
17202         * misc/setregid.c: Likewise.
17203         * misc/setreuid.c: Likewise.
17204         * misc/setxattr.c: Likewise.
17205         * misc/sstk.c: Likewise.
17206         * misc/stty.c: Likewise.
17207         * misc/swapoff.c: Likewise.
17208         * misc/swapon.c: Likewise.
17209         * misc/sync.c: Likewise.
17210         * misc/syncfs.c: Likewise.
17211         * misc/syscall.c: Likewise.
17212         * misc/truncate.c: Likewise.
17213         * misc/ualarm.c: Likewise.
17214         * misc/usleep.c: Likewise.
17215         * misc/ustat.c: Likewise.
17216         * misc/utimes.c: Likewise.
17217         * misc/vhangup.c: Likewise.
17218         * misc/writev.c: Likewise.
17219         * posix/_exit.c: Likewise.
17220         * posix/alarm.c: Likewise.
17221         * posix/execve.c: Likewise.
17222         * posix/fexecve.c: Likewise.
17223         * posix/fork.c: Likewise.
17224         * posix/fpathconf.c: Likewise.
17225         * posix/getaddrinfo.c: Likewise.
17226         * posix/getegid.c: Likewise.
17227         * posix/geteuid.c: Likewise.
17228         * posix/getgid.c: Likewise.
17229         * posix/getgroups.c: Likewise.
17230         * posix/getlogin.c: Likewise.
17231         * posix/getlogin_r.c: Likewise.
17232         * posix/getpgid.c: Likewise.
17233         * posix/getpid.c: Likewise.
17234         * posix/getppid.c: Likewise.
17235         * posix/getresgid.c: Likewise.
17236         * posix/getresuid.c: Likewise.
17237         * posix/getsid.c: Likewise.
17238         * posix/getuid.c: Likewise.
17239         * posix/glob64.c: Likewise.
17240         * posix/nanosleep.c: Likewise.
17241         * posix/pathconf.c: Likewise.
17242         * posix/pause.c: Likewise.
17243         * posix/posix_madvise.c: Likewise.
17244         * posix/pread.c: Likewise.
17245         * posix/pread64.c: Likewise.
17246         * posix/pwrite.c: Likewise.
17247         * posix/pwrite64.c: Likewise.
17248         * posix/sched_getaffinity.c: Likewise.
17249         * posix/sched_getp.c: Likewise.
17250         * posix/sched_gets.c: Likewise.
17251         * posix/sched_primax.c: Likewise.
17252         * posix/sched_primin.c: Likewise.
17253         * posix/sched_rr_gi.c: Likewise.
17254         * posix/sched_setaffinity.c: Likewise.
17255         * posix/sched_setp.c: Likewise.
17256         * posix/sched_sets.c: Likewise.
17257         * posix/sched_yield.c: Likewise.
17258         * posix/setgid.c: Likewise.
17259         * posix/setlogin.c: Likewise.
17260         * posix/setpgid.c: Likewise.
17261         * posix/setresgid.c: Likewise.
17262         * posix/setresuid.c: Likewise.
17263         * posix/setsid.c: Likewise.
17264         * posix/setuid.c: Likewise.
17265         * posix/sleep.c: Likewise.
17266         * posix/spawni.c: Likewise.
17267         * posix/sysconf.c: Likewise.
17268         * posix/times.c: Likewise.
17269         * posix/wait.c: Likewise.
17270         * posix/wait3.c: Likewise.
17271         * posix/wait4.c: Likewise.
17272         * posix/waitpid.c: Likewise.
17273         * resolv/gai_sigqueue.c: Likewise.
17274         * resource/getpriority.c: Likewise.
17275         * resource/getrlimit.c: Likewise.
17276         * resource/getrusage.c: Likewise.
17277         * resource/nice.c: Likewise.
17278         * resource/setpriority.c: Likewise.
17279         * resource/setrlimit.c: Likewise.
17280         * resource/ulimit.c: Likewise.
17281         * rt/aio_cancel.c: Likewise.
17282         * rt/aio_fsync.c: Likewise.
17283         * rt/aio_read.c: Likewise.
17284         * rt/aio_sigqueue.c: Likewise.
17285         * rt/aio_suspend.c: Likewise.
17286         * rt/aio_write.c: Likewise.
17287         * rt/clock_getres.c: Likewise.
17288         * rt/clock_gettime.c: Likewise.
17289         * rt/clock_nanosleep.c: Likewise.
17290         * rt/clock_settime.c: Likewise.
17291         * rt/lio_listio.c: Likewise.
17292         * rt/mq_close.c: Likewise.
17293         * rt/mq_getattr.c: Likewise.
17294         * rt/mq_notify.c: Likewise.
17295         * rt/mq_open.c: Likewise.
17296         * rt/mq_receive.c: Likewise.
17297         * rt/mq_send.c: Likewise.
17298         * rt/mq_setattr.c: Likewise.
17299         * rt/mq_timedreceive.c: Likewise.
17300         * rt/mq_timedsend.c: Likewise.
17301         * rt/mq_unlink.c: Likewise.
17302         * rt/shm_open.c: Likewise.
17303         * rt/shm_unlink.c: Likewise.
17304         * rt/timer_create.c: Likewise.
17305         * rt/timer_delete.c: Likewise.
17306         * rt/timer_getoverr.c: Likewise.
17307         * rt/timer_gettime.c: Likewise.
17308         * rt/timer_settime.c: Likewise.
17309         * setjmp/__longjmp.c: Likewise.
17310         * setjmp/setjmp.c: Likewise.
17311         * signal/kill.c: Likewise.
17312         * signal/killpg.c: Likewise.
17313         * signal/raise.c: Likewise.
17314         * signal/sigaction.c: Likewise.
17315         * signal/sigaltstack.c: Likewise.
17316         * signal/sigblock.c: Likewise.
17317         * signal/sigignore.c: Likewise.
17318         * signal/sigintr.c: Likewise.
17319         * signal/signal.c: Likewise.
17320         * signal/sigpause.c: Likewise.
17321         * signal/sigpending.c: Likewise.
17322         * signal/sigqueue.c: Likewise.
17323         * signal/sigreturn.c: Likewise.
17324         * signal/sigset.c: Likewise.
17325         * signal/sigsetmask.c: Likewise.
17326         * signal/sigstack.c: Likewise.
17327         * signal/sigsuspend.c: Likewise.
17328         * signal/sigtimedwait.c: Likewise.
17329         * signal/sigvec.c: Likewise.
17330         * signal/sigwait.c: Likewise.
17331         * signal/sigwaitinfo.c: Likewise.
17332         * signal/sysv_signal.c: Likewise.
17333         * socket/accept.c: Likewise.
17334         * socket/accept4.c: Likewise.
17335         * socket/bind.c: Likewise.
17336         * socket/connect.c: Likewise.
17337         * socket/getpeername.c: Likewise.
17338         * socket/getsockname.c: Likewise.
17339         * socket/getsockopt.c: Likewise.
17340         * socket/isfdtype.c: Likewise.
17341         * socket/listen.c: Likewise.
17342         * socket/recv.c: Likewise.
17343         * socket/recvfrom.c: Likewise.
17344         * socket/recvmsg.c: Likewise.
17345         * socket/send.c: Likewise.
17346         * socket/sendmsg.c: Likewise.
17347         * socket/sendto.c: Likewise.
17348         * socket/setsockopt.c: Likewise.
17349         * socket/shutdown.c: Likewise.
17350         * socket/sockatmark.c: Likewise.
17351         * socket/socket.c: Likewise.
17352         * socket/socketpair.c: Likewise.
17353         * stdio-common/ctermid.c: Likewise.
17354         * stdio-common/cuserid.c: Likewise.
17355         * stdio-common/remove.c: Likewise.
17356         * stdio-common/rename.c: Likewise.
17357         * stdio-common/renameat.c: Likewise.
17358         * stdio-common/tempname.c: Likewise.
17359         * stdlib/getcontext.c: Likewise.
17360         * stdlib/makecontext.c: Likewise.
17361         * stdlib/setcontext.c: Likewise.
17362         * stdlib/swapcontext.c: Likewise.
17363         * stdlib/system.c: Likewise.
17364         * streams/fattach.c: Likewise.
17365         * streams/fdetach.c: Likewise.
17366         * streams/getmsg.c: Likewise.
17367         * streams/getpmsg.c: Likewise.
17368         * streams/putmsg.c: Likewise.
17369         * streams/putpmsg.c: Likewise.
17370         * sysdeps/unix/bsd/getpt.c: Likewise.
17371         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
17372         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
17373         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
17374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17375         Likewise.
17376         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
17377         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17378         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
17379         * sysvipc/msgctl.c: Likewise.
17380         * sysvipc/msgget.c: Likewise.
17381         * sysvipc/msgrcv.c: Likewise.
17382         * sysvipc/msgsnd.c: Likewise.
17383         * sysvipc/semctl.c: Likewise.
17384         * sysvipc/semget.c: Likewise.
17385         * sysvipc/semop.c: Likewise.
17386         * sysvipc/semtimedop.c: Likewise.
17387         * sysvipc/shmat.c: Likewise.
17388         * sysvipc/shmctl.c: Likewise.
17389         * sysvipc/shmdt.c: Likewise.
17390         * sysvipc/shmget.c: Likewise.
17391         * termios/tcdrain.c: Likewise.
17392         * termios/tcflow.c: Likewise.
17393         * termios/tcflush.c: Likewise.
17394         * termios/tcgetattr.c: Likewise.
17395         * termios/tcgetpgrp.c: Likewise.
17396         * termios/tcsendbrk.c: Likewise.
17397         * termios/tcsetattr.c: Likewise.
17398         * termios/tcsetpgrp.c: Likewise.
17399         * time/adjtime.c: Likewise.
17400         * time/clock.c: Likewise.
17401         * time/getitimer.c: Likewise.
17402         * time/gettimeofday.c: Likewise.
17403         * time/setitimer.c: Likewise.
17404         * time/settimeofday.c: Likewise.
17405         * time/stime.c: Likewise.
17406         * time/time.c: Likewise.
17407
17408 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
17409
17410         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
17411         /usr/old/bin.
17412
17413         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
17414         instead of spaces.
17415         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
17416
17417 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
17418
17419         [BZ #14796]
17420         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
17421         FE_TONEAREST before applying Dekker multiplication and Knuth
17422         addition.  Clear inexact exceptions and check for exact zero
17423         results afterwards.
17424         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17425         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17426         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17427         * math/libm-test.inc (fma_test): Add more tests.
17428         (fma_test_towardzero): Likewise.
17429         (fma_test_downward): Likewise.
17430         (fma_test_upward): Likewise.
17431         * sysdeps/generic/math_private.h (default_libc_fesetround): New
17432         function.
17433         (libc_fesetround): New macro.
17434         (libc_fesetroundf): Likewise.
17435         (libc_fesetroundl): Likewise.
17436         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
17437         function.
17438         (libc_fesetround_387): Likewise.
17439         (libc_fesetroundf): New macro.
17440         (libc_fesetround): Likewise.
17441         (libc_fesetroundl): Likewise.
17442         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
17443         function.
17444         (libc_fesetroundf): New macro.
17445         (libc_fesetround): Likewise.
17446         (libc_fesetroundl): Likewise.
17447         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
17448         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
17449         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
17450         libm_hidden_ver.
17451         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
17452         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
17453         libm_hidden_def.
17454         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
17455         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
17456         libm_hidden_ver.
17457         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
17458         libm_hidden_def.
17459
17460         [BZ #3439]
17461         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
17462         integer constant usable in #if and use that to give value to enum
17463         constant.
17464         (FE_DIVBYZERO): Likewise.
17465         (FE_UNDERFLOW): Likewise.
17466         (FE_OVERFLOW): Likewise.
17467         (FE_INVALID): Likewise.
17468         (FE_INVALID_SNAN): Likewise.
17469         (FE_INVALID_ISI): Likewise.
17470         (FE_INVALID_IDI): Likewise.
17471         (FE_INVALID_ZDZ): Likewise.
17472         (FE_INVALID_IMZ): Likewise.
17473         (FE_INVALID_COMPARE): Likewise.
17474         (FE_INVALID_SOFTWARE): Likewise.
17475         (FE_INVALID_SQRT): Likewise.
17476         (FE_INVALID_INTEGER_CONVERSION): Likewise.
17477         (FE_TONEAREST): Likewise.
17478         (FE_TOWARDZERO): Likewise.
17479         (FE_UPWARD): Likewise.
17480         (FE_DOWNWARD): Likewise.
17481         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
17482         (FE_DIVBYZERO): Likewise.
17483         (FE_OVERFLOW): Likewise.
17484         (FE_UNDERFLOW): Likewise.
17485         (FE_INEXACT): Likewise.
17486         (FE_TONEAREST): Likewise.
17487         (FE_DOWNWARD): Likewise.
17488         (FE_UPWARD): Likewise.
17489         (FE_TOWARDZERO): Likewise.
17490         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
17491         (FE_UNDERFLOW): Likewise.
17492         (FE_OVERFLOW): Likewise.
17493         (FE_DIVBYZERO): Likewise.
17494         (FE_INVALID): Likewise.
17495         (FE_TONEAREST): Likewise.
17496         (FE_TOWARDZERO): Likewise.
17497         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
17498         (FE_OVERFLOW): Likewise.
17499         (FE_UNDERFLOW): Likewise.
17500         (FE_DIVBYZERO): Likewise.
17501         (FE_INEXACT): Likewise.
17502         (FE_TONEAREST): Likewise.
17503         (FE_TOWARDZERO): Likewise.
17504         (FE_UPWARD): Likewise.
17505         (FE_DOWNWARD): Likewise.
17506         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
17507         (FE_DIVBYZERO): Likewise.
17508         (FE_OVERFLOW): Likewise.
17509         (FE_UNDERFLOW): Likewise.
17510         (FE_INEXACT): Likewise.
17511         (FE_TONEAREST): Likewise.
17512         (FE_DOWNWARD): Likewise.
17513         (FE_UPWARD): Likewise.
17514         (FE_TOWARDZERO): Likewise.
17515
17516 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
17517
17518         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
17519
17520 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
17521
17522         * scripts/cross-test-ssh.sh (command): Use newlines to separate
17523         commands.  Quote $PWD.
17524         (blacklist_exports): Don't use remove_newlines.  Replace "declare
17525         -x" by "export".
17526         (remove_newlines): Remove.
17527
17528 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
17529
17530         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
17531         * stdlib/stdlib.h (atof): Moved to ...
17532         * include/bits/stdlib-float.h: Here.  New file.
17533         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
17534         * stdlib/bits/stdlib-float.h: New file.
17535         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
17536         -mno-sse -mno-mmx.
17537         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
17538         <xmmintrin.h>.
17539
17540 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17541
17542         * conform/conformtest.pl (@headers): Add fenv.h.
17543         * conform/data/fenv.h-data: New file.
17544         * include/fenv.h [_ISOMAC]: Disable all contents of file except
17545         include of <math/fenv.h>.
17546
17547         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
17548         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
17549         && !UNIX98].  Enables tests for XOPEN2K8.
17550         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
17551         POSIX2008]: Likewise.
17552
17553         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
17554         (struct rusage): Do not expect type or its members.
17555
17556         [BZ #3439]
17557         * math/math.h (FP_NAN): Define macro to integer constant usable in
17558         #if and use that to give value to enum constant.
17559         (FP_INFINITE): Likewise.
17560         (FP_ZERO): Likewise.
17561         (FP_SUBNORMAL): Likewise.
17562         (FP_NORMAL): Likewise.
17563
17564 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
17565
17566         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
17567         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
17568         arguments.
17569
17570 2012-11-02  Roland McGrath  <roland@hack.frob.com>
17571
17572         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
17573         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
17574         autoconf-time if not.
17575         * configure.in: Remove AC_PREREQ.
17576
17577 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17578
17579         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
17580         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
17581         of the internal implementation.
17582
17583 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17584
17585         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
17586         except include of <misc/sys/syslog.h>.
17587
17588 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17589
17590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
17591         function returns with a NULL context exit with zero.
17592
17593 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17594
17595         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
17596
17597 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
17598
17599         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
17600         (run_program_cmd): This.
17601         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
17602         (tst_langinfo): New variable.  Use it.
17603
17604 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
17605
17606         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
17607         floating point opcodes.
17608
17609 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17610
17611         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
17612         variable.
17613
17614         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
17615
17616         * sysdeps/mach/hurd/powerpc: Remove directory.
17617         * sysdeps/mach/powerpc: Likewise.
17618
17619 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17620
17621         * scripts/check-local-headers.sh: Ignore c++ headers.
17622
17623 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17624
17625         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
17626         __libc_cleanup_region_start argument.
17627
17628 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
17629
17630         [BZ #14784]
17631         [BZ #14785]
17632         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
17633         x * y using scaling, not as x * y + z.
17634         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17635         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17636         * math/libm-test.inc (fma_test): Add more tests.
17637         (fma_test_towardzero): Likewise.
17638         (fma_test_downward): Likewise.
17639         (fma_test_upward): Likewise.
17640
17641 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17642
17643         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
17644
17645 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17646
17647         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
17648         New variable.
17649
17650 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
17651
17652         * rt/tst-shm.c (worker): Correct checking for mmap failure.
17653
17654 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17655
17656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17657         Fix sort order.
17658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17659         Likewise.
17660
17661 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17662
17663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17664         Fix the order of the list for glibc 2.17.
17665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17666         Likewise.
17667
17668 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17669
17670         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17671
17672 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17673
17674         [BZ #14610]
17675         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
17676         for low part of x being zero before using __atanl (y).
17677         * math/libm-test.inc (atan2_test): Add another test.
17678
17679         * manual/install.texi (Configuring and compiling): Document
17680         general use of test-wrapper and test-wrapper-env.
17681         * INSTALL: Regenerated.
17682
17683         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
17684         (__fma): Do not extract and scale down low bits on after-rounding
17685         systems when result rounded to normal precision would have normal
17686         exponent.
17687         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
17688         (__fmal): Do not extract and scale down low bits on after-rounding
17689         systems when result rounded to normal precision would have normal
17690         exponent.
17691         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
17692         (__fmal): Do not extract and scale down low bits on after-rounding
17693         systems when result rounded to normal precision would have normal
17694         exponent.
17695         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
17696         macro.
17697         (fma_test): Add more tests.
17698         (fma_test_towardzero): Likewise.
17699         (fma_test_downward): Likewise.
17700         (fma_test_upward): Likewise.
17701
17702 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
17703
17704         * sysdeps/i386/tininess.h: Renamed to ...
17705         * sysdeps/x86/tininess.h: This.
17706         * sysdeps/x86_64/tininess.h: Removed.
17707
17708 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17709
17710         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
17711         input.  Use $(build-program-cmd).
17712         ($(objpfx)tst-array1-static.out): Likewise.
17713         ($(objpfx)tst-array2.out): Likewise.
17714         ($(objpfx)tst-array3.out): Likewise.
17715         ($(objpfx)tst-array4.out): Likewise.
17716         ($(objpfx)tst-array5.out): Likewise.
17717         ($(objpfx)tst-array5-static.out): Likewise.
17718
17719 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
17720
17721         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
17722         if defined.
17723
17724         * nss/nsswitch.h (nss_interface_function): Provide new
17725         macro for use with NSS functions.
17726         * grp/initgroups.c: Use new macro.
17727         * nss/getXXbyYY.c: Likewise.
17728         * nss/getXXbyYY_r.c: Likewise.
17729         * nss/getXXent.c: Likewise.
17730         * nss/getXXent_r.c: Likewise.
17731         * sysdeps/posix/getaddrinfo.c: Likewise.
17732
17733 2012-10-30  Andreas Jaeger  <aj@suse.de>
17734
17735         * po/ru.po: Update Russion translation from translation project.
17736
17737 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17738
17739         [BZ #14152]
17740         [BZ #14783]
17741         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
17742         result and shift together with sticky bit instead of replicating
17743         round-to-nearest rounding.
17744         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17745         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17746         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
17747         missing underflow exceptions.
17748         (fma_test_towardzero): Add more tests.
17749         (fma_test_downward): Likewise.
17750         (fma_test_upward): Likewise.
17751
17752         [BZ #14047]
17753         * sysdeps/generic/tininess.h: New file.
17754         * sysdeps/i386/tininess.h: Likewise.
17755         * sysdeps/sh/tininess.h: Likewise.
17756         * sysdeps/x86_64/tininess.h: Likewise.
17757         * stdlib/tst-strtod-underflow.c: Likewise.
17758         * stdlib/tst-tininess.c: Likewise.
17759         * stdlib/strtod_l.c: Include <tininess.h>.
17760         (round_and_return): Do not set errno for exact underflow cases.
17761         Force an underflow exception when setting errno for underflow.
17762         Determine underflow based on rounding to normal precision if
17763         TININESS_AFTER_ROUNDING.
17764         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
17765         ERANGE for exact underflow cases.
17766         * stdlib/Makefile (tests): Add tst-tininess and
17767         tst-strtod-underflow.
17768         ($(objpfx)tst-tininess): Use $(link-libm).
17769         ($(objpfx)tst-strtod-underflow): Likewise.
17770
17771 2012-10-30  Andreas Jaeger  <aj@suse.de>
17772
17773         [BZ#14767]
17774         * elf/Makefile (tests): Remove conditional for have-initfini-array
17775         since this is now always required and the variable does not exist
17776         anymore.
17777         (tests-static): Likewise.
17778         (modules-names): Likewise.
17779
17780         * po/eo.po: Add Esperanto translation from translation project.
17781
17782         * elf/tst-array1.c (fini_array): Make writeable so that it can be
17783         merged with constructor/destructor.
17784         (init_array): Likewise.
17785         * elf/tst-array2dep.c (fini_array): Likewise.
17786         (init_array): Likewise.
17787
17788 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
17789
17790         * manual/message.texi: Delete @cartouche tags.
17791
17792 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
17793
17794         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
17795         EOPNOTSUPP.
17796         * sysdeps/mach/hurd/fsync.c: Likewise.
17797
17798         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
17799         [_POSIX_REALTIME_SIGNALS]: Change condition to
17800         [_POSIX_REALTIME_SIGNALS > 0].
17801
17802 2012-10-27  Andreas Jaeger  <aj@suse.de>
17803
17804         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
17805         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
17806         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
17807         [__WORDSIZE != 64]: Likewise.
17808
17809 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
17810
17811         *  iconvdata/tst-table.sh: Remove ${SHELL}.
17812         *  iconvdata/tst-tables.sh: Likewise.
17813
17814 2012-10-25  David S. Miller  <davem@davemloft.net>
17815
17816         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17817         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
17818         of strtoull.
17819
17820         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
17821         ifunc-impl-list.c
17822         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17823         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
17824         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
17825         file.
17826
17827 2012-10-25  Roland McGrath  <roland@hack.frob.com>
17828
17829         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17830         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
17831         __getdirentries.
17832
17833 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
17834             Jim Blandy  <jimb@codesourcery.com>
17835
17836         * scripts/cross-test-ssh.sh: New file.
17837         * manual/install.texi (Configuring and compiling): Document use of
17838         cross-test-ssh.sh.
17839         * INSTALL: Regenerated.
17840
17841 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
17842
17843         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
17844         EOPNOTSUPP.
17845
17846 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
17847
17848         * Makeconfig (run-program-prefix): Fix comment.
17849
17850 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
17851             Jim Blandy  <jimb@codesourcery.com>
17852
17853         * Makeconfig (test-wrapper): New variable,
17854         (test-wrapper-env): Likewise.
17855         [$(cross-compiling) = yes && $(test-wrapper) != ""]
17856         (run-built-tests): Define to yes.
17857         (run-program-prefix): Use $(test-wrapper).
17858         (built-program-cmd): Likewise.
17859         * Rules (make-test-out): Use $(test-wrapper-env) and
17860         $(host-built-program-cmd).
17861         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
17862         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
17863         tst-pathopt.sh.
17864         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
17865         $(test-wrapper-env) to tst-rtld-load-self.sh.
17866         ($(objpfx)order2.out): Use $(test-wrapper).
17867         ($(objpfx)tst-initorder.out): Likewise.
17868         ($(objpfx)tst-initorder2.out): Likewise.
17869         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
17870         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
17871         (test_wrapper_env): New variable.  Use it to run ld.so.
17872         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
17873         Use it to run ld.so.
17874         (test_wrapper_env): Likewise.
17875         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
17876         $(test-wrapper) to run-iconv-test.sh.
17877         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
17878         (ICONV): Use $test_wrapper.
17879         * posix/Makefile ($(objpfx)globtest.out): Pass
17880         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
17881         globtest.sh, not $(run-program-prefix).
17882         * posix/globtest.sh (run_via_rtld_prefix): New variable.
17883         (test_wrapper): Likewise.
17884         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
17885         set together with run_via_rtld_prefix.
17886         (run_program_prefix): Define in terms of test_wrapper and
17887         run_via_rtld_prefix.
17888
17889 2012-10-24  Roland McGrath  <roland@hack.frob.com>
17890
17891         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
17892         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
17893         Targets removed.
17894
17895         [BZ #14743]
17896         * include/time.h: Remove librt_hidden_proto (clock_gettime).
17897         Declare __clock_getres, __clock_gettime, __clock_settime,
17898         __clock_nanosleep, and __clock_getcpuclockid.
17899         * rt/clock_gettime.c: Define __clock_gettime as an alias.
17900         Remove librt_hidden_def (clock_gettime).
17901         * sysdeps/unix/clock_gettime.c: Likewise.
17902         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
17903         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
17904         * rt/clock_getres.c: Define __clock_getres as an alias.
17905         * sysdeps/posix/clock_getres.c: Likewise.
17906         * rt/clock_settime.c: Define __clock_settime as an alias.
17907         * sysdeps/unix/clock_settime.c: Likewise.
17908         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
17909         * sysdeps/unix/clock_nanosleep.c: Likewise.
17910         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
17911         * rt/clock-compat.c: New file.
17912         * rt/Makefile (librt-routines): Add clock-compat and move
17913         $(clock-routines) to ...
17914         (routines): ... here, new variable.
17915         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
17916         Don't add get_clockfreq here.
17917         * rt/Versions (libc: GLIBC_2.17): New version set.
17918         Add clock_* symbols here.
17919         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
17920         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
17921         (GLIBC_2.17): Add clock_* symbols.
17922         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
17923         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
17924         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
17925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17926         Likewise.
17927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17928         Likewise.
17929         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
17930         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
17931         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
17932         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
17933         * NEWS: Mention the move.
17934
17935         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
17936         Use __open, __read, __close rather than their public counterparts.
17937         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17938         (__get_clockfreq_via_cpuinfo): Likewise.
17939         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
17940         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
17941
17942         * config.h.in (HAVE_IFUNC): New #undef.
17943         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
17944         was successful.
17945         * configure: Regenerated.
17946
17947 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
17948
17949         * configure.in: Move READELF check to start of file.
17950         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
17951         libc_cv_asm_gnu_indirect_function in the process.
17952         * configure: Regenerated.
17953
17954 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
17955
17956         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
17957         send the output to /dev/null.
17958         (libc_cv_cc_with_libunwind): Likewise.
17959         (libc_cv_as_noexecstack): Likewise.
17960         * configure: Regenerate.
17961
17962 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
17963
17964         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
17965
17966         * posix/globtest.sh (TMPDIR): Do not set.
17967         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
17968         (testout): Likewise.
17969
17970 2012-10-24  Andreas Jaeger  <aj@suse.de>
17971
17972         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
17973         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
17974         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
17975         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
17976         posix_fadvise64, posix_fallocate64.
17977
17978         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
17979         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
17980         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
17981         Likewise.
17982         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
17983         Likewise.
17984         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
17985
17986         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
17987         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
17988         <bits/fcntl-linux.h>.
17989         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
17990
17991         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
17992         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
17993         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
17994         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
17995         [__WORDSIZE != 64]: Likewise.
17996
17997 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
17998
17999         * Makeconfig (run-built-tests): New variable.
18000         * Rules [$(cross-compiling) = yes]: Change condition to
18001         [$(run-built-tests) = no].
18002         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
18003         to [$(run-built-tests) = yes].
18004         * elf/Makefile [$(cross-compiling) = no]: Likewise
18005         * grp/Makefile [$(cross-compiling) = no]: Likewise.
18006         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
18007         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
18008         * intl/Makefile [$(cross-compiling) = no]: Likewise.
18009         * io/Makefile [$(cross-compiling) = no]: Likewise.
18010         * libio/Makefile [$(cross-compiling) = no]: Likewise.
18011         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
18012         * misc/Makefile [$(cross-compiling) = no]: Likewise.
18013         * posix/Makefile [$(cross-compiling) = no]: Likewise.
18014         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
18015         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
18016         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
18017         * string/Makefile [$(cross-compiling) = no]: Likewise.
18018
18019         * posix/Makefile ($(objpfx)globtest.out): Pass
18020         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
18021         $(rtld-installed-name).
18022         * posix/globtest.sh (elf_objpfx): Remove variable.
18023         (rtld_installed_name): Likewise.
18024         (library_path): Likewise.
18025         (run_program_prefix): New variable.  Use for running globtest
18026         binary.
18027
18028 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
18029             Joseph Myers  <joseph@codesourcery.com>
18030
18031         * Makeconfig (host-built-program-cmd): New variable.
18032         * elf/Makefile (tst-stackguard1-ARGS): Use
18033         $(host-built-program-cmd).
18034         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
18035         (tst-spawn-ARGS): Likewise.
18036         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
18037
18038 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18039             Jim Blandy  <jimb@codesourcery.com>
18040
18041         * Makeconfig (run-via-rtld-prefix): New variable.
18042         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
18043         (built-program-cmd): Likewise.
18044
18045 2012-10-22  Andreas Jaeger  <aj@suse.de>
18046
18047         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
18048         __O_RSYNC if it exists, otherwise to O_SYNC.
18049
18050 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
18051             Joseph Myers  <joseph@codesourcery.com>
18052
18053         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
18054         /dev/null.
18055         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
18056         from /dev/null
18057         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
18058         /dev/null.
18059
18060 2012-10-22  Andreas Jaeger  <aj@suse.de>
18061
18062         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
18063         Define always.
18064         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
18065
18066         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18067         bits/fcntl-linux.h.
18068
18069         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
18070         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
18071
18072         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
18073         to __O_LARGEFILE.
18074         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
18075         to __O_LARGEFILE.
18076
18077 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
18078             Joseph Myers  <joseph@codesourcery.com>
18079
18080         * config.make.in (NM): New variable.
18081
18082 2012-10-21  Andreas Jaeger  <aj@suse.de>
18083
18084         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
18085         definitions and declarations that are provided by
18086         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
18087
18088 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18089
18090         [BZ #14683]
18091         * elf/Makefile (tests-static): Add tst-leaks1-static.
18092         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
18093         ($(objpfx)tst-leaks1-static): New rule.
18094         ($(objpfx)tst-leaks1-static-mem): Likewise.
18095         (tst-leaks1-static-ENV): New macro.
18096         * elf/dl-open.c (dl_open_worker): Check the main application
18097         only if SHARED is defined.
18098         * elf/tst-leaks1-static.c: New file.
18099
18100 2012-10-20  Andreas Jaeger  <aj@suse.de>
18101
18102         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
18103         generic values for Linux.
18104         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
18105         and declarations that are provided by <bits/fcntl-linux.h> and
18106         include <bits/fcntl-linux.h>.
18107         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18108         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18109
18110 2012-10-20  Roland McGrath  <roland@hack.frob.com>
18111
18112         * io/fcntl.h: Move include of <bits/types.h> to the top and
18113         include it unconditionally.
18114
18115 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18116
18117         * wcsmbs/Makefile (tests-ifunc): New variable.
18118         (tests): Add $(tests-ifunc).
18119         * wcsmbs/test-wcschr-ifunc.c: New file.
18120         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
18121         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
18122         * wcsmbs/test-wcslen-ifunc.c: Likewise.
18123         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
18124         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
18125
18126         * string/Makefile (tests-ifunc): New variable.
18127         (tests): Add $(tests-ifunc).
18128         * string/test-memccpy.c (TEST_NAME): New macro.
18129         * string/test-memchr.c (TEST_NAME): Likewise.
18130         * string/test-memcmp.c (TEST_NAME): Likewise.
18131         * string/test-memcpy.c (TEST_NAME): Likewise.
18132         * string/test-memmem.c (TEST_NAME): Likewise.
18133         * string/test-memmove.c (TEST_NAME): Likewise.
18134         * string/test-memset.c (TEST_NAME): Likewise.
18135         * string/test-rawmemchr.c (TEST_NAME): Likewise.
18136         * string/test-stpcpy.c (TEST_NAME): Likewise.
18137         * string/test-stpncpy.c (TEST_NAME): Likewise.
18138         * string/test-strcasecmp.c (TEST_NAME): Likewise.
18139         * string/test-strcasestr.c (TEST_NAME): Likewise.
18140         * string/test-strcat.c (TEST_NAME): Likewise.
18141         * string/test-strchr.c (TEST_NAME): Likewise.
18142         * string/test-strcmp.c(TEST_NAME): Likewise.
18143         * string/test-strcpy.c (TEST_NAME): Likewise.
18144         * string/test-strcspn.c (TEST_NAME): Likewise.
18145         * string/test-strlen.c (TEST_NAME): Likewise.
18146         * string/test-strncasecmp.c (TEST_NAME): Likewise.
18147         * string/test-strncmp.c (TEST_NAME): Likewise.
18148         * string/test-strncpy.c (TEST_NAME): Likewise.
18149         * string/test-strnlen.c (TEST_NAME): Likewise.
18150         * string/test-strpbrk.c (TEST_NAME): Likewise.
18151         * string/test-strrchr.c (TEST_NAME): Likewise.
18152         * string/test-strspn.c (TEST_NAME): Likewise.
18153         * string/test-strstr.c (TEST_NAME): Likewise.
18154         * string/test-bcopy-ifunc.c: New file.
18155         * string/test-bzero-ifunc.c: Likewise.
18156         * string/test-memccpy-ifunc.c: Likewise.
18157         * string/test-memchr-ifunc.c: Likewise.
18158         * string/test-memcmp-ifunc.c: Likewise.
18159         * string/test-memcpy-ifunc.c: Likewise.
18160         * string/test-memmem-ifunc.c: Likewise.
18161         * string/test-memmove-ifunc.c: Likewise.
18162         * string/test-mempcpy-ifunc.c: Likewise.
18163         * string/test-memset-ifunc.c: Likewise.
18164         * string/test-rawmemchr-ifunc.c: Likewise.
18165         * string/test-stpcpy-ifunc.c: Likewise.
18166         * string/test-stpncpy-ifunc.c: Likewise.
18167         * string/test-strcasecmp-ifunc.c: Likewise.
18168         * string/test-strcasestr-ifunc.c: Likewise.
18169         * string/test-strcat-ifunc.c: Likewise.
18170         * string/test-strchr-ifunc.c: Likewise.
18171         * string/test-strchrnul-ifunc.c: Likewise.
18172         * string/test-strcmp-ifunc.c: Likewise.
18173         * string/test-strcpy-ifunc.c: Likewise.
18174         * string/test-strcspn-ifunc.c: Likewise.
18175         * string/test-strlen-ifunc.c: Likewise.
18176         * string/test-strncasecmp-ifunc.c: Likewise.
18177         * string/test-strncat-ifunc.c: Likewise.
18178         * string/test-strncmp-ifunc.c: Likewise.
18179         * string/test-strncpy-ifunc.c: Likewise.
18180         * string/test-strnlen-ifunc.c: Likewise.
18181         * string/test-strpbrk-ifunc.c: Likewise.
18182         * string/test-strrchr-ifunc.c: Likewise.
18183         * string/test-strspn-ifunc.c: Likewise.
18184         * string/test-strstr-ifunc.c: Likewise.
18185
18186         * debug/Makefile (tests-ifunc): New variable.
18187         (tests): Add $(tests-ifunc).
18188         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
18189         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
18190         * debug/test-stpcpy_chk-ifunc.c: New file.
18191         * debug/test-strcpy_chk-ifunc.c: Likewise.
18192
18193 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
18194
18195         [BZ #13601]
18196         * elf/dl-load.c (open_verify): Retry read if the entire ELF
18197         header is not read in.
18198
18199 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
18200
18201         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
18202         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
18203         directly.  Pass built executable to script as
18204         $(built-program-cmd).
18205         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
18206         $testprogram without using LD_LIBRARY_PATH and $ldso.
18207
18208         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
18209         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
18210         $(rtld-installed-name).
18211         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
18212         (rtld_installed_name): Likewise.
18213         (library_path): Likewise.
18214         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
18215         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
18216         $(run-program-prefix) to tst-tables.sh.
18217         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
18218         it to run tst-table-from and tst-table-to.
18219         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
18220         Pass it to tst-table.sh.
18221         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
18222         $(run-program-prefix) to tst-gettext.sh.
18223         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
18224         tst-translit.sh.
18225         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
18226         tst-gettext2.sh.
18227         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
18228         to run tst-gettext.
18229         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
18230         to run tst-gettext2.
18231         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
18232         to run tst-translit.
18233         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
18234         $(run-program-prefix) to tst-mtrace.sh.
18235         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
18236         to run tst-mtrace.
18237         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
18238         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
18239         $(rtld-installed-name).
18240         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
18241         (rtld_installed_name): Likewise.
18242         (run_program_prefix): New variable.  Use it to run wordexp-test.
18243
18244         * Makeconfig (ARCH): Remove all definitions.
18245         (machine): Likewise.
18246         [ARCH]: Remove conditional code.
18247         [!objdir]: Give error.
18248         [!objdir] (objpfx): Remove.
18249         [!objdir] (common-objpfx): Likewise.
18250         [!objdir] (common-objdir): Likewise.
18251         * configure.in (config_makefile): Remove.  Hardcode Makefile in
18252         AC_CONFIG_FILES call.
18253         * configure: Regenerated.
18254
18255         [BZ #13888]
18256         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
18257         or TMPDIR.
18258         (testout): Likewise.
18259
18260         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
18261         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
18262         $(rtld-installed-name).
18263         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
18264         (rtld_installed_name): Likwise.
18265         (runit): Remove function.
18266         (run_getconf): New variable,  Use it for running getconf binary.
18267
18268 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
18269
18270         [BZ #14716]
18271         * string/test-memmem.c (check_result): New function.
18272         (do_one_test): Use it.
18273         (check1): New function.
18274         (test_main): Use it.
18275
18276 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
18277
18278         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
18279
18280 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
18281
18282         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
18283         (_G_LSEEK64): Likewise.
18284         (_G_MMAP64): Likewise.
18285         (_G_FSTAT64): Likewise.
18286         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
18287         (_G_LSEEK64): Likewise.
18288         (_G_MMAP64): Likewise.
18289         (_G_FSTAT64): Likewise.
18290         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
18291         unconditional.  Call __mmap64 directly.
18292         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
18293         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
18294         __lseek64 directly.
18295         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
18296         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
18297         __mmap64 directly.
18298         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
18299         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18300         __lseek64 directly.
18301         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
18302         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18303         __lseek64 directly.
18304         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
18305         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
18306         __lseek64 directly.
18307         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
18308         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
18309         __fxstat64 directly.
18310         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
18311         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
18312         unconditional.
18313         (freopen64) [!_G_OPEN64]: Remove conditional code.
18314         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
18315         unconditional.
18316         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
18317         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
18318         unconditional.
18319         (ftello64) [!_G_LSEEK64]: Remove conditional code.
18320         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
18321         unconditional.
18322         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18323         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
18324         unconditional.
18325         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
18326         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
18327         unconditional.
18328         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18329         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
18330         unconditional.
18331         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18332         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
18333         unconditional.
18334         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18335
18336 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18337
18338         [BZ #12140]
18339         * manual/memory.texi (Malloc Tunable Parameters): Add note
18340         about free list pointers overwriting some perturb bytes.
18341         Wording suggested by Roland McGrath.
18342
18343 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
18344
18345         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
18346         (lgamma_test): Likewise.
18347         (tgamma_test): Likewise.
18348
18349 2012-10-16  Florian Weimer  <fweimer@redhat.com>
18350
18351         [BZ #14700]
18352         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
18353         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
18354
18355 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
18356
18357         * NEWS: Mention BZ #14716.
18358         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
18359         when removing AVAILABLE1_USES_J macro.
18360
18361 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
18362
18363         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
18364         (__bswap_64): __uint64_t for unsigned 64-bit int.
18365
18366 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
18367
18368         * include/string.h (memmem): Declare libc hidden alias.
18369         * string/memmem.c (memmem): Define libc hidden alias.
18370         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
18371         __read, __close instead of open, read, close.
18372
18373 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
18374
18375         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
18376         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
18377         global and hidden.
18378         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
18379         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
18380         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
18381         Likewise.
18382         (__rawmemchr_sse2): Likewise.
18383         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
18384         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
18385         (__strchr_sse2): Likewise.
18386         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
18387         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
18388         (__strcasecmp_sse2): Likewise.
18389         (__strncasecmp_sse2): Likewise.
18390         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
18391         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
18392         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
18393         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
18394         (__strrchr_sse2): Likewise.
18395         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
18396         ifunc-impl-list.c.
18397         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
18398         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
18399         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
18400         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18401         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
18402         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
18403         * sysdeps/x86_64/multiarch/memset.S: Likewise.
18404         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
18405         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
18406         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
18407         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
18408         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
18409         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
18410         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
18411         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
18412         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
18413         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
18414         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
18415         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
18416         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
18417         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
18418         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
18419         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
18420         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
18421         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
18422         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18423         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18424         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
18425         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
18426         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
18427
18428         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
18429         global and hidden.
18430         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
18431         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
18432         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
18433         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
18434         Likewise.
18435         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
18436         Likewise.
18437         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
18438         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
18439         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
18440         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
18441         ifunc-impl-list.c.
18442         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18443         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18444         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18445         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18446         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18447         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18448         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18449         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18450         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18451         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18452         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18453         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18454         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18455         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
18456         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
18457         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18458         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
18459         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
18460         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18461         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
18462         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18463         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18464         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18465         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18466         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18467         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
18468         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
18469         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
18470         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
18471         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18472         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
18473         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18474         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18475         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
18476         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18477         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18478         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18479         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18480         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18481         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18482         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
18483
18484         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
18485         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
18486         * include/ifunc-impl-list.h: New file.
18487         * misc/ifunc-impl-list.c: Likewise.
18488         * misc/Makefile (routines): Add ifunc-impl-list.
18489         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
18490         * string/test-string.h: Include <ifunc-impl-list.h>.
18491         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
18492         impl_array): New variables.
18493         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
18494         are defined.
18495         (test_init): Call __libc_ifunc_impl_list to initialize
18496         func_list if TEST_IFUNC and TEST_NAME are defined.
18497
18498         * string/Makefile (strop-tests): Add bcopy and bzero.
18499         * string/test-bcopy.c: New file.
18500         * string/test-bzero.c: Likewise.
18501         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
18502         defined.
18503         * string/test-memset.c: Support bzero test if TEST_BZERO is
18504         defined.
18505         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
18506         __libc_memmove.
18507         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
18508         __libc_memset.
18509         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
18510         of memset.
18511
18512 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
18513
18514         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
18515         * configure: Regenerated.
18516
18517         * Makeconfig (+link-static-before-libc): Don't include
18518         $(link-static-libc).
18519
18520         * libio/libio.h (_IO_pos_t): Remove.
18521
18522 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18523
18524         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
18525         McGrath.
18526
18527 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18528
18529         * crypt/crypt-entry.c: Include fips-private.h.
18530         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
18531         * crypt/md5c-test.c (main): Tolerate disabled MD5.
18532         * sysdeps/unix/sysv/linux/fips-private.h: New file.
18533         * sysdeps/generic/fips-private.h: New file, dummy fallback.
18534
18535 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18536
18537         * crypt/crypt-private.h: Include stdbool.h.
18538         (_ufc_setup_salt_r): Return bool.
18539         * crypt/crypt-entry.c: Include errno.h.
18540         (__crypt_r): Return NULL with EINVAL for bad salt.
18541         * crypt/crypt_util.c (bad_for_salt): New.
18542         (_ufc_setup_salt_r): Check that salt is long enough and within
18543         the specified alphabet.
18544         * crypt/badsalttest.c: New file.
18545         * crypt/Makefile (tests): Add it.
18546         ($(objpfx)badsalttest): New.
18547
18548 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
18549
18550         * NEWS: Add entry for BZ #14602.
18551
18552 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18553
18554         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
18555         type-generic.
18556         * math/libm-test.inc: Update comment listing what functions and
18557         macros are tested.
18558         (isgreater_test): New function.
18559         (isgreaterequal_test): Likewise.
18560         (isless_test): Likewise.
18561         (islessequal_test): Likewise.
18562         (islessgreater_test): Likewise.
18563         (isunordered_test): Likewise.
18564         (main): Call the new functions.
18565
18566 2012-10-09  Roland McGrath  <roland@hack.frob.com>
18567
18568         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
18569         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
18570         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
18571         * sysdeps/i386/configure: Regenerated.
18572         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
18573         * sysdeps/mach/configure: Regenerated.
18574         * sysdeps/mach/hurd/configure: Regenerated.
18575         * sysdeps/powerpc/configure: Regenerated.
18576         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18577         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18578         * sysdeps/s390/s390-32/configure: Regenerated.
18579         * sysdeps/s390/s390-64/configure: Regenerated.
18580         * sysdeps/sh/configure: Regenerated.
18581         * sysdeps/sparc/configure: Regenerated.
18582         * sysdeps/unix/sysv/linux/configure: Regenerated.
18583         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
18584         * sysdeps/x86_64/configure: Regenerated.
18585
18586         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
18587         defined.  Don't check if MAP is NULL.
18588
18589 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18590
18591         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
18592         (_G_stat64): Likewise.
18593         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
18594         (_G_stat64): Likewise.
18595         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
18596         instead of struct _G_stat64.
18597         * libio/fileops.c (mmap_remap_check): Likewise.
18598         (decide_maybe_mmap): Likewise.
18599         (_IO_new_file_seekoff): Likewise.
18600         (_IO_file_stat): Likewise.
18601         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
18602         _G_off64_t.
18603         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
18604         instead of struct _G_stat64.
18605         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18606
18607 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18608
18609         [BZ #14602]
18610         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18611         Replace with ...
18612         (CHECK_EOL): New macro.
18613         (two_way_short_needle): Check beginning of haystack for EOL.  Use
18614         CHECK_EOL.
18615         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18616         Replace with CHECK_EOL.
18617         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18618         Replace with CHECK_EOL.
18619
18620 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
18621
18622         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
18623         type-generic.
18624         * math/libm-test.inc: Update comment listing what functions and
18625         macros are tested.
18626         (finite_test): New function.
18627         (isinf_test): Likewise.
18628         (isnan_test): Likewise.
18629         (fpclassify_test): Test subnormal input.
18630         (isfinite_test): Likewise.
18631         (isnormal_test): Likewise.
18632         (main): Call the new functions.
18633
18634 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
18635
18636         [BZ #14660]
18637         * Makerules (%.dynsym): Force C locale when running
18638         $(OBJDUMP) --dynamic-syms.
18639
18640 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
18641
18642         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
18643         <stdint.h>.
18644
18645 2012-10-06  David S. Miller  <davem@davemloft.net>
18646
18647         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
18648         upper 32-bits of the length value in %o2 since we use branch-on-register
18649         tests which consider the entire 64-bit register.
18650
18651 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
18652
18653         * string/test-strstr.c (check2): Add a test for page boundary.
18654
18655 2012-10-05  David S. Miller  <davem@davemloft.net>
18656
18657         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
18658         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
18659         file.
18660         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18661         sysdep_routines.
18662         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18663         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
18664         and bzero when HWCAP_SPARC_CRYPTO is present.
18665
18666 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
18667
18668         [BZ #14602]
18669         * string/test-strstr.c (check2): New function.
18670         (test_main): Call check2.
18671
18672         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
18673         and bug-strchr1.
18674         * string/bug-strcasestr1.c (do_test): Moved to ...
18675         * string/test-strcasestr.c (check1): Here.  New function.
18676         (do_one_test): Break out result checking code into ...
18677         (check_result): This.  New function.
18678         (do_one_test): Call check_result.
18679         (test_main): Call check1.
18680         * string/bug-strchr1.c (do_test): Moved to ...
18681         * string/test-strchr.c (check1): Here.  New function.
18682         (do_one_test): Break out result checking code into ...
18683         (check_result): This.  New function.
18684         (do_one_test): Call check_result.
18685         (test_main): Call check1.
18686         * string/bug-strstr1.c (main): Moved to ...
18687         * string/test-strstr.c (check1): Here.  New function.
18688         (do_one_test): Break out result checking code into ...
18689         (check_result): This.  New function.
18690         (do_one_test): Call check_result.
18691         (test_main): Call check1.
18692         * string/bug-strcasestr1.c: Removed.
18693         * string/bug-strchr1.c: Likewise.
18694         * string/bug-strstr1.c: Likewise.
18695
18696         * elf/Makefile (dl-routines): Add hwcaps.
18697         * elf/dl-support.c (_dl_important_hwcaps): Removed.
18698         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
18699         (_dl_important_hwcaps): Moved to ...
18700         * elf/dl-hwcaps.c: Here.  New file.
18701         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
18702
18703         [BZ #14557]
18704         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
18705         if IS_IN_rtld isn't defined.
18706
18707         * elf/dl-support.c (_dl_sysinfo_map): New.
18708         Include "get-dynamic-info.h" and "setup-vdso.h".
18709         (_dl_non_dynamic_init): Call setup_vdso.
18710         * elf/dynamic-link.h: Don't include <assert.h>.
18711         (elf_get_dynamic_info): Moved to ...
18712         * elf/get-dynamic-info.h: Here.  New file.
18713         * elf/dynamic-link.h: Include "get-dynamic-info.h".
18714         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
18715         * elf/setup-vdso.h: Here.  New file.
18716         * elf/rtld.c: Include "setup-vdso.h".
18717         (dl_main): Call setup_vdso.
18718
18719 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
18720
18721         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
18722         creal in comment listing functions tested.  List finite, isinf,
18723         isnan, isless, islessequal, isgreater, isgreaterequal,
18724         islessgreater, isunordered, lgamma_r and pow10 as functions and
18725         macros not tested.  Mention which functions not tested are aliases
18726         for other functions.  Fix typo.  Note that signs of NaNs are not
18727         tested.
18728
18729         * scripts/config.guess: Update from config.git.
18730         * scripts/config.sub: Likewise.
18731
18732 2012-10-04  Roland McGrath  <roland@hack.frob.com>
18733
18734         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
18735         * misc/madvise.c (madvise): Renamed to __madvise.
18736         Make madvise a weak alias.
18737         * include/sys/mman.h: Declare __madvise.
18738         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
18739         * sysdeps/unix/syscalls.list
18740         (madvise): Make __madvise the strong name, and madvise a weak alias.
18741         * sysdeps/unix/sysv/linux/syscalls.list
18742         (madvise, mmap): Remove redundant entries.
18743         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
18744         * malloc/malloc.c (mtrim): Likewise.
18745         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
18746
18747 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18748
18749         * sysdeps/mach/hurd/dl-cache.c: File removed.
18750         * config.h.in (USE_LDCONFIG): New #undef.
18751         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
18752         * configure: Regenerated.
18753         * elf/Makefile (dl-routines): Add dl-cache only under
18754         [$(use-ldconfig) = yes].
18755         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
18756         cache on [USE_LDCONFIG].
18757         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
18758         [USE_LDCONFIG].
18759         * elf/rtld.c (dl_main): Likewise.
18760
18761 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
18762
18763         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
18764         _SC_LEVEL4_CACHE_LINESIZE.
18765
18766 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18767
18768         * sysdeps/unix/bsd/confstr.h: File removed.
18769
18770 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
18771
18772         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
18773         sys/sdt-config.h.
18774
18775 2012-10-02  Roland McGrath  <roland@hack.frob.com>
18776
18777         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
18778         Make 'mapoff' field ElfW(Off) rather than off_t.
18779
18780 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
18781
18782         * nscd/Makefile: Remove nscd-cflags and all its users.
18783         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
18784         (CFLAGS-nonlib): Add compiler flags for nscd modules.
18785
18786         [BZ #10631]
18787         * malloc.c (malloc_printerr): Clarify error message.
18788
18789 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
18790
18791         [BZ #14648]
18792         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18793         Set bit_FMA_Usable if FMA is supported.
18794         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
18795         macro.
18796         (bit_FMA4_Usable): Updated.
18797         (index_FMA_Usable): New macro.
18798         (CPUID_FMA): Likewise
18799         (HAS_FMA): Defined with bit_FMA_Usable.
18800
18801 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18802
18803         * bits/types.h (__swblk_t): Type removed.
18804         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
18805         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
18806         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18807         (__SWBLK_T_TYPE): Likewise.
18808         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
18809         (__SWBLK_T_TYPE): Likewise.
18810         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18811         (__SWBLK_T_TYPE): Likewise.
18812         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18813         (__SWBLK_T_TYPE): Likewise.
18814
18815 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
18816             Honza Horak <hhorak@redhat.com>
18817
18818         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
18819         (xdr_mapname): Use YPMAXMAP as maxsize.
18820         (xdr_peername): Use YPMAXPEER as maxsize.
18821         (xdr_keydat): Use YPAXRECORD as maxsize.
18822         (xdr_valdat): Use YPMAXRECORD as maxsize.
18823
18824 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18825
18826         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
18827
18828         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
18829         * csu/init-first.c: ... here.
18830         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
18831         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18832         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
18833         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
18834         * sysdeps/i386/init-first.c: File removed.
18835         * sysdeps/sh/init-first.c: File removed.
18836
18837 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
18838
18839         [BZ #14645]
18840         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
18841         if x * y might underflow to zero and z is zero.
18842         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
18843         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18844         * math/libm-test.inc (min_subnorm_value): New variable.
18845         (fma_test): Add more tests.
18846         (fma_test_towardzero): Likewise.
18847         (fma_test_downward): Likewise
18848         (fma_test_upward): Likewise.
18849         (initialize): Set min_subnorm_value.
18850
18851 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
18852
18853         [BZ #14638]
18854         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
18855         0 + 0.
18856         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
18857         mode for addition resulting in exact zero.
18858         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
18859         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
18860         exact 0 + 0.
18861         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
18862         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18863         * math/libm-test.inc (fma_test): Add more tests.
18864         (fma_test_towardzero): New function.
18865         (fma_test_downward): Likewise.
18866         (fma_test_upward): Likewise.
18867         (main): Call the new functions.
18868
18869 2012-09-28  David S. Miller  <davem@davemloft.net>
18870
18871         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
18872
18873 2012-09-28  Roland McGrath  <roland@hack.frob.com>
18874
18875         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
18876         instead of SIGALRM.
18877
18878         * sysdeps/gnu/_G_config.h: Moved to ...
18879         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
18880         * sysdeps/mach/hurd/_G_config.h: Moved to ...
18881         * sysdeps/generic/_G_config.h: ... here.
18882
18883         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
18884
18885         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
18886
18887         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
18888         Conditionalize target on [libnss_test1.so-version].
18889
18890         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
18891
18892         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
18893         (elfobjdir): Move out of conditionals.
18894
18895         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
18896         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
18897         (__nss_lookup_function): Conditionalize label remove_from_tree on
18898         [!DO_STATIC_NSS || SHARED], matching its only use.
18899
18900 2012-09-28  David S. Miller  <davem@davemloft.net>
18901
18902         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
18903         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
18904         file.
18905         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18906         sysdep_routines.
18907         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18908         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
18909         when HWCAP_SPARC_CRYPTO is present.
18910
18911 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18912
18913         * io/tst-mknodat.c: Create a FIFO instead of a socket.
18914
18915 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
18916
18917         [BZ #6530]
18918         * stdio-common/vfprintf.c (process_string_arg): Revert
18919         2000-07-22 change.
18920
18921 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
18922
18923         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
18924         for testcase.
18925         * stdio-common/tst-sprintf.c: Include <locale.h>
18926         (main): Test sprintf's handling of incomplete multibyte
18927         characters.
18928
18929 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
18930
18931         * elf/dl-runtime.c (VERSYMIDX): Removed.
18932         * elf/dl-version.c (VERSYMIDX): Likewise.
18933         * elf/do-rel.h (VERSYMIDX): Likewise.
18934         (VALIDX): Likewise.
18935         * elf/dynamic-link.h (VERSYMIDX): Likewise.
18936         * elf/rtld.c (VALIDX): Likewise.
18937         (ADDRIDX): Likewise.
18938         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
18939         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
18940         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
18941         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
18942         (VALIDX): Likewise.
18943         (ADDRIDX): Likewise.
18944
18945 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18946
18947         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
18948
18949 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
18950
18951         [BZ #11438]
18952         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
18953         to global scope.
18954         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
18955         addresses are in the same scope as 192.0.2/24.
18956         * posix/gai.conf: Document new scope table defaults.
18957
18958 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18959
18960         [BZ #5298]
18961         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
18962         for ftell.  Compute offsets from write pointers instead.
18963         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18964
18965 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18966
18967         [BZ #14543]
18968         * libio/Makefile (tests): New test case tst-fseek.
18969         * libio/tst-fseek.c: New test case to verify that fseek/ftell
18970         combination works in wide mode.
18971         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
18972         state when the external buffer state changes.
18973
18974 2012-09-27  David S. Miller  <davem@davemloft.net>
18975
18976         [BZ #14376]
18977         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
18978         pass reloc->r_addend in as the 'high' argument to
18979         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
18980
18981         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18982
18983 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18984
18985         * rt/tst-aio2.c: Include <pthread.h>.
18986         * rt/tst-aio3.c: Likewise.
18987
18988 2012-09-27  Steve Ellcey  <sellcey@mips.com>
18989
18990         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
18991
18992 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
18993
18994         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
18995         contents on [SHARED].
18996
18997 2012-09-26  Marek Polacek  <polacek@redhat.com>
18998
18999         [BZ #14530]
19000         [BZ #13741]
19001         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
19002         for C++ and GCC <4.3 as well as for non GCC compilers.
19003
19004 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19005
19006         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19007
19008 2012-09-25  Roland McGrath  <roland@hack.frob.com>
19009
19010         * Makefile.in (all, install): Declare with .PHONY.
19011         Reported by Michael Hope <michael.hope@linaro.org>.
19012
19013 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19014
19015         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
19016         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
19017         system header.
19018         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
19019         Likewise.
19020         (sydep_routines): Add the new and the internal functions.
19021         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
19022         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
19023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
19024         (GLIBC_2.17): Add the new function.
19025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
19026         (GLIBC_2.17): Likewise.
19027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
19028         (GLIBC_2.17): Likewise.
19029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
19030         (GLIBC_2.17): Likewise.
19031         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
19032
19033 2012-09-25  Alan Modra  <amodra@gmail.com>
19034
19035         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
19036         Add release barrier before setting once_control to say
19037         initialisation is done.  Add hints on lwarx.  Use macro in
19038         place of isync.
19039         (clear_once_control): Add release barrier.
19040
19041 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19042
19043         [BZ #13629]
19044         * math/s_clog.c (__clog): Handle more values close to |z| = 1
19045         specially.
19046         * math/s_clog10.c (__clog10): Likewise.
19047         * math/s_clog10f.c (__clog10f): Likewise.
19048         * math/s_clog10l.c (__clog10l): Likewise.
19049         * math/s_clogf.c (__clogf): Likewise.
19050         * math/s_clogl.c (__clogl): Likewise.
19051         * math/Makefile (libm-calls): Add x2y2m1.
19052         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
19053         (__x2y2m1): Likewise.
19054         (__x2y2m1l): Likewise.
19055         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
19056         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
19057         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
19058         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
19059         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
19060         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
19061         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
19062         * sysdeps/i386/fpu/libm-test-ulps: Update.
19063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19064
19065         [BZ #14621]
19066         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
19067         int as type of variable DEPTH.
19068         (glob): Use size_t instead of int as type of variables NEWCOUNT
19069         and OLD_PATHC.
19070
19071 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19072
19073         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19074         Add s_sincosf-sse2.
19075         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
19076         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
19077         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
19078         macros for using routine as __sincosf_ia32.
19079         Use macro for function declaration and weak_alias.
19080         * sysdeps/i386/fpu/libm-test-ulps: Update.
19081
19082         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
19083         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19084
19085         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
19086         subnormal argument.
19087         * math/s_cexpf.c (__cexpf): Likewise.
19088         * math/s_csinf.c (__csinf): Likewise.
19089         * math/s_csinhf.c (__csinhf): Likewise.
19090         * math/s_ctanf.c (__ctanf): Likewise.
19091         * math/s_ctanhf.c (__ctanhf): Likewise.
19092         * math/s_ccosh.c (__ccoshf): Likewise.
19093         * math/s_cexp.c (__cexpl): Likewise.
19094         * math/s_csin.c (__csin): Likewise.
19095         * math/s_csinh.c (__csinh): Likewise.
19096         * math/s_ctan.c (__ctan): Likewise.
19097         * math/s_ctanh.c (ctanh): Likewise.
19098         * math/s_ccoshl.c (__ccoshl): Likewise.
19099         * math/s_cexpl.c (__cexpl): Likewise.
19100         * math/s_csinl.c (__csinl): Likewise.
19101         * math/s_csinhl.c (__csinhl): Likewise.
19102         * math/s_ctanl.c (__ctanl): Likewise.
19103         * math/s_ctanhl.c (__ctanhl): Likewise.
19104
19105 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19106
19107         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
19108         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
19109         (_IO_off_t): Define to __off_t, not _G_off_t.
19110         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
19111         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
19112         (_IO_wint_t): Define to wint_t, not _G_wint_t.
19113         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
19114         type of __dummy and __dummy2 fields.
19115         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
19116         (_G_ssize_t): Likewise.
19117         (_G_off_t): Likewise.
19118         (_G_pid_t): Likewise.
19119         (_G_uid_t): Likewise.
19120         (_G_wchar_t): Likewise.
19121         (_G_wint_t): Likewise.
19122         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
19123         (_G_ssize_t): Likewise.
19124         (_G_off_t): Likewise.
19125         (_G_pid_t): Likewise.
19126         (_G_uid_t): Likewise.
19127         (_G_wchar_t): Likewise.
19128         (_G_wint_t): Likewise.
19129         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
19130         (_G_ssize_t): Likewise.
19131         (_G_off_t): Likewise.
19132         (_G_pid_t): Likewise.
19133         (_G_uid_t): Likewise.
19134         (_G_wchar_t): Likewise.
19135         (_G_wint_t): Likewise.
19136
19137 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19138
19139         * malloc/arena.c: Include malloc-sysdep.h.
19140         (shrink_heap): Use check_may_shrink_heap to decide if madvise
19141         is sufficient to shrink the heap or an unmap is needed.
19142         * sysdeps/generic/malloc-sysdep.h: New file.  Define
19143         new function check_may_shrink_heap.
19144         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
19145         new function check_may_shrink_heap.
19146
19147 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19148
19149         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
19150         comments.
19151
19152 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
19153
19154         * catgets/test-gencat.sh: Add "set -e".
19155         * elf/tst-pathopt.sh: Likewise.
19156         * grp/tst_fgetgrent.sh: Likewise.
19157         * iconvdata/run-iconv-test.sh: Likewise.
19158         * intl/tst-gettext.sh: Likewise.
19159         * intl/tst-gettext2.sh: Likewise.
19160         * intl/tst-gettext4.sh: Likewise.
19161         * intl/tst-gettext6.sh: Likewise.
19162         * intl/tst-translit.sh: Likewise.
19163         * io/ftwtest-sh: Likewise.
19164         * libio/test-freopen.sh: Likewise.
19165         * malloc/tst-mtrace.sh: Likewise.
19166         * posix/globtest.sh: Likewise.
19167         * posix/tst-getconf.sh: Likewise.
19168         * posix/wordexp-tst.sh: Likewise.
19169         * stdio-common/tst-printf.sh: Likewise.
19170         * stdio-common/tst-unbputc.sh: Likewise.
19171         * stdlib/tst-fmtmsg.sh: Likewise.
19172         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19173         * catgets/Makefile: Do not specify -e option when running
19174         testsuite shell scripts.
19175         * elf/Makefile: Likewise.
19176         * grp/Makefile: Likewise.
19177         * iconvdata/Makefile: Likewise.
19178         * intl/Makefile: Likewise.
19179         * io/Makefile: Likewise.
19180         * libio/Makefile: Likewise.
19181         * malloc/Makefile: Likewise.
19182         * posix/Makefile: Likewise.
19183         * stdio-common/Makefile: Likewise.
19184         * stdlib/Makefile: Likewise.
19185         * sysdeps/x86_64/Makefile: Likewise.
19186
19187         * io/ftwtest-sh: Add copyright header.
19188         * posix/globtest.sh: Likewise.
19189         * posix/tst-getconf.sh: Likewise.
19190         * posix/wordexp-tst.sh: Likewise.
19191         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19192
19193 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
19194
19195         [BZ #13679]
19196         * Makeconfig (+link): Defined as $(+link-static) if
19197         $(build-shared) isn't yes.
19198         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
19199         isn't yes.
19200         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
19201
19202         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
19203
19204         [BZ #14562]
19205         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
19206         new chunk size with MALLOC_ALIGN_MASK.
19207
19208 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
19209
19210         [BZ #5044]
19211         * stdio-common/printf_fphex.c: Include <stdbool.h> and
19212         <rounding-mode.h>.
19213         (__printf_fphex): Determine rounding using get_rounding_mode and
19214         round_away.
19215         * stdio-common/tst-printf-round.c (struct hex_test): New
19216         structure.
19217         (hex_tests): New variable.
19218         (test_hex_in_one_mode): New function.
19219         (do_test): Also run tests for hex float output.
19220
19221 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
19222
19223         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19224         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19225         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
19226         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19227         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19228         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
19229         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19230         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19231
19232 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
19233
19234         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
19235         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
19236         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
19237         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
19238
19239 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
19240
19241         [BZ #14579]
19242         * elf/rtld.c (dl_main): Limit the check for self loading to normal
19243         mode only.
19244         * elf/tst-rtld-load-self.sh: New test.
19245         * elf/Makefile: Run it.
19246
19247 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
19248
19249         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
19250         (tst-writev-ENV): Remove.
19251         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
19252
19253 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
19254
19255         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
19256
19257 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
19258
19259         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
19260         unconditional.
19261         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
19262         Likewise.
19263         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
19264         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
19265         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
19266         Likewise.
19267
19268 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
19269
19270         [BZ #14587]
19271         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
19272         * config.make.in (have-cpp-asm-debuginfo): Removed.
19273         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
19274         * configure: Regenerated.
19275
19276 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
19277
19278         [BZ #5044]
19279         * stdio-common/printf_fp.c: Include <stdbool.h> and
19280         <rounding-mode.h>.
19281         (___printf_fp): Determine rounding using get_rounding_mode and
19282         round_away.
19283         * stdio-common/tst-printf-round.c: New file.
19284         * stdio-common/Makefile (tests): Add tst-printf-round.
19285         (link-libm): New variable.
19286         ($(objpfx)tst-printf-round): Depend in $(link-libm).
19287
19288 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
19289
19290         [BZ #14576]
19291         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
19292         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
19293         Likewise.
19294         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
19295         Likewise.
19296
19297 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
19298
19299         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
19300         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19301         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19302         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19303
19304 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
19305
19306         [BZ #14518]
19307         * include/rounding-mode.h: New file.
19308         * sysdeps/generic/get-rounding-mode.h: Likewise.
19309         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
19310         * stdlib/strtod_l.c: Include <rounding-mode.h>.
19311         (MAX_VALUE): New macro.
19312         (MIN_VALUE): Likewise.
19313         (overflow_value): New function.
19314         (underflow_value): Likewise.
19315         (round_and_return): Use overflow_value and underflow_value to
19316         determine return values in overflow and underflow cases.  Use
19317         round_away to determine rounding depending on rounding mode.
19318         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
19319         determine return values in overflow and underflow cases.
19320         * stdlib/tst-strtod-round.c: Include <fenv.h>.
19321         (struct test_results): New structure.
19322         (struct test): Use struct test_results to store expected results
19323         for all rounding modes.
19324         (TEST): Include expected results for all rounding modes.
19325         (test_in_one_mode): New function.
19326         (do_test): Use test_in_one_mode to compute and check results.
19327         Check results for all rounding modes.
19328         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
19329         $(link-libm).
19330
19331 2012-12-09  Allan McRae  <allan@archlinux.org>
19332
19333         * sysdeps/i386/fpu/libm-test-ulps: Update
19334
19335 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
19336
19337         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
19338         (_G_int32_t): Likewise.
19339         (_G_uint16_t): Likewise.
19340         (_G_uint32_t): Likewise.
19341         (_G_HAVE_BOOL): Likewise.
19342         (_G_HAVE_ATEXIT): Likewise.
19343         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19344         (_G_HAVE_IO_FILE_OPEN): Likewise.
19345         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
19346         (_G_int32_t): Likewise.
19347         (_G_uint16_t): Likewise.
19348         (_G_uint32_t): Likewise.
19349         (_G_HAVE_BOOL): Likewise.
19350         (_G_HAVE_ATEXIT): Likewise.
19351         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19352         (_G_HAVE_IO_FILE_OPEN): Likewise.
19353         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
19354         (_G_int32_t): Likewise.
19355         (_G_uint16_t): Likewise.
19356         (_G_uint32_t): Likewise.
19357         (_G_HAVE_BOOL): Likewise.
19358         (_G_HAVE_ATEXIT): Likewise.
19359         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19360         (_G_HAVE_IO_FILE_OPEN): Likewise.
19361
19362 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
19363
19364         * csu/libc-tls.c: Update copyright years.
19365
19366 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
19367
19368         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
19369         [!_G_USING_THUNKS]: Remove conditional code.
19370         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
19371         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
19372
19373         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
19374         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
19375         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19376         (_G_VTABLE_LABEL_PREFIX): Likewise.
19377         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19378         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19379         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19380         (_G_VTABLE_LABEL_PREFIX): Likewise.
19381         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19382         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19383         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19384         (_G_VTABLE_LABEL_PREFIX): Likewise.
19385         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19386
19387 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
19388
19389         * libio/Makefile: Include ../Makeconfig before tests.
19390         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
19391         only if $(build-shared) is yes.
19392
19393         * iconv/gconv_db.c: Update copyright years.
19394
19395 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19396
19397         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
19398         unwind info if defined PIC. Fix special cases description.
19399         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
19400
19401         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
19402         DP_HI_MASK entry.
19403         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
19404
19405 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
19406
19407         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
19408
19409         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
19410         is NULL.
19411
19412         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
19413         (LDLIBS-tst-chk4): This.
19414         (LDFLAGS-tst-chk5): Renamed to ...
19415         (LDLIBS-tst-chk5): This.
19416         (LDFLAGS-tst-chk6): Renamed to ...
19417         (LDLIBS-tst-chk6): This.
19418         (LDFLAGS-tst-lfschk4): Renamed to ...
19419         (LDLIBS-tst-lfschk4): This.
19420         (LDFLAGS-tst-lfschk5): Renamed to ...
19421         (LDLIBS-tst-lfschk5): This.
19422         (LDFLAGS-tst-lfschk6): Renamed to ...
19423         (LDLIBS-tst-lfschk6): This.
19424
19425         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
19426         on $(common-objpfx)soversions.mk.
19427
19428 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
19429
19430         [BZ #10014]
19431         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
19432         example host name.
19433
19434 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
19435
19436         * malloc/arena.c (arena_get_retry): New function that gets
19437         another arena for the caller to try its request on.
19438         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
19439         current arena cannot fulfill the request.
19440         (__libc_memalign): Likewise.
19441         (__libc_memalign): Likewise.
19442         (__libc_pvalloc): Likewise.
19443         (__libc_calloc): Likewise.
19444
19445 2012-09-05  John Tobey  <john.tobey@gmail.com>
19446
19447         [BZ #13542]
19448         * manual/arith.texi (Operations on Complex): Fix description
19449         of carg branch cut.
19450
19451 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19452
19453         [BZ #10014]
19454         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
19455         host name.
19456
19457         [BZ #10038]
19458         * manual/memory.texi (Memory): Make order of menu items match
19459         order of sections.
19460
19461 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19462
19463         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
19464         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
19465         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
19466
19467 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19468
19469         * csu/libc-tls.c (static_dtv): Renamed to ...
19470         (_dl_static_dtv): This.  Make it global.
19471         (_dl_initial_dtv): Removed.
19472         (__libc_setup_tls): Updated.
19473         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
19474         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
19475         DL_INITIAL_DTV.
19476
19477 2012-09-06  Petr Machata  <pmachata@redhat.com>
19478
19479         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
19480         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
19481         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
19482         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
19483
19484 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19485
19486         [BZ #14545]
19487         * csu/libc-tls.c (_dl_initial_dtv): New variable.
19488         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
19489         freeing dtv[-1].
19490
19491 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19492
19493         [BZ #14544]
19494         * Makeconfig (link-static-before-libc): Replace $(+prector)
19495         with $(+prectorT).
19496         (link-static-after-libc): Replace $(+postctor) with
19497         $(+postctorT).
19498         (link-bounded): Replace $(+prector)/$(+postctor) with
19499         $(+prectorT)/$(+postctorT).
19500         (+prectorT): New macro.
19501         (+postctorT): Likewise.
19502
19503 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19504
19505         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
19506         (round_str): Handle values above the maximum for IBM long double
19507         as inexact.
19508         * stdlib/tst-strtod-round.c (tests): Regenerated.
19509
19510 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19511
19512         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
19513         assembler flag.
19514         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
19515         zarch_nohighgprs around the zarch optimized routines.
19516         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
19517         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
19518         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
19519         for zarch.
19520
19521 2012-09-05  David S. Miller  <davem@davemloft.net>
19522
19523         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19524
19525         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
19526         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
19527         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
19528         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
19529         entries.
19530
19531 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19532
19533         * malloc/arena.c: Fold copyright years.
19534         * malloc/mcheck.c, malloc/memusage.c: Likewise.
19535
19536 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19537
19538         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
19539
19540 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19541
19542         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
19543
19544 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19545
19546         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
19547         change internal state upon failure.
19548
19549 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19550
19551         * malloc/mcheck.c (mcheck_check_all): Fix typo.
19552         * malloc/memusage.c (mmap): Likewise.
19553         (mmap64, mremap): Likewise.  Adjust name in comment.
19554
19555 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19556
19557         * libio/fileops.c: Fix typos in comments.
19558         * libio/oldfileops.c: Likewise.
19559         * libio/wfileops.c: Likewise.
19560
19561 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19562
19563         [BZ #1349]
19564         * malloc/Makefile (tests): Add tst-malloc-usable test case.
19565         (tst-malloc-usable-ENV): Set environment for test case.
19566         * malloc/hooks.c (malloc_check_get_size): New function to get
19567         requested size.
19568         * malloc/malloc.c (musable): Use malloc_check_get_size.
19569         * malloc/tst-malloc-usable.c: New test case.
19570
19571 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19572
19573         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
19574
19575 2012-09-05  Allan McRae  <allan@archlinux.org>
19576
19577         [BZ #13966]
19578         * configure.in (CXX_SYSINCLUDES): Use compiler output to
19579         determine header location.
19580         * configure: Regenerated.
19581
19582 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19583
19584         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
19585         float format.
19586         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
19587         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
19588         format.
19589         (test): Regenerate.
19590
19591 2012-09-04  David S. Miller  <davem@davemloft.net>
19592
19593         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
19594         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
19595         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
19596
19597 2012-09-04  Florian Weimer  <fweimer@redhat.com>
19598
19599         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
19600         failures.
19601
19602         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
19603
19604 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
19605
19606         [BZ #9914]
19607         * libio/iogetdelim.c: Include <limits.h>.
19608         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
19609         + len + 1 would overflow.
19610
19611 2012-09-03  Andreas Jaeger  <aj@suse.de>
19612
19613         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19614         * sysdeps/i386/fpu/libm-test-ulps: Update.
19615
19616 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19617
19618         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19619         Add s_sinf-sse2, s_conf-sse2.
19620
19621         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
19622         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
19623         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
19624         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
19625
19626         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
19627         for using routine as __sinf_ia32.
19628         Use macro for function declaration and weak_alias.
19629         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
19630         for using routine as __cosf_ia32.
19631         Use macro for function declaration and weak_alias.
19632
19633         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
19634         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
19635
19636         * sysdeps/x86_64/fpu/s_sinf.S: New file.
19637         * sysdeps/x86_64/fpu/s_cosf.S: New file.
19638         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19639
19640         * math/libm-test.inc (cos_test): Add more test cases.
19641         (sin_test): Likewise.
19642         (sincos_test): Likewise.
19643
19644 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19645
19646         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
19647         (IFUNC_RESOLVE): Make pointers to the specialized implementations
19648         hidden.
19649         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
19650
19651 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
19652
19653         [BZ #14538]
19654         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
19655         first element of the GOT.
19656         (elf_machine_load_address): Return the difference between
19657         the runtime address of _DYNAMIC and elf_machine_dynamic ().
19658
19659 2012-09-01  Allan McRae  <allan@archlinux.org>
19660
19661         [BZ #13412]
19662         * configure.in (AWK): Require gawk version 3.0 or later.
19663         * configure: Regenerated.
19664
19665 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
19666
19667         * sysdeps/unix/sysv/linux/kernel-features.h
19668         (__ASSUME_POSIX_CPU_TIMERS): Remove.
19669         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19670         [__NR_clock_getres]: Make code unconditional.
19671         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
19672         (clock_getcpuclockid): Remove code left unreachable by removal of
19673         conditionals.
19674         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
19675         code unconditional.
19676         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19677         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19678         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
19679         Make code unconditional.
19680         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19681         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19682         * sysdeps/unix/sysv/linux/clock_settime.c
19683         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
19684         conditional code.
19685         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
19686         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19687
19688 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
19689
19690         [BZ #14476]
19691         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
19692         scripts/test-installation.pl.
19693
19694         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
19695         and $ld_so_version if it is set.
19696
19697 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19698
19699         [BZ #14516]
19700         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
19701         failure if reading from procfs failed.
19702         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
19703
19704 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19705
19706         * sysdeps/unix/sysv/linux/kernel-features.h
19707         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
19708         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19709         Remove conditional code.
19710         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19711         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
19712         Remove conditional code.
19713         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19714         * sysdeps/unix/sysv/linux/i386/fxstat.c
19715         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19716         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19717         * sysdeps/unix/sysv/linux/i386/fxstatat.c
19718         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19719         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19720         * sysdeps/unix/sysv/linux/i386/lxstat.c
19721         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19722         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19723         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
19724         Remove conditional code.
19725         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19726         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19727         Remove conditional code.
19728         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19729         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
19730         <kernel-features.h>.
19731         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
19732         Remove.
19733         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
19734         Remove conditional code.
19735         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19736         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
19737         Remove conditional.
19738
19739 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
19740
19741         [BZ #5400]
19742         * NEWS: Add fixed bug number.
19743
19744 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19745
19746         [BZ #14519]
19747         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
19748         underflowing exponent in case of negative sign.
19749         * stdlib/tst-strtod-round-data: Add more tests.
19750         * stdlib/tst-strtod-round.c (tests): Regenerated.
19751
19752         [BZ #3479]
19753         * stdlib/strtod_l.c (NDIG): Remove.
19754         (HEXNDIG): Likewise.
19755         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
19756         smallest representable value.
19757         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
19758         lie within an exact representation of 1/2 ulp of the result.
19759         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
19760         unconditionally.
19761         (TENS_P9_IDX): Define unconditionally.
19762         (TENS_P9_SIZE): Likewise.
19763         (TENS_P10_IDX): Likewise.
19764         (TENS_P10_SIZE): Likewise.
19765         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
19766         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
19767         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
19768         entries for 10^2^13 and 10^2^14.
19769         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
19770         (TENS_P13_IDX): Define.
19771         (TENS_P13_SIZE): Likewise.
19772         (TENS_P14_IDX): Likewise.
19773         (TENS_P14_SIZE): Likewise.
19774         (_fpioconst_pow10): Change array size to
19775         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
19776         unconditional.
19777         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
19778         1024]: Add entries for 10^2^13 and 10^2^14.
19779         [LAST_POW10 > _LAST_POW10]: Remove #error.
19780         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
19781         (_fpioconst_pow10): Change array size to
19782         FPIOCONST_POW10_ARRAY_SIZE.
19783         * stdlib/gen-fpioconst.c: New file.
19784         * stdlib/gen-tst-strtod-round.c: Likewise.
19785         * stdlib/tst-strtod-round-data: Likewise.
19786         * stdlib/tst-strtod-round.c: Likewise.
19787         * stdlib/Makefile (tests): Add tst-strtod-round.
19788
19789         [BZ #14459]
19790         * stdlib/strtod_l.c: Include <stdint.h>.
19791         (NDEBUG): Do not define.
19792         (round_and_return): Change EXPONENT parameter to type intmax_t.
19793         Rearrange calculations to avoid internal overflow possibilities.
19794         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
19795         Rearrange calculations to avoid internal overflow possibilities.
19796         Assert that number fits inside MPNSIZE limbs.
19797         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
19798         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
19799         calculations and add assertions to avoid internal overflow
19800         possibilities.  Add casts to avoid signed/unsigned operations.
19801         * stdlib/tst-strtod-overflow.c: New file.
19802         * stdlib/Makefile (tests): Add tst-strtod-overflow.
19803
19804 2012-08-25  Marek Polacek  <polacek@redhat.com>
19805
19806         * time/time.h: Fix some typos in comments.
19807
19808 2012-08-23  Roland McGrath  <roland@hack.frob.com>
19809
19810         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
19811         * posix/tst-rfc3484-2.c: Likewise.
19812         * posix/tst-rfc3484-3.c: Likewise.
19813
19814 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
19815
19816         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
19817         (EF_ARM_ABI_FLOAT_HARD): Likewise.
19818
19819 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
19820
19821         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
19822         #include of fxstatat64.c.
19823
19824 2012-08-22  Roland McGrath  <roland@hack.frob.com>
19825
19826         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
19827         * shadow/getspent_r.c: Likewise.
19828         * shadow/getspnam.c: Likewise.
19829         * shadow/getspnam_r.c: Likewise.
19830         * gshadow/getsgent.c: Likewise.
19831         * gshadow/getsgent_r.c: Likewise.
19832         * gshadow/getsgnam.c: Likewise.
19833         * gshadow/getsgnam_r.c: Likewise.
19834         * inet/getnetbyad.c: Likewise.
19835         * inet/getnetbyad_r.c: Likewise.
19836         * inet/getnetbynm.c: Likewise.
19837         * inet/getnetbynm_r.c: Likewise.
19838         * inet/getnetent.c: Likewise.
19839         * inet/getnetent_r.c: Likewise.
19840         * inet/getproto.c: Likewise.
19841         * inet/getproto_r.c: Likewise.
19842         * inet/getprtent.c: Likewise.
19843         * inet/getprtent_r.c: Likewise.
19844         * inet/getprtname.c: Likewise.
19845         * inet/getprtname_r.c: Likewise.
19846         * inet/getrpcbyname.c: Likewise.
19847         * inet/getrpcbyname_r.c: Likewise.
19848         * inet/getrpcbynumber.c: Likewise.
19849         * inet/getrpcbynumber_r.c: Likewise.
19850         * inet/getrpcent.c: Likewise.
19851         * inet/getrpcent_r.c: Likewise.
19852         * inet/getaliasent.c: Likewise.
19853         * inet/getaliasent_r.c: Likewise.
19854         * inet/getaliasname.c: Likewise.
19855         * inet/getaliasname_r.c: Likewise.
19856         * nscd/getgrgid_r.c: Likewise.
19857         * nscd/getgrnam_r.c: Likewise.
19858         * nscd/gethstbyad_r.c: Likewise.
19859         * nscd/gethstbynm3_r.c: Likewise.
19860         * nscd/getpwnam_r.c: Likewise.
19861         * nscd/getpwuid_r.c: Likewise.
19862         * nscd/getsrvbynm_r.c: Likewise.
19863         * nscd/getsrvbypt_r.c: Likewise.
19864         * nscd/gai.c: Likewise.
19865
19866         * configure.in (build_nscd): New substituted variable, set
19867         by --disable-build-nscd and defaults to $use_nscd.
19868         * configure: Regenerated.
19869         * config.make.in (build-nscd): New substituted variable.
19870         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
19871         Change conditional to require [$(build-nscd) = yes] as well.
19872         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
19873
19874         [BZ# 13696]
19875         * configure.in (use_nscd): New substituted variable, set by
19876         --disable-nscd.  If enabled, define USE_NSCD.
19877         * configure: Regenerated.
19878         * config.h.in: Add USE_NSCD.
19879         * config.make.in (use-nscd): New substituted variable.
19880         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19881         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
19882         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
19883         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
19884         (CFLAGS-getgrnam_r.c): Likewise.
19885         (CFLAGS-initgroups.c): Likewise.
19886         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
19887         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
19888         Variables removed.
19889         * inet/getnetgrent_r.c
19890         (nscd_setnetgrent): New function, broken out of ...
19891         (setnetgrent): ... here.  Call it.
19892         (innetgr): Conditionalize nscd bits on [USE_NSCD].
19893         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
19894         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
19895         * nscd/Makefile (routines, aux): Move definitions after include of
19896         Makeconfig.  Conditionalize on [$(use-nscd) != no].
19897         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
19898         Conditionalize on [USE_NSCD].
19899         (is_nscd, nscd_init_cb): Likewise.
19900         (nss_load_library): Conditionalize init callback on [USE_NSCD].
19901         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
19902         * nss/nss_db/db-init.c: Likewise.
19903         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
19904         [USE_NSCD].
19905         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
19906         (make_request): Use it.
19907         (cache_valid_p): New function.
19908         (__check_pf): Use it.
19909         * NEWS: Add item for --disable-nscd.
19910
19911 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
19912
19913         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
19914         to support sed >= 4.2.1-20-ga9bf076.
19915         * configure: Regenerated.
19916
19917 2012-08-22  Roland McGrath  <roland@hack.frob.com>
19918
19919         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
19920         Conditionalize whole body on [IREL].
19921
19922 2012-08-22  Jeff Law <law@redhat.com>
19923
19924         [BZ #14505]
19925         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
19926         if the family is PF_UNSPEC.
19927
19928 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
19929
19930         * Makerules (lib-version): Rename from V.
19931         (install-lib-nosubdir): Change V to lib-version.
19932
19933 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
19934
19935         [BZ #14252]
19936         * powerpc32/power6/wcschr.c: New file.
19937         * powerpc32/power6/wcscpy.c: New file.
19938         * powerpc32/power6/wcsrchr.c: New file.
19939         * powerpc64/power6/wcschr.c: New file.
19940         * powerpc64/power6/wcscpy.c: New file.
19941         * powerpc64/power6/wcsrchr.c: New file.
19942
19943 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
19944
19945         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
19946         (two_way_short_needle): Use it.
19947         * string/strstr.c (AVAILABLE1_USES_J): Define.
19948         * string/strcasestr.c: Likewise.
19949
19950         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
19951         array references.
19952         * string/strcasestr.c (TOLOWER): Make side-effect safe.
19953
19954         [BZ #11607]
19955         * NEWS: Add an entry.
19956         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
19957         define their defaults.
19958         (two_way_short_needle): Detect end-of-string on-the-fly.
19959         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
19960         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
19961         * string/bug-strcasestr1.c: New test.
19962         * string/Makefile: Run it.
19963
19964 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
19965
19966         [BZ #11607]
19967         * string/str-two-way.h (two_way_short_needle): Optimize matching of
19968         the first character.
19969
19970 2012-08-21  Roland McGrath  <roland@hack.frob.com>
19971
19972         * csu/elf-init.c (__libc_csu_irel): Function removed.
19973         * csu/libc-start.c (apply_irel): New function.
19974         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
19975
19976 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
19977
19978         * sysdeps/unix/sysv/linux/kernel-features.h
19979         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
19980         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
19981         <kernel-features.h>.
19982         [__NR_fadvise64_64]: Make code unconditional.
19983         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
19984         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
19985         !__NR_fadvise64_64)]: Likewise.
19986         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
19987         !__NR_fadvise64_64))]: Likewise.
19988         [__NR_fadvise64]: Make code unconditional.
19989         [!__NR_fadvise64]: Remove conditional code.
19990         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
19991         <kernel-features.h>.
19992         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19993         unconditional.
19994         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19995         conditional code.
19996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
19997         not include <kernel-features.h>.
19998         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19999         unconditional.
20000         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20001         conditional code.
20002         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
20003         include <kernel-features.h>.
20004         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20005         unconditional.
20006         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20007         conditional code.
20008
20009 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
20010
20011         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
20012         slight instruction rearrangements per scrollpipe analysis.
20013         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
20014
20015 2012-08-20  Roland McGrath  <roland@hack.frob.com>
20016
20017         * manual/syslog.texi (syslog; vsyslog, closelog):
20018         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
20019         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
20020
20021         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
20022         DSOCAPS to match condition on defining it.
20023
20024 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
20025
20026         * sysdeps/unix/sysv/linux/kernel-features.h
20027         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
20028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
20029         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20030         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
20032         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20033         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
20035         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20036         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20037
20038         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
20039         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
20040
20041         * sysdeps/unix/sysv/linux/kernel-features.h
20042         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
20043         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
20044         unconditional.
20045         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20046         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
20047         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20048         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20049         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
20050         Make code unconditional.
20051         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20052         (__mmap64) [!__NR_mmap2]: Likewise.
20053         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
20054         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20055         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20056         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
20057         [__NR_mmap2]: Make code unconditional.
20058         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20059         (__mmap64) [!__NR_mmap2]: Likewise.
20060
20061 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20062
20063         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
20064
20065 2012-08-18  Andreas Jaeger  <aj@suse.de>
20066
20067         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
20068
20069 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20070
20071         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
20072         * include/unistd.h (__have_sock_cloexec): Likewise.
20073         (__have_pipe2): Likewise.
20074         (__have_dup3): Likewise.
20075
20076 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20077
20078         [BZ #9685]
20079         * include/unistd.h (__have_pipe2): Change define into an extern int.
20080         (__have_dup3): Likewise.
20081         * socket/have_sock_cloexec.c: Include fcntl.h.
20082         (__have_pipe2): New variable.
20083         (__have_dup3): Likewise.
20084
20085 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
20086
20087         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
20088
20089 2012-08-17  Marek Polacek  <polacek@redhat.com>
20090
20091         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
20092         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
20093
20094 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20095
20096         * configure.in: Add AC_SUBST for sysheaders.
20097         * configure: Regenerated.
20098         * config.make.in (sysheaders): New substituted variable.
20099
20100         * sysdeps/unix/mkfifo.c: Moved ...
20101         * sysdeps/posix/mkfifo.c: ... here.
20102         * sysdeps/unix/mkfifoat.c: Moved ...
20103         * sysdeps/posix/mkfifoat.c: ... here.
20104
20105         * sysdeps/unix/utime.c: Moved ...
20106         * sysdeps/posix/utime.c: ... here.
20107
20108         * sysdeps/unix/time.c: Moved ...
20109         * sysdeps/posix/time.c: ... here.
20110         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
20111         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
20112
20113         * sysdeps/unix/nice.c: Moved ...
20114         * sysdeps/posix/nice.c: ... here.
20115
20116         * sysdeps/unix/alarm.c: Moved ...
20117         * sysdeps/posix/alarm.c: ... here.
20118
20119         * intl/Makefile ($(codeset_mo)): Depend on the input file.
20120
20121 2012-08-17  Jeff Law <law@redhat.com>
20122
20123         * intl/Makefile (codeset_mo): New variable.
20124         ($(codeset_mo)): New target.
20125         (tst-codeset.out): Depend on that.  Remove explicit rule.
20126         (tst-gettext3.out, tst-gettext5.out): Likewise.
20127         (LOCPATH-ENV, tst-codeset-ENV): New variables.
20128         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
20129         * intl/tst-codeset.sh: Remove.
20130         * intl/tst-gettext3.sh: Likewise.
20131         * intl/tst-gettext5.sh: Likewise.
20132
20133 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20134
20135         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
20136         * sysdeps/unix/syscalls.list: ... here.
20137
20138         * sysdeps/posix/getaddrinfo.c
20139         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
20140         (gaiconf_init, gaiconf_reload): Use them.
20141         [!_STATBUF_ST_NSEC]
20142         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
20143         Define using time_t rather than struct timespec.
20144
20145         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
20146         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
20147         Macros removed.
20148         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
20149         [!NO_THREADS].
20150         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
20151         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
20152         Likewise.
20153
20154         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
20155         __libc_cleanup_push argument.
20156
20157         * bits/param.h: New file.
20158         * misc/sys/param.h: New file.
20159         * include/sys/param.h: New file.
20160         * misc/Makefile (headers): Add bits/param.h.
20161         * sysdeps/generic/sys/param.h: File removed.
20162         * sysdeps/unix/sysv/linux/bits/param.h: New file.
20163         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
20164         * sysdeps/mach/hurd/bits/param.h: New file.
20165         * sysdeps/mach/hurd/sys/param.h: File removed.
20166
20167         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
20168         last change.
20169
20170         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
20171         [_IO_MTSAFE_IO].
20172         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
20173         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
20174         New macros.
20175
20176         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
20177         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
20178         rather than -D_IO_MTSAFE_IO conditionally.
20179         * stdio-common/Makefile (CPPFLAGS): Likewise.
20180         * wcsmbs/Makefile (CPPFLAGS): Likewise.
20181         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
20182         Use $(libio-mtsafe).
20183         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
20184         of -D_IO_MTSAFE_IO.
20185         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
20186         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
20187         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
20188         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
20189         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
20190         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
20191         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
20192         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
20193         (CFLAGS-fread_u_chk.c): Likewise.
20194         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
20195         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
20196         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
20197         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
20198         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
20199         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
20200         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
20201         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
20202         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
20203
20204         * libio/Makefile: Test [$(libc-reentrant) = yes]
20205         instead of [$(filter %REENTRANT, $(defines)) nonempty].
20206
20207         * Makeconfig
20208         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
20209         * sysdeps/pthread/configure: File removed.
20210         * sysdeps/pthread/Makeconfig: New file.
20211         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
20212         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
20213
20214 2012-08-16  Gary Benson  <gbenson@redhat.com>
20215
20216         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
20217         unmapping the first object in a namespace.
20218
20219 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20220
20221         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
20222         (__internal_setnetgrent): ... this.  Add internal_function to
20223         definition.  Add libc_hidden_def.
20224         (setnetgrent): Update caller.
20225         (internal_endnetgrent): Renamed to ...
20226         (__internal_endnetgrent): ... this.  Add internal_function to
20227         definition.  Add libc_hidden_def.
20228         (endnetgrent): Update caller.
20229         (internal_getnetgrent_r): Renamed to ...
20230         (__internal_getnetgrent_r): ... this.  Add internal_function to
20231         definition.  Add libc_hidden_def.
20232         (__getnetgrent_r): Update caller.
20233         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
20234
20235 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20236
20237         * stdlib/longlong.h: Update from GCC.
20238
20239 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20240
20241         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
20242         on _QL, which is set by umul_ppmm but never used.
20243         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
20244         variables, which are set by GMP macros but never used.
20245         * stdio-common/_itowa.c (_itowa): Likewise.
20246         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
20247         * stdlib/mod_1.c (mpn_mod_1): Likewise.
20248
20249 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
20250
20251         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
20252         struct La_sh_regs is not constant.
20253         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
20254         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
20255         and struct La_sparc64_regs are not constant.
20256
20257 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20258
20259         * sysdeps/unix/sysv/linux/kernel-features.h
20260         (__ASSUME_POSIX_TIMERS): Remove.
20261         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
20262         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20263         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
20264         Make code unconditional.
20265         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20266         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
20267         Make code unconditional.
20268         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20269         * sysdeps/unix/sysv/linux/clock_nanosleep.c
20270         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
20271         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20272         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
20273         Make code unconditional.
20274         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20275         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
20276         (__libc_missing_posix_timers): Remove.
20277
20278 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20279
20280         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
20281         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
20282
20283         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
20284
20285         * elf/dl-sym.c: Include <stdlib.h>.
20286
20287         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
20288         constants, which avoids warnings in 32-bit builds.
20289
20290         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
20291         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
20292
20293         * misc/lseek.c: File moved to ...
20294         * io/lseek.c: ... here.
20295
20296         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
20297
20298         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
20299         shifting LEN more than 31 bits at once.
20300
20301 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20302
20303         [BZ #14195]
20304         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
20305         segmentation fault for a case of two empty input strings.
20306         * string/test-strncasecmp.c (check1): Renamed to...
20307         (bz12205): ...this.
20308         (bz14195): Add new testcase for two empty input strings and N > 0.
20309         (test_main): Call new testcase, adapt for renamed function.
20310
20311 2012-08-15  Andreas Jaeger  <aj@suse.de>
20312
20313         [BZ #14090]
20314         * crypt/md5test2.c: New test, based on test supplied by Serge
20315         Belyshev <belyshev@depni.sinp.msu.ru>.
20316         * crypt/Makefile (xtests): Add md5test-giant..
20317         * crypt/Makefile ($(objpfx)md5test-giant): Add.
20318
20319 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20320
20321         [BZ #14090]
20322         * crypt/md5.c (md5_process_block): Don't assume the buffer
20323         length is less than 2**32.
20324         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
20325         length is less than 2**64.
20326
20327 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20328
20329         * string/str-two-way.h: Include <sys/param.h>.
20330         (MAX): Macro removed.
20331
20332         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
20333         Move #define and #undef of memmove to just before and after
20334         including <string.h>.
20335
20336         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
20337         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
20338         and after including <string.h>.  Move declarations of
20339         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
20340         to before #include "string/memmove.c".
20341
20342         * include/dirent.h: Declare __getdirentries.
20343
20344         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
20345         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
20346
20347 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
20348
20349         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
20350         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
20351         * sysdeps/i386/configure: Regenerated.
20352         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
20353         STABS_CURRENT_FILE, and STABS_FUN.
20354         (END): Remove call to STABS_FUN_END.
20355         (STABS_CURRENT_FILE1): Delete.
20356         (STABS_CURRENT_FILE): Likewise.
20357         (STABS_FUN): Likewise.
20358         (STABS_FUN_END): Likewise.
20359         (STABS_FUN2): Likewise.
20360         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
20361         * sysdeps/x86_64/configure: Regenerated.
20362
20363 2012-08-14  Roland McGrath  <roland@hack.frob.com>
20364
20365         * elf/dl-open.c: Include <atomic.h>.
20366         * elf/dl-lookup.c: Likewise.
20367
20368 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
20369
20370         * sysdeps/unix/sysv/linux/kernel-features.h
20371         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
20372         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
20373         unconditionally.
20374         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
20375         unconditionally.
20376         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
20377         condition on __ASSUME_CLONE_THREAD_FLAGS.
20378
20379 2012-08-14  Andreas Jaeger  <aj@suse.de>
20380
20381         * sysdeps/i386/fpu/libm-test-ulps: Update.
20382
20383 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
20384
20385         * include/atomic.h (atomic_exchange_and_add): Split into ...
20386         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
20387         New atomic macros.
20388
20389 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
20390
20391         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20392
20393 2012-08-13  Jeff Law <law@redhat.com>
20394
20395         * manual/stdio.texi (snprintf): Clarify handling of the trailing
20396         null byte in the output string.
20397
20398 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
20399
20400         * sysdeps/unix/sysv/linux/kernel-features.h
20401         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
20402         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
20403         (__ASSUME_ARG_MAX_STACK_BASED): Define.
20404         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
20405         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
20406         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
20407         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
20408
20409 2012-08-09  Jeff Law <law@redhat.com>
20410
20411         [BZ #13939]
20412         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
20413         When avoid_arena is set, don't retry in the that arena.  Pick the
20414         next one, whatever it might be.
20415         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
20416         (arena_lock): Pass in new parameter to arena_get2.
20417         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
20418         arena_get2.
20419         (__libc_malloc): Unify retrying after main arena failure with
20420         __libc_memalign version.
20421         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
20422
20423 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20424
20425         [BZ #14166]
20426         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
20427         to __redirect_strstr.
20428         (__strstr_sse42): Use typeof __redirect_strstr.
20429         (__strstr_ia32): Likewise.
20430         (__libc_strstr): New prototype.
20431         (strstr): Renamed to ...
20432         (__libc_strstr): This.
20433         (strstr): New strong alias of __libc_strstr.
20434         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
20435         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
20436         __redirect_time.
20437         Include <time.h>.
20438         (__libc_time): New prototype.
20439         (time_ifunc): Replace time with __libc_time.
20440         (time): New strong alias and hidden definition of __libc_time.
20441         (__GI_time): Remove strong alias.
20442         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
20443         Include <stddef.h>.
20444         (memmove): Redefined to __redirect_memmove.
20445         (__memmove_sse2): Use typeof __redirect_memmove.
20446         (__memmove_ssse3): Likewise.
20447         (__memmove_ssse3_back): Likewise.
20448         (__libc_memmove): New prototype.
20449         (memmove): Renamed to ...
20450         (__libc_memmove): This.
20451         (memmove): New strong alias of __libc_memmove.
20452
20453 2012-08-08  Mark Salter  <msalter@redhat.com>
20454
20455         * elf/elf.h
20456         (R_MN10300_TLS_GD): Define.
20457         (R_MN10300_TLS_LD): Likewise.
20458         (R_MN10300_TLS_LDO): Likewise.
20459         (R_MN10300_TLS_GOTIE): Likewise.
20460         (R_MN10300_TLS_IE): Likewise.
20461         (R_MN10300_TLS_LE): Likewise.
20462         (R_MN10300_TLS_DTPMOD): Likewise.
20463         (R_MN10300_TLS_DTPOFF): Likewise.
20464         (R_MN10300_TLS_TPOFF): Likewise.
20465         (R_MN10300_SYM_DIFF): Likewise.
20466         (R_MN10300_ALIGN): Likewise.
20467         (R_MN10300_NUM): Update.
20468
20469 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
20470
20471         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
20472         Remove.
20473
20474 2012-08-08  Roland McGrath  <roland@hack.frob.com>
20475
20476         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
20477
20478         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
20479         sysdeps/unix -> sysdeps/posix move.
20480         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
20481
20482 2012-08-07      Allan McRae     <allan@archlinux.org>
20483
20484         [BZ #14303]
20485         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
20486         (SUNOS_CPP): Likewise.
20487         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
20488         not found.
20489         (open_input): Call CPP using execvp.
20490
20491 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20492
20493         * sysdeps/unix/sysv/linux/kernel-features.h
20494         (__ASSUME_PROT_GROWSUPDOWN): Remove.
20495         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20496         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20497         (__ASSUME_WAITID_SYSCALL): Likewise.
20498         * sysdeps/unix/sysv/linux/dl-execstack.c
20499         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
20500         code unconditional.
20501         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
20502         conditional code.
20503         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
20504         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
20505         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
20506         code.
20507         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
20508         unconditional.
20509         [__ASSUME_WAITID_SYSCALL]: Likewise.
20510         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
20511
20512 2012-08-07  Roland McGrath  <roland@hack.frob.com>
20513
20514         * sysdeps/unix/closedir.c: Renamed to ...
20515         * sysdeps/posix/closedir.c: ... here.
20516         * sysdeps/unix/dirfd.c: Renamed to ...
20517         * sysdeps/posix/dirfd.c: ... here.
20518         * sysdeps/unix/dirstream.h: Renamed to ...
20519         * sysdeps/posix/dirstream.h: ... here.
20520         * sysdeps/unix/fdopendir.c: Renamed to ...
20521         * sysdeps/posix/fdopendir.c: ... here.
20522         * sysdeps/unix/opendir.c: Renamed to ...
20523         * sysdeps/posix/opendir.c: ... here.
20524         * sysdeps/unix/readdir.c: Renamed to ...
20525         * sysdeps/posix/readdir.c: ... here.
20526         * sysdeps/unix/readdir_r.c: Renamed to ...
20527         * sysdeps/posix/readdir_r.c: ... here.
20528         * sysdeps/unix/rewinddir.c: Renamed to ...
20529         * sysdeps/posix/rewinddir.c: ... here.
20530         * sysdeps/unix/seekdir.c: Renamed to ...
20531         * sysdeps/posix/seekdir.c: ... here.
20532         * sysdeps/unix/telldir.c: Renamed to ...
20533         * sysdeps/posix/telldir.c: ... here.
20534         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
20535         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
20536         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
20537         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
20538
20539         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
20540         * bits/fcntl.h: ... here.
20541
20542         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
20543         not 0.
20544         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
20545         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
20546         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
20547         (struct flock): Move l_start, l_len to the beginning.
20548         Use __pid_t for l_pid.
20549         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
20550         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
20551         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
20552         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
20553         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
20554         [__USE_LARGEFILE64] (struct flock64): New type.
20555         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
20556
20557         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
20558         * bits/dirent.h: ... here.
20559
20560         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
20561         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
20562
20563 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20564
20565         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20566         Change from 2.6.0 to 2.6.16.
20567         * sysdeps/unix/sysv/linux/configure: Regenerated.
20568         * sysdeps/unix/sysv/linux/kernel-features.h
20569         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
20570         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
20571         version.
20572         (__ASSUME_UTIMES): Likewise.
20573         (__ASSUME_CLONE_STOPPED): Remove.
20574         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
20575         architectures, not kernel version.
20576         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
20577         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20578         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20579         (__ASSUME_WAITID_SYSCALL): Likewise.
20580         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
20581         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
20582         * README: State 2.6.16 as minimum Linux kernel version.  Do not
20583         refer to older versions.
20584
20585 2012-08-06  Roland McGrath  <roland@hack.frob.com>
20586
20587         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
20588         Define alphasort64 as an alias.
20589         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
20590         Define versionsort64 as an alias.
20591         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
20592         Define scandir64 as an alias.
20593         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
20594         Define scandirat64 as an alias.
20595         * dirent/alphasort64.c (alphasort64):
20596         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
20597         * dirent/versionsort64.c: Likewise.
20598         * dirent/scandir64.c: Likewise.
20599         * dirent/scandirat64.c: Likewise.
20600         * sysdeps/wordsize-64/alphasort.c: File removed.
20601         * sysdeps/wordsize-64/alphasort64.c: File removed.
20602         * sysdeps/wordsize-64/scandir.c: File removed.
20603         * sysdeps/wordsize-64/scandir64.c: File removed.
20604         * sysdeps/wordsize-64/scandirat.c: File removed.
20605         * sysdeps/wordsize-64/scandirat64.c: File removed.
20606         * sysdeps/wordsize-64/versionsort.c: File removed.
20607         * sysdeps/wordsize-64/versionsort64.c: File removed.
20608         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
20609         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
20610         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
20611         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
20612         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
20613         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
20614         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
20615         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
20616
20617         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
20618         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20619         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
20620         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20621         [defined __arch64__ || defined __sparcv9]
20622         (__INO_T_MATCHES_INO64_T): New macro.
20623         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20624         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
20625         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
20626         * sysdeps/unix/sysv/linux/bits/dirent.h
20627         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
20628         (_DIRENT_MATCHES_DIRENT64): New macro.
20629
20630         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
20631         Define lockf64 as an alias.
20632         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
20633         Define fseeko64 as an alias.
20634         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
20635         Define ftello64 as an alias.
20636         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
20637         Define _IO_fgetpos64 and fgetpos64 as aliases.
20638         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
20639         Define _IO_fsetpos64 and fsetpos64 as aliases.
20640         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
20641         Conditionalize body on this.
20642         * libio/fseeko64.c: Likewise.
20643         * libio/ftello64.c: Likewise.
20644         * libio/iofgetpos64.c: Likewise.
20645         * libio/iofsetpos64.c: Likewise.
20646         * sysdeps/wordsize-64/lockf.c: File removed.
20647         * sysdeps/wordsize-64/lockf64.c: File removed.
20648         * sysdeps/wordsize-64/fseeko.c: File removed.
20649         * sysdeps/wordsize-64/fseeko64.c: File removed.
20650         * sysdeps/wordsize-64/ftello.c: File removed.
20651         * sysdeps/wordsize-64/ftello64.c: File removed.
20652         * sysdeps/wordsize-64/iofgetpos.c: File removed.
20653         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
20654         * sysdeps/wordsize-64/iofsetpos.c: File removed.
20655         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
20656         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
20657         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
20658         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
20659         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
20660         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
20661         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
20662         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
20663         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
20664         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
20665         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
20666
20667         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20668         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20669         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
20670         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20671         [defined __arch64__ || defined __sparcv9]
20672         (__OFF_T_MATCHES_OFF64_T): New macro.
20673         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20674         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20675         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20676         (__OFF_T_MATCHES_OFF64_T): New macro.
20677
20678 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20679
20680         * stdlib/secure-getenv.c (__secure_getenv): Replace
20681         GLIBC_2_16 with GLIBC_2_17.
20682
20683 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20684
20685         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
20686         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
20687
20688 2012-08-03  David S. Miller  <davem@davemloft.net>
20689
20690         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20691
20692 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20693
20694         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
20695         Remove.
20696         (__ASSUME_CORRECT_SI_PID): Likewise.
20697         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
20698         (__ASSUME_TMPFS_NAME): Likewise.
20699         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
20700         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
20701         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
20702         (HAVE_AUX_SECURE): Make definition unconditional.
20703         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
20704         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
20705
20706 2012-08-03  Roland McGrath  <roland@hack.frob.com>
20707
20708         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
20709         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
20710         * sysdeps/mach/hurd/eloop-threshold.h: New file.
20711         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20712         __eloop_threshold instead of SYMLOOP_MAX.
20713
20714         * sysdeps/generic/eloop-threshold.h: New file.
20715         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
20716         of MAXSYMLINKS.
20717         * elf/chroot_canon.c (chroot_canon): Likewise.
20718
20719 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20720
20721         [BZ #13717]
20722         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20723         Change to 2.6.0 everywhere.
20724         * sysdeps/unix/sysv/linux/configure: Regenerated.
20725         * sysdeps/unix/sysv/linux/kernel-features.h
20726         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
20727         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
20728         kernel versions.
20729         (__ASSUME_POSIX_TIMERS): Define unconditionally.
20730         (__ASSUME_FUTEX_REQUEUE): Remove.
20731         (__ASSUME_STATFS64): Define unconditionally.
20732         (__ASSUME_AT_SECURE): Likewise.
20733         (__ASSUME_CORRECT_SI_PID): Likewise.
20734         (__ASSUME_TGKILL): Define without depending on kernel version for
20735         i386.
20736         (__ASSUME_UTIMES): Likewise.
20737         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
20738         kernel version.
20739         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
20740         (__ASSUME_TMPFS_NAME): Likewise.
20741         * README: Update reference to Linux kernel versions.
20742
20743 2012-08-02  Marek Polacek  <polacek@redhat.com>
20744
20745         [BZ# 14150]
20746         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
20747         libc_cv_asm_type_prefix with %.
20748         * configure: Regenerated.
20749         * include/libc-symbols.h: Remove comment about
20750         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20751         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
20752         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
20753         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
20754         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
20755         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20756         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
20757         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
20758         * elf/tst-unique2mod1.c: Likewise.
20759         * elf/tst-unique1mod2.c: Likewise.
20760         * elf/tst-unique1mod1.c: Likewise.
20761         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
20762         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
20763         Replace ASM_TYPE_DIRECTIVE with .type.
20764         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20765         * sysdeps/i386/sysdep.h: Likewise.
20766         * sysdeps/x86_64/sysdep.h: Likewise.
20767         * sysdeps/sh/sysdep.h: Likewise.
20768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20769         Do not define ASM_TYPE_DIRECTIVE.
20770         * sysdeps/powerpc/sysdep.h: Likewise.
20771         * sysdeps/powerpc/powerpc32/sysdep.h:
20772         Replace ASM_TYPE_DIRECTIVE with .type.
20773         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
20774         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
20775         * sysdeps/i386/fpu/e_powf.S: Likewise.
20776         * sysdeps/i386/fpu/e_expl.S: Likewise.
20777         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20778         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20779         * sysdeps/i386/fpu/e_pow.S: Likewise.
20780         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
20781         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20782         * sysdeps/i386/fpu/s_expm1.S: Likewise.
20783         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
20784         * sysdeps/i386/fpu/e_log2.S: Likewise.
20785         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20786         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20787         * sysdeps/i386/fpu/e_powl.S: Likewise.
20788         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20789         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
20790         * sysdeps/i386/fpu/e_logl.S: Likewise.
20791         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
20792         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
20793         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
20794         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20795         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20796         * sysdeps/i386/fpu/e_log.S: Likewise.
20797         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20798         * sysdeps/i386/fpu/e_logf.S: Likewise.
20799         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20800         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20801         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20802         * sysdeps/i386/fpu/e_log10.S: Likewise.
20803         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20804         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20805         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20806         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20807         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20808         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
20809         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
20810         * sysdeps/i386/i686/strtok.S: Likewise.
20811         * sysdeps/i386/i386-mcount.S: Likewise.
20812         * sysdeps/i386/strtok.S: Likewise.
20813         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
20814         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20815         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20816         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20817         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
20818         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20819         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
20820         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
20821         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20822         * sysdeps/x86_64/_mcount.S: Likewise.
20823         * sysdeps/x86_64/strtok.S: Likewise.
20824         * sysdeps/sh/_mcount.S: Likewise.
20825
20826 2012-08-01  Roland McGrath  <roland@hack.frob.com>
20827
20828         * libio/iofopen.c: Include <fcntl.h>.
20829         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
20830         (_IO_fopen64, fopen64): Define as aliases.
20831         * libio/iofopen64.c: Include <fcntl.h>.
20832         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
20833         Conditionalize body on this.
20834         * sysdeps/wordsize-64/iofopen.c: File removed.
20835         * sysdeps/wordsize-64/iofopen64.c: File removed.
20836
20837 2012-08-01  Marek Polacek  <polacek@redhat.com>
20838
20839         * libc/Makeconfig: Use elf in place of binfmt-subdir.
20840         Use dlfcn directly instead of a variable.
20841         (binfmt-subdir): Do not define.
20842         (dlfcn): Likewise.
20843
20844 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
20845
20846         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
20847         Remove all definitions.
20848         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
20849         <kernel-features.h>.
20850         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
20851         (miss_F_GETOWN_EX): Remove all definitions.
20852         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
20853         macro definition.
20854         [!__ASSUME_FCNTL64]: Remove conditional code.
20855         [__ASSUME_FCNTL64]: Make code unconditional.
20856         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
20857         <kernel-features.h>.
20858         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
20859         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
20860         (lockf64) [__NR_fcntl64]: Make code unconditional.
20861         (lockf64) [__ASSUME_FCNTL64]: Likewise.
20862
20863         * sysdeps/unix/sysv/linux/kernel-features.h
20864         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
20865         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
20866         Make code unconditional.
20867         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20868         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
20870         [__NR_vfork]: Make code unconditional.
20871         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20872         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
20874         [__NR_vfork]: Make code unconditional.
20875         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20876         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20877
20878 2012-08-01  Roland McGrath  <roland@hack.frob.com>
20879
20880         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
20881         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
20882
20883         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20884         Define mkstemp64 as an alias.
20885         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20886         Define mkstemps64 as an alias.
20887         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20888         Define mkostemp64 as an alias.
20889         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20890         Define mkostemps64 as an alias.
20891         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
20892         Conditionalize body on this.
20893         * misc/mkostemp64.c: Likewise.
20894         * misc/mkostemps64.c: Likewise.
20895         * misc/mkstemps64.c: Likewise.
20896         * sysdeps/wordsize-64/mkstemp64.c: File removed.
20897         * sysdeps/wordsize-64/mkostemp64.c: File removed.
20898         * sysdeps/wordsize-64/mkostemp.c: File removed.
20899         * sysdeps/wordsize-64/mkstemp.c: File removed.
20900         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
20901         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
20902         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
20903         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
20904
20905         [BZ #14138]
20906         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
20907         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
20908         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
20909         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
20910
20911         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
20912         compat_symbol macros from <shlib-compat.h> rather than the underlying
20913         default_symbol_version and symbol_version macros, so that DEFAULT
20914         lines in shlib-versions are respected.
20915         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
20916
20917 2012-08-01  Florian Weimer  <fweimer@redhat.com>
20918
20919         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
20920         Declare with warn_unused_result.
20921         (setgid, setregid, setegid, setresgid): Likewise.
20922         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
20923         Likewise.
20924         * WUR-REPORT: Remove set*id functions.
20925
20926 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
20927
20928         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
20929
20930 2012-07-31  Roland McGrath  <roland@hack.frob.com>
20931
20932         [BZ #10191]
20933         * include/sys/socket.h (__libc_accept, __libc_accept4):
20934         Add attribute_hidden.
20935         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
20936
20937         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
20938         use of PTR_MANGLE.
20939         * inet/getnetgrent_r.c (setup): Likewise.
20940
20941         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
20942
20943 2012-07-31  David S. Miller  <davem@davemloft.net>
20944
20945         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20946
20947 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
20948
20949         [BZ #13629]
20950         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
20951         value between 1.0 and 2.0 and smaller part has absolute value less
20952         than 1.0.
20953         * math/s_clog10.c (__clog10): Likewise.
20954         * math/s_clog10f.c (__clog10f): Likewise.
20955         * math/s_clog10l.c (__clog10l): Likewise.
20956         * math/s_clogf.c (__clogf): Likewise.
20957         * math/s_clogl.c (__clogl): Likewise.
20958         * math/libm-test.inc (clog_test): Add more tests.
20959         (clog10_test): Likewise.
20960         * sysdeps/i386/fpu/libm-test-ulps: Update.
20961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20962
20963 2012-07-31  Florian Weimer  <fweimer@redhat.com>
20964
20965         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
20966         Exit with zero in case no suitable GID is found, and write a
20967         message to standard error.
20968
20969 2012-07-30  Roland McGrath  <roland@hack.frob.com>
20970
20971         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
20972         rather than to 1.
20973         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
20974         (MAXPATHLEN): Removed.
20975         (NOGROUP, NODEV): New macros.
20976         (setbit, clrbit, isset, isclr): New macros.
20977         (howmany, roundup, powerof2): New macros.
20978         (DEV_BSIZE): New macro.
20979
20980         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
20981         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
20982
20983         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
20984         definition on [!__NO_LONG_DOUBLE_MATH].
20985
20986         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
20987         PTR_MANGLE and PTR_DEMANGLE.
20988
20989         * socket/accept4.c (accept4): Rename to __libc_accept4.
20990         Define accept4 as a weak alias.
20991
20992         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
20993         on [_DIRENT_HAVE_D_TYPE].
20994         * io/ftw.c (ftw_dir): Likewise.
20995
20996         * io/xmknod.c (__xmknod): Don't check PATH for being null.
20997
20998         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
20999
21000         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
21001         Use the BSD numbers rather than the arbitrary ones we had.
21002         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
21003         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
21004         (SIGXCPU, SIGXFSZ): New macros.
21005         (_NSIG): Now 32.
21006
21007         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
21008         initializer on [_LIBC_REENTRANT].
21009
21010         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
21011         definitions inside [_POSIX_MAPPED_FILES].
21012
21013         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
21014
21015         * dirent/opendir.c: Include <fcntl.h>.
21016
21017         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
21018         (__libc_getspecific): Likewise.
21019         (__libc_key_create): Likewise.
21020
21021         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
21022         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
21023         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
21024         (tmpfile64): Define as alias.
21025         * sysdeps/wordsize-64/tmpfile.c: File removed.
21026         * sysdeps/wordsize-64/tmpfile64.c: File removed.
21027         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
21028         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
21029
21030         * stdio-common/vfscanf.c: Include <stdbool.h>.
21031         * nss/makedb.c: Likewise.
21032         * stdio-common/_i18n_number.h: Likewise.
21033         * argp/argp-help.c: Likewise.
21034         * posix/wordexp.c: Likewise.
21035         * sysdeps/posix/spawni.c: Likewise.
21036         * nss/nss_files/files-initgroups.c: Likewise.
21037         * stdio-common/reg-modifier.c: Include <stdlib.h>.
21038         * nss/nss_files/files-initgroups.c: Likewise.
21039         * nss/nss_db/db-netgrp.c: Likewise.
21040         * nss/nss_db/db-initgroups.c: Likewise.
21041         * io/fchmodat.c: Include <sys/stat.h>.
21042
21043         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
21044         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
21045
21046         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
21047         [HAVE_MMAP].
21048
21049         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
21050         Add multiple inclusion protection.
21051
21052 2012-07-27  David S. Miller  <davem@davemloft.net>
21053
21054         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21055
21056 2012-07-27  Gary Benson  <gbenson@redhat.com>
21057
21058         [BZ #14298]
21059         * elf/rtld.c: Include <stap-probe.h>.
21060         (dl_main): Added static probes "init_start" and "init_complete".
21061         * elf/dl-load.c: Include <stap-probe.h>.
21062         (lose): Take new parameter "nsid".
21063         Added static probe "map_failed".
21064         (_dl_map_object_from_fd): Pass namespace id to lose.
21065         Added static probe "map_start".
21066         (open_verify): Pass namespace id to lose.
21067         * elf/dl-open.c: Include <stap-probe.h>.
21068         (dl_open_worker) Added static probes "map_complete", "reloc_start"
21069         and "reloc_complete".
21070         * elf/dl-close.c: Include <stap-probe.h>.
21071         (_dl_close_worker): Added static probes "unmap_start" and
21072         "unmap_complete".
21073         * elf/rtld-debugger-interface.txt: New file documenting the above.
21074
21075 2012-07-26  Roland McGrath  <roland@hack.frob.com>
21076
21077         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
21078         rather than a string variable.
21079         * sunrpc/rpc_main.c (h_output): Likewise.
21080         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
21081
21082 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
21083
21084         * inet/check_native.c: New file.
21085
21086 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
21087
21088         [BZ #13629]
21089         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
21090         if larger part has absolute value 1.0.
21091         * math/s_clog10.c (__clog10): Likewise.
21092         * math/s_clog10f.c (__clog10f): Likewise.
21093         * math/s_clog10l.c (__clog10l): Likewise.
21094         * math/s_clogf.c (__clogf): Likewise.
21095         * math/s_clogl.c (__clogl): Likewise.
21096         * math/libm-test.inc (clog_test): Add more tests.
21097         (clog10_test): Likewise.
21098         * sysdeps/i386/fpu/libm-test-ulps: Update.
21099         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21100
21101         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
21102         (pltexit): Likewise.
21103         (La_regs): Likewise.
21104         (La_retval): Likewise.
21105         (int_retval): Likewise.
21106         Update #error for removed macros to refer only to definitions in
21107         tst-audit.h.
21108         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
21109         macro.
21110         (pltexit): Likewise.
21111         (La_regs): Likewise.
21112         (La_retval): Likewise.
21113         (int_retval): Likewise.
21114         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
21115         macro.
21116         (pltexit): Likewise.
21117         (La_regs): Likewise.
21118         (La_retval): Likewise.
21119         (int_retval): Likewise.
21120         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
21121         macro.
21122         (pltexit): Likewise.
21123         (La_regs): Likewise.
21124         (La_retval): Likewise.
21125         (int_retval): Likewise.
21126         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
21127         macro.
21128         (pltexit): Likewise.
21129         (La_regs): Likewise.
21130         (La_retval): Likewise.
21131         (int_retval): Likewise.
21132         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
21133         macro.
21134         (pltexit): Likewise.
21135         (La_regs): Likewise.
21136         (La_retval): Likewise.
21137         (int_retval): Likewise.
21138         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
21139         macro.
21140         (pltexit): Likewise.
21141         (La_regs): Likewise.
21142         (La_retval): Likewise.
21143         (int_retval): Likewise.
21144         * sysdeps/generic/tst-audit.h: Update comment to refer only to
21145         macro definitions in tst-audit.h.
21146         * sysdeps/i386/tst-audit.h: New file.
21147         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
21148         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
21149         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
21150         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
21151         * sysdeps/sh/tst-audit.h: Likewise.
21152         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
21153         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
21154         * sysdeps/x86_64/tst-audit.h: Likewise.
21155
21156 2012-07-26  Andreas Jaeger  <aj@suse.de>
21157
21158         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
21159         ptrace.
21160
21161         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
21162         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
21163         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
21164         PTRACE_O_MASK.
21165         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
21166         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
21167         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
21168
21169         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
21170         value.
21171
21172         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
21173         _sigsys.
21174         (si_call_addr, si_syscall, si_arch): Define new macro.
21175         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
21176         _sigsys.
21177         (si_call_addr, si_syscall, si_arch): Define new marcro.
21178         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
21179         _sigsys.
21180         (si_call_addr, si_syscall, si_arch): Define new macro.
21181         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
21182         _sigsys.
21183         (si_call_addr, si_syscall, si_arch): Define new macro.
21184
21185 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21186
21187         [BZ #13717]
21188         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21189         Change to 2.4.21 where previously 2.4.1.
21190         * sysdeps/unix/sysv/linux/configure: Regenerated.
21191         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
21192         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
21193         Linux kernel version.
21194         (__ASSUME_STD_AUXV): Remove.
21195         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
21196         kernel version.
21197         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
21198         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
21199         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
21200         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
21201         (__ASSUME_NETLINK_SUPPORT): Likewise.
21202         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
21203         (__no_netlink_support): Remove conditional definition.
21204         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
21205         Remove.
21206         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21207         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
21208         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
21209         (if_nameindex_ioctl): Remove.
21210         (if_nameindex_netlink): Do not handle __no_netlink_support.
21211         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21212         code.
21213         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
21214         Remove conditional code.
21215         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21216         code.
21217         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
21218         unconditional.
21219         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21220         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
21221         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
21222         Remove.
21223         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
21224         [!__ASSUME_STD_AUXV]: Remove conditional code.
21225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
21226         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
21227         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
21228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
21229         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
21230         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21231         code.
21232         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
21234         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
21235         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21236         conditional code.
21237         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
21239         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21240         code.
21241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
21242         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21243         conditional code.
21244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
21245         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21246         code unconditional.
21247         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21248         conditional code.
21249         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21250         unconditional.
21251         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21252         conditional code.
21253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21254         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21255         unconditional.
21256         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21257         conditional code.
21258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
21259         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21260         code unconditional.
21261         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21262         conditional code.
21263         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21264         unconditional.
21265         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21266         conditional code.
21267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
21268         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21269         code unconditional.
21270         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21271         conditional code.
21272         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21273         unconditional.
21274         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21275         conditional code.
21276
21277 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
21278
21279         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
21280         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
21281         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
21282         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
21283         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
21284         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
21285         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
21286         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
21287         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
21288         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
21289         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
21290         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
21291         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
21292         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
21293         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
21294         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
21295         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
21296         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
21297         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
21298         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
21299         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
21300         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
21301         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
21302
21303 2012-07-25  Florian Weimer  <fweimer@redhat.com>
21304
21305         * Versions.def: Add GLIBC_2.17.
21306         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
21307         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
21308         Introduce __libc_secure_getenv.
21309         * stdlib/Versions (2.17): Add secure_getenv
21310         (GLIBC_PRIVATE): Add __libc_secure_getenv.
21311         * stdlib/secure-getenv.c: Rename __secure_getenv to
21312         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
21313         symbol __secure_getenv for GLIBC_2.0.
21314         * stdlib/tst-secure-getenv.c: New.
21315         * stdlib/Makefile (tests): Add testcase.
21316         * manual/startup.texi (Environment Access): Document
21317         secure_getenv.
21318         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
21319         __libc_secure_getenv.
21320         * inet/ruserpass.c (ruserpass): Likewise.
21321         * malloc/mtrace.c (mtrace): Likewise.
21322         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
21323         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
21324         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
21325         * sysdeps/posix/tempname.c: Likewise.  Evaluate
21326         HAVE_SECURE_GETENV.
21327         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
21328         __secure_getenv to __libc_secure_getenv.
21329         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
21330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21331         Likewise.
21332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21333         Likewise.
21334         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
21335         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
21336         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21337         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
21338         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
21339         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21340         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
21341
21342 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21343
21344         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
21345         (struct La_i86_retval): Likewise.
21346         (struct La_x86_64_regs): Likewise.
21347         (struct La_x86_64_retval): Likewise.
21348         (struct La_x32_regs): Likewise.
21349         (struct La_x32_retval): Likewise.
21350         (struct La_ppc32_regs): Likewise.
21351         (struct La_ppc32_retval): Likewise.
21352         (struct La_ppc64_regs): Likewise.
21353         (struct La_ppc64_retval): Likewise.
21354         (struct La_sh_regs): Likewise.
21355         (struct La_sh_retval): Likewise.
21356         (struct La_s390_32_regs): Likewise.
21357         (struct La_s390_32_retval): Likewise.
21358         (struct La_s390_64_regs): Likewise.
21359         (struct La_s390_64_retval): Likewise.
21360         (struct La_sparc32_regs): Likewise.
21361         (struct La_sparc32_retval): Likewise.
21362         (struct La_sparc64_regs): Likewise.
21363         (struct La_sparc64_retval): Likewise.
21364         (struct audit_ifaces): Remove architecture-specific pltenter and
21365         pltexit members.
21366         * sysdeps/i386/ldsodefs.h: New file.
21367         * sysdeps/powerpc/ldsodefs.h: Likewise.
21368         * sysdeps/s390/ldsodefs.h: Likewise.
21369         * sysdeps/sh/ldsodefs.h: Likewise.
21370         * sysdeps/sparc/ldsodefs.h: Likewise.
21371         * sysdeps/x86_64/ldsodefs.h: Likewise.
21372
21373 2012-07-25  Marek Polacek  <polacek@redhat.com>
21374
21375         [BZ #6808]
21376         * math/libm-test.inc (yn_test): Add another test.
21377         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
21378         to ERANGE when the result is +-Inf.
21379         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
21380         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
21381         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
21382         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
21383
21384 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
21385
21386         * conform/data/time.h-data (NULL): Use macro-constant.  Require
21387         equal to 0.
21388         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
21389         clock_t.
21390         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
21391
21392 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
21393
21394         * configure.in <sysdeps resolving>: Correct printing
21395         Implies_before.
21396         * configure: Regenerate.
21397
21398 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
21399
21400         * math/w_ilogb.c: Include <limits.h>.
21401         * math/w_ilogbl.c: Likewise.
21402
21403 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21404
21405         * manual/lang.texi (__va_copy): Document primarily as ISO C99
21406         va_copy.  Document allowing for unavailable va_copy only as
21407         pre-C99 compatibility.
21408         * manual/string.texi (Copying and Concatenation): Use va_copy
21409         instead of __va_copy in concat example.
21410
21411 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
21412
21413         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
21414         (__sendto): Use create_address_port.  Initialize APORT and deallocate
21415         it if not null.
21416
21417         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
21418         with O_NOLINK passed to __file_name_lookup.
21419
21420         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
21421         with O_NOLINK passed to __file_name_lookup.
21422
21423         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
21424         negative N or less than NGIDS.
21425
21426         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
21427         type to string_t.  Set ERANGE as errno and return it if NAME is not big
21428         enough.  Use memcpy instead of strncpy.
21429
21430 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21431
21432         * elf/Makefile (check-data): Remove.
21433         (localplt.data): New vpath directive.
21434         ($(objpfx)check-localplt.out): Use localplt.data from vpath
21435         instead of $(check-data).
21436         * scripts/data/localplt-generic.data: Move to ...
21437         * sysdeps/generic/localplt.data: ... here.
21438         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
21439         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
21440         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
21441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
21442         ... here.
21443         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
21444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
21445         ... here.
21446         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
21447         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
21448         ... here.
21449         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
21450         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
21451         ... here.
21452         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
21453         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
21454         ... here.
21455         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
21456         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
21457         ... here.
21458
21459 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21460
21461         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
21462         PPC32 and PPC64 files.
21463         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
21464         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
21465
21466 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21467
21468         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
21469         __makecontext_ret to ...
21470         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21471         ... here and call exit if uc_link is NULL.  New file.
21472         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
21473         __makecontext_ret.S.
21474         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
21475         __makecontext_ret to ...
21476         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21477         ... here and call exit if uc_link is NULL.  New file.
21478         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
21479         __makecontext_ret.S.
21480
21481 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21482
21483         * elf/elf.h (R_390_IRELATIVE): New definition.
21484         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
21485         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
21486         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
21487         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
21488         (elf_machine_lazy_rel): Likewise.
21489         * sysdeps/s390/dl-irel.h: New file.
21490         * sysdeps/s390/s390-64/memcpy.S: New asm code.
21491         * sysdeps/s390/s390-64/memset.S: New asm code.
21492         * sysdeps/s390/s390-64/memcmp.S: New asm code.
21493         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
21494         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
21495         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
21496         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
21497         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
21498         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
21499         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
21500         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
21501         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
21502         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
21503         * sysdeps/s390/s390-32/memcpy.S: New asm code.
21504         * sysdeps/s390/s390-32/memset.S: New asm code.
21505         * sysdeps/s390/s390-32/memcmp.S: New asm code.
21506
21507 2012-07-17  Marek Polacek  <polacek@redhat.com>
21508
21509         [BZ #14349]
21510         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
21511         * sysdeps/s390/s390-64/configure.in: Likewise.
21512         * sysdeps/sparc/configure.in: Likewise.
21513         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
21514         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
21515         * sysdeps/i386/configure.in: Likewise.
21516         * sysdeps/x86_64/configure.in: Likewise.
21517         * sysdeps/sh/configure.in: Likewise.
21518         * sysdeps/s390/s390-32/configure: Regenerated.
21519         * sysdeps/s390/s390-64/configure: Likewise.
21520         * sysdeps/x86_64/configure: Likewise.
21521         * sysdeps/sh/configure: Likewise.
21522         * sysdeps/powerpc/powerpc64/configure: Likewise.
21523         * sysdeps/powerpc/powerpc32/configure: Likewise.
21524         * sysdeps/sparc/configure: Likwise.
21525         * sysdeps/i386/configure: Likewise.
21526
21527         * elf/dl-open.c: Comment fixes.
21528
21529 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
21530
21531         * Makefile [CXX] (check-data): Remove.
21532         [CXX] (c++-types.data): New vpath directive.
21533         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
21534         vpath.  Do not allow for C++ type data being missing.
21535         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
21536         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
21537         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
21538         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
21539         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
21540         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
21541         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
21542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
21543         ... here.
21544         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
21545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
21546         ... here.
21547         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
21548         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
21549         ... here.
21550         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
21551         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
21552         ... here.
21553         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
21554         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
21555         ... here.
21556         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
21557         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
21558         ... here.
21559         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
21560         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
21561         ... here.
21562         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
21563         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
21564
21565         * elf/tls-macros.h (TLS_LE): Move architecture-specific
21566         definitions to architecture-specific files.
21567         (TLS_IE): Likewise.
21568         (TLS_LD): Likewise.
21569         (TLS_GD): Likewise.
21570         * sysdeps/i386/tls-macros.h: New file.
21571         * sysdeps/powerpc/tls-macros.h: Likewise.
21572         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
21573         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
21574         * sysdeps/sh/tls-macros.h: Likewise.
21575         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
21576         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
21577         * sysdeps/x86_64/tls-macros.h: Likewise.
21578
21579 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21580
21581         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
21582         zero value for regular exit case.
21583
21584         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
21585         (__start_context): Preserve zero value for regular exit case.
21586
21587 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21588             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21589
21590         * manual/setjmp.texi (setcontext): Clarify normal process
21591         termination when uc_link is the null pointer.
21592         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
21593         exit call.
21594
21595 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
21596
21597         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
21598         preprocessor.  Test for each exception mask separately.
21599
21600 2012-07-16  Andreas Jaeger  <aj@suse.de>
21601
21602         * po/ru.po: Update from translation team.
21603
21604 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
21605
21606         * conform/data/string.h-data (NULL): Use macro-constant.  Require
21607         equal to 0.
21608         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
21609         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
21610         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
21611         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
21612         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21613
21614 2012-07-13  Andreas Jaeger  <aj@suse.de>
21615
21616         * po/fr.po: Update from translation team.
21617
21618 2012-07-12  Marek Polacek  <polacek@redhat.com>
21619
21620         [BZ #14173]
21621         * math/libm-test.inc (yn_test): Add test for BZ #14173.
21622         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
21623         loop condition.
21624
21625 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
21626
21627         [BZ #13717]
21628         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21629         Change to 2.4.1 where previously 2.4.0.
21630         * sysdeps/unix/sysv/linux/configure: Regenerated.
21631         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
21632         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
21633         version.
21634         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
21635         (__ASSUME_AT_CLKTCK): Remove.
21636         (__ASSUME_AT_PAGESIZE): Likewise.
21637         (__ASSUME_AT_XID): Likewise.
21638         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
21639         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
21640         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
21641         unconditionally.
21642         (HAVE_AUX_PAGESIZE): Likewise.
21643         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
21644         [__ASSUME_AT_CLKTCK]: Make code unconditional.
21645         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
21646
21647 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
21648
21649         [BZ #14307]
21650         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
21651         the temporary buffer used to invoke __gethostbyname2_r,
21652         __gethostbyaddr_r and gethostbyname4_r to make room for struct
21653         host_data / struct gaih_addrtuple.
21654         * resolv/nss_dns/dns-host.c (global scope): Move definition of
21655         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
21656         header file nss/nsswitch.h.
21657         * nss/nsswitch.h (global scope): Add definition of implementation
21658         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
21659         resolv/nss_dns/dns-host.c).
21660
21661 2012-07-11  Andreas Jaeger  <aj@suse.de>
21662
21663         * po/fr.po: Update from translation team.
21664
21665         * po/sv.po: Update from translation team
21666         * po/fr.po: Another update from translation team.
21667
21668 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21669
21670         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
21671         for subnormals or multiply small sinh result by itself.
21672         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
21673         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21674
21675 2012-07-11  David S. Miller  <davem@davemloft.net>
21676
21677         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21678
21679 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
21680
21681         [BZ #14347]
21682         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
21683         (INTERNAL_MARK): Shift it here.
21684
21685 2012-07-10  Marek Polacek  <polacek@redhat.com>
21686
21687         [BZ #14151]
21688         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
21689         libc_cv_asm_global_directive with .globl.
21690         * configure: Regenerated.
21691         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
21692         with .globl.
21693         * sysdeps/i386/configure: Regenerated.
21694         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
21695         with .globl.
21696         * sysdeps/x86_64/configure: Regenerated.
21697         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
21698         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
21699         * elf/tst-unique2mod2.c: Likewise.
21700         * elf/tst-unique2mod1.c: Likewise.
21701         * elf/tst-unique1mod2.c: Likewise.
21702         * elf/tst-unique1mod1.c: Likewise.
21703         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21704         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
21705         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21706         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
21707         * sysdeps/mach/sysdep.h: Likewise.
21708         * sysdeps/i386/sysdep.h: Likewise.
21709         * sysdeps/i386/i386-mcount.S: Likewise.
21710         * sysdeps/x86_64/_mcount.S: Likewise.
21711         * sysdeps/x86_64/sysdep.h: Likewise.
21712         * sysdeps/sh/_mcount.S: Likewise.
21713         * sysdeps/sh/sysdep.h: Likewise.
21714         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
21715         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
21716         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
21717         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21718         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
21719         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
21720         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
21721         * locale/localeinfo.h: Likewise.
21722         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
21723         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
21724
21725 2012-07-09  Roland McGrath  <roland@hack.frob.com>
21726
21727         [BZ #14336]
21728         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
21729         system".
21730         * manual/message.texi (The Uniforum approach): Likewise.
21731         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
21732         (glibc iconv Implementation): Likewise.
21733
21734 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
21735
21736         [BZ #14337]
21737         * math/s_clog.c (__clog): Avoid scaling a value down where that
21738         could result in underflow.
21739         * math/s_clog10.c (__clog10): Likewise.
21740         * math/s_clog10f.c (__clog10f): Likewise.
21741         * math/s_clog10l.c (__clog10l): Likewise.
21742         * math/s_clogf.c (__clogf): Likewise.
21743         * math/s_clogl.c (__clogl): Likewise.
21744         * math/libm-test.inc (clog_test): Add more tests.
21745         (clog10_test): Likewise.
21746         * sysdeps/i386/fpu/libm-test-ulps: Update.
21747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21748
21749 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
21750
21751         [BZ #14283]
21752         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
21753         by 7 not 8 to examine high bit of fractional part.
21754
21755         [BZ #14042]
21756         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
21757         for call to __mcount_internal.
21758         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
21759         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
21760         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
21761
21762 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
21763
21764         [BZ #14154]
21765         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
21766         approximation for values within 0x1p-13f of an odd multiple of
21767         pi/4.
21768         * math/libm-test.inc (tan_test): Do not allow spurious underflow
21769         exception.  Add more tests.
21770         * sysdeps/i386/fpu/libm-test-ulps: Update.
21771
21772         [BZ #6778]
21773         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
21774         inputs and return -1 for them.  Do not check for +Inf in case not
21775         reachable for +Inf.
21776         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
21777         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
21778         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21779         and return -1 for them.  Do not check for +Inf in case not
21780         reachable for +Inf.
21781         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
21782         define.
21783         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21784         and return -1 for them.  Do not check for +Inf in case not
21785         reachable for +Inf.
21786         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
21787         spurious underflow.
21788         * sysdeps/i386/fpu/libm-test-ulps: Update.
21789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21790
21791 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
21792
21793         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
21794
21795 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
21796
21797         [BZ #14157]
21798         [BZ #14331]
21799         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
21800         could result in spurious underflow.  Scale down values above
21801         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
21802         * math/s_csqrtf.c (__csqrtf): Likewise.
21803         * math/s_csqrtl.c (__csqrtl): Likewise.
21804         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
21805         spurious underflow.
21806         * sysdeps/i386/fpu/libm-test-ulps: Update.
21807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21808
21809 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
21810
21811         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
21812         xopen-msg.sed.
21813         * catgets/xopen-msg.awk: New file.
21814         * catgets/xopen-msg.sed: Removed.
21815
21816         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
21817         po2text.sed.
21818         * intl/po2test.awk: New file.
21819         * intl/po2test.sed: Removed.
21820
21821 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
21822
21823         [BZ #14328]
21824         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
21825         or multiply small sinh result by itself.
21826         * math/s_ctanf.c (__ctanf): Likewise.
21827         * math/s_ctanh.c (__ctanh): Likewise.
21828         * math/s_ctanhf.c (__ctanhf): Likewise.
21829         * math/s_ctanhl.c (__ctanhl): Likewise.
21830         * math/s_ctanl.c (__ctanl): Likewise.
21831         * math/libm-test.inc (ctan_test_tonearest): New function.
21832         (ctan_test_towardzero): Likewise.
21833         (ctan_test_downward): Likewise.
21834         (ctan_test_upward): Likewise.
21835         (ctanh_test_tonearest): Likewise.
21836         (ctanh_test_towardzero): Likewise.
21837         (ctanh_test_downward): Likewise.
21838         (ctanh_test_upward): Likewise.
21839         (main): Call these new functions.
21840         * sysdeps/i386/fpu/libm-test-ulps: Update.
21841         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21842
21843 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
21844
21845         * .gitignore: Delete /ports entry.
21846
21847 2012-07-03  Andreas Jaeger  <aj@suse.de>
21848
21849         * po/bg.po: Update from translation team.
21850         * po/cs.po: Likewise.
21851         * po/de.po: Likewise.
21852         * po/hr.po: Likewise.
21853         * po/nl.pl: Likewise.
21854         * po/pl.po: Likewise.
21855         * po/vi.po: Likewise.
21856
21857 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
21858
21859         * Makeconfig [!+link] (+link-before-libc): New variable.
21860         [!+link] (+link-after-libc): Likewise.
21861         [!+link] (+link-tests): Likewise.
21862         [!+link] (+link): Define in terms of $(+link-before-libc) and
21863         $(+link-after-libc).
21864         [!+link-static] (+link-static-before-libc): New variable.
21865         [!+link-static] (+link-static-after-libc): Likewise.
21866         [!+link-static] (+link-static-tests): Likewise.
21867         [!+link-static] (+link-static): Define in terms of
21868         $(+link-static-before-libc) and $(+link-static-after-libc).
21869         [build-shared] (link-libc-before-gnulib): New variable.
21870         [build-shared] (link-libc-tests): Likewise.
21871         [build-shared] (link-libc): Define in terms of
21872         $(link-libc-before-gnulib).
21873         [!build-shared] (link-libc-tests): New variable.
21874         (link-libc-static-tests): New variable.
21875         [!gnulib] (gnulib-arch): New variable.
21876         [!gnulib] (gnulib-tests): Likewise.
21877         [!gnulib] (static-gnulib-arch): Likewise.
21878         [!gnulib] (static-gnulib-tests): Likewise.
21879         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
21880         Define with "=" instead of ":=".
21881         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
21882         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
21883         * Rules (binaries-all-notests): New variable.
21884         (binaries-all-tests): Likewise.
21885         (binaries-static-notests): Likewise.
21886         (binaries-static-tests): Likewise.
21887         (binaries-all): Define using $(binaries-all-notests) and
21888         $(binaries-all-tests).
21889         (binaries-static): Define using $(binaries-static-notests) and
21890         $(binaries-static-tests).
21891         (binaries-shared-tests): New variable.
21892         (binaries-shared-notests): Likewise.
21893         (binaries-shared): Remove variable.
21894         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
21895         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
21896         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
21897         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
21898         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
21899         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
21900         * elf/Makefile (sln-modules): New variable.
21901         (extra-objs): Add $(sln-modules:=.o).
21902         (ldconfig-modules): Add static-stubs.
21903         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
21904         * elf/static-stubs.c: New file.
21905
21906         [BZ #14283]
21907         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
21908         by 7 not 8 to examine high bit of fractional part.  Use volatile
21909         variables when splitting into final array of floats if
21910         __FLT_EVAL_METHOD__ != 0.
21911         * math/libm-test.inc (cos_test): Add another test.
21912         (sin_test): Likewise.
21913         * sysdeps/i386/fpu/libm-test-ulps: Update.
21914
21915         [BZ #14273]
21916         * math/libm-test.inc (cosh_test): Add more tests.
21917
21918         * version.h (RELEASE): Set to "development".
21919         (VERSION): Set to "2.16.90".
21920
21921 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
21922
21923         * NEWS: Update copyright. Remove last-updated date.
21924         Mention math library bug fixes and timezone data changes.
21925         * README: Mention GNU/Hurd, x32, and HPPA support status.
21926
21927 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
21928
21929         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
21930
21931 2012-06-27  Andreas Jaeger  <aj@suse.de>
21932
21933         * manual/contrib.texi (Contributors): Add Samuel Thibault.
21934
21935 2012-06-25  Andreas Jaeger  <aj@suse.de>
21936
21937         * sysdeps/s390/fpu/libm-test-ulps: Update.
21938
21939 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
21940             Thomas Schwinge  <thomas@codesourcery.com>
21941
21942         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
21943         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
21944         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
21945         fanotify_mark.
21946
21947 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
21948
21949         * sysdeps/mach/start.c: Remove file.
21950         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
21951         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
21952         * sysdeps/sh/init-first.c: Likewise.
21953
21954         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
21955         registers for frame unwinding purposes, add CFI directives.
21956         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
21957         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
21958         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
21959         Likewise.
21960
21961         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
21962         __fortify_fail returning.
21963         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
21964
21965         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
21966         sysdeps/sh/____longjmp_chk.S.
21967         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
21968         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
21969         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
21970         (gen-as-const-headers): Append sigaltstack-offsets.sym.
21971
21972         * sysdeps/sh/abort-instr.h: New file.
21973         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
21974         process in case exit returns.
21975
21976         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
21977         initialize the GOT register before use.
21978
21979         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
21980         calculation of ARGC > 4.
21981
21982         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
21983         meaningful names to some local labels.
21984
21985 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21986             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21987
21988         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
21989         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
21990         (__arch_compare_and_exchange_val_16_acq): Likewise.
21991         (__arch_compare_and_exchange_val_32_acq): Likewise.
21992         (atomic_exchange_and_add): Fix gUSA sequence.
21993         (atomic_add): Likewise.
21994         (atomic_add_negative): Likewise.
21995         (atomic_add_zero): Likewise.
21996         (atomic_bit_test_set): Likewise.
21997
21998 2012-06-22  Andreas Schwab  <schwab@redhat.com>
21999
22000         [BZ #13579]
22001         * include/link.h (struct link_map): Add l_free_initfini.
22002         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
22003         l_initfini.
22004         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
22005         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
22006         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
22007         set.
22008
22009 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
22010
22011         * configure.in: Use AC_LANG_SOURCE.
22012         * configure: Regenerate.
22013
22014 2012-06-22  Roland McGrath  <roland@hack.frob.com>
22015
22016         * configure.in (libc_cv_localstatedir): New substituted variable.
22017         * configure: Regenerated.
22018         * config.make.in (localstatedir): New variable, substituted from
22019         libc_cv_localstatedir.
22020         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
22021         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
22022         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
22023         * sysdeps/gnu/configure: Regenerated.
22024
22025 2012-06-21  Jeff Law  <law@redhat.com>
22026
22027         [BZ #14277]
22028         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
22029         free.  Simplify list management for _LIBC case.
22030
22031 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
22032
22033         [BZ #14273]
22034         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
22035         Clear sign bit of 64-bit integer value before comparing against
22036         overflow value.
22037
22038         * sysdeps/mach/configure: Regenerated.
22039
22040 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
22041
22042         [BZ #14278]
22043         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
22044
22045 2012-06-21  Jeff Law  <law@redhat.com>
22046
22047         [BZ #13882]
22048         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
22049         uint16_t for elements in the "seen" array to avoid char overflows.
22050         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22051         * elf/dl-open.c (dl_open_worker): Likewise.
22052
22053 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
22054
22055         * scripts/list-sources.sh: Scan PORTS for translations.
22056         * po/libc.pot: Regenerated.
22057
22058 2012-06-21  Andreas Jaeger  <aj@suse.de>
22059
22060         [BZ #12194]
22061         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
22062         warning.
22063         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
22064         * bits/byteswap-16.h (__bswap_16): Likewise.
22065         * bits/byteswap.h (__bswap_constant_16): Likewise.
22066
22067 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22068
22069         [BZ #14117]
22070         * sysdeps/i386/fpu_control.h: Removed.
22071         * sysdeps/x86_64/fpu_control.h: Moved to ...
22072         * sysdeps/x86/fpu_control.h: Here.
22073
22074         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
22075         (_FPU_SETCW): Likewise.
22076
22077 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
22078
22079         [BZ #14117]
22080         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
22081         * sysdeps/x86/fpu/bits/mathinline.h: This.
22082         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
22083
22084         [BZ #14050]
22085         [BZ #14117]
22086         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
22087         functions if __x86_64__ is defined.
22088
22089 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
22090
22091         * string/endian.h: Add !__ASSEMBLER__ condition for including
22092         conversion interfaces.
22093
22094 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
22095
22096         [BZ #14241]
22097         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
22098         of ABS(x) in calculating zero to negative powers other than odd
22099         integers.
22100         * math/libm-test.inc (pow_test): Add more tests.
22101
22102 2012-06-15  Andreas Jaeger  <aj@suse.de>
22103
22104         * manual/contrib.texi (Contributors): Update entry of Liubov
22105         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
22106         Machado Filho.
22107
22108 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
22109
22110         * string/string.h: Add __wur to GNU version of strerror_r.
22111
22112 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
22113
22114         [BZ #14229]
22115         * string/Makefile (tests): Add tst-strtok_r.
22116         * string/tst-strtok_r.c: New file.
22117         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
22118         RAX_LP/RDX_LP on SAVE_PTR.
22119
22120 2012-06-14  Roland McGrath  <roland@hack.frob.com>
22121
22122         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
22123
22124 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
22125
22126         * libm_test.inc (csqrt_test): Allow more spurious underflow
22127         exceptions.
22128         (j0_test): Likewise.
22129         (j1_test): Likewise.
22130         (y0_test): Likewise.
22131         (y1_test): Likewise.
22132
22133 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
22134
22135         * po/Makefile (libc.pot): Use UTF-8 charset.
22136
22137 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
22138
22139         [BZ #14210]
22140         Suppress sign-conversion warning from FD_SET.
22141         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
22142         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
22143         not unsigned long int.
22144         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
22145
22146 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
22147
22148         [BZ #14050]
22149         [BZ #14117]
22150         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
22151         __extern_always_inline instead of __extern_inline.
22152         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
22153         (__signbit): Likewise.
22154         (__signbitl): Support C++ namespace.
22155         (lrintf): New inline function.
22156         (lrint): Likewise.
22157         (llrintf): Likewise.
22158         (llrint): Likewise.
22159         (fmaxf): Likewise.
22160         (fmax): Likewise.
22161         (fminf): Likewise.
22162         (fmin): Likewise.
22163         (rint): Likewise.
22164         (rintf): Likewise.
22165         (ceil): Likewise.
22166         (ceilf): Likewise.
22167         (floor): Likewise.
22168         (floorf): Likewise.
22169         (nearbyint): Likewise.
22170         (nearbyintf): Likewise.
22171
22172 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
22173
22174         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
22175         non-default versions.
22176
22177 2012-06-11  Roland McGrath  <roland@hack.frob.com>
22178
22179         [BZ #14218]
22180         * manual/argp.texi (Argp): Reword argp_parse description slightly.
22181
22182 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
22183
22184         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
22185         (FE_UPWARD, FE_DOWNWARD): Don't define.
22186         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
22187         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22188
22189         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
22190         reading it.
22191         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22192         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22193
22194 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22195
22196         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22197         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
22198         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
22199         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
22200
22201 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
22202
22203         [BZ #14117]
22204         * sysdeps/i386/fpu/bits/fenv.h: Removed.
22205         * sysdeps/i386/fpu/Implies: New file.
22206         * sysdeps/x86_64/fpu/Implies: Likewise.
22207         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
22208         * sysdeps/x86/fpu/bits/fenv.h: This.
22209
22210         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
22211         __SSE_MATH__.
22212
22213 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
22214
22215         [BZ #14134]
22216         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
22217         character 0xffff that matches the last element of the
22218         conversion table.
22219
22220 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22221
22222         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
22223         fmodl commit.
22224
22225 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22226
22227         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
22228         values higher than 25.6283.
22229
22230 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22231
22232         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
22233         subnormal exponent extraction and add some __builtin_expect.
22234         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
22235         Fix for subnormal mantissa calculation.
22236
22237 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
22238
22239         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
22240         cpu2 is -1 and errno is not ENOSYS.
22241
22242 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
22243
22244         [BZ #14117]
22245         * sysdeps/i386/i486/bits/string.h: Renamed to ...
22246         * sysdeps/x86/bits/string.h: This.
22247         * sysdeps/x86_64/bits/string.h: Removed.
22248
22249         * sysdeps/i386/i486/bits/string.h: Define inline functions only
22250         if not compiling for x86-64, but compiling for >= i486.
22251
22252         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
22253         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
22254
22255         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
22256         New macro from Linux kernel 3.4.0.
22257         (FP_XSTATE_MAGIC2): Likewise.
22258         (FP_XSTATE_MAGIC2_SIZE): Likewise.
22259         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
22260         (struct _fpx_sw_bytes): New struct.
22261         (struct _xsave_hdr): Likewise.
22262         (struct _ymmh_state): Likewise.
22263         (struct _xstate): Likewise.
22264
22265         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
22266         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
22267         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
22268         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
22269         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
22270         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
22271
22272         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
22273         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
22274         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
22275         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
22276         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
22277         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
22278
22279 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22280
22281         [BZ #13743]
22282         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
22283         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
22284         (sysdep_headers): Include sys/platform/ppc.h.
22285         * sysdeps/powerpc/test-gettimebase.c: Test for
22286         __ppc_get_timebase() to catch future ISA opcode/insn changes.
22287         * manual/Makefile (appendices): Include platform.texi.
22288         * manual/contrib.texi (Contributors): Update @node pointers.
22289         * manual/maint.texi (Maintenance): Likewise.
22290         (Platform): New node.
22291         * manual/platform.texi: New file.  Document the new features.
22292
22293 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22294             Jakub Jelinek  <jakub@redhat.com>
22295
22296         [BZ #14188]
22297         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
22298         where __builtin_expect is unavailable.
22299
22300 2012-06-03  David S. Miller  <davem@davemloft.net>
22301
22302         * stdlib/longlong.h: Updated from GCC.
22303
22304 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
22305
22306         [BZ #14042]
22307         * sysdeps/powerpc/powerpc32/mcount.c: New file.
22308         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
22309         __mcount_internal.
22310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
22311         (GLIBC_2.16): Likewise.
22312
22313 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22314
22315         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
22316
22317 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22318
22319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
22320         (default-abi): New variable.
22321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
22322         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
22323         variable.
22324         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
22325         Likewise.
22326         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
22327         Likewise.
22328         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
22329         Likewise.
22330
22331         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
22332         definition.  Document in comment.
22333
22334 2012-06-01  David S. Miller  <davem@davemloft.net>
22335
22336         * stdlib/longlong.h: Updated from GCC.
22337
22338 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22339
22340         [BZ #14117]
22341         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
22342         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
22343         sys/debugreg.h sys/io.h here.
22344         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
22345         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
22346         sys/io.h.
22347         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
22348         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
22349         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
22350         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
22351         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
22352         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
22353
22354         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
22355         Define only if __x86_64__ is defined.
22356
22357 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22358
22359         [BZ #14048]
22360         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
22361         Use int64_t for variable i.
22362         * math/libm-test.inc (fmod_test): Add more tests.
22363
22364         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
22365         z computation is not scheduled after fetestexcept.
22366         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
22367         Use math_force_eval instead of asm to ensure calculation scheduled
22368         before exception test.
22369         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
22370         Ensure a1 + u.d computation is not scheduled after fetestexcept.
22371
22372 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
22373
22374         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
22375         computation is not scheduled after fetestexcept.
22376
22377 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22378
22379         [BZ #14117]
22380         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
22381         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
22382
22383 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22384
22385         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
22386         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
22387
22388 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22389
22390         [BZ #14117]
22391         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
22392         <bits/wordsize.h>.
22393         (__WCHAR_MIN): Support __WORDSIZE == 64.
22394         (__WCHAR_MAX): Likewise.
22395
22396         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
22397         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
22398
22399         [BZ #14183]
22400         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
22401         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
22402
22403         [BZ #14117]
22404         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
22405         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
22406
22407         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
22408         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
22409
22410         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
22411         Defined to 1 if __x86_64__ isn't defined.
22412         (_STAT_VER_LINUX_OLD): New.
22413         (st_atime): Remove duplicate.
22414         (st_mtime): Likewise.
22415         (st_ctime): Likewise.
22416
22417 2012-05-31  David S. Miller  <davem@davemloft.net>
22418
22419         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
22420         entries.
22421
22422 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
22423
22424         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
22425         gen-libm-test.pl.
22426
22427         [BZ #14132]
22428         * elf/dl-reloc.c: Include <_itoa.h>.
22429         (_dl_reloc_bad_type): Remove use of INTUSE.
22430         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
22431         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
22432         * stdio-common/psiginfo.c (psiginfo): Likewise.
22433         * stdio-common/psignal.c (psignal): Likewise.
22434         * string/strsignal.c (strsignal): Likewise.
22435         * include/signal.h (_sys_siglist): Declare hidden proto.
22436         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
22437         INTVARDEF with libc_hidden_data_def.
22438         * stdio-common/itoa-udigits.c: Likewise.
22439         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
22440         (_itoa_lower_digits_internal): Remove declaration.
22441         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
22442         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
22443         (_sys_sigabbrev_internal): Remove aliases.
22444         (_sys_siglist): Define hidden alias.
22445
22446 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
22447
22448         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22449         bits/sysctl.h.
22450
22451 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22452
22453         [BZ #14117]
22454         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
22455         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
22456
22457         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
22458         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
22459         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
22460         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
22461         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
22462         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
22463
22464         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
22465         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
22466         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
22467
22468         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
22469         with __addr.
22470         (insw): Likewise.
22471         (insl): Likewise.
22472         (outsb): Likewise.
22473         (outsw): Likewise.
22474         (outsl): Likewise.
22475
22476         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
22477         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
22478         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
22479
22480         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
22481         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
22482         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
22483         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
22484         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
22485         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
22486
22487         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
22488         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
22489
22490         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
22491         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
22492
22493         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
22494         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
22495         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
22496
22497         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
22498         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
22499         to ...
22500         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
22501
22502         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
22503         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
22504         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
22505
22506         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
22507         for x86-64.
22508         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
22509
22510 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
22511
22512         * math/math.h (M_El): Use two more decimal places.
22513         (M_LOG2El): Likewise.
22514         (M_LOG10El): Likewise.
22515         (M_LN2l): Likewise.
22516         (M_LN10l): Likewise.
22517         (M_PIl): Likewise.
22518         (M_PI_2l): Likewise.
22519         (M_PI_4l): Likewise.
22520         (M_1_PIl): Likewise.
22521         (M_2_PIl): Likewise.
22522         (M_2_SQRTPIl): Likewise.
22523         (M_SQRT2l): Likewise.
22524         (M_SQRT1_2l): Likewise.
22525
22526 2012-05-31  David S. Miller  <davem@davemloft.net>
22527
22528         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
22529         values between float registers.
22530         * sysdeps/sparc/sparc64/memset.S: Likewise.
22531         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
22532
22533 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
22534
22535         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
22536         -D_FORTIFY_SOURCE=1.
22537         (CPPFLAGS-tst-longjmp_chk.c): Define.
22538         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
22539         (CPPFLAGS-tst-longjmp_chk2.c): Define.
22540         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
22541         CFLAGS-tst-wchar-h.c.
22542
22543 2012-05-31  Marek Polacek  <polacek@redhat.com>
22544
22545         [BZ #14132]
22546         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
22547         __endmntent_internal): Remove declaration.
22548         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
22549         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
22550         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
22551
22552 2012-05-30  David S. Miller  <davem@davemloft.net>
22553
22554         * sysdeps/sparc/sparc32/soft-fp/q_util.c
22555         (___Q_simulate_exceptions): Use real FP ops rather than writing
22556         into the %fsr.
22557         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
22558         Likewise.
22559
22560 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22561
22562         [BZ #14117]
22563         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
22564         * sysdeps/x86/bits/xtitypes.h: This.
22565
22566         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
22567         * sysdeps/x86/bits/wordsize.h: This.
22568
22569         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
22570         * sysdeps/x86/bits/huge_vall.h: This.
22571
22572         * sysdeps/i386/bits/select.h: Removed.
22573         * sysdeps/x86_64/bits/select.h: Renamed to ...
22574         * sysdeps/x86/bits/select.h: This.
22575
22576         * sysdeps/i386/bits/setjmp.h: Removed.
22577         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
22578         * sysdeps/x86/bits/setjmp.h: This.
22579
22580         * sysdeps/i386/bits/mathdef.h: Removed.
22581         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
22582         * sysdeps/x86/bits/mathdef.h: This.
22583
22584 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
22585
22586         [BZ #14132]
22587         * include/sys/socket.h (__connect_internal)
22588         (__libc_sa_len_internal): Remove declaration.
22589         (__connect, __libc_sa_len): Declare hidden_proto.
22590         (SA_LEN): Remove use of INTUSE.
22591         * socket/connect.c: Add libc_hidden_def.
22592         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
22593         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
22594         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
22595         alias.
22596         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
22597         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
22598         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
22599         of adding _internal alias.
22600
22601 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22602
22603         [BZ #14117]
22604         * sysdeps/i386/bits/link.h: Removed.
22605         * sysdeps/i386/bits/linkmap.h: Likewise.
22606         * sysdeps/x86_64/bits/link.h: Renamed to ...
22607         * sysdeps/x86/bits/link.h: This.
22608         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
22609         * sysdeps/x86/bits/linkmap.h: This.
22610
22611         * sysdeps/i386/bits/endian.h: Removed.
22612         * sysdeps/x86_64/bits/endian.h: Renamed to ...
22613         * sysdeps/x86/bits/endian.h: This.
22614
22615         * sysdeps/i386/bits/byteswap.h: Removed.
22616         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22617         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
22618         * sysdeps/x86/bits/byteswap.h: This.
22619         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
22620         * sysdeps/x86/bits/byteswap-16.h: This.
22621         * sysdeps/i386/Implies: Add x86.
22622         * sysdeps/x86_64/Implies: Likewise.
22623
22624 2012-05-30  David S. Miller  <davem@davemloft.net>
22625
22626         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
22627         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
22628         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
22629         (FP_TRAPPING_EXCEPTIONS): Define.
22630         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
22631         (FP_TRAPPING_EXCEPTIONS): Define.
22632         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
22633         subnormals only when inexact has been signalled or underflow
22634         exceptions are enabled.
22635         (_FP_PACK_CANONICAL): Likewise.
22636
22637 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22638
22639         [BZ #14183]
22640         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
22641         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
22642
22643 2012-05-30  Richard Henderson  <rth@twiddle.net>
22644
22645         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
22646         with #ifndef NOT_IN_libc.
22647
22648         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
22649         marked to avoid plt entry.
22650
22651 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22652
22653         [BZ #14112]
22654         * Makeconfig (default-abi): New macro.
22655         (abi-includes): Likewise.
22656         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
22657         $(abi-$(default-abi)-lib-soname) for soname if defined.
22658         ($(common-objpfx)gnu/lib-names.stmp): Generate from
22659         abi-variants.
22660         * Makefile (installed-stubs): Likewise.
22661         * include/stubs-biarch.h: Removed.
22662         * scripts/lib-names.awk: Only handle one library at a time.
22663         * scripts/soversions.awk: Remove WORDSIZE support.
22664         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
22665         entries.
22666         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
22667         Removed.
22668         (syscall-list-default-condition): Likewise.
22669         (syscall-list-default-condition): Likewise.
22670         (syscall-list-includes): Likewise.
22671         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
22672         syscall-list-* with abi-*.  Handle undefined abi-variants.
22673         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
22674         * sysdeps/unix/sysv/linux/i386/Implies: New file.
22675         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
22676         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
22677         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
22678         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
22679         Removed.
22680         (syscall-list-32-options): Likewise.
22681         (syscall-list-32-condition): Likewise.
22682         (syscall-list-64-options): Likewise.
22683         (syscall-list-64-condition): Likewise.
22684         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
22685         macro.
22686         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
22687         Renamed to ...
22688         (abi-*): This.
22689         (abi-64-ld-soname): New macro.
22690         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
22691         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
22692         Renamed to ...
22693         (abi-*): This.
22694         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
22695         * sysdeps/x86_64/x32/shlib-versions: Likewise.
22696
22697 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
22698
22699         * sysdeps/unix/sysv/linux/kernel-features.h
22700         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
22701         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
22702         include <kernel-features.h>.
22703         [!__NR_ftruncate64]: Remove conditional code.
22704         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22705         [__NR_ftruncate64]: Make code unconditional.
22706         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22707         * sysdeps/unix/sysv/linux/truncate64.c: Do not
22708         include <kernel-features.h>.
22709         [!__NR_ftruncate64]: Remove conditional code.
22710         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22711         [__NR_ftruncate64]: Make code unconditional.
22712         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
22714         include <kernel-features.h>.
22715         [!__NR_ftruncate64]: Remove conditional code.
22716         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22717         [__NR_ftruncate64]: Make code unconditional.
22718         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22720         include <kernel-features.h>.
22721         [!__NR_ftruncate64]: Remove conditional code.
22722         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22723         [__NR_ftruncate64]: Make code unconditional.
22724         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22725
22726         * configure.in (libc_cv_fpie): Weaken to a compile test using
22727         LIBC_TRY_CC_OPTION.
22728         * configure: Regenerated.
22729
22730 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22731
22732         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
22733         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
22734         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
22735         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22736         Refreshed.
22737         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
22738         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
22739         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
22740         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
22741         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
22742         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22743         Refreshed.
22744
22745 2012-05-27  David S. Miller  <davem@davemloft.net>
22746
22747         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
22748         (___Q_zero): New.
22749         (__Q_simulate_exceptions): Return void.  Change to simulate
22750         exceptions by writing into the %fsr.
22751         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
22752         (__Qp_handle_exceptions): Likewise.
22753         (numbers): Delete.
22754         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
22755         __Qp_handle_exceptions.
22756         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
22757         __Qp_handle_exceptions.
22758         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22759         as unused and give dummy FP_RND_NEAREST initializer.
22760         (FP_INHIBIT_RESULTS): Define.
22761         (___Q_simulate_exceptions): Update declaration.
22762         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
22763         formatting.
22764         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22765         as unused and give dummy FP_RND_NEAREST initializer.
22766         (__Qp_handle_exceptions): Update declaration.
22767         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
22768         formatting.
22769
22770 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
22771
22772         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
22773         the temporary FPU control word.
22774         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
22775         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
22776         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22777         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22778         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22779         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22780         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22781         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22782         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22783         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
22784         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22785
22786 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22787
22788         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
22789         fields.
22790
22791 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
22792
22793         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
22794         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
22795         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
22796         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
22797         Likewise.
22798         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
22799         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
22800         Likewise.
22801
22802 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
22803
22804         * po/h.po: Update from translation team.
22805
22806 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
22807
22808         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
22809
22810         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
22811         handling of denormals.
22812         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
22813         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
22814         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
22815         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
22816         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
22817         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
22818         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
22819         Likewise.
22820
22821 2012-05-26  Marek Polacek  <polacek@redhat.com>
22822
22823         [BZ #14152]
22824         * math/libm-test.inc (fma_test): Don't always expect underflow
22825         exception.
22826
22827 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22828
22829         [BZ #12416]
22830         * elf/tst-execstack.c: Include stackinfo.h.
22831         (do_test): Adjust test case to ensure that pthread_getattr_np
22832         behaviour remains the same after marking stack executable.
22833
22834 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
22835
22836         * sysdeps/unix/sysv/linux/kernel-features.h
22837         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
22838         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
22839         kernel-features.h.
22840         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
22841         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
22842         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
22843         kernel-features.h.
22844         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
22845         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
22846
22847 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
22848
22849         * configure.in: Define the default includes to being none.
22850         * configure: Regenerated.
22851
22852 2012-05-25  Roland McGrath  <roland@hack.frob.com>
22853
22854         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
22855         * sysdeps/x86_64/setjmp.S: Likewise.
22856         * sysdeps/i386/bsd-setjmp.S: Likewise.
22857         * sysdeps/i386/bsd-_setjmp.S: Likewise.
22858         * sysdeps/i386/setjmp.S: Likewise.
22859         * sysdeps/i386/__longjmp.S: Likewise.
22860         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
22861         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
22862
22863         * include/stap-probe.h: New file.
22864         * configure.in: Handle --enable-systemtap.
22865         * configure: Regenerated.
22866         * config.h.in (USE_STAP_PROBE): New #undef.
22867         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
22868         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
22869         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
22870
22871 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
22872
22873         [BZ #13717]
22874         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
22875         to 2.4.0 where earlier.
22876         * sysdeps/unix/sysv/linux/configure: Regenerated.
22877         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22878         <kernel-features.h>.
22879         [__ASSUME_32BITUIDS]: Make code unconditional.
22880         [!__ASSUME_32BITUIDS]: Remove conditional code.
22881         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
22882         <kernel-features.h>.
22883         [__ASSUME_32BITUIDS]: Make code unconditional.
22884         [!__ASSUME_32BITUIDS]: Remove conditional code.
22885         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
22886         [__ASSUME_32BITUIDS]: Make code unconditional.
22887         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
22888         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
22889         <kernel-features.h>.
22890         [__ASSUME_32BITUIDS]: Make code unconditional.
22891         [!__ASSUME_32BITUIDS]: Remove conditional code.
22892         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
22893         <kernel-features.h>.
22894         [__ASSUME_32BITUIDS]: Make code unconditional.
22895         [!__ASSUME_32BITUIDS]: Remove conditional code.
22896         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
22897         <kernel-features.h>.
22898         [__ASSUME_32BITUIDS]: Make code unconditional.
22899         [!__ASSUME_32BITUIDS]: Remove conditional code.
22900         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
22901         <kernel-features.h>.
22902         [__ASSUME_32BITUIDS]: Make code unconditional.
22903         [!__ASSUME_32BITUIDS]: Remove conditional code.
22904         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22905         <kernel-features.h>.
22906         [__ASSUME_32BITUIDS]: Make code unconditional.
22907         [!__ASSUME_32BITUIDS]: Remove conditional code.
22908         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22909         <kernel-features.h>.
22910         [__ASSUME_32BITUIDS]: Make code unconditional.
22911         [!__ASSUME_32BITUIDS]: Remove conditional code.
22912         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
22913         <kernel-features.h>.
22914         [__ASSUME_32BITUIDS]: Make code unconditional.
22915         [!__ASSUME_32BITUIDS]: Remove conditional code.
22916         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22917         <kernel-features.h>.
22918         [__ASSUME_32BITUIDS]: Make code unconditional.
22919         [!__ASSUME_32BITUIDS]: Remove conditional code.
22920         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22921         <kernel-features.h>.
22922         [__ASSUME_32BITUIDS]: Make code unconditional.
22923         [!__ASSUME_32BITUIDS]: Remove conditional code.
22924         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
22925         <kernel-features.h>.
22926         [__ASSUME_32BITUIDS]: Make code unconditional.
22927         [!__ASSUME_32BITUIDS]: Remove conditional code.
22928         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
22929         <kernel-features.h>.
22930         [__NR_setresgid] (__setresgid): Do not declare.
22931         [__ASSUME_32BITUIDS]: Make code unconditional.
22932         [!__ASSUME_32BITUIDS]: Remove conditional code.
22933         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
22934         <kernel-features.h>.
22935         [__NR_setresuid] (__setresuid): Do not declare.
22936         [__ASSUME_32BITUIDS]: Make code unconditional.
22937         [!__ASSUME_32BITUIDS]: Remove conditional code.
22938         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/setreuid.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/setuid.c: Do not include
22971         <kernel-features.h>.
22972         [__ASSUME_32BITUIDS]: Make code unconditional.
22973         [!__ASSUME_32BITUIDS]: Remove conditional code.
22974         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
22975         <kernel-features.h>.
22976         [__ASSUME_32BITUIDS]: Make code unconditional.
22977         [!__ASSUME_32BITUIDS]: Remove conditional code.
22978         * sysdeps/unix/sysv/linux/kernel-features.h
22979         (__ASSUME_SETRESUID_SYSCALL): Remove.
22980         (__ASSUME_SETRESGID_SYSCALL): Likewise.
22981         (__ASSUME_32BITUIDS): Likewise.
22982         (__ASSUME_LDT_WORKS): Likewise.
22983         (__ASSUME_O_DIRECTORY): Likewise.
22984         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
22985         architecture but not kernel version.
22986         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
22987         (__ASSUME_MMAP2_SYSCALL): Likewise.
22988         (__ASSUME_STAT64_SYSCALL): Likewise.
22989         (__ASSUME_IPC64): Likewise.
22990         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
22991         <kernel-features.h>.
22992         [__ASSUME_32BITUIDS]: Make code unconditional.
22993         [!__ASSUME_32BITUIDS]: Remove conditional code.
22994         * sysdeps/unix/sysv/linux/opendir.c: Do not include
22995         <kernel-features.h>.
22996         [__ASSUME_O_DIRECTORY]: Make code unconditional.
22997         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
22998         132096]: Remove conditional code.
22999         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
23000         * sysdeps/unix/sysv/linux/s390/s390-32/chown.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/s390/s390-32/lchown.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/setegid.c: Do not include
23009         <kernel-features.h>.
23010         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
23011         unconditional.
23012         (__setresgid): Do not declare.
23013         [__ASSUME_32BITUIDS]: Make code unconditional.
23014         [!__ASSUME_32BITUIDS]: Remove conditional code.
23015         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
23016         <kernel-features.h>.
23017         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
23018         unconditional.
23019         (__setresuid): Do not declare.
23020         [__ASSUME_32BITUIDS]: Make code unconditional.
23021         [!__ASSUME_32BITUIDS]: Remove conditional code.
23022         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
23023         <kernel-features.h>.
23024         [__ASSUME_32BITUIDS]: Make code unconditional.
23025         [!__ASSUME_32BITUIDS]: Remove conditional code.
23026         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
23027         <kernel-features.h>.
23028         [__ASSUME_32BITUIDS]: Make code unconditional.
23029         [!__ASSUME_32BITUIDS]: Remove conditional code.
23030
23031 2012-05-25  Richard Henderson  <rth@twiddle.net>
23032
23033         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
23034         dl_hwcap to ifunc resolver.
23035         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
23036         elf_ifunc_invoke.
23037         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
23038         dl_hwcap to ifunc resolver.
23039         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
23040
23041 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23042
23043         [BZ #14153]
23044         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
23045         for |x| <= 2**-26, not 2**-57.
23046         * math/libm-test.inc (acos_test): Do not allow spurious underflow
23047         exception.
23048
23049 2012-05-24  Jeff Law  <law@redhat.com>
23050
23051         * stdio-common/Makefile (tests): Add bug25.
23052         * stdio-common/bug25.c: New test.
23053
23054 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23055
23056         [BZ #13576]
23057         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
23058         multiple of MALLOC_ALIGNMENT in size.
23059         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
23060
23061 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23062
23063         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
23064         Require >= 256.
23065         (FILENAME_MAX): Use macro-int-constant.
23066         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
23067         (_IOFBF): Use macro-int-constant.
23068         (_IOLBF): Likewise.
23069         (_IONBF): Likewise.
23070         (SEEK_CUR): Likewise.
23071         (SEEK_END): Likewise.
23072         (SEEK_SET): Likewise.
23073         (TMP_MAX): Likewise.
23074         (EOF): Use macro-int-constant.  Require < 0.
23075         (NULL): Use macro-constant.  Require == 0.
23076         (stdin): Require type to be FILE *.
23077         (stdout): Likewise.
23078         (stderr): Likewise.
23079         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
23080         macro-int-constant.
23081         (EXIT_SUCCESS): Likewise.
23082         (NULL): Use macro-constant.  Require == 0.
23083         (RAND_MAX): Use macro-int-constant.
23084         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
23085         [C99-based standards] (strtof): Require function.
23086         [C99-based standards] (strtold): Likewise.
23087         [C99-based standards] (strtoll): Likewise.
23088         [C99-based standards] (strtoull): Likewise.
23089         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
23090         [ISO || ISO99 || ISO11] (limits.h): Likewise.
23091         [ISO || ISO99 || ISO11] (math.h): Likewise.
23092         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
23093         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
23094         [ISO || ISO99 || ISO11] (*_t): Do not allow.
23095
23096 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
23097
23098         [BZ #14132]
23099         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
23100         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
23101         * intl/dgettext.c (DCGETTEXT): Likewise.
23102         * intl/gettext.c (DCGETTEXT): Likewise.
23103         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
23104         * posix/regex_internal.h (gettext): Likewise.
23105         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
23106         Remove declaration.
23107         * include/argz.h (__argz_count_internal)
23108         (__argz_stringify_internal): Remove declaration.
23109         (__argz_count, __argz_stringify): Declare hidden proto.
23110         * intl/dcgettext.c: Remove use of INTDEF.
23111         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
23112         * string/argz-stringify.c: Likewise.
23113         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23114         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23115         Declare hidden proto.
23116         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23117         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23118         Declare hidden proto.
23119         * include/stdio.h (__asprintf_internal): Don't declare.
23120         (__asprintf): Don't define as macro.  Declare hidden proto.
23121         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
23122         (__fsetlocking): Declare hidden proto.
23123         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
23124         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
23125         hidden proto.
23126         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
23127         (_IO_setlinebuf): Remove use of INTUSE.
23128         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
23129         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
23130         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
23131         Remove declaration.
23132         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
23133         (_IO_do_flush): Remove use of INTUSE.
23134         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
23135         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
23136         (_IO_adjust_column, _IO_least_wmarker)
23137         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
23138         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
23139         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
23140         (_IO_default_doallocate, _IO_wdefault_doallocate)
23141         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
23142         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
23143         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
23144         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
23145         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
23146         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
23147         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
23148         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
23149         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
23150         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
23151         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
23152         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
23153         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
23154         proto.
23155         (_IO_flush_all_internal, _IO_adjust_column_internal)
23156         (_IO_default_uflow_internal, _IO_default_finish_internal)
23157         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
23158         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
23159         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
23160         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
23161         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
23162         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
23163         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
23164         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
23165         (_IO_file_close_internal, _IO_file_close_it_internal)
23166         (_IO_file_underflow_internal, _IO_file_overflow_internal)
23167         (_IO_file_init_internal, _IO_file_attach_internal)
23168         (_IO_file_fopen_internal, _IO_file_read_internal)
23169         (_IO_file_sync_internal, _IO_file_seek_internal)
23170         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
23171         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
23172         (_IO_str_underflow_internal, _IO_str_overflow_internal)
23173         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
23174         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
23175         (_IO_list_all_internal, _IO_link_in_internal)
23176         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
23177         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
23178         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
23179         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
23180         (_IO_do_write_internal, _IO_padn_internal)
23181         (_IO_getline_info_internal, _IO_getline_internal)
23182         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
23183         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
23184         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
23185         (_IO_vfscanf_internal, _IO_vfprintf_internal)
23186         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
23187         (_IO_init_internal, _IO_un_link_internal): Don't declare.
23188         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
23189         with libc_hidden_ver, remove use of INTUSE.
23190         * libio/genops.c: Likewise.
23191         * libio/freopen.c: Likewise.
23192         * libio/freopen64.c: Likewise.
23193         * libio/iofclose.c: Likewise.
23194         * libio/iofdopen.c: Likewise.
23195         * libio/iofflush.c: Likewise.
23196         * libio/iofflush_u.c: Likewise.
23197         * libio/iofgets.c: Likewise.
23198         * libio/iofgets_u.c: Likewise.
23199         * libio/iofopen.c: Likewise.
23200         * libio/iofopncook.c: Likewise.
23201         * libio/iofread.c: Likewise.
23202         * libio/iofread_u.c: Likewise.
23203         * libio/ioftell.c: Likewise.
23204         * libio/iofwrite.c: Likewise.
23205         * libio/iogetline.c: Likewise.
23206         * libio/iogets.c: Likewise.
23207         * libio/iogetwline.c: Likewise.
23208         * libio/iopadn.c: Likewise.
23209         * libio/iopopen.c: Likewise.
23210         * libio/ioseekoff.c: Likewise.
23211         * libio/ioseekpos.c: Likewise.
23212         * libio/iosetbuffer.c: Likewise.
23213         * libio/iosetvbuf.c: Likewise.
23214         * libio/ioungetc.c: Likewise.
23215         * libio/ioungetwc.c: Likewise.
23216         * libio/iovdprintf.c: Likewise.
23217         * libio/iovsprintf.c: Likewise.
23218         * libio/iovsscanf.c: Likewise.
23219         * libio/memstream.c: Likewise.
23220         * libio/obprintf.c: Likewise.
23221         * libio/oldfileops.c: Likewise.
23222         * libio/oldiofclose.c: Likewise.
23223         * libio/oldiofdopen.c: Likewise.
23224         * libio/oldiofopen.c: Likewise.
23225         * libio/oldiopopen.c: Likewise.
23226         * libio/oldstdfiles.c: Likewise.
23227         * libio/putc.c: Likewise.
23228         * libio/setbuf.c: Likewise.
23229         * libio/setlinebuf.c: Likewise.
23230         * libio/stdfiles.c: Likewise.
23231         * libio/strops.c: Likewise.
23232         * libio/vasprintf.c: Likewise.
23233         * libio/vscanf.c: Likewise.
23234         * libio/vsnprintf.c: Likewise.
23235         * libio/vswprintf.c: Likewise.
23236         * libio/wfiledoalloc.c: Likewise.
23237         * libio/wfileops.c: Likewise.
23238         * libio/wgenops.c: Likewise.
23239         * libio/wmemstream.c: Likewise.
23240         * libio/wstrops.c: Likewise.
23241         * libio/__fpurge.c: Likewise.
23242         * libio/__fsetlocking.c: Likewise.
23243         * assert/assert.c: Likewise.
23244         * debug/fgets_chk.c: Likewise.
23245         * debug/fgets_u_chk.c: Likewise.
23246         * debug/fread_chk.c: Likewise.
23247         * debug/fread_u_chk.c: Likewise.
23248         * debug/gets_chk.c: Likewise.
23249         * debug/obprintf_chk.c: Likewise.
23250         * debug/vasprintf_chk.c: Likewise.
23251         * debug/vdprintf_chk.c: Likewise.
23252         * debug/vsnprintf_chk.c: Likewise.
23253         * debug/vsprintf_chk.c: Likewise.
23254         * malloc/mtrace.c: Likewise.
23255         * misc/error.c: Likewise.
23256         * misc/syslog.c: Likewise.
23257         * stdio-common/asprintf.c: Likewise.
23258         * stdio-common/fxprintf.c: Likewise.
23259         * stdio-common/getw.c: Likewise.
23260         * stdio-common/isoc99_fscanf.c: Likewise.
23261         * stdio-common/isoc99_scanf.c: Likewise.
23262         * stdio-common/isoc99_vfscanf.c: Likewise.
23263         * stdio-common/isoc99_vscanf.c: Likewise.
23264         * stdio-common/isoc99_vsscanf.c: Likewise.
23265         * stdio-common/printf-prs.c: Likewise.
23266         * stdio-common/printf_fp.c: Likewise.
23267         * stdio-common/printf_fphex.c: Likewise.
23268         * stdio-common/printf_size.c: Likewise.
23269         * stdio-common/putw.c: Likewise.
23270         * stdio-common/scanf.c: Likewise.
23271         * stdio-common/sprintf.c: Likewise.
23272         * stdio-common/tmpfile.c: Likewise.
23273         * stdio-common/vfprintf.c: Likewise.
23274         * stdio-common/vfscanf.c: Likewise.
23275         * stdlib/strfmon_l.c: Likewise.
23276         * sunrpc/openchild.c: Likewise.
23277         * sunrpc/xdr_stdio.c: Likewise.
23278         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
23279         * sysdeps/mach/hurd/tmpfile.c: Likewise.
23280
23281 2012-05-24  Roland McGrath  <roland@hack.frob.com>
23282
23283         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23284
23285         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
23286         in the third column, to generate for the shared library an IFUNC
23287         that uses _dl_vdso_vsym.
23288         * Makerules (COMPILE.c, compile-stdin.c): New variables.
23289         * Makeconfig (object-suffixes-noshared): New variable.
23290
23291         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
23292         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
23293         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
23294         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
23295
23296         [BZ #14132]
23297         * include/sys/time.h (__gettimeofday): Remove macro.
23298         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
23299         * time/gettimeofday.c (__gettimeofday): Remove #undef.
23300         Remove INTDEF.
23301         (__gettimeofday): Add libc_hidden_def.
23302         (gettimeofday): Add libc_hidden_weak.
23303         * sysdeps/mach/gettimeofday.c: Likewise.
23304         * sysdeps/posix/gettimeofday.c: Likewise.
23305         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
23306         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23307         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
23308         (__gettimeofday_internal): Remove strong_alias.
23309         (__gettimeofday): Add libc_hidden_def.
23310         (gettimeofday): Add libc_hidden_weak.
23311         * sysdeps/unix/syscalls.list (gettimeofday):
23312         Remove __gettimeofday_internal alias.
23313
23314 2012-05-24  Daniel Jacobowitz  <drow@false.org>
23315             H.J. Lu  <hongjiu.lu@intel.com>
23316
23317         [BZ #12495]
23318         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
23319         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
23320         (largebin_index_32_big): New.
23321         (largebin_index): Use it for 16-byte alignment.
23322         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
23323         correction with front_misalign.
23324
23325 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23326
23327         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
23328         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
23329         Likewise.
23330         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
23331         Likewise.
23332         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
23333         Likewise.
23334         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
23335         Likewise.
23336         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
23337         Likewise.
23338         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
23339         Likewise.
23340         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
23341         Likewise.
23342         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
23343         Likewise.
23344         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
23345         Likewise.
23346         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
23347         Likewise.
23348         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
23349         Likewise.
23350         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
23351         Likewise.
23352
23353         * scripts/data/c++-types-x32-linux-gnu.data: New file.
23354         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
23355
23356 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23357
23358         [BZ #10846]
23359         [BZ #14036]
23360         * math/libm-test.inc (exp_test): Add test from bug 14036.
23361         (pow_test): Add test from bug 10846.
23362
23363         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
23364         and other flags.
23365         (special_function): Do not include flags in test name.
23366         (parse_args): Likewise.
23367         * sysdeps/i386/fpu/libm-test-ulps: Update.
23368         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
23369         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
23370         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
23371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23372
23373         * math/gen-libm-test.pl (%beautify): Add entries for underflow
23374         exceptions.
23375         * math/libm-test.inc ("Philosophy"): Update comment about
23376         exception testing.
23377         (UNDERFLOW_EXCEPTION): New macro.
23378         (UNDERFLOW_EXCEPTION_OK): Likewise.
23379         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
23380         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
23381         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
23382         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
23383         (INVALID_EXCEPTION_OK): Update value.
23384         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
23385         (OVERFLOW_EXCEPTION_OK): Likewise.
23386         (IGNORE_ZERO_INF_SIGN): Likewise.
23387         (test_exceptions): Handle underflow exceptions.
23388         (acos_test): Update for underflow exception expectations.
23389         (cexp_test): Likewise.
23390         (clog_test): Likewise.
23391         (clog10_test): Likewise.
23392         (csqrt_test): Likewise.
23393         (ctan_test): Likewise.
23394         (ctanh_test): Likewise.
23395         (exp_test): Likewise.
23396         (exp10_test): Likewise.
23397         (exp2_test): Likewise.
23398         (expm1_test): Likewise.
23399         (fma_test): Likewise.
23400         (j0_test): Likewise.
23401         (jn_test): Likewise.
23402         (nexttoward_test): Likewise.
23403         (pow_test): Likewise.
23404         (scalbn_test): Likewise.
23405         (scalbln_test): Likewise.
23406         (tan_test): Likewise.
23407         (y1_test): Likewise.
23408         * sysdeps/i386/fpu/libm-test-ulps: Update.
23409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23410
23411 2012-05-23  David S. Miller  <davem@davemloft.net>
23412
23413         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
23414         (__libc_sigaction): Remove unused local variables.
23415
23416 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23417
23418         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
23419
23420 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23421
23422         mktime: avoid signed integer overflow
23423         * time/mktime.c (__mktime_internal): Do not mishandle the case
23424         where diff == INT_MIN.
23425
23426         mktime: simplify computation of average
23427         * time/mktime.c (ranged_convert): Use new time_t_avg function
23428         instead of rolling our own (probably-slower) code.
23429
23430         mktime: do not assume signed right shift propagates sign bit
23431         * time/mktime.c (isdst_differ): New static function.
23432         (__mktime_internal): No need to normalize tm_isdst now.
23433         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
23434         tm_isdst values.
23435
23436         mktime: merge another wrapv change from gnulib
23437         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
23438         from some compilers.
23439
23440         mktime: remove incorrect attempt at unusual arithmetics
23441         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
23442         The code didn't really work on such machines anyway.
23443         (TYPE_MINIMUM): Assume two's complement.
23444         (twos_complement_arithmetic): Verify that long_int and time_t
23445         are two's complement (or unsigned, in the latter case).
23446
23447         mktime: check signed shifts on long_int and time_t, too
23448         * time/mktime.c (SHR): Check that shifts work as desired
23449         on the types long_int and time_t too, as SHR is used on
23450         such types.
23451
23452         mktime: do not assume 'long' is wide enough
23453         * time/mktime.c (verify): Move decl up.
23454         (long_int): New type.
23455         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
23456         to remove assumption in the code that 'long' is wide enough to
23457         store year values.  This assumption is not true on x32 and on
23458         some non-glibc platforms.
23459
23460         mktime: merge wrapv change from gnulib
23461         * time/mktime.c (WRAPV): New macro.
23462         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
23463         (guess_time_tm, __mktime_internal): Do not assume that signed
23464         integer overflow wraps around; modern compilers generate code
23465         where this assumption is no longer valid.
23466
23467 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23468
23469         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23470         Replace "jmp L(pseudo_end)" with "ret".
23471         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
23472         Likewise.
23473
23474 2012-05-23  Andreas Jaeger  <aj@suse.de>
23475
23476         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
23477         * sysdeps/unix/sysv/linux/poll.c: Remove file.
23478
23479 2012-05-23  Andreas Jaeger  <aj@suse.de>
23480             Maximilian Attems  <max@stro.at>
23481
23482         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
23483         New macros.
23484
23485 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23486
23487         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
23488         code so that pseudo_end is just ret and the stack pointer is
23489         correct also for static library in error case.
23490
23491 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
23492
23493         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
23494         move to syscalls.list.
23495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
23496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
23497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
23498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
23499
23500         * manual/install.texi (Running make install): Do not mention Linux
23501         kernel version for which pt_chown is not needed.
23502         (Linux): Do not mention problems with nscd with 2.0 kernels.
23503         * INSTALL: Regenerated.
23504
23505 2012-05-23  Andreas Jaeger  <aj@suse.de>
23506
23507         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
23508         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
23509         macro.
23510         * sysdeps/unix/sysv/linux/s390/bits/mman.h
23511         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23512         * sysdeps/unix/sysv/linux/sh/bits/mman.h
23513         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23514         * sysdeps/unix/sysv/linux/i386/bits/mman.h
23515         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23516         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
23517         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23518         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
23519         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23520         * sysdeps/unix/sysv/linux/bits/in.h
23521         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
23522
23523 2012-05-22  Roland McGrath  <roland@hack.frob.com>
23524
23525         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
23526         (PREPARE_VERSION): Just use assert instead, it will be elided
23527         under [NDEBUG] anyway.
23528
23529 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23530
23531         * sysdeps/unix/sysv/linux/Makefile: Include
23532         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
23533         (sysdep_routines): Remove sysctl.
23534         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
23535         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
23536         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
23537         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
23538         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
23539
23540 2012-05-22  Andreas Jaeger  <aj@suse.de>
23541
23542         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
23543         that pseudo_end is just ret and the stack pointer is correct also
23544         for static library in error case.
23545
23546 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
23547
23548         [BZ #14122]
23549         * nss/nsswitch.c (defconfig_entries): New variable.
23550         (__nss_database_lookup): Don't leak defconfig entries.
23551         (nss_parse_service_list): Don't leak on error paths.
23552         (free_database_entries): New function.
23553         (free_defconfig): New function.
23554         (free_mem): Move common code to free_database_entries.
23555
23556 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23557
23558         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
23559         Add arch_prctl.
23560         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
23561
23562         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
23563         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
23564         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
23565         New macro.
23566         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
23567         (INTERNAL_SYSCALL_TYPES): Likewise.
23568         (LOAD_ARGS_TYPES_[1-6]): Likewise.
23569         (LOAD_REGS_TYPES_[1-6]): Likewise.
23570         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
23571         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
23572
23573 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23574
23575         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
23576         copysignl for GLIBC_2_0.
23577         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
23578         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
23579         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
23580         logbl for GLIBC_2_0.
23581         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23582         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23583
23584 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23585
23586         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
23587         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23588
23589         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23590         Use "neg %eax".
23591
23592         * time/mktime.c: Update copyright years.
23593
23594 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23595
23596         mktime: merge comment-quoting-style change from gnulib
23597         * time/mktime.c: Quote 'like this' in comments.
23598         The GNU coding standards suggest that we no longer quote `like this',
23599         as "`" and "'" are typically rendered asymmetrically nowadays.
23600         The typical gnulib style is to quote 'like this' when quoting
23601         code, and "like this" when quoting English.
23602
23603         * time/mktime.c (compile-command): Add "-I.".
23604
23605         mktime: merge mktime-internal.h change from gnulib
23606         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
23607
23608         mktime: merge time_r change from gnulib
23609         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
23610
23611         mktime: merge DEBUG change from gnulib
23612         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
23613         case system <time.h> has a #define.
23614
23615         mktime: merge <sys/types.h> change from gnulib
23616         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
23617         since <time.t> is now guaranteed to define time_t.
23618
23619         mktime: merge HAVE_CONFIG_H change from gnulib
23620         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
23621
23622 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23623
23624         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23625         Use "neg %eax".
23626
23627         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
23628         __rlim_t cast.
23629         (struct rusage): Use anonymous union to pad each field to
23630         __syscall_slong_t.
23631
23632 2012-05-21  David S. Miller  <davem@davemloft.net>
23633
23634         * Makefules (o-iterator): Remove .s cases.
23635         (compile-command.s): Delete.
23636         (COMPILE.s): Delete.
23637         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
23638
23639 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
23640
23641         * configure.in (libc_cv_predef_stack_protector): Only consider
23642         "foobar" and "__stack_chk_fail" lines in libc_undefs.
23643         * configure: Regenerated.
23644
23645 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23646
23647         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23648         New macro.  Use R*LP on int and pointer.
23649         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
23650         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
23651         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
23652         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
23653
23654         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
23655         [__WORDSIZE_TIME64_COMPAT32] instead of
23656         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
23657         (struct utmp): Likewise.
23658         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
23659         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
23660         Renamed to ...
23661         (__WORDSIZE_TIME64_COMPAT32): This.
23662         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
23663         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
23664         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
23665         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
23666         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
23667         (__WORDSIZE_TIME64_COMPAT32): New macro.
23668
23669 2012-05-21  Andreas Jaeger  <aj@suse.de>
23670
23671         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
23672         only if [SHARED]. Add prototype for __wcschr_ia32.
23673
23674 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23675
23676         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
23677         of %rbp unmolested in the jmp_buf while mangling the low bits.
23678         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
23679         unmolested high bits of %rbp while demangling the low bits.
23680         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23681
23682 2012-05-21  Andreas Jaeger  <aj@suse.de>
23683
23684         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
23685         * sunrpc/svc_simple.c: Use it for registerrpc.
23686         * sunrpc/xcrypt.c: Use it for passwd2des.
23687
23688         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
23689
23690 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23691
23692         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
23693         Don't define if [__SYSCALL_WORDSIZE != 32].
23694         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
23695         New macro.
23696
23697 2012-05-21  Bruno Haible  <bruno@clisp.org>
23698             Andreas Jaeger  <aj@suse.de>
23699
23700         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
23701         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
23702         inptr and inend for must_buffer_ch.
23703         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
23704         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
23705         * stdio-common/Makefile (tests): Remove bug15.
23706         (bug15-ENV): Remove macro.
23707         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
23708         anymore.
23709
23710 2012-05-19  Andreas Jaeger  <aj@suse.de>
23711             Roland McGrath  <roland@hack.frob.com>
23712
23713         * manual/contrib.texi: Completely rewritten. It contains now an
23714         alphabetical list of contributors and their contributions.
23715
23716 2012-05-21  Richard Henderson  <rth@twiddle.net>
23717
23718         * misc/getauxval.c (__getauxval): Use unsigned long int.
23719         * misc/sys/auxv.h: Include <sys/cdefs.h>.
23720         (getauxval): Use unsigned long int.
23721
23722 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23723
23724         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23725
23726 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23727
23728         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
23729         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
23730         __alignof__ (long double).
23731
23732 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23733
23734         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23735
23736 2012-05-20  Richard Henderson  <rth@twiddle.net>
23737
23738         * misc/getauxval.c: New file.
23739         * misc/sys/auxv.h: New file.
23740         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
23741         (routines): Add getauxval.
23742         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
23743         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
23744         * elf/dl-sysdep.c (_dl_auxv): Remove.
23745         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
23746         * elf/dl-support.c (_dl_auxv): New variable.
23747         (_dl_aux_init): Initialize it.
23748         * manual/startup.texi (Auxiliary Vector): New node.
23749         * sysdeps/generic/bits/hwcap.h: New file.
23750         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
23751         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
23752         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
23753         * sysdeps/sparc/sysdep.h: ... here.  Include it.
23754         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
23755         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
23756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23757         Update.
23758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
23759         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
23760         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
23761         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
23762         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23764         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
23765         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
23766
23767 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23768
23769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23770
23771 2012-05-19  David S. Miller  <davem@davemloft.net>
23772
23773         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23774
23775 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23776
23777         [BZ #14123]
23778         * math/s_ccosh.c: Include <float.h>
23779         (__ccosh): Avoid internal overflow calculating sinh and cosh
23780         values before multiplying by sin and cos values.
23781         * math/s_ccoshf.c: Likewise.
23782         * math/s_ccoshl.c: Likewise.
23783         * math/s_csin.c: Likewise.
23784         * math/s_csinf.c: Likewise.
23785         * math/s_csinl.c: Likewise.
23786         * math/s_csinh.c: Likewise.
23787         * math/s_csinhf.c: Likewise.
23788         * math/s_csinhl.c: Likewise.
23789         * math/libm-test.inc (ccos_test): Add more tests.
23790         (ccosh_test): Likewise.
23791         (csin_test): Likewise.
23792         (csinh_test): Likewise.
23793         * sysdeps/i386/fpu/libm-test-ulps: Update.
23794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23795
23796 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
23797
23798         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
23799         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
23800
23801         * sysdeps/x86_64/x32/_itoa.h: Add comment.
23802
23803 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23804
23805         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
23806         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
23807         * sysdeps/powerpc/soft-fp/Versions: Likewise.
23808         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
23809         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
23810         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
23811         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
23812         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
23813         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
23814         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
23815         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
23816         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
23817         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
23818         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
23819         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
23820         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
23821         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
23822         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
23823         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
23824         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
23825         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
23826         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
23827         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
23828         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
23829         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
23830         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
23831         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
23832         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
23833         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
23834         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
23835         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
23836
23837 2012-05-18  Andreas Jaeger  <aj@suse.de>
23838
23839         * csu/.gitignore: Delete.
23840
23841 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23842
23843         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
23844         (timex): Use __syscall_slong_t.
23845
23846 2012-05-18  Andreas Jaeger  <aj@suse.de>
23847             Carlos O'Donell  <carlos_odonell@mentor.com>
23848
23849         * manual/install.texi (Configuring and compiling): Update
23850         description about files modified in the source directory.
23851         * INSTALL: Regenerated.
23852
23853 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23854
23855         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
23856         value.  Use "or" to set return value to -1.
23857         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
23858         negate return value.
23859
23860 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23861
23862         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
23863         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
23864         failure if the compiler has Graphite support disabled.
23865         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
23866         Likewise.
23867         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
23868         CFLAGS-memmove.c): Likewise.
23869         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
23870         Likewise.
23871
23872 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23873
23874         * sysdeps/x86_64/x32/_itoa.h: New file.
23875
23876         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
23877         getdents system call only if kernel and user dirents have the
23878         same d_ino and d_off.
23879
23880         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
23881         LLONG_MAX != LONG_MAX.
23882         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23883         (_fitoa_word): Likewise.
23884
23885         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
23886         years.
23887         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
23888         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
23889         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
23890
23891         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
23892         include <bits/wordsize.h>.  Check __x86_64__ instead of
23893         __WORDSIZE.
23894         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
23895         if __x86_64__ is defined.  Use anonymous union on fpstate.
23896
23897         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
23898         anonymous union.
23899
23900 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
23901
23902         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
23903         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
23904         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
23905         Refer to _rtld_local_ro instead of _rtld_global_ro.
23906         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
23907         Likewise.
23908         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
23909         Likewise.
23910         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
23911         Likewise.
23912         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
23913         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
23914         of _rtld_global, and rtld_progname instead of _dl_argv[0].
23915
23916         * sysdeps/powerpc/powerpc32/dl-machine.c
23917         (__elf_machine_runtime_setup) [PROF]: Don't reference
23918         _dl_prof_resolve.
23919
23920 2012-05-18  Andreas Jaeger  <aj@suse.de>
23921
23922         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
23923         function only available for GCCs before 3.4 since GCC 3.4
23924         introduced a builtin.
23925         (lrint): Likewise.
23926         (llrintf): Likewise.
23927         (llrint): Likewise.
23928         (fmaxf): Likewise.
23929         (fmax): Likewise.
23930         (fminf): Likewise.
23931         (fmin): Likewise.
23932         (rint): Likewise.
23933         (rintf): Likewise.
23934         (nearbyint): Likewise.
23935         (nearbyintf): Likewise.
23936         (ceil): Likewise.
23937         (ceilf): Likewise.
23938         (floor): Likewise.
23939         (floorf): Likewise.
23940
23941 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23942
23943         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
23944         on both fields and cast pointer to __syscall_ulong_t.
23945
23946         * bits/types.h (__fsword_t): New type.
23947         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
23948         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
23949         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23950         (__FSWORD_T_TYPE): Likewise.
23951         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23952         (__FSWORD_T_TYPE): Likewise.
23953         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23954         (__FSWORD_T_TYPE): Likewise.
23955         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
23956         (__FSWORD_T_TYPE): Likewise.
23957         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
23958         __SWORD_TYPE with __fsword_t.
23959         (statfs64): Likewise.
23960
23961 2012-05-17  David S. Miller  <davem@davemloft.net>
23962
23963         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
23964
23965 2012-05-17  Andreas Jaeger  <aj@suse.de>
23966
23967         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
23968         warning.
23969
23970 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23971
23972         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
23973
23974 2012-05-17  Andreas Jaeger  <aj@suse.de>
23975
23976         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
23977         when it is used.
23978
23979 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
23980
23981         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
23982
23983 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23984
23985         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
23986         * sysdeps/x86_64/tst-mallocalign1.c: New file.
23987
23988 2012-05-17  Andreas Jaeger  <aj@suse.de>
23989             Carlos O'Donell  <carlos_odonell@mentor.com>
23990
23991         [BZ #14059]
23992         * sysdeps/x86_64/multiarch/init-arch.h
23993         (bit_YMM_Usable): Rename to...
23994         (bit_AVX_Usable): ... this.
23995         (bit_FMA4_Usable): New macro.
23996         (bit_XMM_state): New macro.
23997         (bit_YMM_state): New macro.
23998         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
23999         [__ASSEMBLER__] (index_AVX_Usable): ... this.
24000         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
24001         (CPUID_OSXSAVE): New macro.
24002         (CPUID_AVX): New macro.
24003         (CPUID_FMA4): New macro.
24004         (index_YMM_Usable): Rename to...
24005         (index_AVX_Usable): ... this.
24006         (HAS_AVX): Use HAS_ARCH_FEATURE.
24007         (HAS_FMA4): Likewise.
24008         (HAS_YMM_USABLE): Remove.
24009         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24010         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
24011         are present.
24012         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
24013         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
24014         * sysdeps/x86_64/multiarch/Makefile: Likewise.
24015         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
24016         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
24017
24018 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24019
24020         * math/libm-test.c: Support platforms without multiple rounding modes.
24021         * math/bug-nextafter.c: Support platforms without FP exceptions.
24022         * math/bug-nexttoward.c: Likewise.
24023         * math/test-fenv.c: Likewise.
24024         * math/test-misc.c: Likewise.
24025         * stdlib/bug-getcontext.c: Likewise.
24026
24027 2012-05-17  Andreas Jaeger  <aj@suse.de>
24028
24029         * manual/examples/search.c (critter_cmp): Change signature to
24030         avoid warnings.
24031         * manual/string.texi (Collation Functions): Likewise.
24032
24033 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24034
24035         * bits/types.h: Fold copyright years.
24036         * bits/typesizes.h: Likewise.
24037         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
24038         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
24039         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
24040         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
24041         * time/time.h: Likewise.
24042
24043 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
24044
24045         [BZ #208]
24046         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
24047         in instead of returning them.  Return void.
24048         (__libc_mallinfo): Accumulate over all arenas.
24049         (__malloc_stats): Adjust for change in int_mallinfo interface.
24050
24051 2012-05-16  Roland McGrath  <roland@hack.frob.com>
24052
24053         [BZ #10375]
24054         * configure.in (NM): Add AC_CHECK_TOOL for it.
24055         (libc_extra_cflags): New substituted variable.
24056         Check for -fstack-protector being used implicitly.
24057         * configure: Regenerated.
24058         * config.make.in (config-extra-cflags): New variable,
24059         gets @libc_extra_cflags@.
24060         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
24061
24062         [BZ #10375]
24063         * configure.in: Check for _FORTIFY_SOURCE being predefined.
24064         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
24065         * configure: Regenerated.
24066         * config.make.in (CPPUNDEFS): New substituted variable.
24067         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
24068         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
24069         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
24070
24071 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24072
24073         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
24074         (mq_attr): Use __syscall_slong_t.
24075
24076 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24077
24078         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
24079         Check __x86_64__ instead of __WORDSIZE.
24080         (_STAT_VER_LINUX): Likewise.
24081         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
24082         __syscall_ulong_t and __syscall_slong_t.
24083         (stat64): Likewise.
24084
24085 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24086
24087         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
24088
24089 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24090
24091         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
24092
24093 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24094
24095         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
24096         __syscall_ulong_t.
24097
24098         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
24099         include <bits/wordsize.h>.  Check __x86_64__ instead of
24100         __WORDSIZE.
24101         (greg_t): Use "__extension__ long long int" if __x86_64__ is
24102         defined.
24103         (mcontext_t): Replace "unsigned long" with "unsigned long long".
24104
24105         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
24106         include <bits/wordsize.h>.  Check __x86_64__ instead of
24107         __WORDSIZE.
24108         (user_regs_struct): Use "__extension__ unsigned long long"
24109         instead of "unsigned long" if __x86_64__ is defined.
24110         (user): Likewise.  Pad after pointer field if __ILP32__ is
24111         defined.
24112
24113 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
24114
24115         * configure.in (makeinfo): Require version 4.5 or later.  Allow
24116         versions 5 to 9.
24117         * configure: Regenerated.
24118         * manual/install.texi (texinfo): Increase version requirement to
24119         4.5 or later.
24120         * INSTALL: Regenerated.
24121
24122         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
24123
24124 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24125
24126         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
24127
24128         * sysdeps/x86_64/x32/ffs.c: New file.
24129
24130         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
24131         __syscall_ulong_t.
24132         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
24133         defined.  Use __syscall_ulong_t.
24134         (shminfo): Use __syscall_ulong_t.
24135         (shm_info): Likewise.
24136
24137         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
24138         __syscall_ulong_t.
24139
24140         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
24141         <bits/wordsize.h>.
24142         (msgqnum_t): Use __syscall_ulong_t.
24143         (msglen_t): Likewise.
24144         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
24145         __syscall_ulong_t.
24146
24147         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
24148         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24149
24150         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
24151
24152         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
24153         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
24154
24155         * sysvipc/sys/msg.h (msgbuf): Replace long int with
24156         __syscall_slong_t.
24157
24158         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
24159         include <bits/wordsize.h>.  Check __x86_64__ instead of
24160         __WORDSIZE.
24161
24162         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
24163         "unsigned long long int" if __x86_64__ is defined.
24164         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
24165
24166         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
24167         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24168         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
24169
24170         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
24171         <stdint.h>.
24172         (GET_PC): Cast to uintptr_t first.
24173         (GET_FRAME): Likewise.
24174         (GET_STACK): Likewise.
24175
24176         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
24177         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
24178         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
24179         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
24180         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
24181         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
24182         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
24183         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
24184         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
24185         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
24186         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
24187         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
24188         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
24189         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
24190         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
24191         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
24192         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
24193         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
24194         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
24195         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
24196         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
24197         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
24198         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
24199         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
24200         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
24201         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
24202         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
24203         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
24204         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
24205
24206 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
24207
24208         * Makerules (+depfiles): Also collect depfiles from .oS in
24209         $(extra-objs).
24210         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
24211         .oS, $(libnldbl-routines)).
24212
24213         * Makerules (native-compile-mkdep-flags): Define.
24214         * sunrpc/Makefile (extra-objs): Add $(addprefix
24215         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
24216         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
24217         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
24218         calling $(make-target-directory).
24219
24220 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24221
24222         * bits/types.h (__snseconds_t): Removed.
24223         * time/time.h (struct timespec): Replace __snseconds_t with
24224         __syscall_slong_t.
24225         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
24226         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
24227         Likewise.
24228         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24229         (__SNSECONDS_T_TYPE): Likewise.
24230         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24231         (__SNSECONDS_T_TYPE): Likewise.
24232         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24233         (__SNSECONDS_T_TYPE): Likewise.
24234
24235 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24236
24237         * sysdeps/mach/hurd/bits/typesizes.h
24238         (__SYSCALL_SLONG_TYPE): New macro.
24239         (__SYSCALL_ULONG_TYPE): Likewise.
24240
24241 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24242
24243         * bits/types.h (__syscall_slong_t): New type.
24244         (__syscall_ulong_t): Likewise.
24245
24246         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
24247         (__SYSCALL_ULONG_TYPE): Likewise.
24248         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24249         (__SYSCALL_SLONG_TYPE): Likewise.
24250         (__SYSCALL_ULONG_TYPE): Likewise.
24251         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24252         (__SYSCALL_SLONG_TYPE): Likewise.
24253         (__SYSCALL_ULONG_TYPE): Likewise.
24254         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24255         (__SYSCALL_SLONG_TYPE): Likewise.
24256         (__SYSCALL_ULONG_TYPE): Likewise.
24257
24258 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24259
24260         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
24261         Add sigaltstack-offsets.sym.
24262         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
24263         <sigaltstack-offsets.h>.
24264         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
24265         longjmp_msg pointer.
24266         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
24267         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
24268         signal stack.
24269         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
24270
24271 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24272
24273         * elf/stackguard-macros.h: Remove file.
24274         * sysdeps/generic/stackguard-macros.h: New file.
24275         * sysdeps/i386/stackguard-macros.h: Likewise.
24276         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
24277         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
24278         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
24279         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
24280         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
24281         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
24282         * sysdeps/x86_64/stackguard-macros.h: Likewise.
24283         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
24284         <elf/stackguard-macros.h>.
24285
24286         [BZ #14109]
24287         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
24288         __aligned__ in attribute.
24289         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
24290         (gregset_t): Likewise.
24291
24292 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24293
24294         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
24295         * sysdeps/x86_64/64/Implies-after: Here.  New file.
24296         * sysdeps/x86_64/x32/Implies-after: New file.
24297
24298 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24299
24300         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
24301         and access return value for _dl_profile_fixup.  Use R10_LP to
24302         load frame size.
24303
24304 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24305
24306         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
24307
24308 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24309
24310         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
24311         * sysdeps/x86_64/x32/sysdep.h: New file.
24312
24313 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24314
24315         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
24316         * sysdeps/x86_64/setjmp.S: Likewise.
24317
24318 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24319
24320         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
24321         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
24322         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
24323         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
24324         remove unused global constant.
24325
24326 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
24327
24328         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
24329         include of <not-cancel.h>.
24330
24331 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24332
24333         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
24334
24335 2012-05-15  Jeff Law  <law@redhat.com>
24336             Andreas Jaeger  <aj@suse.de>
24337
24338         [BZ #13594]
24339         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
24340         out from...
24341         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
24342         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
24343         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
24344         code changing __hst_map_handle.map.
24345
24346 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24347
24348         * configure.in (sysnames): Look for Implies-before and Implies-after
24349         files.
24350         * configure: Regenerated.
24351
24352 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24353
24354         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
24355         8-byte data alignment with LP_SIZE alignment.
24356
24357 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24358
24359         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
24360         into R10_LP.
24361
24362 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24363
24364         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
24365
24366 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24367
24368         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
24369         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
24370         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
24371         Likewise.
24372         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
24373
24374 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24375
24376         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
24377         (stackinfo_sub_sp): Likewise.
24378
24379 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24380
24381         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
24382         RAX_LP.
24383
24384 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24385
24386         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
24387         into R*_LP.
24388
24389 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24390
24391         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
24392         sizes into R*_LP.
24393
24394 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24395
24396         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
24397
24398 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24399
24400         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
24401         into R11_LP and load __x86_64_shared_cache_size_half into
24402         R8_LP.
24403
24404 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24405
24406         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
24407         R8_LP.
24408
24409 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24410
24411         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
24412         logb for POWER7.
24413         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
24414         logbf for POWER7.
24415         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
24416         logbl for POWER7.
24417         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
24418         powerpc32/power7/fpu/s_logb.c via #include.
24419         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
24420         powerpc32/power7/fpu/s_logbf.c via #include.
24421         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
24422         powerpc32/power7/fpu/s_logbl.c via #include.
24423
24424 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24425
24426         * README.libm: Remove file.
24427
24428 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24429
24430         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
24431         count for x32.  Use R*_LP and omit operand-size suffix.
24432
24433 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24434
24435         * shlib-versions: Move x86_64-.*-linux.* entries to ...
24436         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
24437         * sysdeps/x86_64/x32/shlib-versions: New file.
24438
24439 2012-05-14  Roland McGrath  <roland@hack.frob.com>
24440
24441         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
24442         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
24443         Use _dl_fatal_printf instead.
24444
24445 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24446
24447         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
24448         set if not set by the user.  Do not allow for being unset.
24449         * sysdeps/unix/sysv/linux/configure: Regenerated.
24450
24451 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24452
24453         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
24454         the `q' suffix from lea and replace .quad with ASM_ADDR.
24455
24456 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24457
24458         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
24459         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
24460         instead of $17.
24461         (PTR_DEMANGLE): Likewise.
24462
24463 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24464
24465         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
24466         (LP_OP): Likewise.
24467         (ASM_ADDR): Likewise.
24468         (RAX_LP): Likewise.
24469         (RBP_LP): Likewise.
24470         (RBX_LP): Likewise.
24471         (RCX_LP): Likewise.
24472         (RDI_LP): Likewise.
24473         (RSI_LP): Likewise.
24474         (RSP_LP): Likewise.
24475         (R8_LP): Likewise.
24476         (R9_LP): Likewise.
24477         (R10_LP): Likewise.
24478         (R10_LP): Likewise.
24479         (R11_LP): Likewise.
24480         (R12_LP): Likewise.
24481         (R13_LP): Likewise.
24482         (R14_LP): Likewise.
24483         (R15_LP): Likewise.
24484
24485 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24486
24487         * sysdeps/x86_64/x32/dl-machine.h: New file.
24488
24489 2012-05-14  Andreas Jaeger  <aj@suse.de>
24490
24491         * manual/Makefile (subdir): Remove export of subdir.
24492         (all): Remove target.
24493         (.PHONY): Remove all from list.
24494         (mkinstalldirs): Remove.
24495         (.PHONY): Remove installdirs from list.
24496         ($(inst_infodir)/libc.info): Use make-target-directory.
24497         (installdirs): Remove.
24498         (subdir_%): Remove.
24499         (glibc-targets): Remove.
24500         (lib): Remove.
24501         (stubs): Remove.
24502         ($(objpfx)stubs ../po/manual.pot): Remove.
24503         ($(objpfx)stamp%): Remove.
24504         (make-target-directory): Remove.
24505         (subdir_install): Remove.
24506         (routines): Remove.
24507         (aux): Remove.
24508         (sources): Remove.
24509         (objects): Remove.
24510         (headers): Remove.
24511
24512         [BZ #13750]
24513         * manual/.gitignore: Remove, it's not needed anymore.
24514         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
24515         all files in it.
24516         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
24517         directory.
24518         (texis): Renamed to $(objpfx)texis.
24519         (texis-path): New, contains path to generated files.
24520         (chapters.%): Use texis-path for complete path, add extra argument
24521         libc-texinfo.sh.
24522         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
24523         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
24524         (summary,texi, stamp-summary): Use complete path of
24525         files. Generate files in build dir.
24526         (dir-add.texi): Build in build dir.
24527         (libm-err.texi,stamp-libm-err): Likewise.
24528         (version.texi, stamp-version): Likewise.
24529         (.%c.texi): Likewise.
24530         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
24531         (mostlyclean): Remove target.
24532         (realclean): Remove target.
24533         (generated): Add new variable with contents from mostlyclean and
24534         realclean, remove entries duplicated in common-mostlyclean, add
24535         stamp-libm-err and stamp-version.
24536         (generated-dirs): Add libc directory.
24537         ($(inst_infodir)/libc.info): Install files from build dir.
24538
24539         * manual/install.texi (Configuring and compiling): Adjust since
24540         the info files are not part of the tar ball anymore.
24541
24542 2012-05-14  Andreas Jaeger  <aj@suse.de>
24543
24544         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
24545         variable.
24546
24547 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24548
24549         [BZ #13717]
24550         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
24551         to 2.2.0 where earlier.
24552         * sysdeps/unix/sysv/linux/configure: Regenerated.
24553         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
24554         Remove conditional code.
24555         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
24556         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
24557         Remove conditional code.
24558         [!__NR_lchown]: Likewise.
24559         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24560         [__NR_lchown]: Likewise.
24561         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
24562         comment referencing __ASSUME_LCHOWN_SYSCALL.
24563         * sysdeps/unix/sysv/linux/i386/sigaction.c
24564         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24565         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24566         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
24567         Remove conditional code.
24568         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
24569         (__protocol_available): Remove #if 0 code.
24570         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
24571         conditional code.
24572         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
24573         * sysdeps/unix/sysv/linux/kernel-features.h
24574         (__ASSUME_GETCWD_SYSCALL): Don't define.
24575         (__ASSUME_REALTIME_SIGNALS): Likewise.
24576         (__ASSUME_PREAD_SYSCALL): Likewise.
24577         (__ASSUME_PWRITE_SYSCALL): Likewise.
24578         (__ASSUME_POLL_SYSCALL): Likewise.
24579         (__ASSUME_LCHOWN_SYSCALL): Likewise.
24580         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
24581         non-SPARC.
24582         (__ASSUME_SIOCGIFNAME): Don't define.
24583         (__ASSUME_MSG_NOSIGNAL): Likewise.
24584         (__ASSUME_SENDFILE): Define unconditionally.
24585         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
24586         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
24587         conditional code.
24588         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
24589         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
24590         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24591         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24592         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
24593         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24594         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
24596         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24597         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
24599         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24600         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
24602         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24603         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
24605         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24606         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
24608         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24609         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
24611         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24612         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
24614         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24615         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
24617         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24618         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24619         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
24620         Remove conditional code.
24621         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24622         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24623         Remove conditional code.
24624         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24625         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
24626         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
24627         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24628         Remove conditional code.
24629         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24630         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
24631         Remove conditional code.
24632         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24633         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
24634         Remove conditional code.
24635         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24636         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24637         Remove conditional code.
24638         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24639         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24640         Remove conditional code.
24641         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24642         * sysdeps/unix/sysv/linux/sh/pwrite64.c
24643         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24644         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24645         * sysdeps/unix/sysv/linux/sigaction.c
24646         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24647         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24648         * sysdeps/unix/sysv/linux/sigpending.c
24649         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24650         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24651         * sysdeps/unix/sysv/linux/sigprocmask.c
24652         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24653         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24654         * sysdeps/unix/sysv/linux/sigsuspend.c
24655         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24656         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24657         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
24658         (__libc_missing_rt_sigs): Remove.
24659         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
24660         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
24661         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
24662         Remove conditional code.
24663         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
24664         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
24665         return 1.
24666         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
24667         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
24668         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
24669         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
24670
24671 2012-05-14  Andreas Jaeger  <aj@suse.de>
24672
24673         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
24674         it's not used in glibc.
24675         (__coshm1): Likewise.
24676         (__acosh1p): Likewise.
24677         (__sgn): Likewise.
24678
24679         * manual/string.texi (Copying and Concatenation): Add missing
24680         variable in concat example.
24681         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
24682
24683 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24684
24685         [BZ #14103]
24686         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
24687         __builtin_clzl with __builtin_clzll.
24688
24689 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24690
24691         [BZ #14104]
24692         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
24693         libc_freeres_ptr.
24694
24695 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24696
24697         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
24698         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
24699         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
24700         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
24701
24702 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
24703
24704         * NEWS: Update ia64 info.
24705
24706 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
24707
24708         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
24709         used as bcopy.
24710
24711 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
24712
24713         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
24714         * sysdeps/unix/syscalls.list (dup3): Likewise.
24715         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
24716         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
24717
24718 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24719
24720         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
24721         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
24722
24723 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24724
24725         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
24726         thread pointer.
24727         (TLS_IE): Use mov/add instead of movq/addq to load thread
24728         pointer.
24729         (TLS_GD_PREFIX): New.
24730         (TLS_GD): Use it.
24731
24732 2012-05-11  David S. Miller  <davem@davemloft.net>
24733
24734         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
24735         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
24736         (_FPU_SETCW): Likewise.
24737
24738 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24739
24740         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
24741         is 32-byte aligned.
24742
24743 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
24744
24745         [BZ #11837]
24746         * iconvdata/gb18030.c: Update tables.
24747         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
24748         characters specially.
24749         (BODY for TO_LOOP): Add encoding of missing ranges.
24750
24751 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
24752
24753         [BZ #13673]
24754         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
24755         * sysdeps/mach/hurd/dup3.c: Likewise.
24756         * sysdeps/mach/hurd/readlinkat.c: Likewise.
24757         * sysdeps/powerpc/memmove.c:: Likewise.
24758
24759 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24760
24761         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
24762         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
24763
24764 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24765
24766         * elf/elf.h (R_X86_64_RELATIVE64): New.
24767         (R_X86_64_NUM): Updated.
24768         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
24769         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
24770         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
24771         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
24772         tst-quad1pie tst-quad2pie
24773         (modules-names): Add tst-quadmod1 tst-quadmod2.
24774         ($(objpfx)tst-quad1): New dependency.
24775         ($(objpfx)tst-quad2): Likewise.
24776         ($(objpfx)tst-quad1pie): Likewise.
24777         ($(objpfx)tst-quad2pie): Likewise.
24778         * sysdeps/x86_64/tst-quad1.c: New file.
24779         * sysdeps/x86_64/tst-quad1pie.c: New file.
24780         * sysdeps/x86_64/tst-quad2.c: Likewise.
24781         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
24782         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
24783         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
24784         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
24785         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
24786
24787 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24788
24789         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
24790         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
24791         * streams/stropts.h (t_scalar_t): Define type.
24792
24793         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
24794         (_PATH_PRESERVE): Set to "/var/lib".
24795         (_PATH_RWHODIR): Set to "/var/spool/rwho".
24796
24797         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
24798         instead of int.
24799
24800         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
24801         if __dir_mkfile succeeded.
24802
24803         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
24804         checking for _hurd_dtablesize.  Unlock it right after having
24805         finished _hurd_dtable allocation.
24806
24807 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24808
24809         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
24810         * sysdeps/mach/hurd/configure: Regenerated.
24811         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
24812         special-casing to...
24813         * sysdeps/gnu/configure.in: ... this new file.
24814         * sysdeps/unix/sysv/linux/configure: Regenerated.
24815         * sysdeps/gnu/configure: New generated file.
24816
24817         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
24818         for Linux: use nsec instead of usec, as well as:
24819         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
24820         members of type struct timespec.
24821         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
24822         New macros.
24823         (struct stat64): Likewise.
24824         (_STATBUF_ST_NSEC): New macro.
24825         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
24826
24827         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
24828         __strtoul_internal rather than strtoul.
24829
24830 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24831
24832         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
24833         and reject them.
24834
24835 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24836
24837         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
24838         which preserves existing values.
24839         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
24840
24841 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24842
24843         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
24844         TIMEOUT values.  Return EINVAL for NFDS values either negative or
24845         greater than FD_SETSIZE.
24846
24847 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24848
24849         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
24850         allocated, call __vm_protect to finish enabling the existing space, and
24851         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
24852         allocate the remainder.
24853
24854 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24855
24856         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
24857         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
24858
24859 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24860
24861         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
24862         sysdeps/mach/hurd/readlink.c.
24863
24864         * posix/tst-sysconf.c (posix_options): Only use
24865         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
24866         _POSIX_SYNCHRONIZED_IO when they are defined
24867         * sysdeps/mach/hurd/bits/posix_opt.h:
24868         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
24869         (_XOPEN_REALTIME): Undefine macro.
24870         (_XOPEN_REALTIME_THREADS): Undefine macro.
24871         (_XOPEN_SHM): Undefine macro.
24872         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
24873         macro to -1.
24874         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
24875         macro to -1.
24876         (_POSIX_ASYNC_IO): Undefine macro.
24877         (_POSIX_PRIORITIZED_IO): Undefine macro.
24878         (_POSIX_SPIN_LOCKS): Define macro to -1.
24879
24880         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
24881         SA_NODEFER, SA_RESETHAND.
24882         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
24883         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
24884         F_DUPFD_CLOEXEC.
24885
24886 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24887
24888         * elf/Makefile (pldd-modules): Define unconditionally.
24889
24890 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24891
24892         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
24893
24894 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24895
24896         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
24897         Return ENOENT when name is empty.
24898         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
24899
24900 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24901
24902         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
24903
24904         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
24905
24906 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24907
24908         Fix mlock in all cases except non-readable pages.
24909         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
24910         instead of VM_PROT_ALL as parameter to __vm_wire function.
24911
24912         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
24913         (__mkdir): When path is `/', just fail with EEXIST.
24914         * sysdeps/mach/hurd/mkdirat.c: Likewise.
24915
24916 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24917
24918         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
24919         <sys/uio.h> (for writev).
24920         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
24921         and <sys/param.h> (for MIN).
24922
24923 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24924
24925         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
24926         REQUESTED_TIME.  Properly set the remaining time and return EINTR
24927         if interrupted.
24928
24929 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24930
24931         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
24932         Depend on against $(link-rpcuserlibs).
24933
24934 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24935
24936         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
24937         (__libc_stack_end): Do not use attribute_relro.
24938         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
24939         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
24940         to libthread-provided value.
24941         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
24942         attribute_relro.
24943
24944 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24945
24946         [BZ #3748]
24947         * bits/libc-lock.h (__libc_once_get): New macro.
24948         * sysdeps/mach/bits/libc-lock.h: Likewise.
24949         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
24950         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
24951         instead of using implementation details.
24952
24953         * libio/fileops.c: Unconditionally include <kernel-features.h>.
24954         * libio/freopen.c: Likewise.
24955         * libio/freopen64.c: Likewise.
24956         * misc/syslog.c: Likewise.
24957         * nscd/connections.c: Likewise.
24958         * nscd/netgroupcache.c: Likewise.
24959         * sysdeps/posix/getcwd.c: Likewise.
24960
24961 2012-05-10  Roland McGrath  <roland@hack.frob.com>
24962
24963         * math/w_ilogbf.c: Add #include <limits.h>.
24964
24965 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24966
24967         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
24968         path instead of returning without unlocking.
24969
24970         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
24971         immediate-write ioctls.
24972         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
24973
24974 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24975
24976         * sysdeps/mach/hurd/i386/init-first.c (init): Use
24977         __builtin_frame_address instead of making assumptions about the
24978         location of the return address relative to DATA.  Force early load of
24979         the return address.
24980         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
24981         __builtin_frame_address.
24982
24983         dup3 for GNU Hurd.
24984         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
24985         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
24986         implement dup3 and do some further code clean-ups.
24987         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
24988         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
24989
24990 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24991
24992         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
24993
24994         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
24995         HURD_CRITICAL_END around holding _hurd_dtable_lock.
24996         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
24997         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
24998         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
24999         d->port.lock.
25000
25001         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
25002         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
25003         when handler == SIG_ERR, not when handler != SIG_ERR.
25004
25005 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25006
25007         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
25008         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
25009         definitions.
25010
25011         accept4 for GNU Hurd.
25012         * include/sys/socket.h (__libc_accept4): New prototype.
25013         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
25014         to implement __libc_accept4.
25015         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
25016         __libc_accept4.
25017         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
25018
25019         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
25020         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
25021         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
25022         signal-defines.sym.
25023
25024 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25025
25026         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
25027
25028 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25029
25030         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
25031         assertion on O_CLOEXEC flag.
25032         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
25033         * hurd/intern-fd.c: Likewise.
25034         * hurd/port2fd.c: Likewise.
25035
25036 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25037
25038         [BZ #3906]
25039         * bits/in.h (IPV6_PKTINFO): Define new macro.
25040         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
25041
25042 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25043
25044         [BZ #13954]
25045         [BZ #13955]
25046         [BZ #13956]
25047         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
25048         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
25049         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
25050         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
25051         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
25052         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
25053         * math/libm-test.inc (logb_test) : Additional logb tests.
25054
25055 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
25056             Andreas Jaeger  <aj@suse.de>
25057
25058         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
25059         * configure: Regenerated.
25060         * config.h.in (LINK_OBSOLETE_RPC): New macro.
25061         * config.make.in (link-obsolete-rpc): New substituted variable.
25062         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
25063         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
25064         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25065         (shared-only-routines): Don't set it under [link-obsolete-rpc],
25066         so that libc.a contains the symbols.
25067         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25068         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
25069         * sunrpc/auth_none.c: Likewise.
25070         * sunrpc/auth_unix.c: Likewise.
25071         * sunrpc/authdes_prot.c: Likewise.
25072         * sunrpc/authuxprot.c: Likewise.
25073         * sunrpc/clnt_gen.c: Likewise.
25074         * sunrpc/clnt_perr.c: Likewise.
25075         * sunrpc/clnt_raw.c: Likewise.
25076         * sunrpc/clnt_simp.c: Likewise.
25077         * sunrpc/clnt_tcp.c: Likewise.
25078         * sunrpc/clnt_udp.c: Likewise.
25079         * sunrpc/clnt_unix.c: Likewise.
25080         * sunrpc/des_crypt.c: Likewise.
25081         * sunrpc/des_soft.c: Likewise.
25082         * sunrpc/get_myaddr.c: Likewise.
25083         * sunrpc/key_call.c: Likewise.
25084         * sunrpc/key_prot.c: Likewise.
25085         * sunrpc/netname.c: Likewise.
25086         * sunrpc/pm_getmaps.c: Likewise.
25087         * sunrpc/pm_getport.c: Likewise.
25088         * sunrpc/pmap_clnt.c: Likewise.
25089         * sunrpc/pmap_prot.c: Likewise.
25090         * sunrpc/pmap_prot2.c: Likewise.
25091         * sunrpc/pmap_rmt.c: Likewise.
25092         * sunrpc/publickey.c: Likewise.
25093         * sunrpc/rpc_cmsg.c: Likewise.
25094         * sunrpc/rpc_common.c: Likewise.
25095         * sunrpc/rpc_dtable.c: Likewise.
25096         * sunrpc/rpc_prot.c: Likewise.
25097         * sunrpc/rpc_thread.c: Likewise.
25098         * sunrpc/rtime.c: Likewise.
25099         * sunrpc/svc.c: Likewise.
25100         * sunrpc/svc_auth.c: Likewise.
25101         * sunrpc/svc_raw.c: Likewise.
25102         * sunrpc/svc_run.c: Likewise.
25103         * sunrpc/svc_tcp.c: Likewise.
25104         * sunrpc/svc_udp.c: Likewise.
25105         * sunrpc/svc_unix.c: Likewise.
25106         * sunrpc/svcauth_des.c: Likewise.
25107         * sunrpc/xcrypt.c: Likewise.
25108         * sunrpc/xdr.c: Likewise.
25109         * sunrpc/xdr_array.c: Likewise.
25110         * sunrpc/xdr_float.c: Likewise.
25111         * sunrpc/xdr_intXX_t.c: Likewise.
25112         * sunrpc/xdr_mem.c: Likewise.
25113         * sunrpc/xdr_rec.c: Likewise.
25114         * sunrpc/xdr_ref.c: Likewise.
25115         * sunrpc/xdr_sizeof.c: Likewise.
25116         * sunrpc/xdr_stdio.c: Likewise.
25117
25118 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25119
25120         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
25121         change.  Update copyright years.
25122
25123 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25124
25125         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
25126
25127 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
25128             Joseph Myers  <joseph@codesourcery.com>
25129             Paul Pluzhnikov  <ppluzhnikov@google.com>
25130
25131         [BZ #14012]
25132         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
25133         requiring rpcgen.
25134         [cross-compiling] (extra-libs): Likewise.
25135         [cross-compiling] (extra-libs-others): Likewise.
25136         [cross-compiling] (librpcsvc-routines): Likewise.
25137         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
25138         [cross-compiling] (omit-deps): Likewise.
25139         (sunrpc-CPPFLAGS): New variable.
25140         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
25141         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
25142         (cross-rpcgen-objs): New variable.
25143         (extra-objs): Append $(cross-rpcgen-objs).
25144         ($(cross-rpcgen-objs)): New rule.
25145         ($(objpfx)cross-rpcgen): Likewise.
25146         (rpcgen-cmd): Define to use $(built-program-file).  Expand
25147         comment.
25148         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
25149         ($(objpfx)x%.stmp): Likewise.
25150         * sunrpc/proto.h [IS_IN_build] (_): Define.
25151         [IS_IN_build] (_libc_intl_domainname): Likewise.
25152
25153 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25154
25155         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
25156         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
25157         and R_X86_64_TPOFF64.
25158
25159 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25160
25161         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
25162         sysdeps/unix/sysv/syscalls.list.
25163         (stime): Likewise.
25164         (utime): Likewise.
25165         * sysdeps/unix/sysv/syscalls.list: Remove file.
25166
25167 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25168
25169         [BZ #3440]
25170         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
25171         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
25172         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
25173         (__LC_IDENTIFICATION): Make these macros useful in #if
25174         expressions, as required by C99.
25175
25176 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
25177
25178         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
25179         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
25180         after this.
25181
25182 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
25183
25184         * stdlib/longlong.h: Updated from GCC.
25185
25186 2012-05-09  Andreas Jaeger  <aj@suse.de>
25187
25188         * nscd/nscd.c (run_modes): Make named enum, reorder so that
25189         default is first entry.
25190         (run_mode): Set type.
25191         (main): Remove informal message about syslog.
25192         (options): Fix typo.
25193
25194         [BZ #14053]
25195         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
25196         to asm.
25197         (lrint): Likewise.
25198         (llrintf): Likewise.
25199         (llrint): Likewise.
25200         (rint): Likewise.
25201         (rintf): Likewise.
25202         (nearbyint): Likewise.
25203         (nearbyintf): Likewise.
25204
25205 2012-05-09  Andreas Jaeger  <aj@suse.de>
25206             Pedro Alves  <palves@redhat.com>
25207
25208         * nscd/nscd.c (run_mode): Use enum.
25209         (main): Cleanup coding style issue.
25210
25211 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
25212             Andreas Jaeger  <aj@suse.de>
25213
25214         * nscd/nscd.c (go_background): Replaced with...
25215         (run_mode): ... this.
25216         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
25217         (options): Add -F --foreground.
25218         (main): Implement it.
25219         (parse_opt): Parse it.
25220
25221 2012-05-09  Andreas Jaeger  <aj@suse.de>
25222
25223         [BZ #14083]
25224         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
25225         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
25226         -Wconversion warning.
25227         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
25228         Likewise.
25229
25230 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
25231
25232         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
25233         == 0.
25234         (LC_ALL): Use macro-int-constant.
25235         (LC_COLLATE): Likewise.
25236         (LC_CTYPE): Likewise.
25237         (LC_MESSAGES): Likewise.
25238         (LC_MONETARY): Likewise.
25239         (LC_NUMERIC): Likewise.
25240         (LC_TIME): Likewise.
25241         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
25242         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25243         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25244         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
25245         Specify type.
25246         [C99-based standards] (float_t): Expect type.
25247         [C99-based standards] (double_t): Expect type.
25248         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
25249         type.
25250         [C99-based standards] (HUGE_VALL): Likewise.
25251         [C99-based standards] (INFINITY): Likewise.
25252         [C99-based standards] (NAN): Likewise.
25253         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
25254         [C99-based standards] (FP_NAN): Likewise.
25255         [C99-based standards] (FP_NORMAL): Likewise.
25256         [C99-based standards] (FP_SUBNORMAL): Likewise.
25257         [C99-based standards] (FP_ZERO): Likewise.
25258         [C99-based standards] (FP_FAST_FMA): Use
25259         optional-macro-int-constant.  Specify type.  Require == 1.
25260         [C99-based standards] (FP_FAST_FMAF): Likewise.
25261         [C99-based standards] (FP_FAST_FMAL): Likewise.
25262         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
25263         [C99-based standards] (FP_ILOGBNAN): Likewise.
25264         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
25265         Specify type.
25266         [C99-based standards] (MATH_ERREXCEPT): Likewise.
25267         [C99-based standards] (math_errhandling): Specify type.
25268         [ISO99 || ISO11] (signgam): Do not allow.
25269         [non-C99-based standards] (copysignf): Do not allow.
25270         [non-C99-based standards] (exp2f): Likewise.
25271         [non-C99-based standards] (log2f): Likewise.
25272         [non-C99-based standards] (modff): Allow.
25273         [non-C99-based standards] (erff): Do not allow.
25274         [non-C99-based standards] (erfcf): Likewise.
25275         [non-C99-based standards] (gammaf): Likewise.
25276         [non-C99-based standards] (hypotf): Likewise.
25277         [non-C99-based standards] (j0f): Likewise.
25278         [non-C99-based standards] (j1f): Likewise.
25279         [non-C99-based standards] (jnf): Likewise.
25280         [non-C99-based standards] (lgammaf): Likewise.
25281         [non-C99-based standards] (tgammaf): Likewise.
25282         [non-C99-based standards] (y0f): Likewise.
25283         [non-C99-based standards] (y1f): Likewise.
25284         [non-C99-based standards] (ynf): Likewise.
25285         [non-C99-based standards] (isnanf): Likewise.
25286         [non-C99-based standards] (acoshf): Likewise.
25287         [non-C99-based standards] (asinhf): Likewise.
25288         [non-C99-based standards] (atanhf): Likewise.
25289         [non-C99-based standards] (cbrtf): Likewise.
25290         [non-C99-based standards] (expm1f): Likewise.
25291         [non-C99-based standards] (ilogbf): Likewise.
25292         [non-C99-based standards] (log1pf): Likewise.
25293         [non-C99-based standards] (logbf): Likewise.
25294         [non-C99-based standards] (nextafterf): Likewise.
25295         [non-C99-based standards] (remainderf): Likewise.
25296         [non-C99-based standards] (rintf): Likewise.
25297         [non-C99-based standards] (scalbf): Likewise.
25298         [non-C99-based standards] (copysignl): Likewise.
25299         [non-C99-based standards] (exp2l): Likewise.
25300         [non-C99-based standards] (log2l): Likewise.
25301         [non-C99-based standards] (modfl): Allow.
25302         [non-C99-based standards] (erfl): Do not allow.
25303         [non-C99-based standards] (erfcl): Likewise.
25304         [non-C99-based standards] (gammal): Likewise.
25305         [non-C99-based standards] (hypotl): Likewise.
25306         [non-C99-based standards] (j0l): Likewise.
25307         [non-C99-based standards] (j1l): Likewise.
25308         [non-C99-based standards] (jnl): Likewise.
25309         [non-C99-based standards] (lgammal): Likewise.
25310         [non-C99-based standards] (tgammal): Likewise.
25311         [non-C99-based standards] (y0l): Likewise.
25312         [non-C99-based standards] (y1l): Likewise.
25313         [non-C99-based standards] (ynl): Likewise.
25314         [non-C99-based standards] (isnanl): Likewise.
25315         [non-C99-based standards] (acoshl): Likewise.
25316         [non-C99-based standards] (asinhl): Likewise.
25317         [non-C99-based standards] (atanhl): Likewise.
25318         [non-C99-based standards] (cbrtl): Likewise.
25319         [non-C99-based standards] (expm1l): Likewise.
25320         [non-C99-based standards] (ilogbl): Likewise.
25321         [non-C99-based standards] (log1pl): Likewise.
25322         [non-C99-based standards] (logbl): Likewise.
25323         [non-C99-based standards] (nextafterl): Likewise.
25324         [non-C99-based standards] (remainderl): Likewise.
25325         [non-C99-based standards] (rintl): Likewise.
25326         [non-C99-based standards] (scalbl): Likewise.
25327         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25328         [non-C99-based standards] (FP_*): Do not allow.
25329         [C99-based standards] (FP_*): Change to
25330         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25331         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25332         allow.
25333         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
25334         (SIG_ERR): Likewise.
25335         [X/Open-based standards] (SIG_HOLD): Likewise.
25336         (SIG_IGN): Likewise.
25337         (SIGABRT): Use macro-int-constant.  Specify type.  Require
25338         positive value.
25339         (SIGFPE): Likewise.
25340         (SIGILL): Likewise.
25341         (SIGINT): Likewise.
25342         (SIGSEGV): Likewise.
25343         (SIGTER): Likewise.
25344         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
25345         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
25346         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
25347         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
25348         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
25349         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
25350         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
25351         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
25352         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
25353         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
25354         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
25355         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
25356         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
25357         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
25358         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
25359         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
25360         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
25361         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
25362         [X/Open-based standards] (SIGTRAP): Likewise.
25363         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
25364         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
25365         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
25366         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
25367         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25368         allow.
25369
25370 2012-05-08  Ian Wienand  <ianw@vmware.com>
25371
25372         [BZ #14080]
25373         * time/tzset.c (__tzset_parse_tz): Update default rules for
25374         daylight time changes in the Energy Policy Act of 2005.
25375
25376 2012-05-09  Andreas Jaeger  <aj@suse.de>
25377
25378         [BZ #13983]
25379         * elf/ldconfig.c (parse_conf): Change string to make clear that
25380         ldconfig only issued a warning if ld.so.conf does not exist.
25381
25382 2012-05-08  David S. Miller  <davem@davemloft.net>
25383
25384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
25385         movxtod instead of popping the value on the stack.
25386
25387         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25388
25389 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
25390
25391         * config.h.in: Add HAVE_ARM_PCS_VFP.
25392
25393 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
25394
25395         [BZ #13979]
25396         * include/features.h: Warn if user requests __FORTIFY_SOURCE
25397         checking but the checks are disabled for any reason.
25398
25399 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
25400
25401         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
25402         and ELF64_R_TYPE with ELFW(R_TYPE).
25403
25404 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
25405
25406         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
25407         (ulimit): Likewise.
25408
25409         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
25410         (settimeofday): Likewise.
25411
25412 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
25413
25414         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
25415         a struct th_u2 inside the union, and move tu_block/tu_code into
25416         a new th_u3 union of tu_block/tu_code inside of that.  Move
25417         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
25418         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
25419         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
25420         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
25421         (th_stuff): Change to th_u1.tu_stuff.
25422         (th_data): Define.
25423         (th_msg): Change to th_u1.th_u2.tu_data.
25424
25425 2012-05-07  David S. Miller  <davem@davemloft.net>
25426
25427         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25428
25429         [BZ #14074]
25430         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
25431         (SETUP_PIC_REG): Use it.
25432         (SETUP_PIC_REG_LEAF): Use it.
25433
25434 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
25435
25436         [BZ #13885]
25437         [BZ #13923]
25438         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25439         USE_AS_EXPM1L.
25440         (EXPL_FINITE): Likewise.
25441         (FLDLOG): Likewise.
25442         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25443         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25444         e_expl.S.
25445         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25446         USE_AS_EXPM1L.
25447         (EXPL_FINITE): Likewise.
25448         (FLDLOG): Likewise.
25449         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25450         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25451         e_expl.S.
25452         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
25453         test of -max_value argument for long double.
25454         * sysdeps/i386/fpu/libm-test-ulps: Update.
25455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25456
25457 2012-05-06  David S. Miller  <davem@davemloft.net>
25458
25459         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
25460         quad soft-float symbols whose references which are compiler
25461         generated.
25462         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25463
25464 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
25465
25466         [BZ #13884]
25467         [BZ #13914]
25468         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25469         USE_AS_EXP10L.
25470         (EXPL_FINITE): Likewise.
25471         (FLDLOG): Likewise.
25472         (c0): Likewise.
25473         (c1): Likewise.
25474         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25475         Adjust comments for base varying.
25476         (__expl_finite): Change alias to EXPL_FINITE.
25477         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
25478         e_expl.S.
25479         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
25480         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
25481         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
25482         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
25483         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25484         USE_AS_EXP10L.
25485         (EXPL_FINITE): Likewise.
25486         (FLDLOG): Likewise.
25487         (c0): Likewise.
25488         (c1): Likewise.
25489         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25490         Adjust comments for base varying.
25491         (__expl_finite): Change alias to EXPL_FINITE.
25492         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
25493         tests for bugs.
25494         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25495
25496         [BZ #14064]
25497         * math/libm-test.inc (check_float_internal): Correct ulp
25498         calculation for subnormal expected results.
25499
25500 2012-05-06  Andreas Jaeger  <aj@suse.de>
25501
25502         * Makeconfig (+math-flags): New, set to -frounding-math.
25503         (+cflags): Add +math-flags so that all of glibc gets compiled with
25504         it.
25505
25506         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
25507
25508 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
25509
25510         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
25511         Disable one test.
25512
25513         [BZ #13787]
25514         [BZ #13922]
25515         [BZ #14036]
25516         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
25517         (__ieee754_expl): Allow for and saturate large arguments.
25518         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
25519         (u_threshold): Likewise.
25520         (__exp): Call __ieee754_exp before checking for overflow and
25521         underflow.
25522         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
25523         (u_threshold): Likewise.
25524         (__expf): Call __ieee754_expf before checking for overflow and
25525         underflow.
25526         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
25527         (u_threshold): Likewise.
25528         (__expl): Call __ieee754_expl before checking for overflow and
25529         underflow.
25530         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
25531         (__ieee754_expl): Allow for and saturate large arguments.
25532         * math/libm-test.inc (exp_test): Add another test.  Do not allow
25533         missing overflow exception on overflow.
25534         (expm1_test): Do not allow missing overflow exception on overflow.
25535
25536         * sysdeps/i386/fpu/e_expl.c: Move to ...
25537         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
25538         rather than using inline asm.
25539         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
25540         * sysdeps/x86_64/fpu/e_expl.S: Copy from
25541         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
25542
25543         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
25544         (nice): Likewise.
25545         (poll): Likewise.
25546         (signal): Likewise.
25547         (time): Likewise.
25548         (times): Likewise.
25549
25550 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25551
25552         * sysdeps/unix/syscalls.list (adjtime): Add entry from
25553         sysdeps/unix/common/syscalls.list.
25554         (fchmod): Likewise.
25555         (fchown): Likewise.
25556         (ftruncate): Likewise.
25557         (getrusage): Likewise.
25558         (gettimeofday): Likewise.
25559         (setpgid): Likewise.
25560         (setregid): Likewise.
25561         (setreuid): Likewise.
25562         (sigaction): Likewise.
25563         (truncate): Likewise.
25564         (vhangup): Likewise.
25565         * sysdeps/unix/common/syscalls.list: Remove file.
25566         * sysdeps/unix/bsd/Implies: Don't include unix/common.
25567         * sysdeps/unix/sysv/linux/Implies: Likewise.
25568
25569 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
25570
25571         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
25572         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
25573         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
25574         Moved to ...
25575         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
25576         Here.
25577         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
25578         to ...
25579         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
25580         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
25581         to ...
25582         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
25583         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
25584         to ...
25585         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
25586         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
25587         to ...
25588         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
25589         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
25590         to ...
25591         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
25592         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
25593         to ...
25594         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
25595         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
25596         to ...
25597         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
25598         Here.
25599         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
25600         to ...
25601         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
25602         Here.
25603         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
25604         to ...
25605         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
25606         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
25607         Moved to ...
25608         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
25609         Here.
25610         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
25611         to ...
25612         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
25613
25614 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25615
25616         * sysdeps/unix/common/bits/dirent.h: Remove file.
25617         * sysdeps/unix/common/bits/fcntl.h: Likewise.
25618
25619         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
25620         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
25621         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
25622         * sysdeps/unix/bsd/isatty.c: Likewise.
25623         * sysdeps/unix/bsd/tcdrain.c: Likewise.
25624         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
25625         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
25626
25627 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25628
25629         [BZ #13563]
25630         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
25631         long double comparison inaccuracies.
25632         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
25633         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25634
25635 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
25636
25637         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
25638         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
25639
25640 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25641
25642         [BZ #14049]
25643         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
25644         nonzero digits before rounding a hex value.
25645         * stdlib/tst-strtod.c (tests): Add another test.
25646
25647 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25648
25649         * sysdeps/s390/fpu/libm-test-ulps: Update.
25650
25651 2012-05-03  Andreas Jaeger  <aj@suse.de>
25652
25653         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
25654         does not get optimized out.
25655         (malloc_opt_barrier): New.
25656
25657 2012-05-03  Andreas Jaeger  <aj@suse.de>
25658             Roland McGrath  <roland@hack.frob.com>
25659
25660         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
25661         intermediate file deletion.
25662         (generated): Add .symlist files.
25663
25664 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
25665
25666         [BZ #13775]
25667         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
25668         Redirect under this condition.
25669         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25670         [__USE_GNU] (__dprintf_chk): Not under this condition.
25671         [__USE_GNU] (__vdprintf_chk): Likewise.
25672         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
25673         under this condition.
25674         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25675         [__USE_XOPEN2K8] (dprintf): Define under this condition.
25676         [__USE_XOPEN2K8] (vdprintf): Likewise.
25677         [__USE_GNU] (__dprintf_chk): Not under this condition.
25678         [__USE_GNU] (__vdprintf_chk): Likewise.
25679         [__USE_GNU] (dprintf): Likewise.
25680         [__USE_GNU] (vdprintf): Likewise.
25681
25682 2012-05-03  Roland McGrath  <roland@hack.frob.com>
25683
25684         * elf/Makefile (common-generated): Set this instead of generated for
25685         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
25686         $(all-built-dso)-derived lists.
25687
25688 2012-05-03  Andreas Jaeger  <aj@suse.de>
25689
25690         * sysdeps/i386/fpu/libm-test-ulps: Update.
25691
25692         * FAQ: Removed.
25693         * FAQ.in: Likewise.
25694         * scripts/gen-FAQ.pl: Likewise.
25695         * manual/install.texi (Installation): Point to online location of
25696         FAQ.
25697         * Makefile (files-for-dist): Remove FAQ.
25698         (FAQ): Remove.
25699
25700 2012-05-02  Allan McRae  <allan@archlinux.org>
25701
25702         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
25703         (LDFLAGS-reldepmod5.so): Likewise.
25704         (LDFLAGS-reldep6mod1.so): Likewise.
25705         (LDFLAGS-reldep6mod4.so): Likewise.
25706         (LDFLAGS-reldep8mod3.so): Likewise.
25707         (LDFLAGS-unload4mod1.so): Likewise.
25708         (LDFLAGS-unload4mod2.so): Likewise.
25709         (LDFLAGS-tst-initorder): Likewise.
25710         (LDFLAGS-tst-initordera2.so): Likewise.
25711         (LDFLAGS-tst-initordera3.so): Likewise.
25712         (LDFLAGS-tst-initordera4.so): Likewise.
25713         (LDFLAGS-tst-initorderb2.so): Likewise.
25714         (LDFLAGS-noload): Likewise.
25715         (LDFLAGS-next): Likewise.
25716         (LDFLAGS-order2mod1.so): Likewise.
25717         (LDFLAGS-order2mod2.so): Likewise.
25718         (LDFLAGS-tst-initorder2): Likewise.
25719         (LDFLAGS-tst-initorder2a.so): Likewise.
25720         (LDFLAGS-tst-initorder2b.so): Likewise.
25721         (LDFLAGS-tst-initorder2c.so): Likewise.
25722         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
25723
25724 2012-05-02  David S. Miller  <davem@davemloft.net>
25725
25726         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25727
25728 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
25729
25730         [BZ #14055]
25731         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
25732
25733 2012-05-02  Andreas Jaeger  <aj@suse.de>
25734
25735         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
25736         since we manipulate rounding mode.
25737         (CPPFLAGS-test-idouble.c): Likewise.
25738         (CPPFLAGS-test-ifloat.c): Likewise.
25739         (CFLAGS-test-ldouble.c): Likewise.
25740         (CFLAGS-test-double.c): Likewise.
25741         (CFLAGS-test-float.c): Likewise.
25742         (CFLAGS-test-misc.c): Likewise.
25743         (CFLAGS-test-test-fenv.c): Likewise.
25744
25745 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25746
25747         [BZ #2550]
25748         [BZ #2570]
25749         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
25750         comparisons to determine direction to adjust input.
25751
25752 2012-05-01  Roland McGrath  <roland@hack.frob.com>
25753
25754         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
25755         output to the target.
25756
25757         * scripts/localplt.awk: New file.
25758         * elf/Makefile ($(objpfx)check-localplt): Target removed.
25759         (check-localplt-CFLAGS): Variable removed.
25760         ($(all-built-dso:=.jmprel)): New static pattern rule.
25761         (generated): Add those targets.
25762         (localplt-built-dso): New variable.
25763         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
25764
25765         * elf/check-localplt.c: File removed.
25766
25767         * scripts/check-execstack.awk: New file.
25768         * elf/Makefile ($(objpfx)check-execstack): Target removed.
25769         (check-execstack-CFLAGS): Variable removed.
25770         ($(objpfx)check-execstack.h): Target removed.
25771         ($(objpfx)execstack-default): New target.
25772         (generated): Add that instead of check-execstack.h.
25773         ($(all-built-dso:=.phdr)): New static pattern rule.
25774         (generated): Add those targets.
25775         * elf/check-execstack.c: File removed.
25776
25777         * scripts/check-textrel.awk: New file.
25778         * elf/Makefile ($(objpfx)check-textrel): Target removed.
25779         (check-textrel-CFLAGS): Variable removed.
25780         (all-built-dso): Use := to define.o
25781         ($(all-built-dso:=.dyn)): New static pattern rule.
25782         (generated): Add those targets.
25783         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
25784         * config.make.in (READELF): New substituted variable.
25785         * elf/check-textrel.c: File removed.
25786
25787 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
25788
25789         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25790         allow.
25791         * conform/data/ctype.h-data [C99-based standards] (isblank):
25792         Expect function.
25793         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
25794         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
25795         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25796         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
25797         Specify type.  Require positive value.
25798         (EILSEQ): Likewise.
25799         (ERANGE): Likewise.
25800         [ISO || POSIX] (EILSEQ): Do not expect.
25801         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
25802         Specify type.  Require positive value.
25803         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
25804         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
25805         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
25806         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
25807         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
25808         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
25809         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
25810         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
25811         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
25812         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
25813         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
25814         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
25815         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
25816         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
25817         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
25818         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
25819         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
25820         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
25821         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
25822         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
25823         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
25824         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
25825         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
25826         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
25827         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
25828         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
25829         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
25830         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
25831         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
25832         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
25833         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
25834         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
25835         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
25836         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
25837         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
25838         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
25839         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
25840         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
25841         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
25842         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
25843         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
25844         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
25845         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
25846         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
25847         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
25848         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
25849         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
25850         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
25851         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
25852         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
25853         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
25854         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
25855         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
25856         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
25857         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
25858         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
25859         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
25860         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
25861         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
25862         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
25863         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
25864         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
25865         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
25866         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
25867         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
25868         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
25869         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
25870         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
25871         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
25872         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
25873         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
25874         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
25875         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
25876         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
25877         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
25878         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
25879         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
25880         Require >= 2.
25881         (FLT_ROUNDS): Expect as macro, not constant.
25882         (FLT_MANT_DIG): Use macro-int-constant.
25883         (DBL_MANT_DIG): Likewise.
25884         (LDBL_MANT_DIG): Likewise.
25885         (FLT_DIG): Likewise.
25886         (DBL_DIG): Likewise.
25887         (LDBL_DIG): Likewise.
25888         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
25889         (DBL_MIN_EXP): Likewise.
25890         (LDBL_MIN_EXP): Likewise.
25891         (FLT_MAX_EXP): Use macro-int-constant.
25892         (DBL_MAX_EXP): Likewise.
25893         (LDBL_MAX_EXP): Likewise.
25894         (FLT_MAX_10_EXP): Likewise.
25895         (DBL_MAX_10_EXP): Likewise.
25896         (LDBL_MAX_10_EXP): Likewise.
25897         (FLT_MAX): Use macro-constant.
25898         (DBL_MAX): Likewise.
25899         (LDBL_MAX): Likewise.
25900         (FLT_EPSILON): Use macro-constant.  Give upper bound.
25901         (DBL_EPSILON): Likewise.
25902         (LDBL_EPSILON): Likewise.
25903         (FLT_MIN): Likewise.
25904         (DBL_MIN): Likewise.
25905         (LDBL_MIN): Likewise.
25906         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
25907         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
25908         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
25909         [ISO11] (FLT_HAS_SUBNORM): Likewise.
25910         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
25911         [ISO11] (DBL_DECIMAL_DIG): Likewise.
25912         [ISO11] (FLT_DECIMAL_DIG): Likewise.
25913         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
25914         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
25915         [ISO11] (FLT_TRUE_MIN): Likewise.
25916         [ISO11] (LDBL_TRUE_MIN): Likewise.
25917         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25918         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
25919         (SCHAR_MIN): Use macro-int-constant.  Specify type.
25920         (SCHAR_MAX): Likewise.
25921         (UCHAR_MAX): Likewise.
25922         (CHAR_MIN): Likewise.
25923         (CHAR_MAX): Likewise.
25924         (MB_LEN_MAX): Use macro-int-constant.
25925         (SHRT_MIN): Use macro-int-constant.  Specify type.
25926         (SHRT_MAX): Likewise.
25927         (USHRT_MAX): Likewise.
25928         (INT_MAX): Likewise.
25929         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
25930         bound negative.
25931         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25932         bound with "U".
25933         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25934         bound with "L".
25935         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
25936         bound negative.  Suffix upper bound with "L".
25937         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25938         bound with "UL".
25939         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
25940         Specify type.
25941         [C99-based standards] (LLONG_MAX): Likewise.
25942         [C99-based standards] (ULLONG_MAX): Likewise.
25943         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
25944         == 0.
25945         [ISO11] (max_align_t): Require type.
25946         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25947
25948         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
25949         from $CFLAGS, without defining away __attribute__ calls.
25950         (checknamespace): Use $CFLAGS_namespace.
25951
25952         * conform/conformtest.pl (@keywords): Only include C99 keywords
25953         for standards based on C99 or C11.
25954
25955         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
25956         Disable tests.
25957         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
25958         UNIX98]: Likewise.
25959
25960         * conform/conformtest.pl: Handle "macro-int-constant" and test for
25961         usability of symbols in #if.
25962
25963         * conform/conformtest.pl: If macro or constant types start
25964         "promoted:", expect the symbol to be of the following type
25965         promoted by the integer promotions.
25966
25967         * conform/conformtest.pl: Parse all "constant" and "macro" lines
25968         in one place.  Also handle "macro-constant".
25969
25970         * conform/conformtest.pl: Only accept expected macro values with
25971         "==".  Parse all "macro" lines in one place.
25972         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
25973
25974         * conform/conformtest.pl: Handle braced types on "constant" lines
25975         instead of handling "typed-constant".
25976         * conform/data/signal.h-data: Use "constant" instead of
25977         "typed-constant".
25978
25979         * conform/conformtest.pl: Handle "optional-" at start of lines in
25980         one place rather than duplicating several cases.  Handle each
25981         format of "macro" line with initial "optional-".
25982
25983         * conform/conformtest.pl: Only accept expected constant or
25984         optional-constant values with "==".  Parse all "constant" lines in
25985         one place.  Parse all "optional-constant" lines in one place.
25986         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
25987         * conform/data/fmtmsg.h-data: Likewise.
25988         * conform/data/netinet/in.h-data: Likewise.
25989         * conform/data/tar.h-data: Likewise.
25990         * conform/data/limits.h-data: Use "==" form on "constant" and
25991         "optional-constant" lines.
25992
25993         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
25994         Use -std=c99 for XOPEN2K.
25995         (@knownproblems): Remove.
25996         (newtoken): Don't check %isknown.
25997
25998         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
25999         Do not expect macro.
26000         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
26001         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
26002         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
26003         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
26004         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
26005         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
26006         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
26007         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
26008         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
26009         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
26010         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
26011         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
26012         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
26013         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
26014         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
26015         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
26016         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
26017         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
26018         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
26019         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
26020         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
26021         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
26022         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
26023         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
26024         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
26025         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
26026         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
26027         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
26028         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
26029         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
26030         [XPG3] (acosh): Likewise.
26031         [XPG3] (asinh): Likewise.
26032         [XPG3] (atanh): Likewise.
26033         [XPG3] (cbrt): Likewise.
26034         [XPG3] (expm1): Likewise.
26035         [XPG3] (ilogb): Likewise.
26036         [XPG3] (log1p): Likewise.
26037         [XPG3] (logb): Likewise.
26038         [XPG3] (nextafter): Likewise.
26039         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
26040         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
26041         [XPG3] (remainder): Likewise.
26042         [XPG3] (rint): Likewise.
26043         [XPG3 || XPG4 || UNIX98] (round): Likewise.
26044         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
26045         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
26046         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
26047         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
26048         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
26049         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
26050         [UNIX98 || XOPEN2K] (scalb): Expect.
26051         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
26052         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
26053         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
26054         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
26055         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
26056         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
26057         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
26058         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
26059         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
26060         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
26061         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
26062         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
26063         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
26064         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
26065         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
26066         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
26067         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
26068         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
26069         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
26070         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
26071         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
26072         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
26073         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
26074         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
26075         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
26076         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
26077         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
26078         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
26079         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
26080         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
26081         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
26082         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
26083         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
26084         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
26085         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
26086         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
26087         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
26088         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
26089         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
26090         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
26091         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
26092         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
26093         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
26094         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
26095         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
26096         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
26097         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
26098         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
26099         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
26100         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
26101         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
26102         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
26103         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
26104         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
26105         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
26106         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
26107         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
26108         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
26109         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
26110         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
26111         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
26112         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
26113         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
26114         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
26115         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
26116         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
26117         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
26118         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
26119         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
26120         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
26121         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
26122         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
26123         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
26124         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
26125         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
26126         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
26127         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
26128         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
26129         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
26130         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
26131         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
26132         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
26133         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
26134         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
26135         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
26136         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
26137         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
26138         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
26139         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
26140         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
26141         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
26142         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
26143         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
26144         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
26145         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
26146         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
26147         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
26148         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
26149         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
26150         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
26151         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
26152         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
26153         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
26154         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
26155         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
26156         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
26157         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
26158         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
26159         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
26160         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
26161         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
26162         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
26163         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
26164         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
26165         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
26166         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
26167         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
26168         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
26169         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
26170         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
26171         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
26172         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
26173         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
26174         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
26175         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
26176         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
26177         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
26178         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
26179         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
26180         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
26181         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
26182         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
26183         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
26184         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
26185         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
26186         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
26187         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
26188
26189         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
26190         _XOPEN_SOURCE_EXTENDED for XPG4.
26191
26192         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
26193
26194         * Makeconfig (localtime): Remove variable.
26195         (inst_localtime-file): Likewise.
26196
26197 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26198
26199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
26200         Update.
26201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26202         Update.
26203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
26204         Update.
26205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
26206         Update.
26207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
26208         Update.
26209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
26210         Update.
26211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26212         Update.
26213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
26214         Update.
26215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26216         Update.
26217
26218 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
26219
26220         [BZ #2550]
26221         [BZ #2570]
26222         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
26223         comparisons to determine direction to adjust input.
26224         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
26225         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
26226         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
26227         Likewise.
26228         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
26229         Likewise.
26230         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
26231         Likewise.
26232         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
26233         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
26234         Likewise.
26235         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
26236         Likewise.
26237         * math/libm-test.inc (nexttoward_test): Add more tests.
26238
26239 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26240
26241         [BZ #14040]
26242         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
26243         in version GLIBC_2.1, not GLIBC_2.0.
26244         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
26245         Likewise.
26246
26247 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
26248
26249         [BZ #13942]
26250         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
26251         (1 - x) * (1 + x).
26252         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26253         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
26254         * math/libm-test.inc (acos_test): Add more tests.
26255         (asin_test): Likewise.
26256         * sysdeps/i386/fpu/libm-test-ulps: Update.
26257         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26258
26259         [BZ #14034]
26260         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
26261         of square root.
26262         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
26263         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26264         * math/libm-test.inc (acos_test_tonearest): New function.
26265         (acos_test_towardzero): Likewise.
26266         (acos_test_downward): Likewise.
26267         (acos_test_upward): Likewise.
26268         (asin_test_tonearest): Likewise.
26269         (asin_test_towardzero): Likewise.
26270         (asin_test_downward): Likewise.
26271         (asin_test_upward): Likewise.
26272         (main): Call the new functions.
26273         * sysdeps/i386/fpu/libm-test-ulps: Update.
26274         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26275
26276         [BZ #13884]
26277         [BZ #13924]
26278         * math/e_exp10.c: Include <float.h>.
26279         (__ieee754_exp10): Handle underflow here rather than multiplying
26280         large negative argument by M_LN10.
26281         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
26282         of __ieee754_expf.
26283         * math/e_exp10l.c: Include <float.h>.
26284         (__ieee754_exp10l): Handle underflow here rather than multiplying
26285         large negative argument by M_LN10l.
26286         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
26287         spurious overflow exception on underflow.
26288
26289 2012-04-29  Marek Polacek  <polacek@redhat.com>
26290
26291         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
26292         (__fortify_function): New macro.
26293         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
26294         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
26295         __extern_always_inline.
26296         * libio/bits/stdio2.h: Likewise.
26297         * libio/bits/stdio.h: Likewise.
26298         * string/string.h: Likewise.
26299         * string/bits/string3.h: Likewise.
26300         * include/stdio.h: Likewise.
26301         * stdlib/bits/stdlib.h: Likewise.
26302         * stdlib/stdlib.h: Likewise.
26303         * rt/bits/mqueue2.h: Likewise.
26304         * rt/mqueue.h: Likewise.
26305         * posix/bits/unistd.h: Likewise.
26306         * posix/unistd.h: Likewise.
26307         * io/bits/poll2.h: Likewise.
26308         * io/bits/fcntl2.h: Likewise.
26309         * io/fcntl.h: Likewise.
26310         * io/sys/poll.h: Likewise.
26311         * misc/bits/syslog.h: Likewise.
26312         * misc/bits/syslog-ldbl.h: Likewise.
26313         * misc/sys/syslog.h: Likewise.
26314         * socket/bits/socket2.h: Likewise.
26315         * socket/sys/socket.h: Likewise.
26316         * debug/tst-chk1.c: Likewise.
26317         * wcsmbs/bits/wchar2.h: Likewise.
26318         * wcsmbs/bits/wchar-ldbl.h: Likewise.
26319         * wcsmbs/wchar.h: Likewise.
26320
26321 2012-04-29  Andreas Jaeger  <aj@suse.de>
26322
26323         * Makerules (tests): Remove enable-check-abi protection.
26324         (check-abi-warn): Remove.
26325         (check-abi-%): Remove check-abi-warn usage.
26326
26327         * configure.in: Remove check-abi configure option.
26328         * configure: Regenerated.
26329         * config.make.in (enable-check-abi): Remove.
26330
26331 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
26332
26333         [BZ #14033]
26334         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
26335         double functions to double *_finite functions.
26336
26337         [BZ #13941]
26338         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
26339         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
26340         LDBL_MIN_EXP.
26341         * stdio-common/Makefile (tests): Add tst-sprintf3.
26342         * stdio-common/tst-sprintf3.c: New file.
26343
26344         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
26345         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
26346
26347 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26348
26349         * conform/conformtest.pl: Remove duplicate typed-constant
26350         handling.
26351
26352 2012-04-28  David S. Miller  <davem@davemloft.net>
26353
26354         * Makerules (%.abilist): Add vpath on sysdep_dirs.
26355         (check-abi-%): Remove AWK script prerequisite and explicit
26356         abilist directory.
26357         (check-abi): Rewrite to just diff the symlist with the abilist.
26358         (config-tls, config-abi-config): Delete, no longer used.
26359         (update-abi-%): Remove AWK script and explicit abilist directory.
26360         (update-abi): Rewrite to simply compare and conditionally copy the
26361         symlist and the sysdep abilist file.  Remove update-abi-config
26362         checks.
26363         * abilist/ld.abilist: Remove.
26364         * abilist/libBrokenLocale.abilist: Remove.
26365         * abilist/libanl.abilist: Remove.
26366         * abilist/libcrypt.abilist: Remove.
26367         * abilist/libdl.abilist: Remove.
26368         * abilist/librt.abilist: Remove.
26369         * abilist/libthread_db.abilist: Remove.
26370         * abilist/libutil.abilist: Remove.
26371         * scripts/extract-abilist.awk: Remove.
26372         * scripts/merge-abilist.awk: Remove.
26373         * sysdeps/generic/libcidn.abilist: New file.
26374         * sysdeps/generic/libnss_compat.abilist: New file.
26375         * sysdeps/generic/libnss_db.abilist: New file.
26376         * sysdeps/generic/libnss_dns.abilist: New file.
26377         * sysdeps/generic/libnss_files.abilist: New file.
26378         * sysdeps/generic/libnss_hesiod.abilist: New file.
26379         * sysdeps/generic/libnss_nis.abilist: New file.
26380         * sysdeps/generic/libnss_nisplus.abilist: New file.
26381         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
26382         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
26383         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
26384         file.
26385         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
26386         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
26387         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
26388         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
26389         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
26390         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
26391         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
26392         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
26393         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
26394         file.
26395         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
26396         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
26397         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
26398         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
26399         file.
26400         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
26401         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
26402         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
26403         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
26404         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
26405         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
26406         file.
26407         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
26408         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
26409         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
26410         file.
26411         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
26412         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
26413         New file.
26414         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
26415         New file.
26416         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
26417         New file.
26418         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
26419         New file.
26420         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
26421         New file.
26422         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
26423         New file.
26424         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
26425         New file.
26426         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
26427         New file.
26428         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
26429         New file.
26430         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
26431         New file.
26432         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
26433         New file.
26434         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
26435         New file.
26436         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
26437         New file.
26438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
26439         file.
26440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
26441         New file.
26442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
26443         New file.
26444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
26445         file.
26446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
26447         New file.
26448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
26449         New file.
26450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
26451         file.
26452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
26453         New file.
26454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26455         New file.
26456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
26457         New file.
26458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
26459         New file.
26460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
26461         New file.
26462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
26463         New file.
26464         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
26465         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
26466         file.
26467         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
26468         New file.
26469         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
26470         file.
26471         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
26472         file.
26473         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
26474         file.
26475         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
26476         file.
26477         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
26478         file.
26479         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
26480         New file.
26481         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
26482         file.
26483         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
26484         file.
26485         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
26486         New file.
26487         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
26488         file.
26489         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
26490         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
26491         file.
26492         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
26493         New file.
26494         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
26495         file.
26496         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
26497         file.
26498         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
26499         file.
26500         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
26501         file.
26502         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
26503         file.
26504         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
26505         New file.
26506         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
26507         file.
26508         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
26509         file.
26510         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
26511         New file.
26512         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
26513         file.
26514         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
26515         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
26516         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
26517         file.
26518         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
26519         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
26520         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
26521         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
26522         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
26523         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
26524         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
26525         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
26526         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
26527         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
26528         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
26529         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
26530         file.
26531         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
26532         New file.
26533         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
26534         file.
26535         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
26536         file.
26537         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
26538         file.
26539         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
26540         file.
26541         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
26542         file.
26543         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
26544         New file.
26545         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
26546         New file.
26547         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
26548         file.
26549         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
26550         New file.
26551         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
26552         file.
26553         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
26554         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
26555         file.
26556         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
26557         New file.
26558         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
26559         file.
26560         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
26561         file.
26562         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
26563         file.
26564         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
26565         file.
26566         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
26567         file.
26568         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
26569         New file.
26570         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
26571         New file.
26572         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
26573         file.
26574         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
26575         New file.
26576         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
26577         file.
26578
26579 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26580
26581         * conform/conformtest.pl: Fix typo in handling typed-constant from
26582         allow-header.
26583
26584 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26585
26586         * README: Cut down references to pre-2.6 Linux kernels and
26587         Linuxthreads.  Update lists of configurations in libc and ports
26588         and sort alphabetically.  Say "or newer" with Linux kernel version
26589         requirements.
26590
26591         * config.h.in [IS_IN_build]: Allow compiling without optimization.
26592
26593 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
26594
26595         [BZ #887]
26596         * math/libm-test.inc (logb_test_downward): New test to expose
26597         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
26598         rounding mode.
26599
26600 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26601
26602         [BZ #14027]
26603         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
26604         to be done.
26605         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
26606         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
26607
26608 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
26609
26610         * sysdeps/unix/i386/brk.S: Remove file.
26611         * sysdeps/unix/i386/dl-brk.S: Likewise.
26612         * sysdeps/unix/i386/pipe.S: Likewise.
26613         * sysdeps/unix/i386/sigreturn.S: Likewise.
26614         * sysdeps/unix/i386/syscall.S: Likewise.
26615         * sysdeps/unix/i386/vfork.S: Likewise.
26616         * sysdeps/unix/i386/wait.S: Likewise.
26617
26618         * sysdeps/unix/common/tcsendbrk.c: Move to ...
26619         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
26620
26621         * configure.in (arm*-none*): Do not allow without
26622         --enable-hacker-mode.
26623         (netbsd*): Remove case setting base_os.
26624         (386bsd*): Likewise.
26625         (freebsd*): Likewise.
26626         (bsdi*): Likewise.
26627         (osf*): Likewise.
26628         (sunos*): Likewise.
26629         (ultrix*): Likewise.
26630         (newsos*): Likewise.
26631         (dynix*): Likewise.
26632         (*bsd*): Likewise.
26633         (sysv*): Likewise.
26634         (isc*): Likewise.
26635         (esix*): Likewise.
26636         (sco*): Likewise.
26637         (minix*): Likewise.
26638         (irix4*): Likewise.
26639         (irix6*): Likewise.
26640         (solaris[2-9]*): Likewise.
26641         (none): Likewise.
26642         * configure: Regenerated.
26643
26644 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26645
26646         [BZ #11521]
26647         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
26648         overflow or cancellation in calculating denominator.
26649         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
26650         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
26651         down expression to avoid unexpected rounding in newer GCCs.
26652         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
26653
26654 2012-04-26  David S. Miller  <davem@davemloft.net>
26655
26656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
26657         long-double compat symbols.
26658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
26659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
26660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
26661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
26662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
26663         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
26664         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
26665         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
26666         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
26667         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
26668         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
26669         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
26670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
26671
26672 2012-04-25  David S. Miller  <davem@davemloft.net>
26673
26674         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
26675         HWCAP_* values only after the memory barriers have been defined.
26676         (atomic_full_barrier): Define.
26677         (atomic_read_barrier): Define.
26678         (atomic_write_barrier): Define.
26679
26680 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
26681
26682         * shlib-versions: Add libgcc_s version information.
26683         * sysdeps/generic/libgcc_s.h: Remove.
26684         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
26685         libgcc_s.h.
26686         * sysdeps/gnu/unwind-resume.c: Likewise.
26687         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
26688
26689 2012-04-25  David S. Miller  <davem@davemloft.net>
26690
26691         * sysdeps/unix/sparc/brk.S: Delete.
26692         * sysdeps/unix/sparc/dl-brk.S: Delete.
26693         * sysdeps/unix/sparc/pipe.S: Delete.
26694         * sysdeps/unix/sparc/sysdep.S: Delete.
26695         * sysdeps/unix/sparc/sysdep.h: Delete.
26696         * sysdeps/unix/sparc/vfork.S: Delete.
26697         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
26698         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
26699         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
26700         ret_ERRVAL, r0, r1, MOVE): Define.
26701         (JUMPTARGET): Remove.
26702         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
26703         sysdeps/unix/sparc/sysdep.h
26704         (ENTRY, END): Remove.
26705         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26706
26707 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
26708
26709         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
26710         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
26711         -DIS_IN_build.
26712
26713         * timezone/README: Update upstream location and email address for
26714         tzcode and tzdata.
26715         * timezone/zdump.c: Update from tzcode 2012b.
26716         * timezone/zic.c: Likewise.
26717
26718         * configure.in (libc_cv_as_needed): Remove test.
26719         * configure: Regenerated.
26720         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
26721         conditional definition.
26722         [$(have-as-needed) != yes] (no-as-needed): Likewise.
26723         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
26724         * config.make.in (have-as-needed): Remove variable.
26725
26726 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
26727             Paul Pluzhnikov  <ppluzhnikov@google.com>
26728
26729         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
26730         strings correctly.
26731
26732 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
26733
26734         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
26735         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
26736         * sysdeps/sh/strlen.S: Likewise.
26737
26738 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26739
26740         * sysdeps/unix/fork.S: Remove file.
26741         * sysdeps/unix/i386/fork.S: Likewise.
26742         * sysdeps/unix/sparc/fork.S: Likewise.
26743
26744         * sysdeps/unix/system.c: Remove file.
26745         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
26746
26747         * sysdeps/unix/getegid.S: Remove file.
26748         * sysdeps/unix/geteuid.S: Likewise.
26749
26750 2012-04-24  Roland McGrath  <roland@hack.frob.com>
26751
26752         * scripts/check-localplt.awk: New file.
26753         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
26754         of diff.
26755         * scripts/data/localplt-generic.data: Add a comment.
26756
26757         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
26758         NODE when __dir_mkfile failed.
26759         * sysdeps/mach/hurd/symlinkat.c: Likewise.
26760         Reported by Ludovic Courtès <ludo@gnu.org>.
26761
26762 2012-04-24  Andreas Jaeger  <aj@suse.de>
26763
26764         * Makerules (common-clean): Also remove gen-as-const-headers
26765         files.
26766
26767 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26768
26769         * Makerules (native-compile): Do not change working directory for
26770         build.  Use $(OUTPUT_OPTION) in command.
26771         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
26772
26773 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26774
26775         [BZ #13886]
26776         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
26777         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
26778         * math/libm-test.inc (floor_test): Add more tests.
26779         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
26780
26781 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26782
26783         * sysdeps/unix/getdents.c: Remove file.
26784         * sysdeps/unix/sysv/getdents.c: Likewise.
26785         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
26786
26787         * sysdeps/unix/syscalls.list (madvise): Add syscall from
26788         sysdeps/unix/mman/syscalls.list.
26789         (mmap): Likewise.
26790         (mprotect): Likewise.
26791         (msync): Likewise.
26792         (munmap): Likewise.
26793         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
26794         * sysdeps/unix/mman/syscalls.list: Remove.
26795         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
26796
26797         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
26798         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
26799         * configure: Regenerated.
26800         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
26801         $(libgcc_s_suffix).
26802         * config.make.in (libgcc_s_suffix): Remove variable.
26803
26804 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
26805
26806         * sysdeps/unix/sysv/gethostname.c: Move to ...
26807         * sysdeps/posix/gethostname.c: ... here.
26808
26809         * sysdeps/unix/execve.S: Remove file.
26810
26811         * sysdeps/unix/_exit.S: Remove file.
26812
26813 2012-04-23  Andreas Jaeger  <aj@suse.de>
26814
26815         [BZ #13739]
26816         * manual/Makefile: Remove make dist support, there's no
26817         need for a stand-alone documentation tar ball.
26818         (TEXI2DVI): Define always, it's not in Makeconfig.
26819         (dist): Removed.
26820         (tar-it): Removed.
26821         (edition): Removed.
26822         (glibc-doc-$(edition).tar): Removed
26823         (%.Z): Removed.
26824         (%.gz): Removed.
26825         (%.uu): Removed.
26826         (ETAGS): Remove, it's in Makeconfig.
26827         (move-if-change): Remove, it's in Makeconfig.
26828
26829 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
26830
26831         [BZ #13970]
26832         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
26833         (strtod, strtof, strtold, strtol, strtoul, strtoq)
26834         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
26835         (strtod_l, strtof_l, strtold_l): Remove __wur.
26836         It is not necessarily an error to ignore strtol's return value.
26837         One can reliably look at the stored endptr to decide whether
26838         the number had valid syntax.
26839
26840 2012-04-21  Andreas Jaeger  <aj@suse.de>
26841
26842         [BZ #13739]
26843         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
26844
26845 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
26846
26847         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
26848         * sysdeps/unix/sysv/Versions: Remove file.
26849
26850 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
26851
26852         [BZ #13927]
26853         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26854
26855 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
26856
26857         [BZ #7064]
26858         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
26859         version from __vm86.
26860
26861 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
26862
26863         * sysdeps/unix/common/lxstat.c: Remove file.
26864         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
26865
26866         * sysdeps/unix/sysv/Makefile: Remove file.
26867
26868         * sysdeps/unix/sysv/direct.h: Remove file.
26869
26870         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
26871         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
26872         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
26873         * sysdeps/unix/sysv/bits/signum.h: Likewise.
26874         * sysdeps/unix/sysv/bits/stat.h: Likewise.
26875         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
26876         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
26877
26878         * sysdeps/unix/sysv/setrlimit.c: Remove file.
26879
26880         * sysdeps/unix/xmknod.c: Remove file.
26881         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
26882
26883         * sysdeps/unix/sysv/settimeofday.c: Remove file.
26884
26885         * sysdeps/unix/sysv/i386/time.S: Remove file.
26886
26887         * sysdeps/unix/fxstat.c: Remove file.
26888         * sysdeps/unix/xstat.c: Likewise.
26889         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
26890
26891         * sysdeps/unix/sysv/sigaction.c: Remove file.
26892
26893         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
26894         (sysdep_headers): Remove variable.
26895         [termio.h not in sysdep_headers] (generated): Likewise.
26896         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
26897         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
26898         * sysdeps/unix/sysv/tcdrain.c: Likewise.
26899         * sysdeps/unix/sysv/tcflow.c: Likewise.
26900         * sysdeps/unix/sysv/tcflush.c: Likewise.
26901         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
26902         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
26903         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
26904         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
26905         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
26906
26907         * sysdeps/unix/siglist.c: Remove file.
26908
26909         * sysdeps/unix/getppid.S: Remove file.
26910
26911         * sysdeps/unix/mkdir.c: Remove file.
26912         * sysdeps/unix/rmdir.c: Likewise.
26913
26914 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
26915
26916         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
26917         ERR_MAX value.
26918         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
26919         errlist-compat value.
26920
26921 2012-04-18  David S. Miller  <davem@davemloft.net>
26922
26923         * sysdeps/generic/memcopy.h (reg_char): Delete.
26924         * debug/strcat_chk.c: Use char, not reg_char.
26925         * debug/strcpy_chk.c: Likewise.
26926         * debug/strncat_chk.c: Likewise.
26927         * debug/strncpy_chk.c: Likewise.
26928         * string/memchr.c: Likewise.
26929         * string/memrchr.c: Likewise.
26930         * string/rawmemchr.c: Likewise.
26931         * string/strcat.c: Likewise.
26932         * string/strchr.c: Likewise.
26933         * string/strchrnul.c: Likewise.
26934         * string/strcmp.c: Likewise.
26935         * string/strcpy.c: Likewise.
26936         * string/strncat.c: Likewise.
26937         * string/strncmp.c: Likewise.
26938         * string/strncpy.c: Likewise.
26939
26940 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26941
26942         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
26943         __builtin_memcopy is called when src and dest ranges are known to not
26944         overlap.
26945
26946 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26947
26948         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
26949         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
26950         fwd_align_merge macro call.
26951         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
26952         bwd_align_merge macro call.
26953         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
26954
26955 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26956
26957         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
26958         bwd_align_merge macros.
26959         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
26960         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
26961         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
26962
26963 2012-04-18  David S. Miller  <davem@davemloft.net>
26964
26965         * sysdeps/sparc/sparc64/memcopy.h: Delete.
26966
26967 2012-04-18  Andreas Jaeger  <aj@suse.de>
26968
26969         [BZ# 6794]
26970         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
26971         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
26972         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
26973
26974         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
26975         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
26976         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
26977
26978         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
26979         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
26980         Adjust for changed ldbl-128 files.
26981
26982         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
26983         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
26984         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
26985
26986 2012-04-17  David S. Miller  <davem@davemloft.net>
26987
26988         * sysdeps/sparc/sparc32/memcopy.h: Delete.
26989
26990 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
26991
26992         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
26993         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
26994         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
26995         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
26996         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
26997         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
26998
26999 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27000
27001         [BZ #6794]
27002         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
27003         * math/libm-test.inc: Add ilogb errno and exception tests.
27004         * math/w_ilogb.c: New file: ilogb wrapper.
27005         * math/w_ilogbf.c: New file: ilogbf wrapper.
27006         * math/w_ilogbl.c: New file: ilogbl wrapper.
27007         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
27008         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
27009         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
27010         exception being thrown with 0.0 as argument.
27011         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
27012         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
27013         exception being thrown with 0.0 as argument.
27014         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
27015         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27016         exception being thrown with 0.0 as argument.
27017         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
27018         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27019         exception being thrown with 0.0 as argument.
27020         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
27021         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
27022         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
27023         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
27024         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
27025         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
27026         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
27027         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
27028         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
27029
27030 2012-04-17  Petr Baudis  <pasky@ucw.cz>
27031
27032         * include/sys/uio.h: Change __vector to __iovec to avoid clash
27033         with altivec.
27034
27035 2012-04-16  Marek Polacek  <polacek@redhat.com>
27036
27037         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
27038
27039 2012-04-16  Marek Polacek  <polacek@redhat.com>
27040
27041         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
27042         operands of fdivp instruction.
27043
27044 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27045
27046         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
27047         * elf/tst-auditmod3b.c: Likewise.
27048         * elf/tst-auditmod4b.c: Likewise.
27049         * elf/tst-auditmod5b.c: Likewise.
27050         * elf/tst-auditmod6b.c: Likewise.
27051         * elf/tst-auditmod6c.c: Likewise.
27052         * elf/tst-auditmod7b.c: Likewise.
27053         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
27054         * sysdeps/x86_64/preconfigure.in: Likewise.
27055         * sysdeps/x86_64/preconfigure: Regenerated.
27056
27057 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27058
27059         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
27060         __ILP32__.
27061
27062 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
27063
27064         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27065         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
27066
27067 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
27068
27069         [BZ #13973]
27070         * locale/iso-639.def: Fix gl language name. Spotted by
27071         Yaron Shahrabani.
27072
27073 2012-04-12  Roland McGrath  <roland@hack.frob.com>
27074
27075         [BZ #2074]
27076         * libio/libio.h (__io_write_fn): Update comment.
27077
27078 2012-04-12  Petr Baudis  <pasky@ucw.cz>
27079
27080         [BZ #2074]
27081         * stdio.texi (Hook Functions): The user provided writer function
27082         is not allowed to return -1.
27083
27084 2012-04-11  David S. Miller  <davem@davemloft.net>
27085
27086         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27087
27088 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
27089
27090         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
27091         Add a leading slash to rtkaio.
27092
27093 2012-04-11  Jim Meyering  <meyering@redhat.com>
27094
27095         [BZ #11959]
27096         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
27097         It is not necessarily an error to ignore fwrite's return
27098         value.  One can reliably use ferror to test for errors after
27099         the fact.
27100
27101 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27102
27103         * bits/types.h (__snseconds_t): New type.
27104         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
27105
27106         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
27107         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27108         (__SNSECONDS_T_TYPE): Likewise.
27109         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27110         (__SNSECONDS_T_TYPE): Likewise.
27111         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27112         (__SNSECONDS_T_TYPE): Likewise.
27113
27114 2012-04-10  Andreas Jaeger  <aj@suse.de>
27115
27116         [BZ #2636]
27117         * manual/time.texi (Processor Time): Return type of times is
27118         elapsed real time since an arbitrary point in the past.
27119         (CPU Time): Move CLK_TCK from here...
27120         (Processor Time): ...to here.  Correct description.
27121         * manual/conf.texi (Constants for Sysconf): Correct description of
27122         _SC_CLK_TCK.
27123
27124 2012-04-10  David S. Miller  <davem@davemloft.net>
27125
27126         [BZ #13967]
27127         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
27128         where the is a gap between DT_REL(A) and DT_JMPREL.
27129
27130 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27131
27132         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
27133         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27134         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27135
27136 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27137
27138         * elf/dl-support.c (_dl_inhibit_cache): New variable.
27139         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
27140         (dl_main): Handle --inhibit-cache.
27141         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
27142         _dl_inhibit_cache.
27143         * elf/dl-load.c (_dl_map_object): Use it.
27144         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
27145
27146 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27147
27148         [BZ #13872]
27149         * sysdeps/i386/fpu/e_powl.S (p78): New object.
27150         (__ieee754_powl): Saturate large exponents rather than testing for
27151         overflow of y*log2(x).
27152         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27153         * math/libm-test.inc (pow_test): Do not permit spurious overflow
27154         exceptions.
27155
27156         [BZ #11521]
27157         * math/s_ctan.c: Include <float.h>.
27158         (__ctan): Avoid internal overflow or cancellation in calculating
27159         denominator.
27160         * math/s_ctanf.c: Likewise.
27161         * math/s_ctanl.c: Likewise.
27162         * math/s_ctanh.c: Likewise.
27163         * math/s_ctanhf.c: Likewise.
27164         * math/s_ctanhl.c: Likewise.
27165         * math/libm-test.inc (ctan_test): Add more tests.
27166         (ctanh_test): Likewise.
27167         * sysdeps/i386/fpu/libm-test-ulps: Update.
27168         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27169
27170 2012-04-09  Andreas Jaeger  <aj@suse.de>
27171
27172         [BZ #6894]
27173         * manual/filesys.texi (Directory Entries): Mention that d_namlen
27174         is an optional BSD extension.
27175
27176         [BZ #10254]
27177         * manual/stdio.texi (Opening Streams): Document additional fopen
27178         parameters.
27179
27180 2012-04-09  Roland McGrath  <roland@hack.frob.com>
27181
27182         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
27183         %eax without telling the compiler.
27184
27185 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
27186
27187         [BZ # 13963]
27188         * manual/install.texi: Use sourceware.org.
27189
27190 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27191
27192         [BZ #13873]
27193         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
27194         (__ieee754_pow): Generate overflow and underflow using huge*huge
27195         and tiny*tiny rather than just returning constant infinity or zero
27196         for large exponents.
27197         * math/libm-test.inc (pow_test): Require overflow exceptions for
27198         applicable cases of large exponents.
27199
27200         [BZ #706]
27201         * sysdeps/i386/fpu/e_pow.S (p10): New object.
27202         (__ieee754_pow): Use iterative multiplication algorithm only for
27203         integer exponents with absolute value below 1024.  Check for odd
27204         integer exponents when using algorithm for real exponents.
27205         * math/libm-test.inc (pow_test): Add more tests.
27206         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27207
27208 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
27209
27210         [BZ #13705]
27211         * math/libm-test.inc (exp_test): Do not allow overflow exception
27212         on underflow test.
27213
27214 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
27215
27216         [BZ #13705]
27217         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
27218         instead of __kernel_standard_f.
27219
27220 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
27221
27222         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
27223         * sysdeps/x86_64/memset_chk.S: Likewise.
27224
27225 2012-04-08  Andreas Jaeger  <aj@suse.de>
27226
27227         [BZ #10153]
27228         * manual/startup.texi (Environment Access): Describe return value
27229         for putenv and setenv.
27230
27231         [BZ #6895]
27232         * manual/filesys.texi (Directory Entries): Add description for
27233         DT_LNK.
27234
27235         [BZ #6890]
27236         * manual/filesys.texi (Directory Entries): Clarify that it's file
27237         system not operating system in the description of DT_UNKNOWN.
27238
27239         [BZ #6578]
27240         * manual/syslog.texi (closelog): Fix reference, it's openlog.
27241
27242 2012-04-08  Stephen Compall  <s11@member.fsf.org>
27243
27244         [BZ #6649]
27245         * manual/llio.texi (Opening and Closing Files): Add cross
27246         reference to explain mode argument.
27247
27248 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
27249
27250         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
27251         * sysdeps/x86_64/memset_chk.S: Likewise.
27252
27253 2012-04-07  David S. Miller  <davem@davemloft.net>
27254
27255         * elf/elf.h (R_SPARC_WDISP10): Define.
27256         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
27257         R_SPARC_SIZE32.
27258         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
27259         R_SPARC_SIZE64 and R_SPARC_H34.
27260
27261 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
27262
27263         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
27264         conditions and remove no longer applicable assertion.
27265
27266 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27267
27268         * bits/byteswap.h: Include <features.h>.
27269         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27270         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27271
27272 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27273
27274         * bits/byteswap.h (__bswap_16): Removed.
27275         Include <bits/byteswap-16.h> to get __bswap_16.
27276         * sysdeps/i386/bits/byteswap.h: Likewise.
27277         * sysdeps/s390/bits/byteswap.h: Likewise.
27278         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27279         * bits/byteswap-16.h: New file.
27280         * sysdeps/i386/bits/byteswap-16.h: Likewise.
27281         * sysdeps/s390/bits/byteswap-16.h: Likewise.
27282         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
27283         * string/Makefile (headers): Add bits/byteswap-16.h.
27284
27285 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27286
27287         [BZ #13895]
27288         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
27289         extra indirection.
27290         * nss/Makefile (tests-static, tests): Add tst-nss-static.
27291         * nss/tst-nss-static.c: New.
27292
27293 2012-04-06  Robert Millan  <rmh@gnu.org>
27294
27295         [BZ #6486]
27296         * manual/llio.texi (File Position Primitive): lseek
27297         refers to WHENCE when it really means OFFSET.
27298
27299 2012-04-06  Andreas Jaeger  <aj@suse.de>
27300
27301         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
27302         strncmp declarations.
27303
27304         * abilist/libc.abilist: Add __poll and __ppoll.
27305
27306 2012-04-05  David S. Miller  <davem@davemloft.net>
27307
27308         * scripts/check-local-headers.sh: Accept a host triplet in the
27309         path matched by the exclude regexp.
27310
27311         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
27312         definition.
27313         * sysdeps/powerpc/powerpc32/dl-machine.h
27314         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
27315         * sysdeps/s390/s390-32/dl-machine.h
27316         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27317         * sysdeps/sparc/sparc32/dl-machine.h
27318         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27319         * sysdeps/sparc/sparc64/dl-machine.h
27320         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27321
27322         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
27323         lazy binding.
27324         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
27325         undefined symbol errors.
27326
27327         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
27328         DT_NEEDED entries.
27329
27330 2012-04-05  Michael Matz  <matz@suse.de>
27331
27332         [BZ #13592]
27333         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
27334
27335 2012-04-05  Andreas Jaeger  <aj@suse.de>
27336
27337         [BZ #13908]
27338         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
27339         comment.
27340
27341 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27342
27343         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
27344         which ROUND is no valid rounding mode.
27345
27346 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27347
27348         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
27349         read again.
27350         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
27351
27352 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27353
27354         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
27355         an exception using FPU order intentionally.
27356
27357 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27358
27359         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
27360         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
27361         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
27362         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
27363
27364 2012-04-05  Simon Josefsson  <simon@josefsson.org>
27365
27366         [BZ #12340]
27367         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
27368         EINVAL when BUFLEN is too smal.
27369
27370 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
27371
27372         [BZ #13553]
27373         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
27374         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
27375
27376 2012-04-03  Andreas Jaeger  <aj@suse.de>
27377
27378         [BZ #13938]
27379         * manual/setjmp.texi (System V contexts): Fix sentence.
27380
27381         [BZ #13926]
27382         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
27383         New macro for this case.
27384         [!__GNUC__] (__bswap_64): New inline function for this case.
27385         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27386         * bits/byteswap.h: Likewise.
27387         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
27388         ull, guard with __GLIBC_HAVE_LONG_LONG.
27389
27390         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
27391         __GLIBC_HAVE_LONG_LONG.
27392
27393         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
27394         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
27395
27396 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27397
27398         [BZ #13691]
27399         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
27400         inptr and inend, rather than using last_ch.
27401
27402 2012-04-02  David S. Miller  <davem@davemloft.net>
27403
27404         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
27405         * stdio-common/printf-parse.h (read_int): Change return type to
27406         'int', return -1 on INT_MAX overflow.
27407         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
27408         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
27409         overflows INT_MAX.  Check for overflow of in-format-string precision
27410         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
27411         SIZE_MAX not INT_MAX for integer overflow test.
27412         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
27413         skip the construct in the format string but do not record anything.
27414         * stdio-common/bug22.c: Adjust to test both width/prevision
27415         INT_MAX overflow as well as total length INT_MAX overflow.  Check
27416         explicitly for proper errno values.
27417
27418 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
27419
27420         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
27421         CHAR_MAX.
27422         * string/test-strcmp.c [! WIDE]: Likewise.
27423         * time/tst-mktime2.c: Likewise for INT_MAX.
27424         * string/test-string.h: #include <sys/param.h> for MIN.
27425
27426         * csu/init-first.c (__libc_init_first): Call __ctype_init.
27427         * sysdeps/i386/init-first.c (init): Likewise.
27428         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
27429         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
27430         * sysdeps/sh/init-first.c (init): Likewise.
27431
27432 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
27433
27434         * po/ru.po: Update from translation team.
27435         * po/vi.po: Likewise.
27436
27437 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
27438
27439         * resolv/nss_dns/dns-host.c: Merge copyright years.
27440
27441 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27442
27443         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
27444         Optimize memcpy with prefetch if
27445         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
27446         src, dst pointers have unequal 16 byte alignments.
27447
27448 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
27449
27450         [BZ #13928]
27451         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
27452         from a CNAME entry and return the minimum ttl for the query.
27453         (gaih_getanswer_slice): Likewise.
27454
27455 2012-03-30  Jeff Law  <law@redhat.com>
27456
27457         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
27458         due to long keys.
27459         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
27460         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
27461
27462         * resolv/nss_dns/dns-host.c: Update copyright year.
27463
27464 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
27465
27466         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
27467         requests to save a system call.  Fix check that all bytes are sent.
27468
27469         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
27470         comments for sendmmsg.
27471
27472 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27473
27474         [BZ #13691]
27475         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
27476         with only 1 character between 0x0041 and 0x01b0.
27477         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
27478         * wcsmbs/tst-mbsnrtowcs.c: New file.
27479
27480 2012-03-29  David S. Miller  <davem@davemloft.net>
27481
27482         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
27483         small copies by hand.
27484
27485 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27486
27487         [BZ #13761]
27488         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
27489         _nss_compat_initgroups_dyn): Fall back to malloc/free
27490         for large group memberships.
27491
27492 2012-03-28  David S. Miller  <davem@davemloft.net>
27493
27494         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
27495         that branches into memcpy.
27496         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
27497         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
27498         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
27499         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
27500         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
27501         bits.
27502         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
27503         implementation too.
27504         * sysdeps/sparc/mempcpy.S: New file.
27505
27506         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
27507         the IFUNC routine in the libc case.
27508         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
27509
27510         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
27511         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
27512         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
27513         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
27514         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
27515         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
27516         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
27517         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
27518
27519         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
27520         loop to 256 bytes instead of 64 bytes and fix test signedness.
27521
27522         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
27523         * sysdeps/sparc/sparc32/Makefile: rather than here...
27524         * sysdeps/sparc/sparc64/Makefile: and here.
27525
27526 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
27527
27528         * malloc/mallocbug.c: Avoid warnings about unused variables.
27529
27530 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
27531
27532         [BZ #13760]
27533         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
27534         in the right place. Discard and retry query if response is
27535         larger than input buffer size.
27536
27537 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
27538
27539         [BZ #369]
27540         [BZ #2678]
27541         [BZ #3866]
27542         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
27543         x for large integer exponent.
27544         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
27545         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
27546         sign of result as needed afterwards.
27547         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
27548         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
27549         result for underflowing pow the same as for overflow.
27550         (__kernel_standard_l): Handle powl overflow and underflow here
27551         rather than calling __kernel_standard.
27552         * math/libm-test.inc (pow_test): Add more tests.
27553
27554         [BZ #3868]
27555         [BZ #13879]
27556         [BZ #13910]
27557         [BZ #13911]
27558         [BZ #13912]
27559         [BZ #13913]
27560         [BZ #13915]
27561         [BZ #13916]
27562         [BZ #13917]
27563         [BZ #13918]
27564         [BZ #13919]
27565         [BZ #13920]
27566         [BZ #13921]
27567         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
27568         * sysdeps/ieee754/k_standard.c: Include <float.h>.
27569         (__kernel_standard_l): New function.
27570         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
27571         __kernel_standard.
27572         * math/w_acosl.c (__acosl): Likewise.
27573         * math/w_asinl.c (__asinl): Likewise.
27574         * math/w_atan2l.c (__atan2l): Likewise.
27575         * math/w_atanhl.c (__atanhl): Likewise.
27576         * math/w_coshl.c (__coshl): Likewise.
27577         * math/w_exp10l.c (__exp10l): Likewise.
27578         * math/w_exp2l.c (__exp2l): Likewise.
27579         * math/w_fmodl.c (__fmodl): Likewise.
27580         * math/w_hypotl.c (__hypotl): Likewise.
27581         * math/w_j0l.c (__j0l, __y0l): Likewise.
27582         * math/w_j1l.c (__j1l, __y1l): Likewise.
27583         * math/w_jnl.c (__jnl, __ynl): Likewise.
27584         * math/w_lgammal.c (__lgammal): Likewise.
27585         * math/w_log10l.c (__log10l): Likewise.
27586         * math/w_log2l.c (__log2l): Likewise.
27587         * math/w_logl.c (__logl): Likewise.
27588         * math/w_powl.c (__powl): Likewise.
27589         * math/w_remainderl.c (__remainderl): Likewise.
27590         * math/w_scalbl.c (sysv_scalbl): Likewise.
27591         * math/w_sinhl.c (__sinhl): Likewise.
27592         * math/w_sqrtl.c (__sqrtl): Likewise.
27593         * math/w_tgammal.c (__tgammal): Likewise.
27594         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
27595         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
27596         * math/libm-test.inc (acos_test): Add more tests.
27597         (acosh_test): Likewise.
27598         (asin_test): Likewise.
27599         (atanh_test): Likewise.
27600         (exp_test): Likewise.
27601         (exp10_test): Likewise.
27602         (exp2_test): Likewise.
27603         (expm1_test): Likewise.
27604         (lgamma_test): Likewise.
27605         (log_test): Likewise.
27606         (log10_test): Likewise.
27607         (log1p_test): Likewise.
27608         (log2_test): Likewise.
27609         (pow_test): Do not allow some spurious overflow exceptions.
27610         (sqrt_test): Add more tests.
27611         (tgamma_test): Likewise.
27612         (y0_test): Likewise.
27613         (y1_test): Likewise.
27614         (yn_test): Likewise.
27615
27616 2012-03-27  Anton Blanchard  <anton@samba.org>
27617
27618         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
27619         MAP_HUGETLB.
27620         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27621         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27622         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27623
27624 2012-03-27  David S. Miller  <davem@davemloft.net>
27625
27626         * conform/Makefile: Run run-conformtest.sh using $(BASH).
27627
27628         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
27629         have-as-vis3 check.
27630
27631 2012-03-27  Andreas Jaeger  <aj@suse.de>
27632
27633         * sysdeps/x86_64/elf/configure.in: Moved to ...
27634         * sysdeps/x86_64/configure.in: ... here.
27635         * sysdeps/x86_64/elf/start.S: Moved to ...
27636         * sysdeps/x86_64/start.S: ... here.
27637         * sysdeps/x86_64/elf/configure: Delete.
27638
27639         * sysdeps/x86_64/configure.in: Merge contents from
27640         sysdeps/i386/configure.in (without i686 check).
27641
27642         * sysdeps/i386/elf/Versions: Merge into ...
27643         * sysdeps/i386/Versions: ... this.
27644         * sysdeps/i386/elf/Versions: Delete file.
27645         * sysdeps/i386/elf/start.S: Moved to ...
27646         * sysdeps/i386/start.S: ...here.
27647         * sysdeps/i386/elf/configure.in: Merge into...
27648         * sysdeps/i386/configure.in: ...here.
27649         * sysdeps/i386/elf/configure.in: Delete file.
27650         * sysdeps/i386/elf/configure: Delete file.
27651
27652         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
27653         * debug/backtracesyms.c: ... here.
27654         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
27655         * debug/backtracesymsfd.c: ... here.
27656         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
27657         * sysdeps/generic/ifunc-sel.h: ... here.
27658
27659         * sysdeps/unix/i386/start.c: Delete file.
27660         * sysdeps/unix/sparc/start.c: Delete file.
27661         * sysdeps/unix/start.c: Delete file.
27662
27663         * sysdeps/sh/elf/configure.in: Moved to ...
27664         * sysdeps/sh/configure.in: ... here.
27665         * sysdeps/sh/elf/start.S: Moved to ...
27666         * sysdeps/sh/start.S: ... here.
27667         * sysdeps/sh/elf/configure: Delete file.
27668
27669         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
27670         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
27671         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
27672         * sysdeps/powerpc/powerpc64/entry.h: ... here.
27673         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
27674         * sysdeps/powerpc/powerpc64/start.S: here.
27675         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
27676         * sysdeps/powerpc/powerpc64/Makefile: ... this.
27677         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
27678         * sysdeps/powerpc/powerpc64/configure.in: ... this.
27679         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
27680
27681         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
27682         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
27683         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
27684         * sysdeps/powerpc/powerpc32/start.S: ... here.
27685         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
27686         * sysdeps/powerpc/powerpc32/configure.in: ... this.
27687         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
27688
27689         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
27690         * sysdeps/powerpc/ifunc-sel.h: ... here.
27691         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
27692         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
27693
27694         * sysdeps/sparc/elf/configure.in: Moved to ...
27695         * sysdeps/sparc/configure.in: ... here.
27696         * sysdeps/sparc/elf/configure: Delete file.
27697         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
27698         * sysdeps/sparc/sparc32/start.S: ... here.
27699         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
27700         * sysdeps/sparc/sparc64/start.S: ... here.
27701         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
27702         * sysdeps/sparc/sparc32/Makefile: ... this.
27703         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
27704         * sysdeps/sparc/sparc64/Makefile: ... this.
27705
27706         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
27707         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
27708         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
27709         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
27710         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
27711         * sysdeps/s390/s390-32/setjmp.S: ... here.
27712         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
27713         * sysdeps/s390/s390-32/configure.in: ... here.
27714         * sysdeps/s390/s390-32/elf/configure: Delete file.
27715         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
27716         * sysdeps/s390/s390-32/start.S: ... here.
27717
27718         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
27719         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
27720         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
27721         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
27722         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
27723         * sysdeps/s390/s390-64/setjmp.S: ... here.
27724         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
27725         * sysdeps/s390/s390-64/configure.in: ... here
27726         * sysdeps/s390/s390-64/elf/configure: Delete file.
27727         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
27728         * sysdeps/s390/s390-64/start.S: ... here.
27729         * sysdeps/s390/s390-64/elf/configure: Delete.
27730
27731         * configure.in: Remove support for elf directories in sysdeps.
27732
27733         * configure: Regenerated.
27734         * sysdeps/i386/configure: Regenerated.
27735         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27736         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27737         * sysdeps/s390/s390-32/configure: Regenerated.
27738         * sysdeps/s390/s390-64/configure: Regenerated.
27739         * sysdeps/sh/configure: Regenerated.
27740         * sysdeps/sparc/configure: Regenerated.
27741         * sysdeps/x86_64/configure: Regenerated.
27742
27743 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
27744
27745         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27746
27747         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
27748         denormal result into account.
27749
27750 2012-03-25  Roland McGrath  <roland@hack.frob.com>
27751
27752         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
27753         Reported by Allan McRae <allan@archlinux.org>.
27754
27755 2012-03-23  Jeff Law  <law@redhat.com>
27756
27757         * nss/getnssent.c (__nss_getent): Fix typo.
27758
27759 2012-03-23  David S. Miller  <davem@davemloft.net>
27760
27761         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27762
27763 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
27764
27765         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
27766         to pad to uint64_t for each field.
27767         (dl_tls_index): Replace unsigned long with uint64_t.
27768
27769 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
27770         Paul Pluzhnikov  <ppluzhnikov@google.com>
27771
27772         [BZ #6528]
27773         * grp/Makefile (otherlibs): Don't set it.
27774         * inet/Makefile (otherlibs): Likewise.
27775         * login/Makefile (otherlibs): Likewise.
27776         * nscd/Makefile (otherlibs): Likewise.
27777         * posix/Makefile (otherlibs): Likewise.
27778         * pwd/Makefile (otherlibs): Likewise.
27779         * rt/Makefile (otherlibs): Likewise.
27780         * sunrpc/Makefile (otherlibs): Likewise.
27781         * nss/Makefile (otherlibs): Likewise.
27782         Add libnss_files to routines and static-only-routines.
27783         ($(objpfx)getent): Remove rule.
27784         * resolv/Makefile: Add libnss_dns and libresolv to routines and
27785         static-only-routines.
27786
27787 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27788
27789         [BZ #13892]
27790         * math/s_cexp.c: Include <float.h>.
27791         (__cexp): Handle exp result overflowing not necessarily
27792         overflowing both real and imaginary parts of result.
27793         * math/s_cexpf.c: Likewise.
27794         * math/s_cexpl.c: Likewise.
27795         * math/libm-test.inc (cexp_test): Add more tests.
27796         * sysdeps/i386/fpu/libm-test-ulps: Update.
27797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27798
27799 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27800
27801         * include/link.h (ELFW): New macro.
27802         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
27803         Replace ELF64_R_TYPE with ELFW(R_TYPE).
27804
27805 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27806
27807         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
27808         with uint64_t.
27809
27810 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27811
27812         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
27813         declaration.
27814         (struct La_x32_retval): Likewise.
27815
27816 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27817
27818         * sysdeps/x86_64/preconfigure.in: New file.
27819         * sysdeps/x86_64/preconfigure: New generated file.
27820
27821 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27822
27823         [BZ #13824]
27824         * math/e_exp2l.c: Include <float.h>.
27825         (__ieee754_exp2l): Handle overflow and underflow cases
27826         separately.  Only pass fractional part of argument to
27827         __ieee754_expl.
27828         * math/libm-test.inc (exp2_test): Add more tests.
27829
27830         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
27831         negating x to take absolute value.
27832         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
27833         Likewise.
27834         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
27835         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
27836         Likewise.
27837         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
27838         computing low part if x was negated.
27839         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
27840
27841 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27842
27843         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
27844         la_x32_gnu_pltexit.
27845         (pltexit): Cast int_retval to ptrdiff_t.
27846         * elf/tst-auditmod3b.c: Likewise.
27847         * elf/tst-auditmod4b.c: Likewise.
27848         * elf/tst-auditmod5b.c: Likewise.
27849         * elf/tst-auditmod6b.c: Likewise.
27850         * elf/tst-auditmod6c.c: Likewise.
27851         * elf/tst-auditmod7b.c: Likewise.
27852
27853         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
27854         and x32_gnu_pltexit.
27855
27856         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
27857         __ELF_NATIVE_CLASS.
27858         (La_x32_regs): New macro.
27859         (La_x32_retval): Likewise.
27860         (la_x32_gnu_pltenter): New function prototype.
27861         (la_x32_gnu_pltexit): Likewise.
27862
27863 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
27864
27865         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
27866         exponent.
27867
27868         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27869
27870         * configure.in (libc_cv_cc_nofma): Check for option to disable
27871         generation of FMA instructions.
27872         * configure: Regenerate.
27873         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
27874         * sysdeps/ieee754/dbl-64/Makefile: New file.
27875         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27876         Remove brandred-fma4.
27877         (CFLAGS-brandred-fma4.c): Remove.
27878         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
27879         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
27880         define.
27881         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
27882         define.
27883
27884 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27885
27886         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
27887         LLONG_MAX != LONG_MAX.
27888         (_itoa_word): Use _ITOA_WORD_TYPE on value.
27889         (_fitoa_word): Likewise.
27890         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
27891         LLONG_MAX != LONG_MAX.
27892         * stdio-common/_itowa.h: Include <_itoa.h>.
27893         (_itowa_word): Use _ITOA_WORD_TYPE on value.
27894         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
27895         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
27896         only if not defined.
27897         (_ITOA_WORD_TYPE): Likewise.
27898         (_itoa_word): Use _ITOA_WORD_TYPE on value.
27899         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
27900
27901 2012-03-21  David S. Miller  <davem@davemloft.net>
27902
27903         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27904
27905 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27906
27907         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
27908         of x86_64 when setting libc_cv_slibdir, libdir and
27909         libc_cv_localedir.
27910         * sysdeps/unix/sysv/linux/configure: Regenerated.
27911
27912 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27913
27914         * manual/lang.texi (Old Varargs): Remove section.
27915         (How Variadic): Update menu.
27916         (va_start): Do not mention varargs.h.
27917
27918 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
27919             Joseph Myers  <joseph@codesourcery.com>
27920
27921         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
27922         link test.
27923         * configure: Regenerated.
27924
27925 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
27926
27927         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
27928         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
27929         conformtest.pl
27930
27931 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27932
27933         * NOTES: Remove.
27934         * Makefile (files-for-dist): Remove NOTES.
27935         (NOTES): Remove rule.
27936         * README: Don't refer to NOTES.
27937         * manual/creature.texi: Don't include macros.texi.
27938         * manual/intro.texi (creature.texi): Remove comment referring to
27939         NOTES.
27940
27941         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
27942         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
27943         * configure: Regenerated.
27944         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
27945         LIBC_TRY_CC_OPTION.
27946         (libc_cv_as_i686): Likewise.
27947         (libc_cv_cc_avx): Likewise.
27948         (libc_cv_cc_sse2avx): Likewise.
27949         (libc_cv_cc_fma4): Likewise.
27950         (libc_cv_cc_novzeroupper): Likewise.
27951         * sysdeps/i386/configure: Regenerated.
27952
27953         [BZ #13883]
27954         * sysdeps/i386/fpu/s_cexp.S: Remove.
27955         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
27956         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
27957         * math/libm-test.inc (cexp_test): Add more tests.
27958         * sysdeps/i386/fpu/libm-test-ulps: Update.
27959         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27960
27961 2012-03-21  Allan McRae  <allan@archlinux.org>
27962
27963         * timezone/Makefile: Do not install iso3166.tab and zone.tab
27964
27965 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27966
27967         [BZ #13871]
27968         * math/w_exp2.c: Do not include <float.h>.
27969         (o_threshold, u_threshold): Remove.
27970         (__exp2): Calculate result before checking finiteness and calling
27971         __kernel_standard.
27972         * math/w_exp2f.c: Likewise.
27973         * math/w_exp2l.c: Likewise.
27974         * math/libm-test.inc (exp2_test): Require overflow exception for
27975         1e6 input.
27976
27977         [BZ #3866]
27978         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
27979         range of signed 64-bit integers before using fistpll.  Remove
27980         checks for whether integers fit in mantissa bits.
27981         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
27982         the range of signed 32-bit integers before using fistpl.  Remove
27983         checks for whether integers fit in mantissa bits.
27984         * sysdeps/i386/fpu/e_powl.S (p64): New object.
27985         (__ieee754_powl): Test for y outside the range of signed 64-bit
27986         integers before using fistpll.  Reduce 64-bit values to 63-bit
27987         ones as needed.
27988         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
27989         divide-by-zero is raised for zero to large negative powers.
27990         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
27991         (__ieee754_powl): Test for y outside the range of signed 64-bit
27992         integers before using fistpll.  Reduce 64-bit values to 63-bit
27993         ones as needed.
27994         * math/libm-test.inc (pow_test): Add more tests.
27995
27996 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27997
27998         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
27999         <stdio-common/_itoa.h>.
28000         * debug/segfault.c: Likewise.
28001         * elf/dl-cache.c: Likewise.
28002         * elf/dl-minimal.c: Likewise.
28003         * elf/dl-misc.c: Likewise.
28004         * elf/dl-sysdep.c: Likewise.
28005         * elf/dl-version.c: Likewise.
28006         * elf/rtld.c: Likewise.
28007         * hurd/hurdsock.c: Likewise.
28008         * hurd/lookup-retry.c: Likewise.
28009         * malloc/malloc.c: Likewise.
28010         * malloc/mtrace.c: Likewise.
28011         * nscd/nscd_getgr_r.c: Likewise.
28012         * nscd/nscd_getpw_r.c: Likewise.
28013         * nscd/nscd_getserv_r.c: Likewise.
28014         * posix/getopt_init.c: Likewise.
28015         * posix/wordexp.c: Likewise.
28016         * stdio-common/_itoa.c: Likewise.
28017         * stdio-common/printf_fphex.c: Likewise.
28018         * stdio-common/vfprintf.c: Likewise.
28019         * string/_strerror.c: Likewise.
28020         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
28021         * sysdeps/i386/i686/hp-timing.h: Likewise.
28022         * sysdeps/mach/_strerror.c: Likewise.
28023         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
28024         * sysdeps/mach/hurd/sethostid.c: Likewise.
28025         * sysdeps/mach/hurd/xmknodat.c: Likewise.
28026         * sysdeps/mach/xpg-strerror.c: Likewise.
28027         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
28028         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28029         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
28030         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
28031         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28032         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
28033         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28034         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28035         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
28036         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
28037         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
28038         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
28039         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
28040         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
28041         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
28042         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
28043         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
28044         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
28045         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
28046         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
28047         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
28048
28049         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
28050
28051         * stdio-common/_itoa.h: Moved to ...
28052         * sysdeps/generic/_itoa.h: Here.
28053
28054         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
28055
28056         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
28057         instead of "_itoa.h" and "_itowa.h".
28058         * stdio-common/vfprintf.: Likewise.
28059
28060 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28061
28062         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
28063         <bits/wordsize.h>.
28064         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
28065         (__signbit): Likwise.
28066         (llrintf): Likwise.
28067         (llrint): Likwise.
28068
28069 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28070
28071         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
28072         __WORDSIZE != 64.
28073
28074 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
28075
28076         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
28077         OVERFLOW_EXCEPTION_OK.
28078         * math/libm-test.inc ("Philosophy"): Update comment about
28079         exception testing.
28080         (OVERFLOW_EXCEPTION): Define.
28081         (OVERFLOW_EXCEPTION_OK): Likewise.
28082         (INVALID_EXCEPTION_OK): Renumber.
28083         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
28084         (IGNORE_ZERO_INF_SIGN): Likewise.
28085         (test_exceptions): Handle FE_OVERFLOW.
28086         (exp10_test): Expect overflow exceptions.
28087         (exp2_test): Likewise.
28088         (expm1_test): Likewise.
28089         (nextafter_test): Likewise.
28090         (pow_test): Likewise.
28091         (scalbn_test): Likewise.
28092         (scalbln_test): Likewise.
28093
28094 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28095
28096         * sysdeps/x86_64/bits/atomic.h
28097         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
28098         64bit integer.
28099         (atomic_exchange_acq): Likewise.
28100         (__arch_exchange_and_add_body): Likewise.
28101         (__arch_add_body): Likewise.
28102         (atomic_add_negative): Likewise.
28103         (atomic_add_zero): Likewise.
28104
28105 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28106
28107         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
28108         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
28109
28110 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28111
28112         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
28113         Check __x86_64__ instead of __WORDSIZE.
28114
28115 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28116
28117         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
28118
28119 2012-03-19  David S. Miller  <davem@davemloft.net>
28120
28121         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28122
28123         * sysdeps/sparc/fpu/fenv_private.h: New file.
28124         * sysdeps/sparc/fpu/math_private.h: Use it.
28125         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
28126         Remove.
28127         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
28128         (libc_feholdexcept_setroundl): Remove.
28129         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
28130         Remove.
28131         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
28132         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
28133
28134 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28135
28136         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
28137         int64_t instead of long int.
28138         (INSERT_WORDS64): Likwise.
28139
28140 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28141
28142         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
28143         _Unwind_GetCFA return to _Unwind_Ptr first.
28144
28145 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
28146
28147         [BZ #13629]
28148         * math/s_clog.c: Include <float.h>.
28149         (__clog): Scale large or subnormal inputs.
28150         * math/s_clogf.c: Likewise.
28151         * math/s_clogl.c: Likewise.
28152         * math/s_clog10.c: Include <float.h>.
28153         (M_LOG10_2): Define.
28154         (__clog10): Scale large or subnormal inputs.
28155         * math/s_clog10f.c: Likewise.
28156         * math/s_clog10l.c: Likewise.
28157         * math/libm-test.inc (clog_test): Add more tests.
28158         (clog10_test): Likewise.
28159         * sysdeps/i386/fpu/libm-test-ulps: Update.
28160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28161
28162         [BZ #11451]
28163         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
28164         x and y.
28165         * math/libm-test.inc (atan2_test): Add another test.
28166
28167         * Makerules (common-objdir-compile): Remove.
28168         * sysdeps/unix/Makefile (config-generated): Do not add
28169         $(unix-generated) to variable.
28170         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
28171         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
28172         Remove rule.
28173         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
28174         Likewise.
28175         [generic bits/local_lim.h] (before-compile): Do not append to
28176         variable.
28177         [generic bits/local_lim.h] (common-generated): Likewise.
28178         [generic sys/param.h] (before-compile): Do not append to variable.
28179         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
28180         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
28181         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
28182         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
28183         include.
28184         [generic sys/param.h] (sys/param.h-includes): Remove variable.
28185         [generic sys/param.h] (sys/param.h-includes): Remove rule.
28186         [generic sys/param.h] ($(addprefix
28187         $(common-objpfx),$(sys/param.h-includes))): Likewise.
28188         [generic sys/param.h] (common-generated): Do not append to
28189         variable.
28190         [generic sys/param.h] (sysdep_headers): Likewise.
28191         [generic bits/errno.h] (before-compile): Do not append to
28192         variable.
28193         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
28194         rule.
28195         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
28196         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
28197         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
28198         [generic bits/errno.h] (common-generated): Do not append to
28199         variable.
28200         [generic bits/ioctls.h] (before-compile): Do not append to
28201         variable.
28202         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
28203         rule.
28204         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
28205         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
28206         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
28207         rule.
28208         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
28209         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
28210         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
28211         [generic bits/ioctls.h] (common-generated): Do not append to
28212         variable.
28213         [generic sys/syscall.h] (syscall.h): Remove variable.
28214         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
28215         rule.
28216         [generic sys/syscall.h] (before-compile): Do not append to
28217         variable.
28218         [generic sys/syscall.h] (common-generated): Likewise.
28219         * sysdeps/unix/errnos-tmpl.c: Remove file.
28220         * sysdeps/unix/errnos.awk: Likewise.
28221         * sysdeps/unix/ioctls-tmpl.c: Likewise.
28222         * sysdeps/unix/ioctls.awk: Likewise.
28223         * sysdeps/unix/mk-local_lim.c: Likewise.
28224         * sysdeps/unix/snarf-ioctls: Likewise.
28225
28226 2012-03-19  Richard Henderson  <rth@twiddle.net>
28227
28228         * sysdeps/i386/fpu/fenv_private.h: New file.
28229         * sysdeps/i386/fpu/math_private.h: Use it.
28230         (math_opt_barrier, math_force_eval): Remove.
28231         (libc_feholdexcept_setround_53bit): Remove.
28232         (libc_feupdateenv_53bit): Remove.
28233         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28234         (math_opt_barrier, math_force_eval): Remove.
28235         (libc_feholdexcept): Remove.
28236         (libc_feholdexcept_setround): Remove.
28237         (libc_fetestexcept, libc_fesetenv): Remove.
28238         (libc_feupdateenv_test): Remove.
28239         (libc_feupdateenv, libc_feholdsetround): Remove.
28240         (libc_feresetround): Remove.
28241
28242         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
28243         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28244
28245         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
28246         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
28247         (libc_feupdateenv_testl): New.
28248         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
28249         (libc_feupdateenv_testf): New.
28250         (libc_feupdateenv): Use libc_feupdateenv_test.
28251         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
28252         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
28253
28254         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
28255         (libc_feholdsetroundf, libc_feholdsetroundl): New.
28256         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
28257         (libc_feresetround_noex): New.
28258         (libc_feresetround_noexf): New.
28259         (libc_feresetround_noexl): New.
28260         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
28261         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
28262         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
28263         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
28264         SET_RESTORE_ROUND.
28265         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
28266         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
28267         (__cos): Likewise.
28268         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
28269         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
28270         SET_RESTORE_ROUND_NOEX.
28271         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
28272         SET_RESTORE_ROUND_NOEXF.
28273         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
28274         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
28275         (libc_feholdsetroundf): New.
28276         (libc_feresetround, libc_feresetroundf): New.
28277
28278         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
28279         (libc_feholdexcept_setround_53bit): Convert from macro to function.
28280         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
28281
28282         * sysdeps/generic/math_private.h: Include <fenv.h>.
28283         (default_libc_feholdexcept): New.
28284         (default_libc_feholdexcept_setround): New.
28285         (default_libc_fesetenv, default_libc_feupdateenv): New.
28286         (libc_feholdexcept): Only define if undefined.
28287         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
28288         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
28289         (libc_feholdexcept_setroundl): Likewise.
28290         (libc_feholdexcept_setround_53bit): Likewise.
28291         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
28292         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
28293         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
28294         (libc_feupdateenv_53bit): Likewise.
28295         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
28296         (libc_feholdexcept): Convert from macro to inline function.
28297         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
28298         (libc_fesetenv, libc_feupdateenv): Likewise.
28299
28300         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
28301         not previously defined.
28302         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
28303         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
28304         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
28305         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
28306         * sysdeps/ieee754/flt-32/math_private.h: New file.
28307         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
28308         math_private.h below SET_FLOAT_WORD.
28309         (__isnan, __isinf_ns, __finite): Remove.
28310         (__isnanf, __isinf_nsf, __finitef): Remove.
28311
28312 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
28313
28314         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28315
28316 2012-03-17  David S. Miller  <davem@davemloft.net>
28317
28318         [BZ #6471]
28319         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
28320         for 2.16.
28321
28322 2012-03-16  David S. Miller  <davem@davemloft.net>
28323
28324         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
28325         warnings.
28326
28327         [BZ #6471]
28328         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
28329         properly.
28330         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
28331         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
28332         sysdep_routines when subdir is sysvipc.
28333         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
28334         __getshmlba helper.
28335
28336         * sysdeps/sparc/fpu/libm-test/ulps: Update.
28337
28338 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28339
28340         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
28341         [__LP64__].
28342
28343 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28344
28345         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
28346         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
28347         (__lround): Renamed to ...
28348         (__llround): This.  Replace long int with long long int.
28349         Define lround functions as aliases of llround functions.
28350         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
28351
28352 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28353
28354         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
28355         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
28356         adresses to uintptr_t.  Replace "long int" and "unsigned long
28357         int" with "greg_t" on va_arg.
28358
28359 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28360
28361         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
28362         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
28363
28364         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
28365         Move e_machine check before EI_CLASS check.  Handle x32
28366         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
28367         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
28368         SKIP_EM_IA_64 and include
28369         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
28370
28371         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
28372         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
28373         (add_system_dir): New macro.
28374
28375         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
28376         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
28377
28378 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28379
28380         [BZ #2551]
28381         [BZ #2552]
28382         [BZ #2553]
28383         [BZ #2554]
28384         [BZ #2562]
28385         [BZ #2563]
28386         [BZ #2565]
28387         [BZ #2566]
28388         [BZ #2576]
28389         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
28390         (y0): Likewise.
28391         * math/w_j0f.c (j0f): Likewise.
28392         (y0f): Likewise.
28393         * math/w_j0l.c (__j0l): Likewise.
28394         (__y0l): Likewise.
28395         * math/w_j1.c (j1): Likewise.
28396         (y1): Likewise.
28397         * math/w_j1f.c (j1f): Likewise.
28398         (y1f): Likewise.
28399         * math/w_j1l.c (__j1l): Likewise.
28400         (__y1l): Likewise.
28401         * math/w_jn.c (jn): Likewise.
28402         (yn): Likewise.
28403         * math/w_jnf.c (jnf): Likewise.
28404         (ynf): Likewise.
28405         * math/w_jnl.c (__jnl): Likewise.
28406         (__ynl): Likewise.
28407         * math/libm-test.inc (j0_test): Add more tests.
28408         (j1_test): Likewise.
28409         (jn_test): Likewise.  Add trailing semicolon to existing test.
28410         (y0_test): Likewise.
28411         (y1_test): Likewise.
28412         * sysdeps/i386/fpu/libm-test-ulps: Update.
28413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28414
28415         [BZ #13851]
28416         [BZ #13854]
28417         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
28418         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
28419         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
28420         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
28421         (__tanl): Set errno for infinite argument.
28422         * sysdeps/i386/fpu/mptan.c: Remove.
28423         * sysdeps/i386/fpu/s_tan.S: Likewise.
28424         * sysdeps/i386/fpu/s_tanl.S: Likewise.
28425         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
28426         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
28427         * math/libm-test.inc (tan_test): Add more tests and enable more
28428         tests for double and long double.
28429         * sysdeps/i386/fpu/libm-test-ulps: Update.
28430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28431
28432 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
28433
28434         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
28435         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
28436
28437 2012-03-16  Roland McGrath  <roland@hack.frob.com>
28438
28439         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
28440         * configure.in: Use it for both main tree and add-ons.
28441         * configure: Regenerated.
28442
28443 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28444
28445         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
28446
28447 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28448
28449         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
28450         in comment.
28451
28452         [BZ #13851]
28453         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
28454         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
28455         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
28456         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
28457         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
28458         infinite argument.
28459         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
28460         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
28461         != 0 for prec == 2.
28462         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
28463         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
28464         * sysdeps/i386/fpu/s_cosl.S: Likewise.
28465         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
28466         * sysdeps/i386/fpu/s_sinl.S: Likewise.
28467         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
28468         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
28469         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
28470         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
28471         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
28472         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
28473         * math/libm-test.inc (cos_test): Add more tests and enable more
28474         tests for long double.
28475         (sin_test): Likewise.
28476         (sincos_test): Likewise.
28477         * sysdeps/i386/fpu/libm-test-ulps: Update.
28478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28479
28480 2012-03-16  David S. Miller  <davem@davemloft.net>
28481
28482         * sysdeps/sparc/fpu/math_private.h: New file.
28483
28484 2012-03-15  David S. Miller  <davem@davemloft.net>
28485
28486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
28487         file.
28488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
28489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
28490         file.
28491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
28492         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
28493         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
28494         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
28495         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
28496         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
28497         sysdep routines.
28498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28499
28500         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
28501         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
28502
28503         * sysdeps/sparc/sparc-ifunc.h: New file.
28504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
28505         sparc-ifunc.h
28506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
28507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28508         Likewise.
28509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
28510         Likewise.
28511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
28512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
28513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
28514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
28515         Likewise.
28516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
28517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
28518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
28519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
28520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
28521         Likewise.
28522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
28523         Likewise.
28524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
28525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
28526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
28527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
28528         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
28529         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
28530         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
28531         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
28532         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
28533         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
28534         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
28535         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
28536         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
28537         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
28538         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
28539         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
28540         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
28541         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
28542         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
28543         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
28544         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
28545         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
28546         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
28547         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
28548
28549 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28550
28551         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
28552         scaling.
28553         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28554
28555 2012-03-15  Andreas Jaeger  <aj@suse.de>
28556
28557         [BZ #13852]
28558         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
28559         ieee754/flt-32 implementation for sin, cos and sincos.
28560         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
28561         * sysdeps/i386/fpu/s_cosf.S: Likewise.
28562         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
28563         * sysdeps/i386/fpu/s_sinf.S: Likewise.
28564         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
28565         ieee754/flt-32 implementation for tan.
28566
28567         * math/libm-test.inc (cos_test): Enable some large input tests for
28568         float as well
28569         (sin_test): Likewise.
28570         (sincos_test): Likewise.
28571         (tan_test): Add tests for large input.
28572
28573         * sysdeps/i386/fpu/libm-test-ulps: Update.
28574
28575 2012-03-15  Andreas Jaeger  <aj@suse.de>
28576
28577         [BZ #13658]
28578         * math/libm-test.inc (cos_test): Add more test cases.
28579         (sin_test): Likewise.
28580         (sincos_test): Likewise.
28581
28582 2012-03-15  Andreas Jaeger  <aj@suse.de>
28583
28584         [BZ #13837]
28585         * math/libm-test.inc (cos_test): Add a test case for large input
28586         value.
28587         (sin_test): Likewise.
28588         (sincos_test): Likewise.
28589
28590 2012-03-15  Andreas Jaeger  <aj@suse.de>,
28591         Joseph Myers  <joseph@codesourcery.com>
28592
28593         [BZ #13658]
28594         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
28595         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
28596         * sysdeps/i386/fpu/branred.c: Likewise.
28597         * sysdeps/i386/fpu/dosincos.c: Likewise.
28598         * sysdeps/i386/fpu/mpa.c: Likewise.
28599         * sysdeps/i386/fpu/s_cos.S: Likewise.
28600         * sysdeps/i386/fpu/s_sin.S: Likewise.
28601         * sysdeps/i386/fpu/s_sincos.S: Likewise.
28602         * sysdeps/i386/fpu/sincos32.c: Likewise.
28603
28604         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
28605         Define.
28606         (libc_feupdateenv_53bit): Define.
28607         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
28608         Define.
28609         (libc_feupdateenv_53bit): Define.
28610
28611         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
28612         53 bit (without extend i386 double precision).
28613
28614         * math/libm-test.inc (sincos_test): Add tests for large input.
28615         (sin): Likewise.
28616         (cos): Likewise.
28617
28618         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28619
28620 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28621
28622         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28623
28624 2012-03-15  David S. Miller  <davem@davemloft.net>
28625
28626         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
28627         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
28628         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
28629         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
28630         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
28631         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
28632         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
28633         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
28634         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
28635         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
28636         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
28637         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
28638         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
28639         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
28640         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
28641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
28642         file.
28643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
28644         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
28645         file.
28646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
28647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
28648         file.
28649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
28650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
28651         file.
28652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
28653         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
28654         fmin/fmax sysdep routines.
28655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28656
28657 2012-03-14  David S. Miller  <davem@davemloft.net>
28658
28659         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
28660         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
28661         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
28662         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
28663         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
28664         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
28665         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
28666         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
28667         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
28668         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
28669         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
28670         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
28671         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
28672         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
28673         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
28674         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
28675         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
28676         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
28677         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
28678         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
28679         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
28680         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
28681         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
28682         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
28683         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
28684         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
28685         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
28686         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
28687         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
28688         routines.
28689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
28690         file.
28691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
28692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
28693         file.
28694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
28695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
28696         file.
28697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
28698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
28699         file.
28700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
28701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
28702         file.
28703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
28704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
28705         file.
28706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
28707         file.
28708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
28709         file.
28710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
28711         file.
28712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
28713         New file.
28714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
28715         file.
28716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
28717         file.
28718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
28719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
28720         file.
28721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
28722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
28723         file.
28724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
28725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
28726         file.
28727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
28728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
28729         VIS3 routines.
28730
28731         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
28732         New file.
28733
28734         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28735
28736         * sysdeps/sparc/configure.in: New file.
28737         * sysdeps/sparc/configure: Generate.
28738         * configure.in (libc_cv_sparc_as_vis3): Substitute.
28739         * configure: Regenerate.
28740         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
28741         * config.make.in (have-as-vis3): New.
28742         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
28743         available use -Av9d instead of -Av9a.
28744         * sysdeps/sparc/sparc64/Makefile: Likewise.
28745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
28746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
28747         New file.
28748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
28749         file.
28750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
28751         New file.
28752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
28753         file.
28754         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
28755         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
28756         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
28757         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
28758         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
28759
28760         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
28761         fzeros/fnegs to load 0x80000000 into a float register instead of
28762         using the stack.
28763         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
28764
28765 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28766
28767         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28768         bits/syscall.h.
28769         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
28770         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
28771         ($(inst_includedir)/bits/syscall.h): Remove rule.
28772         ($(objpfx)bits/syscall.d): Include instead of
28773         $(objpfx)syscall-list.d.
28774         (generated): Change syscall-list.h and syscall-list.d to
28775         bits/syscall.h and bits/syscall.d.
28776
28777 2012-03-14  Roland McGrath  <roland@hack.frob.com>
28778
28779         [BZ #13846]
28780         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
28781
28782 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28783
28784         [BZ #13841]
28785         * math/s_csqrt.c: Include <float.h>.
28786         (__csqrt): Scale large or subnormal inputs.
28787         * math/s_csqrtf.c: Likewise.
28788         * math/s_csqrtl.c: Likewise.
28789         * math/libm-test.inc (csqrt_test): Add more tests.
28790         * sysdeps/i386/fpu/libm-test-ulps: Update.
28791         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28792
28793         [BZ #13840]
28794         * math/libm-test.inc (hypot_test): Add more tests.
28795
28796 2012-03-13  David S. Miller  <davem@davemloft.net>
28797
28798         [BZ #13840]
28799         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
28800         double-precision for the calculation instead of scaling.
28801
28802 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
28803
28804         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
28805         manipulate bits before adding and subtracting TWO52[sx].
28806         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
28807         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28808         Likewise.
28809         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
28810
28811 2012-03-13  David S. Miller  <davem@davemloft.net>
28812
28813         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
28814         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
28815         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
28816         rtld-global-offsets.h
28817         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
28818
28819         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
28820         large parameters.
28821
28822         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
28823
28824         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
28825         'err' in the ifdef scope in which it is actually used.
28826
28827         * nss/nss_db/db-init.c: Include string.h
28828
28829 2012-03-12  David S. Miller  <davem@davemloft.net>
28830
28831         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
28832         masking out of the most significant byte of random value used.
28833         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28834         Fix coding style in previous change.
28835
28836         * sysdeps/unix/sysv/linux/kernel-features.h
28837         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
28838         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
28839         expression.
28840         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
28841         later.
28842
28843 2012-03-11  David S. Miller  <davem@davemloft.net>
28844
28845         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
28846         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
28847         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
28848         for 'resultvar' otherwise things get truncated on 64-bit.
28849
28850         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28851         Fix masking out of the most significant byte of random value used.
28852
28853         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28854
28855 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
28856
28857         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28858
28859 2012-03-09  David S. Miller  <davem@davemloft.net>
28860
28861         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
28862         variables with appropriate CPP guards.
28863         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
28864         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
28865         on resulting framesize and the management of the outregs buffer for pltexit.
28866         Preserve floating point return values across _dl_call_pltexit call.
28867         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
28868         framesize and the management of the outregs buffer for pltexit.
28869         Preserve floating point return values across _dl_call_pltexit
28870         call.
28871         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
28872         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
28873         (print_exit): Fix format string for return register value.
28874
28875 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
28876
28877         * sunrpc/Makefile (others): Add rpcgen.
28878         ($(objpfx)rpcgen): Remove special build rule and dependency on
28879         libc.
28880         * sunrpc/rpcgen.c: New file.
28881
28882 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
28883
28884         [BZ #13673]
28885         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
28886         * stdio-common/bug-vfprintf-nargs.c: Likewise.
28887         * sysdeps/i386/crti.S: Likewise.
28888         * sysdeps/i386/crtn.S: Likewise.
28889         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
28890         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
28891         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
28892         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
28893         * sysdeps/sh/crti.S: Likewise.
28894         * sysdeps/sh/crtn.S: Likewise.
28895         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
28896
28897         [BZ #13673]
28898         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
28899         with URL.
28900         * locale/programs/locfile-kw.gperf: Likewise.
28901         * locale/programs/charmap-kw.h: Regenerated.
28902         * locale/programs/locfile-kw.h: Likewise.
28903
28904         [BZ #13673]
28905         * intl/plural.y: Replace FSF snail mail address with URL.
28906         * intl/plural.c: Regenerated.
28907
28908 2012-03-09  Richard Henderson  <rth@twiddle.net>
28909
28910         * include/math_private.h: Remove file.
28911         * math/math_private.h: Move file ...
28912         * sysdeps/generic/math_private.h: ... here.
28913
28914         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
28915         * sysdeps/powerpc/fpu/math_private.h: Likewise.
28916         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28917
28918         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
28919         and <math_private.h>.
28920         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
28921         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
28922         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
28923         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
28924         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
28925         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
28926         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
28927         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28928         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
28929         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28930         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28931         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
28932         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
28933         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28934         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
28935         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
28936         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28937         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
28938         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
28939         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
28940         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28941         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
28942         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
28943         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28944         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
28945         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
28946         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
28947         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28948         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28949         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
28950         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
28951         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28952         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
28953         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
28954         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
28955         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
28956         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
28957         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
28958         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
28959         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28960         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
28961         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
28962         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
28963         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
28964         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
28965         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
28966         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
28967         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
28968         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
28969         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
28970         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
28971         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
28972         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
28973         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
28974         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
28975         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
28976         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28977         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
28978         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
28979         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
28980         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
28981         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
28982         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28983         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
28984         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
28985         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
28986         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
28987         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
28988         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
28989         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
28990         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
28991         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28992         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
28993         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28994         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
28995         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
28996         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
28997         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
28998         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
28999         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
29000         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
29001         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
29002         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
29003         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
29004         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
29005         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
29006         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
29007         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
29008         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
29009         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29010         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29011         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
29012         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29013         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
29014         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
29015         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
29016         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29017         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
29018         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29019         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
29020         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
29021         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
29022         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
29023         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
29024         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
29025         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
29026         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
29027         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
29028         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
29029         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
29030         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
29031         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
29032         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
29033         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
29034         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
29035         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
29036         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
29037         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
29038         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
29039         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
29040         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
29041         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
29042         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
29043         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
29044         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
29045         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
29046         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29047         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
29048         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
29049         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
29050         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
29051         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
29052         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
29053         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
29054         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
29055         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
29056         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
29057         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
29058         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
29059         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
29060         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
29061         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
29062         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
29063         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
29064         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
29065         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
29066         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
29067         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
29068         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
29069         * sysdeps/ieee754/k_standard.c: Likewise.
29070         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
29071         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
29072         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29073         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
29074         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
29075         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
29076         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
29077         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
29078         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
29079         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
29080         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29081         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
29082         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
29083         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
29084         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
29085         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29086         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
29087         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29088         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29089         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
29090         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
29091         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
29092         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
29093         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
29094         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
29095         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
29096         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
29097         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
29098         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
29099         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
29100         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
29101         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
29102         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
29103         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
29104         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
29105         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
29106         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
29107         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
29108         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
29109         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
29110         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
29111         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
29112         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
29113         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
29114         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
29115         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
29116         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
29117         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
29118         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
29119         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
29120         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
29121         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
29122         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
29123         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
29124         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
29125         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
29126         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
29127         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
29128         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
29129         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
29130         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
29131         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
29132         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
29133         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29134         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29135         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29136         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29137         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29138         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29139         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29140         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29141         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29142         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29143         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29144         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29145         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29146         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
29147         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29148         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29149         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
29150         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
29151         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
29152         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
29153         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
29154         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
29155         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
29156         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
29157         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29158         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29159         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
29160         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
29161         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
29162         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
29163         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
29164         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
29165         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
29166         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
29167         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
29168         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
29169         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
29170         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
29171         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
29172         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
29173         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
29174         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
29175         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
29176         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
29177         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
29178         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
29179         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
29180         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
29181         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
29182         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29183         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29184         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29185         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29186         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29187         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29188         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29189         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29190         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29191         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29192         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29193         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29194         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29195         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
29196         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
29197         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
29198         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
29199         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
29200         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
29201         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
29202         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
29203         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
29204         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
29205         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
29206         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
29207         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
29208         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
29209         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
29210         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
29211         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
29212         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
29213         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
29214         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
29215         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
29216         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
29217         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
29218         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
29219         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
29220         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
29221         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
29222         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
29223         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
29224         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
29225         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
29226         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
29227         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
29228         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
29229         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
29230         * sysdeps/ieee754/s_lib_version.c: Likewise.
29231         * sysdeps/ieee754/s_matherr.c: Likewise.
29232         * sysdeps/ieee754/s_signgam.c: Likewise.
29233         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29234         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29235         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
29236         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
29237         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
29238         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
29239         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
29240         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
29241         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
29242         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
29243         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
29244         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
29245         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
29246         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
29247         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
29248         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
29249         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
29250         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
29251         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
29252         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
29253         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
29254
29255 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29256
29257         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
29258         * sunrpc/rpc_main.c: Likewise.
29259         * sunrpc/rpc_svcout.c: Likewise.
29260
29261 2012-03-09  David S. Miller  <davem@davemloft.net>
29262
29263         * include/math_private.h: New file.
29264
29265 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29266
29267         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
29268         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
29269         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
29270         from <bits/socket_type.h>.
29271         (enum __socket_type): Don't define here.
29272         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
29273         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29274         bits/socket_type.h.
29275
29276         [BZ #13566]
29277         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
29278         checking __USE_GNU.
29279
29280         * Makerules ($(inst_includedir)/%.h): New rule.
29281         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
29282         (install-others): Remove variable setting.
29283         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
29284
29285 2012-03-08  Richard Henderson  <rth@twiddle.net>
29286
29287         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
29288         from macro to inline function; merge with the
29289         !__LIBC_INTERNAL_MATH_INLINES version.
29290         (__ieee754_sqrtf): Likewise.
29291
29292         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
29293         to inline function.
29294         (__rintf, __floor, __floorf): Likewise.
29295
29296         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
29297         macro to inline function.
29298         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
29299
29300         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
29301         not <math/math_private.h>.
29302
29303 2012-03-08  David S. Miller  <davem@davemloft.net>
29304
29305         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
29306         copyright year.
29307         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
29308
29309 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
29310
29311         * resolv/gai_misc.c (handle_requests): Fix struct timespec
29312         normalization.
29313         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
29314         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29315
29316 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
29317
29318         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
29319         be defined individually, they must be defined as a block.  Define
29320         S for printing a string instead of hidint the different by using a
29321         macro for adding the 'l'.
29322         * stdio-common/tst-fphex-wide.c: Adjust.
29323
29324 2012-03-07  Marek Polacek  <polacek@redhat.com>
29325
29326         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
29327
29328 2012-03-08  Marek Polacek  <polacek@redhat.com>
29329
29330         [BZ #13806]
29331         * stdio-common/Makefile (tests): Add tst-fphex-wide.
29332         * stdio-common/tst-fphex.c: Define a few macros to make the
29333         test reusable.  Use them.
29334         * stdio-common/tst-fphex-wide.c: New file.
29335
29336 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
29337
29338         [BZ #6911]
29339         * manual/macros.texi (gnusystems): New macro.
29340         (nongnusystems): Likewise.
29341         (gnulinuxhurdsystems): Likewise.
29342         (gnuhurdsystems): Likewise..
29343         (gnulinuxsystems): Likewise.
29344         * manual/charset.texi: Use new macros or @theglibc{} to refer to
29345         variants of the GNU system, not "GNU system".
29346         * manual/conf.texi: Likewise.
29347         * manual/errno.texi: Likewise.  Update example of errno macro
29348         expansion.
29349         * manual/filesys.texi: Likewise.
29350         (getumask): Document as specific to GNU/Hurd.
29351         * manual/install.texi: Likewise.  Reword some references to
29352         GNU/Linux.
29353         * manual/intro.texi: Likewise.
29354         * manual/io.texi: Likewise.
29355         (File Name Portability): Detail which constraints are inapplicable
29356         to all GNU systems and which are only inapplicable to GNU/Hurd.
29357         * manual/job.texi: Likewise.
29358         * manual/llio.texi: Likewise.
29359         (O_NOCTTY): Document as present on GNU/Linux.
29360         * manual/maint.texi: Likewise.
29361         * manual/memory.texi: Likewise.
29362         * manual/pattern.texi: Likewise.
29363         * manual/pipe.texi: Likewise.
29364         * manual/process.texi: Likewise.
29365         * manual/resource.texi: Likewise.
29366         (RUSAGE_CHILDREN): Remove statement about specifying a particular
29367         child on GNU/Hurd.
29368         * manual/setjmp.texi: Likewise.
29369         * manual/signal.texi: Likewise.
29370         * manual/startup.texi: Likewise.
29371         * manual/stdio.texi: Likewise.
29372         * manual/terminal.texi: Likewise.
29373         (ONLCR): Document as POSIX.
29374         (OXTABS): Document availability on GNU/Linux as XTABS.
29375         (ONOEOT): Document availability separately from other bits.
29376         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
29377         * manual/time.texi: Likewise.
29378         * manual/users.texi: Likewise.
29379         * INSTALL: Regenerated.
29380         * sysdeps/gnu/errlist.c: Regenerated.
29381
29382         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
29383         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
29384         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
29385         puts.
29386         * configure: Regenerated.
29387
29388 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
29389
29390         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
29391         default includes instead of AC_HEADER_CHECK.
29392         * sysdeps/i386/configure: Regenerated.
29393
29394         [BZ #10716]
29395         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
29396         * math/s_cacoshf.c (__cacoshf): Likewise.
29397         * math/s_cacoshl.c (__cacoshl): Likewise.
29398         * math/s_casinh.c (__casinh): Set signs of result from argument.
29399         * math/s_casinhf.c (__casinhf): Likewise.
29400         * math/s_casinhl.c (__casinhl): Likewise.
29401         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
29402         (casinh_test): Add more tests.
29403         * sysdeps/i386/fpu/libm-test-ulps: Update.
29404         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29405
29406 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
29407
29408         * po/zh_TW.po: Update from translation team.
29409
29410         * login/Makefile (distribute): Remove variable.
29411         * catgets/Makefile: Likewise.
29412         * mach/Makefile: Likewise.
29413         * malloc/Makefile: Likewise.
29414         * misc/Makefile: Likewise.
29415         * iconv/Makefile: Likewise.
29416         * nscd/Makefile: Likewise.
29417         * hurd/Makefile: Likewise.
29418         * manual/Makefile: Likewise.
29419         * locale/Makefile: Likewise.
29420         * intl/Makefile: Likewise.
29421         * conform/Makefile: Likewise.
29422         * nss/Makefile: Likewise.
29423         * time/Makefile: Likewise.
29424         * soft-fp/Makefile: Likewise.
29425         * dirent/Makefile: Likewise.
29426         * gmon/Makefile: Likewise.
29427         * po/Makefile: Likewise.
29428         * rt/Makefile: Likewise.
29429         * socket/Makefile: Likewise.
29430         * math/Makefile: Likewise.
29431         * signal/Makefile: Likewise.
29432         * debug/Makefile: Likewise.
29433         * elf/Makefile: Likewise.
29434         * timezone/Makefile: Likewise.
29435         * stdlib/Makefile: Likewise.
29436         * iconvdata/Makefile: Likewise.
29437         * sunrpc/Makefile: Likewise.
29438         * io/Makefile: Likewise.
29439         * argp/Makefile: Likewise.
29440         * inet/Makefile: Likewise.
29441         * hesiod/Makefile: Likewise.
29442         * grp/Makefile: Likewise.
29443         * csu/Makefile: Likewise.
29444         * wctype/Makefile: Likewise.
29445         * crypt/Makefile: Likewise.
29446         * libio/Makefile: Likewise.
29447         * string/Makefile: Likewise.
29448         * nis/Makefile: Likewise.
29449         * resolv/Makefile: Likewise.
29450         * stdio-common/Makefile: Likewise.
29451         * wcsmbs/Makefile: Likewise.
29452         * dlfcn/Makefile: Likewise.
29453         * posix/Makefile: Likewise.
29454
29455         [BZ #6959]
29456         * timezone/Makefile: Don't install timezone files, just the programs
29457         and scripts.
29458
29459 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
29460
29461         * nss/databases.def: Add missing gshadow entry.
29462
29463         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
29464
29465 2012-03-06  Marek Polacek  <polacek@redhat.com>
29466
29467         [BZ #13726]
29468         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
29469         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
29470         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
29471         * stdio-common/tst-long-dbl-fphex.c: New file.
29472
29473 2012-03-06  David S. Miller  <davem@davemloft.net>
29474
29475         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
29476         (set_obp_int): New function.
29477         (get_obp_int): New function.
29478         (__get_clockfreq_via_dev_openprom): Likewise.
29479         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
29480         Avoid unused variable warnings on 'val' and use builtin_expect.
29481         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
29482         __builtin_expect.
29483         (INLINE_CLONE_SYSCALL): Likewise.
29484
29485 2012-03-05  David S. Miller  <davem@davemloft.net>
29486
29487         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29488
29489 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
29490
29491         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29492
29493         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
29494         only for |x| >= 40.
29495         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29496
29497 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
29498
29499         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
29500         Replace gettimeofday with __vdso_gettimeofday.
29501
29502         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29503         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
29504         __vdso_clock_gettime and __vdso_getcpu.
29505
29506         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
29507         time with __vdso_time.
29508
29509 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29510
29511         * manual/lang.texi (size_t): Note types to which size_t may be
29512         equivalent with the GNU C Library, but do not describe when
29513         differences between them are significant.
29514
29515 2012-03-05  Andreas Jaeger  <aj@suse.de>
29516
29517         * sysdeps/i386/fpu/libm-test-ulps: Update.
29518
29519 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29520
29521         [BZ #3976]
29522         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
29523         (__ieee754_pow): Save and restore rounding mode and use
29524         round-to-nearest for main computations.
29525         * math/libm-test.inc (pow_test_tonearest): New function.
29526         (pow_test_towardzero): Likewise.
29527         (pow_test_downward): Likewise.
29528         (pow_test_upward): Likewise.
29529         (main): Call the new functions.
29530         * sysdeps/i386/fpu/libm-test-ulps: Update.
29531         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29532
29533         [BZ #3976]
29534         * math/libm-test.inc (cosh_test_tonearest): New function.
29535         (cosh_test_towardzero): Likewise.
29536         (cosh_test_downward): Likewise.
29537         (cosh_test_upward): Likewise.
29538         (sinh_test_tonearest): Likewise.
29539         (sinh_test_towardzero): Likewise.
29540         (sinh_test_downward): Likewise.
29541         (sinh_test_upward): Likewise.
29542         (main): Call the new functions.
29543         * sysdeps/i386/fpu/libm-test-ulps: Update.
29544         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29545
29546 2012-03-05  Tom de Vries  <tom@codesourcery.com>
29547
29548         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
29549         default stack guard is set in last bytes.
29550         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
29551
29552 2012-03-05  Kees Cook  <keescook@chromium.org>
29553
29554         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
29555
29556         [BZ #13656]
29557         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
29558         possibly allocate from heap instead of stack.
29559         * stdio-common/bug-vfprintf-nargs.c: New file.
29560         * stdio-common/Makefile (tests): Add nargs overflow test.
29561
29562 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
29563
29564         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29565
29566 2012-03-03  Marek Polacek  <polacek@redhat.com>
29567
29568         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
29569         * math/math_private.h: Likewise.
29570         * stdlib/tst-strtod.c: Likewise.
29571         * sysdeps/i386/i486/bits/atomic.h: Likewise.
29572         * sysdeps/x86_64/bits/atomic.h: Likewise.
29573
29574 2012-03-02  David S. Miller  <davem@davemloft.net>
29575
29576         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
29577         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
29578         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
29579         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
29580         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
29581         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
29582         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
29583         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
29584
29585 2012-03-02  Roland McGrath  <roland@hack.frob.com>
29586
29587         [BZ #13792]
29588         * manual/examples/README: New file, says the example source files
29589         can be used under GPL>=2.
29590         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
29591         line containing just "*/".
29592         * manual/examples/add.c: Add copyright header (GPL>=2).
29593         * manual/examples/argp-ex1.c: Likewise.
29594         * manual/examples/argp-ex2.c: Likewise.
29595         * manual/examples/argp-ex3.c: Likewise.
29596         * manual/examples/argp-ex4.c: Likewise.
29597         * manual/examples/atexit.c: Likewise.
29598         * manual/examples/db.c: Likewise.
29599         * manual/examples/dir.c: Likewise.
29600         * manual/examples/dir2.c: Likewise.
29601         * manual/examples/execinfo.c: Likewise.
29602         * manual/examples/filecli.c: Likewise.
29603         * manual/examples/filesrv.c: Likewise.
29604         * manual/examples/fmtmsgexpl.c: Likewise.
29605         * manual/examples/genpass.c: Likewise.
29606         * manual/examples/inetcli.c: Likewise.
29607         * manual/examples/inetsrv.c: Likewise.
29608         * manual/examples/isockad.c: Likewise.
29609         * manual/examples/longopt.c: Likewise.
29610         * manual/examples/memopen.c: Likewise.
29611         * manual/examples/memstrm.c: Likewise.
29612         * manual/examples/mkfsock.c: Likewise.
29613         * manual/examples/mkisock.c: Likewise.
29614         * manual/examples/mygetpass.c: Likewise.
29615         * manual/examples/pipe.c: Likewise.
29616         * manual/examples/popen.c: Likewise.
29617         * manual/examples/rprintf.c: Likewise.
29618         * manual/examples/search.c: Likewise.
29619         * manual/examples/select.c: Likewise.
29620         * manual/examples/setjmp.c: Likewise.
29621         * manual/examples/sigh1.c: Likewise.
29622         * manual/examples/sigusr.c: Likewise.
29623         * manual/examples/stpcpy.c: Likewise.
29624         * manual/examples/strdupa.c: Likewise.
29625         * manual/examples/strftim.c: Likewise.
29626         * manual/examples/strncat.c: Likewise.
29627         * manual/examples/subopt.c: Likewise.
29628         * manual/examples/swapcontext.c: Likewise.
29629         * manual/examples/termios.c: Likewise.
29630         * manual/examples/testopt.c: Likewise.
29631         * manual/examples/testpass.c: Likewise.
29632         * manual/examples/timeval_subtract.c: Likewise.
29633
29634         [BZ #13792]
29635         * manual/time.texi (Elapsed Time): Move timeval_subtract example
29636         function to ...
29637         * manual/timeval_subtract.c.texi: ... here, new file.
29638
29639 2012-03-02  David S. Miller  <davem@davemloft.net>
29640
29641         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
29642
29643 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
29644
29645         [BZ #3976]
29646         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
29647         (__sin): Save and restore rounding mode and use round-to-nearest
29648         for all computations.
29649         (__cos): Save and restore rounding mode and use round-to-nearest
29650         for all computations.
29651         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
29652         <fenv.h>.
29653         (tan): Save and restore rounding mode and use round-to-nearest for
29654         all computations.
29655         * math/libm-test.inc (cos_test_tonearest): New function.
29656         (cos_test_towardzero): Likewise.
29657         (cos_test_downward): Likewise.
29658         (cos_test_upward): Likewise.
29659         (sin_test_tonearest): Likewise.
29660         (sin_test_towardzero): Likewise.
29661         (sin_test_downward): Likewise.
29662         (sin_test_upward): Likewise.
29663         (tan_test_tonearest): Likewise.
29664         (tan_test_towardzero): Likewise.
29665         (tan_test_downward): Likewise.
29666         (tan_test_upward): Likewise.
29667         (main): Call the new functions.
29668         * sysdeps/i386/fpu/libm-test-ulps: Update.
29669         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29670
29671         [BZ #10135]
29672         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
29673         small n, then large n, before computing and testing k+n.
29674         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
29675         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
29676         Likewise.
29677         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
29678         Likewise.
29679         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
29680         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
29681         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
29682         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
29683         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
29684         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
29685         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
29686         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
29687         * math/libm-test.inc (scalbn_test): Add more tests.
29688         (scalbln_test): Likewise.
29689
29690         * manual/filesys.texi (mode_t): Describe constraints on size and
29691         signedness, not exact equivalence to a particular type.
29692         (ino_t): Likewise.
29693         (ino64_t): Likewise.
29694         (dev_t): Likewise.
29695         (nlink_t): Likewise.
29696         (blkcnt_t): Likewise.
29697         (blkcnt64_t): Likewise.
29698         * manual/llio.texi (off_t): Likewise.
29699
29700         [BZ #3976]
29701         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
29702         (__ieee754_exp): Save and restore rounding mode and use
29703         round-to-nearest for all computations.
29704         * math/libm-test.inc (exp_test_tonearest): New function.
29705         (exp_test_towardzero): Likewise.
29706         (exp_test_downward): Likewise.
29707         (exp_test_upward): Likewise.
29708         (main): Call the new functions.
29709         * sysdeps/i386/fpu/libm-test-ulps: Update.
29710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29711
29712 2012-03-01  Chris Demetriou  <cgd@google.com>
29713
29714         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
29715         have predictable order.
29716
29717 2012-03-01  David S. Miller  <davem@davemloft.net>
29718
29719         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
29720
29721         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
29722         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
29723         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
29724         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
29725
29726         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
29727         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
29728         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
29729         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
29730         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
29731         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
29732         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
29733         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
29734         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
29735
29736         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29737
29738         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
29739         * sysdeps/sparc/fpu/libm-test-ulps: to here.
29740         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
29741
29742         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
29743         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29744         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
29745         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
29746         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
29747         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
29748         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
29749         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29750         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
29751         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
29752         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
29753         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29754         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
29755         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
29756         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
29757         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29758         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
29759         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
29760         * sysdeps/sparc/elf/configure: Regenerated.
29761
29762 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
29763
29764         * configure.in (AS, LD): Require binutils 2.20 or later.
29765         * configure: Regenerated.
29766         * manual/install.texi (Tools for Compilation): Give binutils 2.20
29767         as required minimum version.
29768         * INSTALL: Regenerated.
29769
29770         [BZ #2541]
29771         [BZ #4108]
29772         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
29773         before squaring exponent.
29774         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
29775         bottom long double and 27 bits of top long double before squaring
29776         exponent.
29777         * math/libm-test.inc (erfc_test): Add more tests.
29778         * sysdeps/i386/fpu/libm-test-ulps: Update.
29779         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29781
29782 2012-03-01  Kai Tietz  <ktietz@redhat.com>
29783
29784         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
29785         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
29786         containing bit-fields.
29787         * soft-fp/extended.h (_FP_UNION_E): Likewise.
29788         * soft-fp/single.h (_FP_UNION_S): Likewise.
29789         * soft-fp/double.h (_FP_UNION_D): Likewise.
29790
29791 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29792
29793         [BZ #13786]
29794         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
29795         not include ../strcmp.S.
29796         [USE_AS_STRNCASECMP_L]: Likewise.
29797         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
29798         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
29799         * sysdeps/i386/i686/multiarch/strncase_l-c.c
29800         (__strncasecmp_l_ia32): Define as alias to
29801         __strncasecmp_l_nonascii.
29802
29803         [BZ #5794]
29804         * math/libm-test.inc (expm1_test): Add test for bug 5794.
29805         * sysdeps/i386/fpu/libm-test-ulps: Update.
29806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29807
29808         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
29809         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29810
29811 2012-02-29  Jeff Law  <law@redhat.com>
29812
29813         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
29814         out of bounds read.
29815
29816 2012-02-29  Marek Polacek  <polacek@redhat.com>
29817
29818         [BZ #13706]
29819         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
29820         * elf/Makefile: Add rules to run tst-unused-dep.out.
29821
29822 2012-02-28  David S. Miller  <davem@davemloft.net>
29823
29824         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
29825         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
29826         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
29827         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
29828         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
29829         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
29830
29831 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29832
29833         * math/libm-test.inc (llround_test): Move one test from
29834         lround_test.  Use TEST_f_L in moved test.
29835         (lround_test): Move misplaced test to llround_test.  Add testcase
29836         from bug 2561.
29837
29838 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
29839
29840         * sysdeps/x86_64/fpu/e_expf.S: New file.
29841         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
29842
29843 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
29844
29845         [BZ #13637]
29846         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
29847         of remain_len that may cause incomplete multi-byte character and
29848         false match.
29849         * posix/bug-regex33.c: New file.
29850         * posix/Makefile (tests): Add bug-regex33.
29851
29852 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
29853
29854         * manual/macros.texi: New file.
29855         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
29856         * manual/libc.texinfo: Include macros.texi.
29857         * manual/creatute.texi: Likewise.
29858         * manual/install.texi: Likewise.
29859         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
29860         @glibcadj{} in references to the GNU C Library.
29861         * manual/charset.texi: Likewise.
29862         * manual/conf.texi: Likewise.
29863         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
29864         when not using those macros.
29865         * manual/creature.texi: Likewise.
29866         * manual/crypt.texi: Likewise.
29867         * manual/errno.texi: Likewise.
29868         * manual/filesys.texi: Likewise.
29869         * manual/header.texi: Likewise.
29870         * manual/install.texi: Likewise.
29871         * manual/intro.texi: Likewise.
29872         * manual/io.texi: Likewise.
29873         * manual/job.texi: Likewise.
29874         * manual/lang.texi: Likewise.
29875         * manual/libc.texiinfo: Likewise.
29876         * manual/llio.texi: Likewise.
29877         * manual/locale.texi: Likewise.
29878         * manual/maint.texi: Likewise.
29879         * manual/math.texi: Likewise.
29880         * manual/memory.texi: Likewise.
29881         * manual/message.texi: Likewise.
29882         * manual/nss.texi: Likewise.
29883         * manual/pattern.texi: Likewise.
29884         * manual/process.texi: Likewise.
29885         * manual/resource.texi: Likewise.
29886         * manual/search.texi: Likewise.
29887         * manual/setjmp.texi: Likewise.
29888         * manual/signal.texi: Likewise.
29889         * manual/socket.texi: Likewise.
29890         * manual/startup.texi: Likewise.
29891         * manual/stdio.texi: Likewise.
29892         * manual/string.texi: Likewise.
29893         * manual/sysinfo.texi: Likewise.
29894         * manual/syslog.texi: Likewise.
29895         * manual/terminal.texi: Likewise.
29896         * manual/time.texi: Likewise.
29897         * manual/users.texi: Likewise.
29898         * INSTALL: Regenerated.
29899         * NOTES: Regenerated.
29900         * sysdeps/gnu/errlist.c: Regenerated.
29901
29902 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
29903
29904         * include/dirent.h: Include <dirstream.h> before
29905         <dirent/dirent.h>.
29906
29907 2012-02-28  David S. Miller  <davem@davemloft.net>
29908
29909         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
29910         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
29911         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
29912         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
29913
29914 2012-02-27  David S. Miller  <davem@davemloft.net>
29915
29916         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
29917         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
29918         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
29919         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
29920
29921         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
29922         frame pointer instead of stack pointer relative arg slot.
29923         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
29924         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
29925         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
29926
29927 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
29928
29929         [BZ #3992]
29930         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
29931
29932 2012-02-27  David S. Miller  <davem@davemloft.net>
29933
29934         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
29935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
29936         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
29937         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
29938         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
29939         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
29940         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
29941         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
29942
29943 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
29944
29945         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
29946         later.  Allow versions 5-9.
29947         * configure: Regenerated.
29948         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
29949         required minimum version and 4.6 as recommended version.  Do not
29950         mention bugs in GCC 2.7 and 2.8.
29951         * INSTALL: Regenerated.
29952
29953 2012-02-27  David S. Miller  <davem@davemloft.net>
29954
29955         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
29956         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
29957         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
29958         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
29959         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
29960         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
29961         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
29962         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
29963
29964         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
29965         manipulate bits before adding and subtracting TWO112[sx].
29966         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
29967
29968 2012-02-27  Roland McGrath  <roland@hack.frob.com>
29969
29970         [BZ #13775]
29971         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
29972         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
29973         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
29974         being in POSIX, because they are in 1003.1-2008.
29975
29976         * rt/tst-aio.c: Include <fcntl.h>.
29977         * rt/tst-aio7.c: Likewise.
29978         * rt/tst-aio64.c: Likewise.
29979
29980         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
29981
29982 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
29983
29984         * manual/install.texi (--with-headers): Describe headers as
29985         interface headers, not private headers.
29986         (Specific advice for GNU/Linux systems): Describe use of headers
29987         from "make headers_install", not private headers from older
29988         kernels.
29989         * INSTALL: Regenerated.
29990         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
29991         Change to 2.6.19.
29992         * sysdeps/unix/sysv/linux/configure: Regenerated.
29993
29994         * manual/llio.texi (fclean): Remove documentation.
29995
29996         * manual/Makefile (libc-texi-generated): New variable.  Include
29997         version.texi.
29998         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
29999         $(libc-texi-generated), not duplicated list of files.
30000         (version.texi, stamp-version): New rules.
30001         (realclean): Remove $(libc-texi-generated), not individual files
30002         from that list.  Do not remove dir-add.texinfo.
30003         * manual/libc.texinfo: Comment out uses of edition numbers and
30004         references to printed manual.  Remove last-updated dates.
30005         (EDITION): Comment out.
30006         (ISBN): Likewise.
30007         (VERSION, UPDATED): Remove.
30008         (version.texi): Include.
30009
30010 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
30011
30012         * sysdeps/posix/spawni.c: Include <signal.h>.
30013         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
30014         * sysdeps/pthread/aio_fsync.c: Likewise.
30015
30016 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
30017
30018         * conform/Makefile (tests): Run only when not cross-compiling and
30019         when fast-check is not defined.
30020
30021         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
30022         * conform/data/limits.h-data: Fixes for POSIX2008.
30023         * conform/run-conformtest.sh: Run all tests.
30024         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
30025         headers.
30026         * include/bits/dlfcn.h: Likewise.
30027         * include/langinfo.h: Likewise.
30028         * include/monetary.h: Likewise.
30029         * include/sys/poll.h: Likewise.
30030
30031         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
30032         for __USE_GNU.
30033         * posix/spawn.h: Define __need_sigset_t.
30034         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
30035         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
30036         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
30037         to get sigevent_t only.
30038         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
30039         only for __USE_GNU.
30040         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30041         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
30042         process_vm_writev only for __USE_GNU.
30043         * termios/termios.h: Declare tcgetsid also for POSIX2008.
30044
30045         * conform/Makefile: For now ignore errors from run-conformtest.
30046         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
30047         POSIX to avoid namespace pollution.  Don't prepend headers.
30048         * conform/data/aio.h-data: Fixes for POSIX testing.
30049         * conform/data/fcntl.h-data: Likewise.
30050         * conform/data/glob.h-data: Likewise.
30051         * conform/data/grp.h-data: Likewise.
30052         * conform/data/pthread.h-data: Likewise.
30053         * conform/data/pwd.h-data: Likewise.
30054         * conform/data/signal.h-data: Likewise.
30055         * conform/data/spawn.h-data: Likewise.
30056         * conform/data/stdio.h-data: Likewise.
30057         * conform/data/stdlib.h-data: Likewise.
30058         * conform/data/stropts.h-data: Likewise.
30059         * conform/data/sys/mman.h-data: Likewise.
30060         * conform/data/sys/stat.h-data: Likewise.
30061         * conform/data/sys/types.h-data: Likewise.
30062         * conform/data/sys/wait.h-data: Likewise.
30063         * conform/data/time.h-data: Likewise.
30064         * conform/data/unistd.h-data: Likewise.
30065         * conform/data/utime.h-data: Likewise.
30066
30067         * io/sys/stat.h: fchmod was always in POSIX.
30068         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
30069         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
30070         * rt/aio.h: Define __need_timespec before including <time.h>.
30071         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
30072         struct.  Add forward declaration of pthread_attr_t and use it in
30073         sigevent.
30074         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
30075         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
30076         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
30077         always remove CLK_TCK definition.
30078
30079 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
30080
30081         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
30082
30083 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
30084
30085         * conform/run-conformtest.sh: New file.
30086         * conform/Makefile: Run run-conformtest for tests.
30087         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
30088         support.
30089
30090         * conform/data/uchar.h-data: New file.
30091         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
30092         * conform/data/arpa/inet.h-data: Likewise.
30093         * conform/data/assert.h-data: Likewise.
30094         * conform/data/complex.h-data: Likewise.
30095         * conform/data/cpio.h-data: Likewise.
30096         * conform/data/ctype.h-data: Likewise.
30097         * conform/data/dirent.h-data: Likewise.
30098         * conform/data/dlfcn.h-data: Likewise.
30099         * conform/data/errno.h-data: Likewise.
30100         * conform/data/fcntl.h-data: Likewise.
30101         * conform/data/float.h-data: Likewise.
30102         * conform/data/fmtmsg.h-data: Likewise.
30103         * conform/data/fnmatch.h-data: Likewise.
30104         * conform/data/ftw.h-data: Likewise.
30105         * conform/data/glob.h-data: Likewise.
30106         * conform/data/grp.h-data: Likewise.
30107         * conform/data/iconv.h-data: Likewise.
30108         * conform/data/inttypes.h-data: Likewise.
30109         * conform/data/langinfo.h-data: Likewise.
30110         * conform/data/libgen.h-data: Likewise.
30111         * conform/data/limits.h-data: Likewise.
30112         * conform/data/locale.h-data: Likewise.
30113         * conform/data/math.h-data: Likewise.
30114         * conform/data/monetary.h-data: Likewise.
30115         * conform/data/mqueue.h-data: Likewise.
30116         * conform/data/ndbm.h-data: Likewise.
30117         * conform/data/net/if.h-data: Likewise.
30118         * conform/data/netdb.h-data: Likewise.
30119         * conform/data/netinet/in.h-data: Likewise.
30120         * conform/data/nl_types.h-data: Likewise.
30121         * conform/data/poll.h-data: Likewise.
30122         * conform/data/pthread.h-data: Likewise.
30123         * conform/data/pwd.h-data: Likewise.
30124         * conform/data/regex.h-data: Likewise.
30125         * conform/data/sched.h-data: Likewise.
30126         * conform/data/search.h-data: Likewise.
30127         * conform/data/semaphore.h-data: Likewise.
30128         * conform/data/setjmp.h-data: Likewise.
30129         * conform/data/signal.h-data: Likewise.
30130         * conform/data/spawn.h-data: Likewise.
30131         * conform/data/stdarg.h-data: Likewise.
30132         * conform/data/stdio.h-data: Likewise.
30133         * conform/data/stdlib.h-data: Likewise.
30134         * conform/data/string.h-data: Likewise.
30135         * conform/data/strings.h-data: Likewise.
30136         * conform/data/stropts.h-data: Likewise.
30137         * conform/data/sys/ipc.h-data: Likewise.
30138         * conform/data/sys/mman.h-data: Likewise.
30139         * conform/data/sys/msg.h-data: Likewise.
30140         * conform/data/sys/resource.h-data: Likewise.
30141         * conform/data/sys/select.h-data: Likewise.
30142         * conform/data/sys/sem.h-data: Likewise.
30143         * conform/data/sys/shm.h-data: Likewise.
30144         * conform/data/sys/socket.h-data: Likewise.
30145         * conform/data/sys/stat.h-data: Likewise.
30146         * conform/data/sys/statvfs.h-data: Likewise.
30147         * conform/data/sys/time.h-data: Likewise.
30148         * conform/data/sys/timeb.h-data: Likewise.
30149         * conform/data/sys/times.h-data: Likewise.
30150         * conform/data/sys/types.h-data: Likewise.
30151         * conform/data/sys/uio.h-data: Likewise.
30152         * conform/data/sys/un.h-data: Likewise.
30153         * conform/data/sys/utsname.h-data: Likewise.
30154         * conform/data/sys/wait.h-data: Likewise.
30155         * conform/data/syslog.h-data: Likewise.
30156         * conform/data/tar.h-data: Likewise.
30157         * conform/data/termios.h-data: Likewise.
30158         * conform/data/utime.h-data: Likewise.
30159         * conform/data/utmpx.h-data: Likewise.
30160         * conform/data/varargs.h-data: Likewise.
30161         * conform/data/wchar.h-data: Likewise.
30162         * conform/data/wctype.h-data: Likewise.
30163         * conform/data/wordexp.h-data: Likewise.
30164
30165         * include/stropts.h: New file.
30166         * include/uchar.h: New file.
30167         * include/aio.h: Changes to allow conformtest.pl to use the headers.
30168         * include/assert.h: Likewise.
30169         * include/ctype.h: Likewise.
30170         * include/dirent.h: Likewise.
30171         * include/dlfcn.h: Likewise.
30172         * include/fcntl.h: Likewise.
30173         * include/fnmatch.h: Likewise.
30174         * include/glob.h: Likewise.
30175         * include/grp.h: Likewise.
30176         * include/libio.h: Likewise.
30177         * include/locale.h: Likewise.
30178         * include/math.h: Likewise.
30179         * include/net/if.h: Likewise.
30180         * include/netdb.h: Likewise.
30181         * include/netinet/in.h: Likewise.
30182         * include/pthread.h: Likewise.
30183         * include/pwd.h: Likewise.
30184         * include/regex.h: Likewise.
30185         * include/sched.h: Likewise.
30186         * include/search.h: Likewise.
30187         * include/setjmp.h: Likewise.
30188         * include/signal.h: Likewise.
30189         * include/stdio.h: Likewise.
30190         * include/stdlib.h: Likewise.
30191         * include/string.h: Likewise.
30192         * include/sys/cdefs.h: Likewise.
30193         * include/sys/mman.h: Likewise.
30194         * include/sys/msg.h: Likewise.
30195         * include/sys/resource.h: Likewise.
30196         * include/sys/select.h: Likewise.
30197         * include/sys/socket.h: Likewise.
30198         * include/sys/stat.h: Likewise.
30199         * include/sys/statvfs.h: Likewise.
30200         * include/sys/time.h: Likewise.
30201         * include/sys/times.h: Likewise.
30202         * include/sys/uio.h: Likewise.
30203         * include/sys/utsname.h: Likewise.
30204         * include/sys/wait.h: Likewise.
30205         * include/termios.h: Likewise.
30206         * include/time.h: Likewise.
30207         * include/ulimit.h: Likewise.
30208         * include/unistd.h: Likewise.
30209         * include/utime.h: Likewise.
30210         * include/wchar.h: Likewise.
30211         * include/wctype.h: Likewise.
30212         * include/wordexp.h: Likewise.
30213
30214         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
30215
30216         * time/time.h: TIME_UTC must be a macro.
30217         Make timespec_get available for ISO C11 only as well.
30218
30219 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
30220
30221         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
30222         Reported by Peng Haitao <penght@cn.fujitsu.com>.
30223
30224 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30225
30226         * configure.in: Use -o not -a in test for unsupported multi-arch.
30227
30228 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30229
30230         * manual/texinfo.tex: Update to version 2012-01-19.16.
30231
30232 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30233
30234         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
30235
30236 2012-02-24  Roland McGrath  <roland@hack.frob.com>
30237
30238         [BZ #13738]
30239         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
30240         * manual/fdl-1.3.texi: New file.
30241         * manual/fdl-1.1.texi: File removed.
30242
30243         [BZ #13738]
30244         * manual/libc.texinfo (FDL_VERSION): New @set.
30245         Use it for mention of FDL in cover text.
30246         (Documentation License): Use it in @include file name.
30247
30248 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30249             Roland McGrath  <roland@hack.frob.com>
30250
30251         [BZ #5461]
30252         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
30253         not LONG_LONG_MAX and LONG_LONG_MIN.
30254         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
30255         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
30256         name.
30257         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
30258
30259 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30260
30261         [BZ #2547]
30262         [BZ #11365]
30263         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
30264         manipulate bits before adding and subtracting TWO23[sx].
30265         * math/libm-test.inc (nearbyint_test): Add more tests.
30266
30267 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30268
30269         [BZ #2548]
30270         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
30271         bits before adding and subtracting TWO23[sx].
30272         * math/libm-test.inc (rint_test): Add more tests.
30273         (rint_test_tonearest): Likewise.
30274         (rint_test_towardzero): Likewise.
30275         (rint_test_downward): Likewise.
30276         (rint_test_upward: Likewise.
30277
30278 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30279
30280         [BZ #10110]
30281         * include/stdc-predef.h: New file.  Extracted from features.h.
30282         * include/features.h: Include stdc-predef.h.
30283         * Makefile (headers): Add stdc-predef.h.
30284         * CONFORMANCE (Compiler limitations): Update.
30285
30286 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30287
30288         * manual/libc.texinfo (VERSION, UPDATED): Revert.
30289
30290 2012-02-21  David S. Miller  <davem@davemloft.net>
30291
30292         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
30293         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30294
30295 2012-02-20  David S. Miller  <davem@davemloft.net>
30296
30297         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
30298         using a normal save/restore sequence, rather than allocating a
30299         dummy stack frame just to store a frame pointer and restore.
30300         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30301
30302 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30303
30304         * manual/install.texi: Fix stray word in line-wrapped comment.
30305
30306 2012-02-20  David S. Miller  <davem@davemloft.net>
30307
30308         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
30309         both binutils and gcc support GOTDATA.
30310
30311         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
30312         "rd %pc" in the PIC register setup sequences.
30313
30314         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
30315         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
30316         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
30317         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
30318         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
30319         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30320         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30321         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30322         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
30323         (SYSCALL_ERROR_HANDLER): Likewise.
30324         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
30325         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30326         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
30327         (SYSCALL_ERROR_HANDLER): Likewise.
30328
30329         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
30330         (HAVE_GCC_GOTDATA): New.
30331         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
30332         relocation support in both binutils and gcc.
30333         * sysdeps/sparc/elf/configure: Regenerate.
30334
30335         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
30336         * sysdeps/sparc/sparc32/elf/configure: Delete.
30337         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
30338         * sysdeps/sparc/sparc64/elf/configure: Delete.
30339         * sysdeps/sparc/elf/configure.in: New file.
30340         * sysdeps/sparc/elf/configure: Generate.
30341
30342         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
30343         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
30344         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
30345         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
30346         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
30347
30348 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30349
30350         * manual/install.texi: Do not mention specific glibc version
30351         numbers.
30352         * manual/libc.texinfo (VERSION, UPDATED): Update.
30353         (@copying): Use @copyright{} and range of years.
30354
30355 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30356
30357         [BZ #13695]
30358         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
30359         [crti.S not in sysdirs] (generated): Do not append.
30360         [crti.S not in sysdirs] (omit-deps): Likewise.
30361         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
30362         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
30363         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
30364         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
30365         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
30366         Likewise.
30367         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
30368         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
30369         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
30370         * csu/defs.awk: Remove file.
30371         * sysdeps/generic/initfini.c: Likewise.
30372         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
30373         variable.
30374         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
30375         Likewise.
30376
30377 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30378
30379         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
30380         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
30381         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
30382         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
30383         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
30384         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
30385         <bits/epoll.h>.
30386         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
30387         (__EPOLL_PACKED): Define to empty if not defined by
30388         <bits/epoll.h>.
30389         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
30390         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30391         bits/epoll.h.
30392
30393 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30394
30395         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
30396         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
30397         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
30398         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
30399         <bits/timerfd.h>.
30400         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
30401         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30402         bits/timerfd.h.
30403
30404 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30405
30406         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
30407         in C locale.
30408         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30409         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
30410         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
30411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30412
30413 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
30414
30415         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30416         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30417
30418 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
30419
30420         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
30421         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
30422         defined.
30423         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
30424         Likewise.
30425         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
30426         entry for 2.16.
30427
30428 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
30429
30430         * math/w_acos.c: Use non-signaling floating-point comparisons.
30431         * math/w_acosf.c: Likewise.
30432         * math/w_acosh.c: Likewise.
30433         * math/w_acoshf.c: Likewise.
30434         * math/w_acoshl.c: Likewise.
30435         * math/w_acosl.c: Likewise.
30436         * math/w_asin.c: Likewise.
30437         * math/w_asinf.c: Likewise.
30438         * math/w_asinl.c: Likewise.
30439         * math/w_atanh.c: Likewise.
30440         * math/w_atanhf.c: Likewise.
30441         * math/w_atanhl.c: Likewise.
30442         * math/w_exp2.c: Likewise.
30443         * math/w_exp2f.c: Likewise.
30444         * math/w_exp2l.c: Likewise.
30445         * math/w_j0.c: Likewise.
30446         * math/w_j0f.c: Likewise.
30447         * math/w_j0l.c: Likewise.
30448         * math/w_j1.c: Likewise.
30449         * math/w_j1f.c: Likewise.
30450         * math/w_j1l.c: Likewise.
30451         * math/w_jn.c: Likewise.
30452         * math/w_jnf.c: Likewise.
30453         * math/w_log.c: Likewise.
30454         * math/w_log10.c: Likewise.
30455         * math/w_log10f.c: Likewise.
30456         * math/w_log10l.c: Likewise.
30457         * math/w_log2.c: Likewise.
30458         * math/w_log2f.c: Likewise.
30459         * math/w_log2l.c: Likewise.
30460         * math/w_logf.c: Likewise.
30461         * math/w_logl.c: Likewise.
30462         * math/w_sqrt.c: Likewise.
30463         * math/w_sqrtf.c: Likewise.
30464         * math/w_sqrtl.c: Likewise.
30465         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
30466         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
30467         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
30468         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30469         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30470
30471 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30472
30473         [BZ #9739]
30474         * manual/string.texi (strnlen): Use correct parameter name in
30475         equivalent expression.
30476
30477 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30478
30479         [BZ #11174]
30480         * manual/users.texi (seteuid): Consistently use neweuid for
30481         argument name.
30482
30483 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30484
30485         [BZ #13704]
30486         * manual/nss.texi (Services in the NSS configuration): Correct
30487         list of services in example configuration file.
30488
30489 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
30490
30491         [BZ #11322]
30492         * manual/arith.texi: Remove statements about negative zero
30493         behaving identically to zero.
30494
30495 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30496
30497         [BZ #5993]
30498         * manual/install.texi: Do not document upgrading from libc5.
30499
30500 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30501
30502         [BZ #4596]
30503         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
30504
30505 2012-02-18  David S. Miller  <davem@davemloft.net>
30506
30507         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
30508         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
30509         %o7 across the call.
30510         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
30511         instead.
30512         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
30513         SETUP_PIC_REG_LEAF.
30514         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30515         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
30516         * sysdeps/sparc/crtn.S: Likewise.
30517
30518 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
30519
30520         * aout/Makefile: Remove.
30521
30522 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
30523
30524         [BZ #13058]
30525         * manual/examples/argp-ex1.c (main): Format definition in GNU
30526         style.
30527         * manual/examples/argp-ex2.c (main): Likewise.
30528         * manual/examples/argp-ex3.c (main): Likewise.
30529         * manual/examples/argp-ex4.c (main): Likewise.
30530         * manual/examples/longopt.c (main): Use new-style prototype
30531         definition.
30532         * manual/examples/strncat.c (main): Specify return type and use
30533         (void) for arguments.
30534         * manual/examples/subopt.c (main): Use char **argv argument.
30535
30536 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30537
30538         [BZ #5077]
30539         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
30540         rounding modes.
30541
30542 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
30543
30544         [BZ #6907]
30545         * manual/string.texi (strchr): Change when strchrnul is
30546         recommended.
30547
30548 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
30549
30550         [BZ #174]
30551         * manual/locale.texi (setlocale): Document LOCPATH.
30552
30553 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30554
30555         [BZ #10210]
30556         * manual/process.texi (execle): Move @dots{} before last argument.
30557
30558 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
30559
30560         [BZ #12047]
30561         * manual/charset.texi (Generic Charset Conversion): Fix typo
30562         (LC_TYPE -> LC_CTYPE).
30563
30564 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
30565
30566         [BZ #5805]
30567         * manual/arith.texi (scalbn): Use @var{} on parameter names.
30568         (scalbnf): Likewise.
30569         (scalbnl): Likewise.
30570         (scalbln): Likewise.
30571         (scalblnf): Likewise.
30572         (scalblnl): Likewise.
30573         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
30574         (vwarnx): Likewise.
30575         (verr): Likewise.
30576         (verrx): Likewise.
30577         * manual/filesys.texi (telldir): Use braces around return type.
30578         * manual/llio.texi (mmap): Add space after comma.
30579         (mmap64): Likewise.
30580         * manual/math.texi (jn): Use @var{} on parameter names.
30581         (jnf): Likewise.
30582         (jnl): Likewise.
30583         (yn): Likewise.
30584         (ynf): Likewise.
30585         (ynl): Likewise.
30586         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
30587         line.
30588         * manual/resource.texi (ulimit): Use @dots{} instead of literal
30589         "...".
30590         (sched_get_priority_min): Remove semicolon on @deftypefun line.
30591         (sched_get_priority_max): Likewise.
30592         * manual/signal.texi (sigvec): Add space after comma.
30593         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
30594         names.
30595         (if_indextoname): Likewise.
30596         (if_freenameindex): Likewise.
30597         (sendto): Use ',' instead of '.' in prototype.
30598         * manual/startup.texi (syscall): Use @dots{} instead of literal
30599         "...".
30600         * manual/stdio.texi (__fpending): Separate initial words of
30601         paragraph from @deftypefun line.
30602         * manual/syslog.texi (syslog): Use @dots{} instead of literal
30603         "...".
30604         (vsyslog): Use @var{} on parameter names.
30605         * manual/terminal.texi (stty): Use @var{} on parameter names.
30606         * manual/users.texi (getutmp): Use @var{} on parameter names.
30607         (getutmpx): Likewise.
30608
30609 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30610
30611         [BZ #6884]
30612         * manual/stdio.texi (fopen): Fix typos in description of
30613         ",ccs=STRING".
30614
30615 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
30616
30617         [BZ #4026]
30618         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
30619         get clock_id definition.
30620
30621 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
30622
30623         [BZ #4822]
30624         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
30625         (madvise): Cast every argument to void on its own.
30626
30627 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30628
30629         [BZ #9902]
30630         * manual/startup.texi (Exit Status): Fix typo.
30631
30632 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30633
30634         [BZ #10140]
30635         * manual/examples/argp-ex1.c: Include <stdlib.h>.
30636         * manual/examples/argp-ex2.c: Likewise.
30637         * manual/examples/argp-ex3.c: Likewise.
30638
30639 2012-02-16  Richard Henderson  <rth@redhat.com>
30640
30641         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
30642         * sysdeps/s390/s390-32/initfini.c: Remove.
30643         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
30644         * sysdeps/s390/s390-64/initfini.c: Remove.
30645
30646 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30647
30648         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
30649         compiler output for sysdeps/generic/initfini.c.
30650         * sysdeps/sh/elf/initfini.c: Remove file.
30651
30652 2012-02-16  David S. Miller  <davem@davemloft.net>
30653
30654         [BZ #11494]
30655         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
30656
30657         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
30658         * sysdeps/sparc/crti.S: New file.
30659         * sysdeps/sparc/crtn.S: New file.
30660         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
30661         * sysdeps/sparc/sparc64/Makefile: Likewise.
30662
30663 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
30664
30665         [BZ #3335]
30666         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
30667
30668 2012-02-15  Roland McGrath  <roland@hack.frob.com>
30669
30670         [BZ #4822]
30671         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
30672
30673         * mach/devstream.c (cookie_io_functions_t): Macro removed.
30674         (write, read, close): Likewise.
30675         Patch by Aurelien Jarno <aurelien@aurel32.net>.
30676
30677 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
30678
30679         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
30680         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
30681         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
30682         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
30683         <bits/signalfd.h>.
30684         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
30685         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30686         bits/signalfd.h.
30687
30688 2012-02-14  Marek Polacek  <polacek@redhat.com>
30689
30690         * sysdeps/x86_64/crti.S: New file.
30691         * sysdeps/x86_64/crtn.S: New file.
30692         * sysdeps/x86_64/elf/initfini.c: Remove file.
30693
30694 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30695
30696         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
30697         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
30698         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
30699         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
30700         <bits/inotify.h>.
30701         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
30702         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30703         bits/inotify.h.
30704
30705 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30706
30707         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
30708         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
30709         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
30710         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
30711         <bits/eventfd.h>.
30712         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
30713         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30714         bits/eventfd.h.
30715
30716 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
30717
30718         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
30719         __feraiseexcept instead of feraiseexcept.
30720
30721         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
30722         nanosleep invocations.
30723         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
30724         strings, and add error checking for a nanosleep invocations.
30725
30726 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
30727
30728         Replace FSF snail mail address with URLs, as per GNU coding standards.
30729         Most of the snail mail addresses were wrong anyway, and omitting
30730         them makes the source code easier to maintain.  Almost all of the
30731         changes are to license notices and to locale LC_IDENTIFICATION
30732         addresses, except for this one:
30733         * manual/libc.texinfo: In "Published by", give the FSF's URL,
30734         not its snail mail address.
30735
30736 2012-02-09  Richard Henderson  <rth@twiddle.net>
30737
30738         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
30739         of kernel-features.h.
30740
30741         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
30742
30743 2012-02-08  Marek Polacek  <polacek@redhat.com>
30744
30745         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
30746         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
30747         * sysdeps/gnu/_G_config.h: Likewise.
30748         * sysdeps/generic/_G_config.h: Likewise.
30749
30750 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
30751
30752         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
30753         tests.
30754         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30755
30756         * sysdeps/powerpc/powerpc32/crti.S: New file.
30757         * sysdeps/powerpc/powerpc32/crtn.S: New file.
30758         * sysdeps/powerpc/powerpc64/crti.S: New file.
30759         * sysdeps/powerpc/powerpc64/crtn.S: New file.
30760
30761         * Makeconfig (have-initfini): Don't set.
30762         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
30763         * configure.in (nopic_initfini): Don't substitute.
30764         * config.h.in (HAVE_INITFINI): Don't #undef.
30765         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
30766         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
30767
30768 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
30769
30770         Support crti.S and crtn.S provided directly by architectures.
30771         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
30772         [crti.S in sysdirs] (omit-deps): Likewise.
30773         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
30774         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
30775         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
30776         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
30777         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
30778         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
30779         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
30780         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
30781         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
30782         compiler output for sysdeps/generic/initfini.c.
30783         * sysdeps/i386/elf/Makefile: Remove file.
30784         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
30785
30786 2012-02-07  Marek Polacek  <polacek@redhat.com>
30787
30788         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
30789         * sysdeps/gnu/_G_config.h: Likewise.
30790         * sysdeps/mach/hurd/_G_config.h: Likewise.
30791
30792 2012-02-07  Marek Polacek  <polacek@redhat.com>
30793
30794         * math/Makefile (tests): Add tst-CMPLX2.
30795         * math/tst-CMPLX2.c: New file.
30796
30797 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
30798
30799         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30800
30801         * math/libm-test.inc (jn_test): Add missing L suffix.
30802
30803 2012-02-06  Marek Polacek  <polacek@redhat.com>
30804
30805         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
30806         * sysdeps/i386/fpu/e_powf.S: Likewise.
30807         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
30808         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
30809         * sysdeps/i386/fpu/e_acosh.S: Likewise.
30810         * sysdeps/i386/fpu/e_pow.S: Likewise.
30811         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
30812         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
30813         * sysdeps/i386/fpu/s_expm1.S: Likewise.
30814         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
30815         * sysdeps/i386/fpu/e_log2.S: Likewise.
30816         * sysdeps/i386/fpu/e_log2l.S: Likewise.
30817         * sysdeps/i386/fpu/e_scalb.S: Likewise.
30818         * sysdeps/i386/fpu/e_powl.S: Likewise.
30819         * sysdeps/i386/fpu/s_log1p.S: Likewise.
30820         * sysdeps/i386/fpu/e_log10f.S: Likewise.
30821         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
30822         * sysdeps/i386/fpu/e_logl.S: Likewise.
30823         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
30824         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
30825         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
30826         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
30827         * sysdeps/i386/fpu/e_log2f.S: Likewise.
30828         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
30829         * sysdeps/i386/fpu/e_log.S: Likewise.
30830         * sysdeps/i386/fpu/s_cexp.S: Likewise.
30831         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
30832         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
30833         * sysdeps/i386/fpu/e_logf.S: Likewise.
30834         * sysdeps/i386/fpu/e_log10l.S: Likewise.
30835         * sysdeps/i386/fpu/e_atanh.S: Likewise.
30836         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
30837         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
30838         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
30839         * sysdeps/i386/fpu/e_log10.S: Likewise.
30840         * sysdeps/i386/fpu/s_frexp.S: Likewise.
30841         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
30842         * sysdeps/i386/fpu/s_asinh.S: Likewise.
30843         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
30844         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
30845         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
30846         * sysdeps/i386/asm-syntax.h: Likewise.
30847         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
30848         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
30849         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
30850         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
30851         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
30852         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
30853         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
30854         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
30855         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
30856         * sysdeps/powerpc/sysdep.h: Likewise.
30857         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
30858         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30859
30860 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
30861
30862         [BZ #411]
30863         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
30864
30865 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
30866
30867         * sysdeps/i386/sysdep.h: Include <features.h>.
30868         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
30869         version.
30870
30871 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
30872
30873         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
30874         Define.
30875         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
30876         LOAD_PIC_REG_STR.
30877
30878 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30879
30880         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
30881         (SETUP_PIC_REG): Use GET_PC_THUNK.
30882         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
30883         macro.
30884
30885 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30886
30887         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
30888         for non-PIC compilation.
30889         (SETUP_PIC_REG): Add .p2align directive.
30890         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
30891         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
30892         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
30893         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
30894         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
30895         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
30896         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
30897         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30898         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
30899         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
30900         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
30901         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
30902         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
30903         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
30904         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
30905         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
30906         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
30907         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
30908         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
30909         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
30910         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
30911         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
30912         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
30913         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
30914         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
30915         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
30916         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
30917         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
30918         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
30919         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
30920         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
30921         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
30922         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
30923         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
30924         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
30925         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
30926         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
30927         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
30928         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
30929         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
30930         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
30931
30932 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30933
30934         * math/tst-CMPLX.c: Include <stdio.h>.
30935
30936 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
30937
30938         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
30939         float.
30940         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
30941         * sysdeps/sparc/bits/mathdef.h: Likewise.
30942
30943 2012-01-31  Marek Polacek  <polacek@redhat.com>
30944
30945         * libio/libio.h: Don't define _PARAMS.
30946         * locale/programs/config.h: Don't define PARAMS.
30947         * stdlib/strtol_l.c: Likewise.
30948         (__strtol_l): Remove PARAMS from the prototype.
30949
30950 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
30951
30952         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
30953         names.  Just use the correct names.  Remove unnecessary wrapper
30954         functions.
30955         * malloc/arena.c: Likewise.
30956         * malloc/hooks.c: Likewise.
30957
30958         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
30959         ARENA_TEST says not to.  Simplify test for creation of a new arena.
30960         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
30961
30962 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
30963
30964         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
30965         into tail calls.
30966         (update_get_addr): New function.
30967         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
30968         GET_ADDR_MODULE parameter.
30969
30970 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
30971
30972         * crypt/cert.c: Remove __STDC__ conditionals.
30973         * crypt/crypt-entry.c: Likewise.
30974         * crypt/crypt_util.c: Likewise.
30975         * libio/filedoalloc.c: Likewise.
30976         * libio/fileops.c: Likewise.
30977         * libio/genops.c: Likewise.
30978         * libio/iofclose.c: Likewise.
30979         * libio/iofdopen.c: Likewise.
30980         * libio/iofopen.c: Likewise.
30981         * libio/iofopen64.c: Likewise.
30982         * libio/iogetdelim.c: Likewise.
30983         * libio/iopopen.c: Likewise.
30984         * libio/obprintf.c: Likewise.
30985         * libio/oldfileops.c: Likewise.
30986         * libio/oldiofclose.c: Likewise.
30987         * libio/oldiofdopen.c: Likewise.
30988         * libio/oldiofopen.c: Likewise.
30989         * libio/oldiopopen.c: Likewise.
30990         * libio/wfiledoalloc.c: Likewise.
30991         * libio/wgenops.c: Likewise.
30992         * locale/programs/xmalloc.c: Likewise.
30993         * misc/syslog.c: Likewise.
30994         * stdio-common/xbug.c: Likewise.
30995         * string/memchr.c: Likewise.
30996         * string/memcmp.c: Likewise.
30997         * string/memrchr.c: Likewise.
30998         * string/rawmemchr.c: Likewise.
30999         * sysdeps/posix/getcwd.c: Likewise.
31000         * time/strftime_l.c: Likewise.
31001
31002 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31003
31004         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
31005         * config.make.in (config-cflags-sse2avx): Define.
31006         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
31007         Fix typo.
31008
31009 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
31010
31011         * scripts/config.guess: Update from upstream config git repository.
31012         * scripts/config.sub: Likewise.
31013
31014 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
31015
31016         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
31017         (EM_NUM): Update.
31018         (R_TILEPRO_*, R_TILEGX_*): New macros.
31019
31020         * scripts/firstversions.awk: Fix bug in version range handling.
31021
31022         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
31023
31024         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
31025
31026         * include/sys/epoll.h: New file.
31027         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
31028         libc_hidden_def.
31029
31030 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
31031
31032         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
31033         Avoid unnecessary __WORDSIZE == 64 test.
31034         (fmaxf): Use VEX format if possible.
31035         (fmax): Likewise.
31036         (fminf): Likewise.
31037         (fmin): Likewise.
31038
31039         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
31040         * math/math_private.h: Remove libc_fegetround* and
31041         libc_fesetround*.
31042         * sysdeps/i386/configure.in: Check for -msse2avx.
31043         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
31044         also if SSE2AVX is defined.
31045         Remove libc_fegetround* and libc_fesetround*.
31046         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
31047         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
31048         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
31049         of HAS_YMM_USABLE.
31050         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31051         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31052         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31053         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31054         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31055
31056         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
31057
31058 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31059
31060         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
31061         size is not set.
31062         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
31063
31064 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
31065
31066         [BZ #13618]
31067         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
31068         relocation.
31069         * Makeconfig (libm): Define.
31070         * elf/Makefile: Add rules to build and run tst-relsort1.
31071         * elf/tst-relsort1.c: New file.
31072         * elf/tst-relsort1mod1.c: New file.
31073         * elf/tst-relsort1mod2.c: New file.
31074
31075 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
31076
31077         * math/s_ldexp.c: Remove __STDC__ conditionals.
31078         * math/s_ldexpf.c: Likewise.
31079         * math/s_ldexpl.c: Likewise.
31080         * math/s_nextafter.c: Likewise.
31081         * math/s_nexttowardf.c: Likewise.
31082         * math/s_significand.c: Likewise.
31083         * math/s_significandf.c: Likewise.
31084         * math/s_significandl.c: Likewise.
31085         * math/w_jnl.c: Likewise.
31086         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
31087         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
31088         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
31089         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
31090         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
31091         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
31092         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
31093         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
31094         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
31095         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
31096         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
31097         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
31098         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
31099         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
31100         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
31101         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
31102         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
31103         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
31104         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
31105         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
31106         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
31107         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
31108         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
31109         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
31110         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
31111         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
31112         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
31113         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
31114         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
31115         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
31116         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
31117         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
31118         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
31119         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
31120         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
31121         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
31122         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
31123         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
31124         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
31125         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
31126         * sysdeps/ieee754/k_standard.c: Likewise.
31127         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
31128         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
31129         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
31130         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
31131         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
31132         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
31133         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
31134         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
31135         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
31136         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
31137         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
31138         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
31139         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
31140         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
31141         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
31142         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
31143         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
31144         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
31145         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
31146         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
31147         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31148         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
31149         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
31150         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
31151         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
31152         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
31153         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31154         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31155         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31156         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
31157         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
31158         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
31159         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
31160         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
31161         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
31162         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
31163         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
31164         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
31165         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
31166         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
31167         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
31168         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
31169         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
31170         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
31171         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
31172         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
31173         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
31174         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
31175         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
31176         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
31177         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
31178         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
31179         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
31180         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
31181         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
31182         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
31183         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
31184         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
31185         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
31186         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
31187         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
31188         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
31189         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
31190         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
31191         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
31192         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
31193         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
31194         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
31195         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
31196         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
31197         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
31198         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
31199         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
31200         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
31201         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
31202         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
31203         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
31204         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
31205         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
31206         * sysdeps/ieee754/s_matherr.c: Likewise.
31207         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
31208         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
31209         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
31210         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
31211
31212 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31213
31214         * crypt/md5.h: Remove __STDC__ conditionals.
31215         * libio/libioP.h: Likewise.
31216         * locale/programs/config.h: Likewise.
31217         * sysdeps/generic/sysdep.h: Likewise.
31218         * sysdeps/i386/asm-syntax.h: Likewise.
31219         * sysdeps/s390/asm-syntax.h: Likewise.
31220         * sysdeps/unix/sysdep.h: Likewise.
31221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
31222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
31223
31224 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31225
31226         * libio/libio.h: Remove __STDC__ conditionals.
31227         * malloc/obstack.h: Likewise.
31228         * math/complex.h: Likewise.
31229         * math/math.h: Likewise.
31230         * sysdeps/generic/_G_config.h: Likewise.
31231         * sysdeps/gnu/_G_config.h: Likewise.
31232         * sysdeps/mach/hurd/_G_config.h: Likewise.
31233         * sysdeps/powerpc/bits/mathdef.h: Likewise.
31234         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31235         * sysdeps/sparc/bits/mathdef.h: Likewise.
31236
31237 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
31238
31239         [BZ #13583]
31240         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
31241         Clean up HAS_* macros.
31242         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
31243         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
31244         possible.
31245         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
31246         HAS_AVX.
31247         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31248         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31249         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31250         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31251         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31252
31253 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
31254
31255         * elf/tst-unique3.cc (gets): Remove declaration.
31256         * elf/tst-unique3lib.cc (gets): Likewise.
31257         * elf/tst-unique3lib2.cc (gets): Likewise.
31258         * elf/tst-unique4.cc (gets): Likewise.
31259
31260 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
31261
31262         * include/stdio.h: Add C++ protection.  Add gets declarations and
31263         definitions.
31264         * debug/tst-chk1.c: Don't declare gets here.
31265         * stdio-common/tst-gets.c: Likewise.
31266
31267 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31268
31269         * posix/glob: Remove directory.
31270
31271 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31272
31273         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
31274
31275 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
31276
31277         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
31278         of the non-standard EPFNOSUPPORT.
31279
31280 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31281
31282         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
31283         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
31284         ANYWHERE set to 1 only on KERN_NO_SPACE error.
31285
31286 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
31287
31288         * wcsmbs/uchar.h: Test __STDC_VERSION__.
31289
31290 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
31291
31292         * nscd/aicache.c (addhstaiX): Do not cache negative results of
31293         transient errors.
31294         * nscd/grpcache.c (cache_addgr): Likewise.
31295         * nscd/hstcache.c (cache_addhst): Likewise.
31296         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31297         * nscd/pwdcache.c (cache_addpw): Likewise.
31298         * nscd/servicescache.c (cache_addserv): Likewise.
31299
31300 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
31301
31302         * malloc/malloc.c: Various cleanups.
31303         * malloc/hooks.c: Likewise.
31304
31305         * stdlib/Makefile (tests): Add bug-fmtmsg1.
31306         * stdlib/bug-fmtmsg1.c: New file.
31307
31308         * stdlib/fmtmsg.c (init): Add missing unlock.
31309         Patch by Peng Haitao <penght@cn.fujitsu.com>.
31310
31311 2012-01-12  Marek Polacek  <polacek@redhat.com>
31312
31313         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
31314         and _GNU_SOURCE.
31315
31316 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
31317
31318         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
31319         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
31320         macro to ensure uniqueness of label name.
31321         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
31322         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
31323
31324 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
31325
31326         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
31327
31328         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
31329         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
31330         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31331         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
31332
31333 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
31334
31335         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
31336
31337         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
31338         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
31339         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
31340
31341         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
31342
31343         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
31344         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
31345         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
31346         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
31347
31348         * math/bits/math-finite.h: Add ldexp support.
31349
31350 2012-01-10  Marek Polacek  <polacek@redhat.com>
31351
31352         * locale/programs/localedef.h (show_archive_content): Add noreturn
31353         attribute.
31354
31355 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
31356
31357         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
31358
31359 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31360
31361         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
31362
31363         * io/Makefile (headers): Add bits/poll2.h.
31364
31365 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
31366
31367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
31368         typo #include statement.
31369
31370 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31371
31372         * include/sys/cdefs.h: Define __attribute_alloc_size.
31373         * catgets/gencat.c: Add alloc_size attribute and apply consistently
31374         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
31375         * elf/pldd.c: Likewise.
31376         * iconv/iconv_charmap.c: Likewise.
31377         * iconv/iconvconfig.c: Likewise.
31378         * iconv/strtab.c: Likewise.
31379         * locale/programs/locale.c: Likewise.
31380         * locale/programs/localedef.h: Likewise.
31381         * locale/programs/simple-hash.c: Likewise.
31382         * nscd/nscd.h: Likewise.
31383         * nss/makedb.c: Likewise.
31384         * sysdeps/generic/ldconfig.h: Likewise.
31385         * locale/programs/localedef.c: Remove xmalloc prototype.
31386         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
31387
31388 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
31389
31390         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
31391         appropriate.
31392
31393 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31394
31395         * math/Makefile (tests): Add tst-CMPLX.
31396         * math/tst-CMPLX.c: New file.
31397
31398         * math/complex.h (CMPLXL): Fix typo.
31399
31400         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
31401         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
31402         GLIBC_2.16.
31403         * debug/tst-chk1.c: Add poll and ppoll tests.
31404         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
31405         * include/sys/poll.h: Add hidden proto for ppoll.
31406         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
31407         * sysdeps/mach/hurd/ppoll.c: Likewise.
31408         * io/ppoll.c: Likewise.
31409         * debug/poll_chk.c: New file.
31410         * debug/ppoll_chk.c: New file.
31411         * include/bits/poll2.h: New file.
31412         * io/bits/poll2.h: New file.
31413
31414         [BZ #1350]
31415         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
31416
31417         * configure.in: static is always set to yes.  Remove.
31418         * config.make.in: Don't set build-static.
31419         * Makeconfig: Remove use of build-static.
31420         * dlfcn/Makefile: Likewise.
31421         * elf/Makefile: Likewise.
31422         * math/Makefile: Likewise.
31423         * misc/Makefile: Likewise.
31424         * nptl/Makefile: Likewise.
31425         * sysdeps/mach/hurd/Makefile: Likewise.
31426
31427         * configure.in: PWD_P is not used anymore.
31428         * config.make.in: Remove PWD_P entry.
31429
31430         * configure.in: Remove last remnants of RANLIB.
31431         No need to check for signed size_t anymore.
31432         Don't set libc_commonpagesize and libc_relro_required here for Alpha
31433         and IA-64.
31434         Remove __builtin_expect test because we require at least gcc 3.4.
31435         * aclocal.m4: Likewise.
31436
31437         * wcsmbs/mbrtoc16.c: Implement using towc function.
31438         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
31439         * wcsmbs/wcsmbsload.c: Likewise.
31440         * iconv/gconv_simple.c: Likewise.
31441         * iconv/gconv_int.h: Likewise.
31442         * iconv/gconv_builtin.h: Likewise.
31443         * iconv/iconv_prog.c: Remove CHAR16 handling.
31444
31445         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
31446
31447         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
31448
31449         * configure.in: Remove --with-elf and --enable-bounded options.
31450         Dont set base_machine for ia64.  More non-ELF conditions removed.
31451         Remove testing and setting of leading underscore information.
31452         * config.make.in (build-bounded): Set to no.
31453         * config.h.in: Remove NO_UNDERSCORES entry.
31454         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
31455         them.
31456         * csu/start.c: Remove !NO_UNDERSCORE code.
31457         * locale/localeinfo.h: Likewise.
31458         * sysdeps/generic/machine-gmon.h: Likewise.
31459         * sysdeps/generic/sysdep.h: Likewise.
31460         * sysdeps/i386/sysdep.h: Likewise.
31461         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31462         * sysdeps/mach/sysdep.h: Likewise.
31463         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31464         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31465         * sysdeps/sh/sysdep.h: Likewise.
31466         * sysdeps/sparc/sparc32/alloca.S: Likewise.
31467         * sysdeps/unix/i386/sysdep.S: Likewise.
31468         * sysdeps/unix/sparc/start.c: Likewise.
31469         * sysdeps/unix/sparc/sysdep.S: Likewise.
31470         * sysdeps/unix/sparc/sysdep.h: Likewise.
31471         * sysdeps/unix/start.c: Likewise.
31472         * sysdeps/unix/x86_64/sysdep.S: Likewise.
31473         * sysdeps/x86_64/sysdep.h: Likewise.
31474
31475 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
31476
31477         [BZ #13553]
31478         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
31479         for non-gcc.
31480         * argp/argp-fmtstream.h: Use const instead __const.
31481         * argp/argp.h: Likewise.
31482         * assert/assert.h: Likewise.
31483         * bits/fenv.h: Likewise.
31484         * bits/sched.h: Likewise.
31485         * bits/sigset.h: Likewise.
31486         * bits/sigthread.h: Likewise.
31487         * catgets/nl_types.h: Likewise.
31488         * conform/data/pthread.h-data: Likewise.
31489         * crypt/crypt-private.h: Likewise.
31490         * crypt/crypt.h: Likewise.
31491         * crypt/crypt_util.c: Likewise.
31492         * ctype/ctype.h: Likewise.
31493         * debug/execinfo.h: Likewise.
31494         * debug/mbsnrtowcs_chk.c: Likewise.
31495         * debug/mbsrtowcs_chk.c: Likewise.
31496         * debug/wcsnrtombs_chk.c: Likewise.
31497         * debug/wcsrtombs_chk.c: Likewise.
31498         * debug/wcstombs_chk.c: Likewise.
31499         * dirent/dirent.h: Likewise.
31500         * dlfcn/dlfcn.h: Likewise.
31501         * elf/neededtest4.c: Likewise.
31502         * grp/grp.h: Likewise.
31503         * gshadow/gshadow.h: Likewise.
31504         * iconv/gconv.h: Likewise.
31505         * iconv/gconv_int.h: Likewise.
31506         * iconv/gconv_simple.c: Likewise.
31507         * iconv/iconv.h: Likewise.
31508         * iconv/loop.c: Likewise.
31509         * iconv/skeleton.c: Likewise.
31510         * include/aio.h: Likewise.
31511         * include/aliases.h: Likewise.
31512         * include/argz.h: Likewise.
31513         * include/arpa/inet.h: Likewise.
31514         * include/assert.h: Likewise.
31515         * include/dirent.h: Likewise.
31516         * include/dlfcn.h: Likewise.
31517         * include/execinfo.h: Likewise.
31518         * include/fcntl.h: Likewise.
31519         * include/fenv.h: Likewise.
31520         * include/glob.h: Likewise.
31521         * include/grp.h: Likewise.
31522         * include/libintl.h: Likewise.
31523         * include/mntent.h: Likewise.
31524         * include/netdb.h: Likewise.
31525         * include/pwd.h: Likewise.
31526         * include/rpc/netdb.h: Likewise.
31527         * include/sched.h: Likewise.
31528         * include/search.h: Likewise.
31529         * include/shadow.h: Likewise.
31530         * include/signal.h: Likewise.
31531         * include/stdio.h: Likewise.
31532         * include/stdlib.h: Likewise.
31533         * include/string.h: Likewise.
31534         * include/sys/socket.h: Likewise.
31535         * include/sys/stat.h: Likewise.
31536         * include/sys/statfs.h: Likewise.
31537         * include/sys/statvfs.h: Likewise.
31538         * include/sys/syslog.h: Likewise.
31539         * include/sys/time.h: Likewise.
31540         * include/sys/uio.h: Likewise.
31541         * include/time.h: Likewise.
31542         * include/unistd.h: Likewise.
31543         * include/utmp.h: Likewise.
31544         * include/wchar.h: Likewise.
31545         * include/wctype.h: Likewise.
31546         * inet/aliases.h: Likewise.
31547         * inet/arpa/inet.h: Likewise.
31548         * inet/netinet/ether.h: Likewise.
31549         * inet/netinet/in.h: Likewise.
31550         * intl/libintl.h: Likewise.
31551         * io/bits/fcntl2.h: Likewise.
31552         * io/fcntl.h: Likewise.
31553         * io/ftw.h: Likewise.
31554         * io/sys/poll.h: Likewise.
31555         * io/sys/stat.h: Likewise.
31556         * io/sys/statfs.h: Likewise.
31557         * io/sys/statvfs.h: Likewise.
31558         * io/utime.h: Likewise.
31559         * libio/bits/stdio.h: Likewise.
31560         * libio/bits/stdio2.h: Likewise.
31561         * libio/libio.h: Likewise.
31562         * libio/libioP.h: Likewise.
31563         * libio/stdio.h: Likewise.
31564         * locale/lc-ctype.c: Likewise.
31565         * locale/locale.h: Likewise.
31566         * login/utmp.h: Likewise.
31567         * malloc/arena.c: Likewise.
31568         * malloc/malloc.c: Likewise.
31569         * malloc/malloc.h: Likewise.
31570         * malloc/mcheck.c: Likewise.
31571         * malloc/mtrace.c: Likewise.
31572         * math/bits/mathcalls.h: Likewise.
31573         * math/fenv.h: Likewise.
31574         * math/math_private.h: Likewise.
31575         * misc/bits/error.h: Likewise.
31576         * misc/bits/syslog.h: Likewise.
31577         * misc/err.h: Likewise.
31578         * misc/error.h: Likewise.
31579         * misc/fstab.h: Likewise.
31580         * misc/mntent.h: Likewise.
31581         * misc/regexp.h: Likewise.
31582         * misc/search.h: Likewise.
31583         * misc/sgtty.h: Likewise.
31584         * misc/sys/mman.h: Likewise.
31585         * misc/sys/syslog.h: Likewise.
31586         * misc/sys/uio.h: Likewise.
31587         * misc/sys/xattr.h: Likewise.
31588         * misc/ttyent.h: Likewise.
31589         * nis/rpcsvc/ypclnt.h: Likewise.
31590         * nss/nss.h: Likewise.
31591         * posix/bits/unistd.h: Likewise.
31592         * posix/fnmatch.h: Likewise.
31593         * posix/glob.h: Likewise.
31594         * posix/sched.h: Likewise.
31595         * posix/spawn.h: Likewise.
31596         * posix/sys/wait.h: Likewise.
31597         * posix/unistd.h: Likewise.
31598         * posix/wordexp.h: Likewise.
31599         * pwd/pwd.h: Likewise.
31600         * resolv/netdb.h: Likewise.
31601         * resource/sys/resource.h: Likewise.
31602         * rt/aio.h: Likewise.
31603         * rt/bits/mqueue2.h: Likewise.
31604         * rt/mqueue.h: Likewise.
31605         * shadow/shadow.h: Likewise.
31606         * signal/signal.h: Likewise.
31607         * socket/send.c: Likewise.
31608         * socket/sendto.c: Likewise.
31609         * socket/sys/socket.h: Likewise.
31610         * stdio-common/printf.h: Likewise.
31611         * stdlib/bits/stdlib.h: Likewise.
31612         * stdlib/fmtmsg.h: Likewise.
31613         * stdlib/monetary.h: Likewise.
31614         * stdlib/stdlib.h: Likewise.
31615         * stdlib/ucontext.h: Likewise.
31616         * streams/stropts.h: Likewise.
31617         * string/argz.h: Likewise.
31618         * string/bits/string2.h: Likewise.
31619         * string/string.h: Likewise.
31620         * string/strings.h: Likewise.
31621         * sunrpc/rpc/auth.h: Likewise.
31622         * sunrpc/rpc/auth_des.h: Likewise.
31623         * sunrpc/rpc/clnt.h: Likewise.
31624         * sunrpc/rpc/netdb.h: Likewise.
31625         * sunrpc/rpc/pmap_clnt.h: Likewise.
31626         * sunrpc/rpc/xdr.h: Likewise.
31627         * sysdeps/generic/inttypes.h: Likewise.
31628         * sysdeps/generic/net/if.h: Likewise.
31629         * sysdeps/generic/sys/swap.h: Likewise.
31630         * sysdeps/gnu/net/if.h: Likewise.
31631         * sysdeps/gnu/utmpx.h: Likewise.
31632         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
31633         * sysdeps/i386/i486/bits/string.h: Likewise.
31634         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
31635         * sysdeps/s390/bits/string.h: Likewise.
31636         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
31637         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
31638         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
31639         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
31640         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
31641         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
31642         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
31643         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
31644         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
31645         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31646         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
31647         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
31648         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
31649         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
31650         * sysdeps/unix/sysv/linux/readv.c: Likewise.
31651         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
31652         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
31653         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
31654         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
31655         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
31656         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31657         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
31658         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
31659         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
31660         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
31661         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
31662         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
31663         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31664         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
31665         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
31666         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
31667         * sysvipc/sys/ipc.h: Likewise.
31668         * sysvipc/sys/msg.h: Likewise.
31669         * sysvipc/sys/sem.h: Likewise.
31670         * sysvipc/sys/shm.h: Likewise.
31671         * termios/termios.h: Likewise.
31672         * time/sys/time.h: Likewise.
31673         * time/time.h: Likewise.
31674         * wcsmbs/bits/wchar2.h: Likewise.
31675         * wcsmbs/uchar.h: Likewise.
31676         * wcsmbs/wchar.h: Likewise.
31677         * wctype/wctype.h: Likewise.
31678
31679         [BZ #13551]
31680         * Makeconfig: Remove all but ELF support including AIX support.
31681         * Makerules: Likewise.
31682         * config.h.in: Likewise.
31683         * config.make.in: Likewise.
31684         * configure: Likewise.
31685         * configure.in: Likewise.
31686         * csu/Makefile: Likewise.
31687         * csu/version.c: Likewise.
31688         * debug/Makefile: Likewise.
31689         * dlfcn/Makefile: Likewise.
31690         * elf/Makefile: Likewise.
31691         * extra-lib.mk: Likewise.
31692         * iconv/Makefile: Likewise.
31693         * include/libc-symbols.h: Likewise.
31694         * include/shlib-compat.h: Likewise.
31695         * resolv/Makefile: Likewise.
31696         * resolv/res_libc.c: Likewise.
31697         * rt/Makefile: Likewise.
31698         * sysdeps/i386/asm-syntax.h: Likewise.
31699         * sysdeps/i386/sysdep.h: Likewise.
31700         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31701         * sysdeps/mach/sysdep.h: Likewise.
31702         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
31703         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
31704         * sysdeps/s390/asm-syntax.h: Likewise.
31705         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31706         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31707         * sysdeps/sh/sysdep.h: Likewise.
31708         * sysdeps/unix/sparc/sysdep.h: Likewise.
31709         * sysdeps/wordsize-32/divdi3.c: Likewise.
31710         * sysdeps/x86_64/sysdep.h: Likewise.
31711
31712         * argp/Versions: Remove _argp_unlock_xxx.
31713
31714         [BZ #13559]
31715         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
31716         * abilist/libBrokenLocale.abilist: Likewise.
31717         * abilist/libanl.abilist: Likewise.
31718         * abilist/libc.abilist: Likewise.
31719         * abilist/libcrypt.abilist: Likewise.
31720         * abilist/libdl.abilist: Likewise.
31721         * abilist/libm.abilist: Likewise.
31722         * abilist/libnsl.abilist: Likewise.
31723         * abilist/libpthread.abilist: Likewise.
31724         * abilist/libresolv.abilist: Likewise.
31725         * abilist/librt.abilist: Likewise.
31726         * abilist/libthread_db.abilist: Likewise.
31727         * abilist/libutil.abilist: Likewise.
31728         * abilist/libnss_db.abilist: New file.
31729
31730         * scripts/abilist.awk: Add support for indirect functions.
31731
31732         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
31733
31734         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
31735
31736         * shlib-versions: Remove entries for ports architectures.
31737
31738         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
31739         files in ports.
31740         * elf/stackguard-macros.h: Remove support for IA-64.
31741         * elf/tst-auditmod1.c: Likewise.
31742         * sysdeps/generic/ldsodefs.h: Likewise.
31743
31744         * sysdeps/unix/sysv/linux/configure.in: Ports should define
31745         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
31746         configure files.
31747
31748         [BZ #13552]
31749         * configure.in: Remove --enable-omitfp support.
31750         * FAQ.in: Adjust.
31751         * config.make.in: Likewise.
31752         * Makeconfig: Likewise.
31753         * manual/install.texi: Likewise.
31754
31755         In case anyone cares, the IA-64 architecture could move to ports.
31756         * sysdeps/ia64/*: Removed.
31757         * sysdeps/unix/sysv/linux/ia64/*: Removed.
31758         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
31759
31760         [BZ #13555]
31761         * configure.in: Remove entries for unsupported architectures.
31762
31763         [BZ #13533]
31764         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
31765         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
31766         routines.
31767         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
31768         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
31769         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
31770         fall back to using wcrtomb.
31771         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
31772         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
31773         renaming.
31774         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
31775         * wcsmbs/tst-c16c32-1.c: New file.
31776
31777         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
31778         local variable.
31779
31780         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
31781
31782         * elf/tst-unique3.cc: Add explicit declaration of gets.
31783         * elf/tst-unique3lib.cc: Likewise.
31784         * elf/tst-unique3lib2.cc: Likewise.
31785         * elf/tst-unique4.cc: Likewise.
31786
31787         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
31788
31789 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
31790
31791         [BZ #13566]
31792         * assert/assert.h (static_assert): Don't define for C++.
31793         * libio/stdio.h (gets): Do declare for C++ <= C++11.
31794         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
31795
31796 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
31797
31798         * iconv/loop.c (single loop): Fix assertion in storing of
31799         remaining bytes.
31800
31801         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
31802
31803 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
31804
31805         * posix/getconf.c: Update copyright year.
31806         * nss/getent.c: Likewise.
31807         * nss/makedb.c: Likewise.
31808         * iconv/iconvconfig.c: Likewise.
31809         * iconv/iconv_prog.c: Likewise.
31810         * elf/ldconfig.c: Likewise.
31811         * elf/pldd.c: Likewise.
31812         * elf/sotruss.ksh: Likewise.
31813         * catgets/gencat.c: Likewise.
31814         * csu/version.c: Likewise.
31815         * elf/ldd.bash.in: Likewise.
31816         * elf/sprof.c (print_version): Likewise.
31817         * locale/programs/locale.c: Likewise.
31818         * locale/programs/localedef.c: Likewise.
31819         * login/programs/pt_chown.c: Likewise.
31820         * nscd/nscd.c (print_version): Likewise.
31821         * debug/xtrace.sh: Likewise.
31822         * malloc/memusage.sh: Likewise.
31823         * malloc/mtrace.pl: Likewise.
31824         * debug/catchsegv.sh: Likewise.
31825
31826 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
31827
31828         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
31829         pure attribute.
31830
31831 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
31832
31833         [BZ #13533]
31834         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
31835         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
31836         transformations.
31837         * iconv/gconv_int.h: Likewise.
31838         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
31839         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
31840         from libc for GLIBC_2.16.
31841         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
31842         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
31843         * wcsmbs/uchar.h: Really define mbstate_t.
31844         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
31845         * wcsmbs/c16rtomb.c: New file.
31846         * wcsmbs/mbrtoc16.c: New file.
31847         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
31848         for C/POSIX locale.
31849         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
31850         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
31851
31852         * wcsmbs/wchar.h: Add missing __restrict.
31853
31854 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
31855
31856         [BZ #13532]
31857         * time/Makefile (routines): Add timespec_get.
31858         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
31859         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
31860         timespec for ISO C11.
31861         * time/timespec_get.c: New file.
31862         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
31863         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
31864
31865         [BZ #13531]
31866         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
31867         * stdlib/stdlib.h: Declare aligned_alloc.
31868         * Versions.def: Add GLIBC_2.16 for libc.
31869         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
31870
31871         [BZ 13527]
31872         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
31873         ISO C11.
31874
31875         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
31876         code.
31877
31878         [BZ #13528]
31879         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
31880
31881         [BZ #13529]
31882         * assert/assert.h (static_assert): Define.
31883
31884         * version.h: Update for 2.16 development version.
31885
31886         [BZ #13526]
31887         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
31888         _ISOC11_SOURCE.
31889
31890         * version.h (RELEASE): Bump for 2.15 release.
31891         * include/features.h (__GLIBC_MINOR__): Bump to 15.
31892
31893         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
31894         Patch by Marek Polacek <mpolacek@redhat.com>.
31895
31896         * bits/byteswap.h: Protect long long constants with __extension__.
31897         * sysdeps/i386/bits/byteswap.h: Likewise.
31898         * sysdeps/ia64/bits/byteswap.h: Likewise.
31899         * sysdeps/s390/bits/byteswap.h: Likewise.
31900         * sysdeps/x86_64/bits/byteswap.h: Likewise.
31901
31902 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31903
31904         [BZ #13540]
31905         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
31906         destination buffer.
31907         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
31908
31909 2011-12-23  Marek Polacek  <polacek@redhat.com>
31910
31911         * elf/dl-addr.c (determine_info): Add inline keyword.
31912         * elf/tst-auditmod4b.c (check_avx): Likewise.
31913         * elf/tst-auditmod6b.c (check_avx): Likewise.
31914         * elf/tst-auditmod6c.c (check_avx): Likewise.
31915         * elf/tst-auditmod7b.c (check_avx): Likewise.
31916
31917 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
31918
31919         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
31920         !__SSE_MATH__.
31921
31922 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31923
31924         [BZ #13540]
31925         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
31926         processing for last bytes.
31927
31928 2011-08-06  Bruno Haible  <bruno@clisp.org>
31929
31930         [BZ #13061]
31931         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
31932         U+0385, not to U+1FEE.
31933
31934         [BZ #13062]
31935         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
31936         entry for U+00A5 U+0301.
31937
31938 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
31939
31940         [BZ #13166]
31941         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
31942         buffer for the output is too small.
31943
31944         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
31945         optimization.
31946
31947         [BZ #13185]
31948         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
31949         SSE flags if possible.
31950
31951 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31952
31953         [BZ #13540]
31954         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
31955         processing for last bytes.
31956
31957 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
31958
31959         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
31960         (syscall-list-default-options, syscall-list-default-condition)
31961         (syscall-list-includes): Define.
31962         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
31963         list of ABIs and options and #if conditions for each ABI.  Do not
31964         handle common syscalls between ABIs specially.
31965         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
31966         Remove.
31967         (syscall-list-variants, syscall-list-32bit-options)
31968         (syscall-list-32bit-condition, syscall-list-64bit-options)
31969         (syscall-list-64bit-condition): Define.
31970         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
31971         (syscall-list-variants, syscall-list-32bit-options)
31972         (syscall-list-32bit-condition, syscall-list-64bit-options)
31973         (syscall-list-64bit-condition): Define.
31974         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
31975         Remove.
31976         (syscall-list-variants, syscall-list-32bit-options)
31977         (syscall-list-32bit-condition, syscall-list-64bit-options)
31978         (syscall-list-64bit-condition): Define.
31979         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
31980         Remove.
31981         (syscall-list-variants, syscall-list-32bit-options)
31982         (syscall-list-32bit-condition, syscall-list-64bit-options)
31983         (syscall-list-64bit-condition): Define.
31984
31985 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
31986
31987         * locale/iso-639.def: Add brx entry.
31988
31989         [BZ #13328]
31990         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
31991         Proposed by Mariusz_Cukr <marcukr@op.pl>.
31992
31993         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
31994         __feraiseexcept_renamed.
31995
31996 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
31997
31998         [BZ #13538]
31999         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
32000         EPOLLET with unsigned values.
32001         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
32002         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
32003
32004         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
32005         to large cancellation.
32006         * math/s_cacoshf.c: Likewise.
32007         * math/s_cacoshl.c: Likewise.
32008
32009 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
32010
32011         [BZ #13305]
32012         [BZ #12786]
32013         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
32014         * math/s_cacoshf.c: Likewise.
32015         * math/s_cacoshl.c: Likewise.
32016
32017 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32018
32019         [BZ #13439]
32020         * iconv/gconv.h: Define __GCONV_SWAP.
32021         * iconvdata/unicode.c: The swap bit must be stored in __flags.
32022         * iconvdata/utf-16.c: Likewise.
32023         * iconvdata/utf-32.c: Likewise.
32024
32025 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
32026
32027         [BZ #13524]
32028         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
32029         numerator after shifting it by one limb.
32030
32031 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
32032
32033         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
32034         under [__USE_EXTERN_INLINES].
32035
32036 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32037
32038         [BZ #13446]
32039         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
32040
32041 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32042
32043         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
32044         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
32045         optimized code.
32046         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
32047         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
32048         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
32049         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
32050         for strncasecmp/strncasecmp_l compilation.
32051         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
32052         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
32053
32054 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
32055
32056         [BZ #13484]
32057         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
32058         of __asm__.
32059
32060 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32061
32062         [BZ #13506]
32063         * time/tzfile.c (__tzfile_read): Check values from file header.
32064
32065 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
32066
32067         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
32068         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
32069         * powerpc/powerpc32/dl-start.S: Likewise.
32070         * powerpc/powerpc32/elf/start.S: Likewise.
32071         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
32072         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
32073         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
32074         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
32075         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
32076         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
32077         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
32078         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
32079         * powerpc/powerpc32/fpu/s_round.S: Likewise.
32080         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
32081         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
32082         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
32083         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
32084         * powerpc/powerpc32/memset.S: Likewise.
32085         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
32086         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
32087         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
32088         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
32089         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
32090         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
32091         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
32092         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
32093         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
32094         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
32095         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
32096         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
32097         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
32098
32099 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32100
32101         * math/libm-test.inc: Added more nearbyint tests.
32102         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
32103         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
32104         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
32105         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
32106
32107 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
32108
32109         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
32110         FD_CLOEXEC.
32111
32112 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32113
32114         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
32115         Add wcscpy-ssse3 wcscpy-c.
32116         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
32117         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
32118         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
32119         * sysdeps/x86_64/wcschr.S: New file.
32120         * sysdeps/x86_64/wcsrchr.S: New file.
32121         * string/test-strcmp.c: Remove checking of wcscmp function for
32122         wrong alignments.
32123         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
32124         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
32125         wcsrchr-sse2 wcsrchr-c.
32126         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
32127         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
32128         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
32129         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
32130         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
32131         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
32132         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
32133         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
32134         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
32135         * wcsmbc/wcschr.c (WCSCHR): New macro.
32136
32137 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32138
32139         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
32140         * wcsmbs/test-wcsrchr.c: New file.
32141         * string/test-strrchr.c: Add wcsrchr support.
32142         (WIDE): New macro.
32143         * wcsmbs/test-wcscpy.c: New file.
32144         * string/test-strcpy.c: Add wcscpy support.
32145         (WIDE): New macro.
32146
32147 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
32148
32149         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
32150         the inner loop.
32151
32152 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
32153
32154         [BZ #13472]
32155         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
32156
32157 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
32158
32159         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
32160         Minor optimizations.
32161
32162         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
32163         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
32164         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32165
32166 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
32167
32168         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
32169         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
32170         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
32171         for gcc to avoid warnings.
32172         * inet/Makefile (tests): Add tst-checks.
32173         * inet/tst-checks.c: New file.
32174
32175         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
32176         warning.
32177
32178         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
32179         __wmemcmp_sse2.
32180
32181         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
32182         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
32183
32184         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
32185
32186 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
32187
32188         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
32189         problem.
32190
32191         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
32192
32193 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
32194
32195         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
32196         conditional on GCC version.
32197         (__arch_compare_and_exchange_val_8_acq)
32198         (__arch_compare_and_exchange_val_16_acq)
32199         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
32200         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
32201         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
32202
32203 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
32204
32205         * sysdeps/sh/backtrace.c: New file.
32206
32207 2011-12-02  Andreas Schwab  <schwab@redhat.com>
32208
32209         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
32210         parenthesis.
32211
32212 2011-12-01  Andreas Schwab  <schwab@redhat.com>
32213
32214         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
32215         falling back to utime.
32216
32217 2011-11-30  Andreas Schwab  <schwab@redhat.com>
32218
32219         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
32220         expectations for float.
32221
32222 2011-11-29  Andreas Schwab  <schwab@redhat.com>
32223
32224         * locale/weight.h (findidx): Add parameter len.
32225         * locale/weightwc.h (findidx): Likewise.
32226         * posix/fnmatch_loop.c (FCT): Adjust caller.
32227         * posix/regcomp.c (build_equiv_class): Likewise.
32228         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
32229         * posix/regexec.c (check_node_accept_bytes): Likewise.
32230         * string/strcoll_l.c (STRCOLL): Likewise.
32231         * string/strxfrm_l.c (STRXFRM): Likewise.
32232
32233 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
32234
32235         * Makefile.in: Remove CVSOPT handling.
32236         * configure.in: Remove use of AC_REVISION.
32237         * iconvdata/Makefile (distribute): No need to filter out CVS.
32238         * scripts/list-sources.sh: Remove CVS, subversion and monotone
32239         handling.
32240
32241 2011-11-16  Andreas Schwab  <schwab@redhat.com>
32242
32243         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
32244         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
32245         [USE_AS_STRNCASECMP_L]: Likewise.
32246         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
32247         NO_TLS_DIRECT_SEG_REFS.
32248         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
32249         Fix argument offsets for non-PIC.
32250         [USE_AS_STRNCASECMP_L]: Likewise.
32251         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
32252         NO_TLS_DIRECT_SEG_REFS.
32253
32254 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32255
32256         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
32257         O_CLOEXEC.
32258         * locale/loadlocale.c (_nl_load_locale): Likewise.
32259
32260 2011-11-15  Andreas Schwab  <schwab@redhat.com>
32261
32262         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
32263         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
32264         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
32265         (SYSCALL_GETTIME): Set errno on error.
32266
32267         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
32268         count references to noai6ai_cached.
32269
32270 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32271
32272         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
32273
32274         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
32275         FD_CLOEXEC for /proc/self/maps.
32276
32277         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
32278         FD_CLOEXEC for /proc/meminfo.
32279
32280         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
32281         gai.conf.
32282
32283         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
32284         FD_CLOEXEC for given file.
32285
32286         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
32287
32288         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
32289         FD_CLOEXEC for /etc/hosts.
32290         (_gethtent): Likewise.
32291
32292         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
32293
32294         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
32295         cancellation and set FD_CLOEXEC for /etc/netgroup.
32296
32297         * nss/nss_files/files-key.c (search): Don't allow cancellation when
32298         reading /etc/publickey.
32299
32300         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
32301         allow cancellation when reading /etc/group.
32302
32303         * nss/nss_files/files-alias.c (internal_setent): Don't allow
32304         cancellation.
32305         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
32306
32307         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
32308         when using data file.
32309
32310         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
32311
32312         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
32313         (write_nis_obj): Use "c" and "e" in fopen.
32314
32315         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
32316
32317         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
32318
32319         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
32320
32321         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
32322
32323         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
32324         locale.alias.
32325
32326         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
32327
32328         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
32329
32330         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
32331
32332         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
32333         file parsing and set FD_CLOEXEC.
32334
32335 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32336
32337         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
32338
32339 2011-11-14  Andreas Schwab  <schwab@redhat.com>
32340
32341         * malloc/arena.c (arena_get2): Don't call reused_arena when
32342         _int_new_arena failed.
32343
32344 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32345
32346         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
32347         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
32348         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
32349         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32350         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32351         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
32352         to compile strcasecmp and strncasecmp.
32353         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
32354         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
32355
32356         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
32357
32358 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
32359
32360         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
32361         locale-defines.sym to gen-as-const-headers.
32362         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
32363         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
32364         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
32365         to compile strcasecmp and strncasecmp.
32366         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
32367         strcasecmp_l and strncasecmp_l.
32368         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
32369         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
32370         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
32371         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
32372         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
32373         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
32374         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
32375         * sysdeps/i386/i686/multiarch/strncase.S: New file.
32376         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
32377         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
32378         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
32379
32380 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
32381
32382         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
32383         result of SYSDEP_GETTIME_CPU to retval.
32384         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
32385         parameter list to macro.  Remove trailing semicolon.  Adjust users.
32386
32387         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
32388         variable.
32389
32390         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
32391         mantissa words.
32392         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32393
32394         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
32395         from unused variable.
32396
32397         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
32398         DWARF definitions.
32399         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
32400         for assembling.
32401
32402         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
32403         over namespaces.
32404
32405         * sunrpc/rpc_prot.c (rejected): Fix case value.
32406
32407         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
32408         unsigned long long int to avoid warnings in shift.
32409
32410         * posix/regex_internal.c (re_string_reconstruct): Actually use result
32411         of use of trans.
32412         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
32413         variable tmp.
32414
32415         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
32416         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
32417         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
32418
32419         * nis/nis_table.c (nis_list): Use variable of correct type for
32420         result of __follow_path call.
32421
32422 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32423
32424         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
32425         of math functions ceil, trunc, floor, round, and sqrt, when
32426         avaliable on the platform.
32427         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
32428         name clash.
32429         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
32430         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
32431         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
32432
32433 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
32434
32435         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
32436         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
32437
32438 2011-11-11  Roland McGrath  <roland@hack.frob.com>
32439
32440         * include/unistd.h: Fix __readlink return type.
32441         Reported by Chris Metcalf <cmetcalf@tilera.com>.
32442
32443 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
32444
32445         * stdlib/ucontext.h: Undo last change for makecontext.
32446
32447 2011-11-11  Andreas Schwab  <schwab@redhat.com>
32448
32449         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
32450
32451         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
32452         * setjmp/setjmp.h: Mark functions as non-leaf.
32453         * setjmp/bits/setjmp2.h: Likewise.
32454         * stdlib/ucontext.h: Likewise.
32455
32456 2011-11-10  Andreas Schwab  <schwab@redhat.com>
32457
32458         * malloc/arena.c (_int_new_arena): Don't increment narenas.
32459         (reused_arena): Don't check arena limit.
32460         (arena_get2): Atomically check arena limit.
32461
32462 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
32463
32464         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
32465         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
32466
32467         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
32468         instructions.
32469
32470 2011-11-07  Andreas Schwab  <schwab@redhat.com>
32471
32472         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
32473         handler when locking.
32474
32475         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
32476         Fix size of allocated buffer.
32477
32478 2011-11-04  Andreas Schwab  <schwab@redhat.com>
32479
32480         [BZ #10103]
32481         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
32482         declarations for long double functions.
32483         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
32484
32485         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
32486
32487 2011-11-03  Andreas Schwab  <schwab@redhat.com>
32488
32489         * nscd/nscd.c (main): Don't start AVC thread until credentials are
32490         installed.
32491
32492         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
32493         is disabled.
32494
32495 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32496
32497         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
32498
32499 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
32500
32501         * include/alloca.h (stackinfo_alloca_round): Define.
32502         (extend_alloca): Use it.
32503         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
32504         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
32505         here.
32506
32507         * scripts/check-local-headers.sh: Ignore libaudit.h.
32508
32509         * nscd/Makefile (extra-objs): Make recursively expanded.
32510
32511 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
32512
32513         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
32514         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
32515
32516         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
32517         * posix/tst-rfc3484-2.c: Likewise.
32518         * posix/tst-rfc3484-3.c: Likewise.
32519
32520         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
32521         process_vm_writev.
32522         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
32523         process_vm_writev.
32524         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
32525         process_vm_writev from libc using GLIBC_2.15 version.
32526
32527         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
32528
32529 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
32530
32531         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
32532         stack usage.
32533
32534 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
32535
32536         [BZ #13367]
32537         * nss/getent.c (initgroups_keys): Show error message in case no group
32538         names are given.
32539
32540         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
32541         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
32542         __bump_nl_timestamp.
32543         * nscd/connections (nscd_init): When host database is served open
32544         netlink socket and request notification about configuration changes.
32545         (main_loop_poll): Track netlink file descriptor and bump timestamp
32546         in case data becomes available.
32547         (main_loop_epoll): Likewise.
32548         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
32549         (database_pers_head): Add extra_data fileds.
32550         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
32551         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
32552         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
32553         Adjust caller.
32554         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
32555         in6ai data, call __free_in6ai.
32556         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
32557         Add -DHAVE_NETLINK.
32558         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
32559         interface information.  Reuse previous data if netlink timestamp
32560         is not changed.
32561         (__bump_nl_timestamp): New function.
32562         (__free_in6ai): New function.
32563
32564 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
32565
32566         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
32567         close_not_cancel_no_status here.
32568         (__check_pf): Reorganize code a bit to not call close twice if OOM.
32569
32570 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32571
32572         [BZ #13276]
32573         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
32574         return value.
32575
32576         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
32577         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
32578         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
32579
32580 2011-07-03  Andreas Jaeger  <aj@suse.de>
32581
32582         [BZ #10709]
32583         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
32584         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
32585         * math/libm-test.inc (sin_test): Add test case.
32586
32587 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32588
32589         [BZ #13337]
32590         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
32591         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32592
32593         * elf/chroot_canon.c (chroot_canon): Cleanups.
32594
32595         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
32596
32597         [BZ #13335]
32598         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
32599         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32600
32601         * string/test-strchr.c: Make usable for strchrnul testing.
32602         * string/test-strchrnul.c: New file.
32603         * string/Makefile (strop-tests): Add strchrnul.
32604
32605         * po/it.po: Update from translation team.
32606         * po/es.po: Likewise.
32607
32608 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
32609
32610         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
32611         the three constants needed as parameters.  Drop the others.
32612         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
32613         __m128i_strloadu_tolower.
32614         Create and initialize variable zero and use it in all the places
32615         where _mm_setzero_si128 was used.
32616
32617         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
32618         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
32619         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
32620         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
32621         anymore.
32622         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
32623         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
32624         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
32625         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
32626         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
32627         __mpranred, __mptan.
32628         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
32629         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
32630         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
32631         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
32632         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
32633         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
32634         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
32635         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
32636         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
32637
32638 2011-10-28  Andreas Schwab  <schwab@redhat.com>
32639
32640         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
32641         redefine if SHARED.
32642         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
32643
32644         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
32645         wide char related routines to wcsmbs subdir.
32646
32647 2011-10-27  Andreas Schwab  <schwab@redhat.com>
32648
32649         [BZ #13344]
32650         * misc/sys/cdefs.h (__THROWNL): Define.
32651         * posix/unistd.h: Use __THREADNL instead of __THREAD
32652         for memory synchronization functions.
32653
32654 2011-10-26  Roland McGrath  <roland@hack.frob.com>
32655
32656         [BZ #13349]
32657         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
32658         doesn't exist.
32659         * manual/stdio.texi (Obstack Streams): Node removed.
32660
32661 2011-10-26  Andreas Schwab  <schwab@redhat.com>
32662
32663         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
32664         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32665         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32666
32667         * math/math_private.h (math_force_eval): Allow non-addressable
32668         arguments.
32669         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
32670
32671 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32672
32673         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
32674         file is not needed.
32675
32676         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
32677         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32678         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32679         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32680         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32681         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32682         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32683         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
32684         Add AVX variants.
32685         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
32686         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
32687         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
32688         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
32689         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
32690         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
32691         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
32692         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
32693         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
32694         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
32695         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
32696         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
32697         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
32698         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
32699         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
32700         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
32701         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
32702         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
32703         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
32704
32705         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
32706         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
32707
32708         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
32709         place.  Use VEX encoding when compiling for AVX.
32710
32711 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32712
32713         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
32714         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
32715
32716         * string/test-strchr.c (do_test): Don't generate NUL bytes.
32717
32718 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32719
32720         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
32721         useless if() expression.
32722         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
32723         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
32724         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
32725         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
32726         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
32727         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32728         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
32729         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
32730         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
32731         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
32732         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
32733         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
32734         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
32735         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
32736         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
32737         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32738         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
32739         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
32740         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
32741
32742         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
32743
32744 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32745
32746         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
32747         condition.
32748         * elf/dl-fini.c (_dl_sort_fini): Likewise.
32749
32750 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32751
32752         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
32753         .text section.  Avoid duplicate constants.
32754         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
32755         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32756         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
32757         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32758         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32759         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32760         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32761         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32762         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
32763         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
32764         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
32765         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
32766         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
32767         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
32768         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
32769         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
32770         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
32771         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
32772         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
32773         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32774         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
32775         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
32776         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
32777         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
32778         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
32779         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
32780         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
32781         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
32782         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
32783         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
32784         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
32785         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
32786         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
32787         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
32788         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
32789         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
32790         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
32791         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
32792         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
32793         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
32794         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
32795         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
32796         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
32797         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
32798         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
32799
32800 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
32801
32802         * sysdeps/x86_64/dla.h: Move to ...
32803         * sysdeps/x86_64/fpu/dla.h: ...here.
32804         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
32805         situations.  Use __builtin_fma only for gcc 4.6 and up.
32806
32807         * config.make.in: Add have-mfma4 entry.
32808         * configure.in: Substitute libc_cv_cc_fma4.
32809         * math/Makefile (dbl-only-routines): Add sincostab.
32810         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
32811         Use __sincostab not sincos.
32812         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
32813         name is a macro.
32814         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32815         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32816         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32817         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
32818         using __copysign.
32819         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
32820         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
32821         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
32822         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
32823         and __inv.
32824         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
32825         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
32826         __copysign.
32827         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
32828         define aliases when function name is a macro.
32829         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
32830         sysdeps/ieee754/dbl-64/sincos.tbl.
32831         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
32832         fma4-enabled routines.
32833         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
32834         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
32835         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
32836         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
32837         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
32838         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
32839         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
32840         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
32841         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
32842         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
32843         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
32844         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
32845         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
32846         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
32847         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
32848         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
32849         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
32850         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
32851         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
32852         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
32853         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
32854         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
32855         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
32856         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
32857         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
32858         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
32859         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
32860         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
32861         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
32862         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
32863
32864         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
32865         rename.
32866         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32867         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32868         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32869         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32870         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32871         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32872         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32873         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32874
32875 2011-10-24  Andreas Schwab  <schwab@redhat.com>
32876
32877         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
32878
32879 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32880
32881         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
32882
32883         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
32884         prediction.
32885         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
32886
32887         * string/strnlen.c: Don't define STRNLEN, reverse logic.
32888         Remove unused variable magic_bits.
32889         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
32890
32891         * string/strnlen.c: Define and use STRNLEN macro.
32892         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
32893         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
32894         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
32895         * wcsmbs/wcslen.c: Define and use WCSLEN.
32896         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
32897         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
32898         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
32899         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
32900         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
32901         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
32902         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
32903
32904 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32905
32906         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32907         strnlen-sse2-no-bsf.
32908         Rename strlen-no-bsf to strlen-sse2-no-bsf.
32909         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
32910         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
32911         Add strnlen support.
32912         (USE_AS_STRNLEN): New macro.
32913         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
32914         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
32915         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
32916         * sysdeps/x86_64/wcslen.S: New file.
32917
32918 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
32919
32920         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
32921         XMM-moves are used for copying on small sizes.
32922
32923 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32924
32925         * wcsmbs/Makefile (strop-tests): Add wcschr.
32926         * wcsmbs/test-wcschr.c: New file.
32927         * string/test-strchr.c: Update.
32928         Add wcschr support.
32929         (WIDE): New macro.
32930
32931 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32932
32933         * wcsmbs/Makefile (strop-tests): Add wcslen.
32934         * wcsmbs/test-wcslen.c: New file.
32935         * string/test-strlen.c: Update.
32936         Add wcslen support.
32937         (WIDE): New macro.
32938
32939 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32940
32941         * po/it.po: Update from translation team.
32942
32943 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32944
32945         * sysdeps/x86_64/wcscmp.S: Update.
32946         Fix wrong comparison semantics.
32947         wcscmp shall use signed comparison not unsigned.
32948         Don't use substraction to avoid overflow bug.
32949         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
32950         * wcsmbc/wcscmp.c: Likewise.
32951         * string/test-strcmp.c: Likewise.
32952         Add new tests to check cases with negative values.
32953
32954 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32955
32956         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
32957         * sysdeps/x86_64/dla.h: ...here.  New file.
32958         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
32959         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32960         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32961         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32962         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32963         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
32964         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32965         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32966         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32967
32968 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
32969
32970         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
32971         __ynl_finite aliases.
32972
32973 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
32974
32975         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32976
32977         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
32978         define DLA_FMA.
32979         [DLA_FMA] (EMULV): Use DLA_FMA.
32980         [DLA_FMA] (MUL12): Use EMULV.
32981         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
32982         that are not needed.
32983         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32984         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32985         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32986         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32987         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32988         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32989         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32990
32991 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
32992
32993         * math/s_nan.c: Undef __nan.
32994         * math/s_nanf.c: Undef __nanf.
32995         * math/s_nanl.c: Undef __nanl.
32996         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
32997         "math_private.h".
32998
32999 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33000
33001         * math/s_catan.c: Add branch predictions.
33002         * math/s_catanf.c: Likewise.
33003         * math/s_catanh.c: Likewise.
33004         * math/s_catanhf.c: Likewise.
33005         * math/s_catanhl.c: Likewise.
33006         * math/s_catanl.c: Likewise.
33007         * math/s_cexp.c: Likewise.
33008         * math/s_cexpf.c: Likewise.
33009         * math/s_cexpl.c: Likewise.
33010         * math/s_clog.c: Likewise.
33011         * math/s_clog10.c: Likewise.
33012         * math/s_clog10f.c: Likewise.
33013         * math/s_clog10l.c: Likewise.
33014         * math/s_clogf.c: Likewise.
33015         * math/s_clogl.c: Likewise.
33016         * math/s_csqrt.c: Likewise.
33017         * math/s_csqrtf.c: Likewise.
33018         * math/s_csqrtl.c: Likewise.
33019         * math/s_ctanf.c: Likewise.
33020         * math/s_ctanh.c: Likewise.
33021         * math/s_ctanhf.c: Likewise.
33022         * math/s_ctanhl.c: Likewise.
33023         * math/s_ctanl.c: Likewise.
33024
33025         * math/math_private.h: Define __nan, __nanf, __nanl.
33026         * math/s_cacosh.c: Include <math_private.h>.
33027         * math/s_cacoshl.c: Likewise.
33028         * math/s_casinh.c: Likewise.
33029         * math/s_casinhf.c: Likewise.
33030         * math/s_casinhl.c: Likewise.
33031         * math/s_ccos.c: Rely entire on ccosh.
33032         * math/s_ccosf.c: Rely entire on ccoshf.
33033         * math/s_ccosl.c: Rely entirely on ccoshl.
33034         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
33035         Remove tests for FE_INVALID.
33036         * math/s_ccoshf.c: Likewise.
33037         * math/s_ccoshl.c: Likewise.
33038         * math/s_csin.c: Likewise.
33039         * math/s_csinf.c: Likewise.
33040         * math/s_csinh.c Likewise.
33041         * math/s_csinhf.c: Likewise.
33042         * math/s_csinhl.c: Likewise.
33043         * math/s_csinl.c: Likewise.
33044         * math/s_ctan.c: Likewise.
33045         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
33046         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
33047         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
33048
33049 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
33050
33051         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
33052         compilation problems.
33053
33054         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
33055         __builtin_expect.
33056
33057 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
33058
33059         * sysdeps/i386/configure.in: Test for -mfma4 option.
33060         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
33061         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
33062         COMMON_CPUID_INDEX_80000001.
33063         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
33064         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
33065         use it if FMA3 is not supported.
33066         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
33067
33068         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
33069         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33070
33071 2011-10-20  Andreas Schwab  <schwab@redhat.com>
33072
33073         [BZ #12892]
33074         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
33075         it would create a cycle with a link time dependency.
33076
33077 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
33078
33079         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
33080         instruction.
33081         * string/Makefile (strop-tests): Add rawmemchr.
33082         * string/test-rawmemchr.c: New file.
33083
33084         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
33085         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
33086         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
33087         when compiling str{,n}casecmp and when AVX is available.  Hook up
33088         new optimized code in initializers.
33089
33090 2011-10-19  Andreas Schwab  <schwab@redhat.com>
33091
33092         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
33093         __feraiseexcept instead of feraiseexcept.
33094
33095 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
33096
33097         * math/math_private.h: Define defaults for libc_fetestexcept and
33098         libc_feupdateenv.
33099         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
33100         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
33101         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33102         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33103         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
33104         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33105         libc_fetestexcept and libc_feupdateenv.
33106
33107         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
33108         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
33109         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
33110         * sysdeps/x86_64/fpu/math_private.h: Define special version of
33111         libc_feholdexcept_setround.
33112
33113         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
33114         Add s_nearbyint-c and s_nearbyintf-c.
33115         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
33116         nearbyintf inlines.
33117         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
33118         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
33119         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
33120         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
33121
33122         * math/math_private.h: Define defaults for libc_fegetround,
33123         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
33124         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
33125         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
33126         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
33127         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
33128         standard functions.
33129         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33130         Remove comments and hacks for old compiler versions.
33131         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33132         libc_fegetround, libc_fesetround, libc_feholdexcept, and
33133         libc_feholdexceptl.
33134
33135 2011-10-18  Andreas Schwab  <schwab@redhat.com>
33136
33137         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
33138         (__feraiseexcept_renamed): Add __NTH.
33139         (feraiseexcept): Add __NTH.  Rename local variables to fix
33140         namespace violations.
33141
33142 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
33143
33144         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
33145
33146         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
33147
33148         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
33149         recently added interfaces.
33150         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
33151
33152         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
33153         about macro parameter expansion.
33154
33155         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
33156         __NO_MATH_INLINES is defined.  Cleanups.
33157
33158         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
33159         and __floorf is target has SSE4.1.
33160         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
33161         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
33162         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
33163         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
33164
33165         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
33166         name.
33167         (floorf): Likewise.
33168
33169         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
33170
33171 2011-10-17  Andreas Schwab  <schwab@redhat.com>
33172
33173         * misc/sys/cdefs.h: Fix last change.
33174
33175         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
33176         database lookup.
33177
33178 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
33179
33180         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
33181
33182         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
33183         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
33184         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
33185         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
33186         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
33187         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
33188         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
33189         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
33190         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
33191         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
33192         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
33193         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
33194         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
33195         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
33196         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
33197         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
33198         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
33199         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
33200         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
33201         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
33202         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
33203         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
33204
33205         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
33206         ceil, ceilf, floor, floorf.
33207
33208         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
33209         Perform IRELATIVE relocations last.
33210
33211         * elf/do-rel.h: Add another parameter nrelative, replacing the
33212         local variable with the same name.  Change name of the function
33213         to end in Rel or Rela (uppercase).
33214         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
33215         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
33216         elf_dynamic_do_##reloc function.
33217
33218 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33219
33220         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
33221         is sufficient, at least on modern CPUs.
33222
33223         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
33224
33225         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
33226         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
33227
33228         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
33229         __expl_finite.
33230         * math/bits/math-finite.h: Add entries for exp.
33231         * math/e_expl.c: Add __*_finite alias.
33232         * sysdeps/i386/fpu/e_exp.S: Likewise.
33233         * sysdeps/i386/fpu/e_expf.S: Likewise.
33234         * sysdeps/i386/fpu/e_expl.c: Likewise.
33235         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33236         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33237         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
33238         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
33239         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
33240         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
33241         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
33242
33243         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
33244         is sufficient, at least on modern CPUs.
33245
33246         * ctype/ctype-info.c (__ctype_init): Define.
33247         * include/ctype.h (__ctype_init): Declare.
33248         (__ctype_b_loc): The variable is always initialized.
33249         (__ctype_toupper_loc): Likewise.
33250         (__ctype_tolower_loc): Likewise.
33251         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
33252         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
33253
33254 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
33255
33256         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
33257
33258         * configure.in: Also look in $cxxmachine/include for C++ system
33259         headers.
33260
33261 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33262
33263         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
33264         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
33265         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
33266         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
33267         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
33268         (USE_AS_WMEMCMP): New macro.
33269         Fixing indents.
33270         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
33271         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
33272         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
33273         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
33274         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33275         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
33276         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
33277         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
33278         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
33279         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
33280         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
33281         (USE_AS_WMEMCMP): New macro.
33282         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
33283         * sysdeps/string/test-memcmp.c: Update.
33284         Fix simple_wmemcmp.
33285         Add new tests.
33286         * wcsmbs/wmemcmp.c: Update.
33287         (WMEMCMP): New macro.
33288         Fix overflow bug.
33289
33290 2011-10-12  Andreas Jaeger  <aj@suse.de>
33291
33292         [BZ #13268]
33293         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
33294
33295 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33296
33297         * libio/iofwide.c (do_length): Avoid warning.
33298
33299         * ctype/ctype.h (__isctype_f): Add missing __THROW.
33300
33301 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
33302
33303         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
33304
33305         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
33306         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
33307         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
33308         * sysdeps/i386/i686/fpu/e_log.S: New file.
33309         * sysdeps/i386/i686/fpu/e_logf.S: New file.
33310         * sysdeps/i386/i686/fpu/e_logl.S: New file.
33311
33312         * ctype/ctype.h: Add support for inlined isXXX functions when
33313         compiling C++ code.
33314
33315 2011-10-14  Andreas Schwab  <schwab@redhat.com>
33316
33317         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33318
33319         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
33320
33321 2011-10-13  Roland McGrath  <roland@hack.frob.com>
33322
33323         [BZ #13291]
33324         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
33325
33326 2011-10-13  Andreas Schwab  <schwab@redhat.com>
33327
33328         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
33329         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
33330         feraiseexcept.
33331
33332         * sysdeps/x86_64/memrchr.S: Check for zero size.
33333
33334         * string/stratcliff.c: Add memrchr tests.
33335
33336 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33337
33338         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33339         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
33340         rawmemchr-sse2 rawmemchr-sse2-bsf.
33341         * sysdeps/i386/i686/multiarch/memchr.S: New file.
33342         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
33343         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
33344         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
33345         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
33346         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
33347         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
33348         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
33349         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
33350         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
33351         * string/memrchr.c (MEMRCHR): New macro.
33352
33353 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
33354
33355         Add integration with gcc's -ffinite-math-only and optimize wrapper
33356         functions in libm.
33357         * Versions.def: Define GLIBC_2.15 version for libm.
33358         * math/Makefile (headers): Add bits/math-finite.h.
33359         * math/bits/math-finite.h: New file.
33360         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
33361         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
33362         * math/e_acoshl.c: Add __*_finite alias.
33363         * math/e_acosl.c: Likewise.
33364         * math/e_asinl.c: Likewise.
33365         * math/e_atan2l.c: Likewise.
33366         * math/e_atanhl.c: Likewise.
33367         * math/e_coshl.c: Likewise.
33368         * math/e_exp10.c: Likewise.
33369         * math/e_exp10f.c: Likewise.
33370         * math/e_exp10l.c: Likewise.
33371         * math/e_exp2l.c: Likewise.
33372         * math/e_fmodl.c: Likewise.
33373         * math/e_gammal_r.c: Likewise.
33374         * math/e_hypotl.c: Likewise.
33375         * math/e_j0l.c: Likewise.
33376         * math/e_j1l.c: Likewise.
33377         * math/e_jnl.c: Likewise.
33378         * math/e_lgammal_r.c: Likewise.
33379         * math/e_log10l.c: Likewise.
33380         * math/e_log2l.c: Likewise.
33381         * math/e_logl.c: Likewise.
33382         * math/e_powl.c: Likewise.
33383         * math/e_sinhl.c: Likewise.
33384         * math/e_sqrtl.c: Likewise.
33385         * math/e_scalb.c: Completely rewritten and optimized.
33386         * math/e_scalbf.c: Likewise.
33387         * math/e_scalbl.c: Likewise.
33388         * math/w_acos.c: Likewise.
33389         * math/w_acosf.c: Likewise.
33390         * math/w_acosl.c: Likewise.
33391         * math/w_acosh.c: Likewise.
33392         * math/w_acoshf.c: Likewise.
33393         * math/w_acoshl.c: Likewise.
33394         * math/w_asin.c: Likewise.
33395         * math/w_asinf.c: Likewise.
33396         * math/w_asinl.c: Likewise.
33397         * math/w_atan2.c: Likewise.
33398         * math/w_atan2f.c: Likewise.
33399         * math/w_atan2l.c: Likewise.
33400         * math/w_atanh.c: Likewise.
33401         * math/w_atanhf.c: Likewise.
33402         * math/w_atanhl.c: Likewise.
33403         * math/w_exp10.c: Likewise.
33404         * math/w_exp10f.c: Likewise.
33405         * math/w_exp10l.c: Likewise.
33406         * math/w_fmod.c: Likewise.
33407         * math/w_fmodf.c: Likewise.
33408         * math/w_fmodl.c: Likewise.
33409         * math/w_j0.c: Likewise.
33410         * math/w_j0f.c: Likewise.
33411         * math/w_j0l.c: Likewise.
33412         * math/w_j1.c: Likewise.
33413         * math/w_j1f.c: Likewise.
33414         * math/w_j1l.c: Likewise.
33415         * math/w_jn.c: Likewise.
33416         * math/w_jnf.c: Likewise.
33417         * math/w_log.c: Likewise.
33418         * math/w_logf.c: Likewise.
33419         * math/w_logl.c: Likewise.
33420         * math/w_log10.c: Likewise.
33421         * math/w_log10f.c: Likewise.
33422         * math/w_log10l.c: Likewise.
33423         * math/w_log2.c: Likewise.
33424         * math/w_log2f.c: Likewise.
33425         * math/w_log2l.c: Likewise.
33426         * math/w_pow.c: Likewise.
33427         * math/w_powf.c: Likewise.
33428         * math/w_powl.c: Likewise.
33429         * math/w_remainder.c: Likewise.
33430         * math/w_remainderf.c: Likewise.
33431         * math/w_remainderl.c: Likewise.
33432         * math/w_scalb.c: Likewise.
33433         * math/w_scalbf.c: Likewise.
33434         * math/w_scalbl.c: Likewise.
33435         * math/w_sqrt.c: Likewise.
33436         * math/w_sqrtf.c: Likewise.
33437         * math/w_sqrtl.c: Likewise.
33438         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
33439         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
33440         used.
33441         * math/math_private.h: Declare __kernel_standard_f.
33442         * math/w_cosh.c: Remove cruft and optimize a bit.
33443         * math/w_coshf.c: Likewise.
33444         * math/w_coshl.c: Likewise.
33445         * math/w_exp2.c: Likewise.
33446         * math/w_exp2f.c: Likewise.
33447         * math/w_exp2l.c: Likewise.
33448         * math/w_hypot.c: Likewise.
33449         * math/w_hypotf.c: Likewise.
33450         * math/w_hypotl.c: Likewise.
33451         * math/w_lgamma.c: Likewise.
33452         * math/w_lgamma_r.c: Likewise.
33453         * math/w_lgammaf.c: Likewise.
33454         * math/w_lgammaf_r.c: Likewise.
33455         * math/w_lgammal.c: Likewise.
33456         * math/w_lgammal_r.c: Likewise.
33457         * math/w_sinh.c: Likewise.
33458         * math/w_sinhf.c: Likewise.
33459         * math/w_sinhl.c: Likewise.
33460         * math/w_tgamma.c: Likewise.
33461         * math/w_tgammaf.c: Likewise.
33462         * math/w_tgammal.c: Likewise.
33463         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
33464         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
33465         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
33466         Minor optimizations.  Pretty printing.  Remove cruft.
33467         * sysdeps/i386/fpu/e_acosf.S: Likewise.
33468         * sysdeps/i386/fpu/e_acosh.S: Likewise.
33469         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
33470         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
33471         * sysdeps/i386/fpu/e_acosl.c: Likewise.
33472         * sysdeps/i386/fpu/e_asin.S: Likewise.
33473         * sysdeps/i386/fpu/e_asinf.S: Likewise.
33474         * sysdeps/i386/fpu/e_atan2.S: Likewise.
33475         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
33476         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
33477         * sysdeps/i386/fpu/e_atanh.S: Likewise.
33478         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
33479         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
33480         * sysdeps/i386/fpu/e_exp10.S: Likewise.
33481         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
33482         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
33483         * sysdeps/i386/fpu/e_exp2.S: Likewise.
33484         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
33485         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
33486         * sysdeps/i386/fpu/e_fmod.S: Likewise.
33487         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
33488         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
33489         * sysdeps/i386/fpu/e_hypot.S: Likewise.
33490         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
33491         * sysdeps/i386/fpu/e_log.S: Likewise.
33492         * sysdeps/i386/fpu/e_log10.S: Likewise.
33493         * sysdeps/i386/fpu/e_log10f.S: Likewise.
33494         * sysdeps/i386/fpu/e_log10l.S: Likewise.
33495         * sysdeps/i386/fpu/e_log2.S: Likewise.
33496         * sysdeps/i386/fpu/e_log2f.S: Likewise.
33497         * sysdeps/i386/fpu/e_log2l.S: Likewise.
33498         * sysdeps/i386/fpu/e_logf.S: Likewise.
33499         * sysdeps/i386/fpu/e_logl.S: Likewise.
33500         * sysdeps/i386/fpu/e_pow.S: Likewise.
33501         * sysdeps/i386/fpu/e_powf.S: Likewise.
33502         * sysdeps/i386/fpu/e_powl.S: Likewise.
33503         * sysdeps/i386/fpu/e_remainder.S: Likewise.
33504         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
33505         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
33506         * sysdeps/i386/fpu/e_scalb.S: Likewise.
33507         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
33508         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
33509         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
33510         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
33511         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
33512         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
33513         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
33514         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33515         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
33516         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33517         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
33518         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
33519         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
33520         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
33521         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
33522         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
33523         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
33524         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33525         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
33526         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
33527         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33528         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
33529         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
33530         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33531         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33532         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
33533         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
33534         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
33535         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
33536         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
33537         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
33538         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33539         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
33540         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
33541         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
33542         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
33543         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
33544         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33545         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
33546         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
33547         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
33548         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
33549         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
33550         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
33551         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
33552         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
33553         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
33554         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
33555         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
33556         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
33557         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
33558         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
33559         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
33560         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
33561         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
33562         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
33563         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
33564         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
33565         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33566         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
33567         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
33568         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
33569         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
33570         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
33571         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
33572         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
33573         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
33574         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
33575         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
33576         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
33577         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
33578         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
33579         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
33580         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
33581         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
33582         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
33583         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
33584         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
33585         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
33586         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
33587         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
33588         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
33589         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
33590         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
33591         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
33592         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
33593         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
33594         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
33595         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
33596         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
33597         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
33598         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33599         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
33600         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
33601         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
33602         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
33603         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
33604         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
33605         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
33606         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
33607         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
33608         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
33609         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
33610         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
33611         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
33612         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
33613         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
33614         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
33615         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
33616         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
33617         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
33618         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
33619         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
33620         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
33621         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
33622         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
33623         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
33624         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
33625         (__isnanf): Likewise.
33626         (__isinf_ns): Likewise.
33627         (__isinf_nsf): Likewise.
33628         (__finite): Likewise.
33629         (__finitef): Likewise.
33630         (__ieee754_sqrt): Define as macro.
33631         (__ieee754_sqrtf): Define as macro.
33632         (__ieee754_sqrtl): Define as macro.
33633         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
33634         inlined copy.
33635         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
33636         __FINITE_MATH_ONLY__ consistent.
33637         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
33638
33639 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
33640
33641         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
33642         of rawmemchr.
33643
33644         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
33645
33646 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
33647
33648         * po/ja.po: Update from translation team.
33649
33650 2011-10-08  Roland McGrath  <roland@hack.frob.com>
33651
33652         * locale/programs/locarchive.c (prepare_address_space): New function.
33653         (create_archive, enlarge_archive, open_archive): Use it.
33654
33655         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
33656         inside [SHARED], where it is used.
33657
33658         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
33659
33660         * nss/getent.c (netgroup_keys): Remove unused variable.
33661         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
33662
33663 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
33664
33665         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
33666         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
33667         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
33668         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
33669         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
33670         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
33671         * math/Makefile (libm-calls): Add s_isinf_ns.
33672         * math/divtc3.c: Use __isinf_nsl instead of isinf.
33673         * math/multc3.c: Likewise.
33674         * math/s_casin.c: Likewise.
33675         * math/s_casinf.c: Likewise.
33676         * math/s_casinl.c: Likewise.
33677         * math/s_ccos.c: Likewise.
33678         * math/s_ccosf.c: Likewise.
33679         * math/s_ccosl.c: Likewise.
33680         * math/s_ctan.c: Likewise.
33681         * math/s_ctanf.c: Likewise.
33682         * math/s_ctanh.c: Likewise.
33683         * math/s_ctanhf.c: Likewise.
33684         * math/s_ctanhl.c: Likewise.
33685         * math/s_ctanl.c: Likewise.
33686         * math/w_fmod.c: Likewise.
33687         * math/w_fmodf.c: Likewise.
33688         * math/w_fmodl.c: Likewise.
33689         * math/w_remainder.c: Likewise.
33690         * math/w_remainderf.c: Likewise.
33691         * math/w_remainderl.c: Likewise.
33692         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
33693         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
33694         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
33695         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
33696         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
33697         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
33698         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
33699         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
33700
33701         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
33702         of the number.
33703         * stdio-common/printf_fphex.c: Likewise.
33704         * stdio-common/printf_size.c: Likewise.
33705
33706         * math/e_exp10.c: Include math_private.h using <...> not "...".
33707         * math/e_exp10f.c: Likewise.
33708         * math/e_exp10l.c: Likewise.
33709         * math/e_exp2l.c: Likewise.
33710         * math/e_j0l.c: Likewise.
33711         * math/e_j1l.c: Likewise.
33712         * math/e_jnl.c: Likewise.
33713         * math/e_lgammal_r.c: Likewise.
33714         * math/e_rem_pio2l.c: Likewise.
33715         * math/e_scalb.c: Likewise.
33716         * math/e_scalbf.c: Likewise.
33717         * math/e_scalbl.c: Likewise.
33718         * math/k_cosl.c: Likewise.
33719         * math/k_sinl.c: Likewise.
33720         * math/k_tanl.c: Likewise.
33721         * math/s_cacoshf.c: Likewise.
33722         * math/s_catan.c: Likewise.
33723         * math/s_catanf.c: Likewise.
33724         * math/s_catanh.c: Likewise.
33725         * math/s_catanhf.c: Likewise.
33726         * math/s_catanhl.c: Likewise.
33727         * math/s_catanl.c: Likewise.
33728         * math/s_ccosh.c: Likewise.
33729         * math/s_ccoshf.c: Likewise.
33730         * math/s_ccoshl.c: Likewise.
33731         * math/s_cexp.c: Likewise.
33732         * math/s_cexpf.c: Likewise.
33733         * math/s_cexpl.c: Likewise.
33734         * math/s_clog.c: Likewise.
33735         * math/s_clog10.c: Likewise.
33736         * math/s_clog10f.c: Likewise.
33737         * math/s_clog10l.c: Likewise.
33738         * math/s_clogf.c: Likewise.
33739         * math/s_clogl.c: Likewise.
33740         * math/s_csin.c: Likewise.
33741         * math/s_csinf.c: Likewise.
33742         * math/s_csinh.c: Likewise.
33743         * math/s_csinhf.c: Likewise.
33744         * math/s_csinhl.c: Likewise.
33745         * math/s_csinl.c: Likewise.
33746         * math/s_csqrt.c: Likewise.
33747         * math/s_csqrtf.c: Likewise.
33748         * math/s_csqrtl.c: Likewise.
33749         * math/s_ctan.c: Likewise.
33750         * math/s_ctanf.c: Likewise.
33751         * math/s_ctanh.c: Likewise.
33752         * math/s_ctanhf.c: Likewise.
33753         * math/s_ctanhl.c: Likewise.
33754         * math/s_ctanl.c: Likewise.
33755         * math/s_ldexp.c: Likewise.
33756         * math/s_ldexpf.c: Likewise.
33757         * math/s_ldexpl.c: Likewise.
33758         * math/s_significand.c: Likewise.
33759         * math/s_significandf.c: Likewise.
33760         * math/s_significandl.c: Likewise.
33761         * math/w_acos.c: Likewise.
33762         * math/w_acosf.c: Likewise.
33763         * math/w_acosh.c: Likewise.
33764         * math/w_acoshf.c: Likewise.
33765         * math/w_acoshl.c: Likewise.
33766         * math/w_acosl.c: Likewise.
33767         * math/w_asin.c: Likewise.
33768         * math/w_asinf.c: Likewise.
33769         * math/w_asinl.c: Likewise.
33770         * math/w_atan2.c: Likewise.
33771         * math/w_atan2f.c: Likewise.
33772         * math/w_atan2l.c: Likewise.
33773         * math/w_atanh.c: Likewise.
33774         * math/w_atanhf.c: Likewise.
33775         * math/w_atanhl.c: Likewise.
33776         * math/w_cosh.c: Likewise.
33777         * math/w_coshf.c: Likewise.
33778         * math/w_coshl.c: Likewise.
33779         * math/w_dremf.c: Likewise.
33780         * math/w_exp10.c: Likewise.
33781         * math/w_exp10f.c: Likewise.
33782         * math/w_exp10l.c: Likewise.
33783         * math/w_exp2.c: Likewise.
33784         * math/w_exp2f.c: Likewise.
33785         * math/w_fmod.c: Likewise.
33786         * math/w_fmodf.c: Likewise.
33787         * math/w_fmodl.c: Likewise.
33788         * math/w_hypot.c: Likewise.
33789         * math/w_hypotf.c: Likewise.
33790         * math/w_hypotl.c: Likewise.
33791         * math/w_j0.c: Likewise.
33792         * math/w_j0f.c: Likewise.
33793         * math/w_j0l.c: Likewise.
33794         * math/w_j1.c: Likewise.
33795         * math/w_j1f.c: Likewise.
33796         * math/w_j1l.c: Likewise.
33797         * math/w_jn.c: Likewise.
33798         * math/w_jnf.c: Likewise.
33799         * math/w_jnl.c: Likewise.
33800         * math/w_lgamma.c: Likewise.
33801         * math/w_lgamma_r.c: Likewise.
33802         * math/w_lgammaf.c: Likewise.
33803         * math/w_lgammaf_r.c: Likewise.
33804         * math/w_lgammal.c: Likewise.
33805         * math/w_lgammal_r.c: Likewise.
33806         * math/w_log.c: Likewise.
33807         * math/w_log10.c: Likewise.
33808         * math/w_log10f.c: Likewise.
33809         * math/w_log10l.c: Likewise.
33810         * math/w_log2.c: Likewise.
33811         * math/w_log2f.c: Likewise.
33812         * math/w_log2l.c: Likewise.
33813         * math/w_logf.c: Likewise.
33814         * math/w_logl.c: Likewise.
33815         * math/w_pow.c: Likewise.
33816         * math/w_powf.c: Likewise.
33817         * math/w_powl.c: Likewise.
33818         * math/w_remainder.c: Likewise.
33819         * math/w_remainderf.c: Likewise.
33820         * math/w_remainderl.c: Likewise.
33821         * math/w_scalb.c: Likewise.
33822         * math/w_scalbf.c: Likewise.
33823         * math/w_scalbl.c: Likewise.
33824         * math/w_sinh.c: Likewise.
33825         * math/w_sinhf.c: Likewise.
33826         * math/w_sinhl.c: Likewise.
33827         * math/w_sqrt.c: Likewise.
33828         * math/w_sqrtf.c: Likewise.
33829         * math/w_sqrtl.c: Likewise.
33830         * math/w_tgamma.c: Likewise.
33831         * math/w_tgammaf.c: Likewise.
33832         * math/w_tgammal.c: Likewise.
33833
33834         * po/ja.po: Update from translation team.
33835
33836 2011-09-29  Andreas Jaeger  <aj@suse.de>
33837
33838         [BZ #13179]
33839         * sunrpc/netname.c (netname2host): Fix logic.
33840
33841         [BZ #6779]
33842         [BZ #6783]
33843         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
33844         correctly.
33845         * math/w_remainder.c (__remainder): Likewise.
33846         * math/w_remainderf.c (__remainderf): Likewise.
33847         * math/libm-test.inc (remainder_test): Add test cases.
33848
33849 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33850
33851         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
33852         sdiv_qrnnd.
33853
33854 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
33855
33856         * string/test-memcmp.c: Avoid unncessary #defines.
33857         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
33858
33859 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33860
33861         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
33862         Use new sse2 version for core i3 - i7 as it's faster
33863         than sse42 version.
33864         (bit_Prefer_PMINUB_for_stringop): New.
33865         * sysdeps/x86_64/rawmemchr.S: Update.
33866         Replace with faster SSE2 version.
33867         * sysdeps/x86_64/memrchr.S: New file.
33868         * sysdeps/x86_64/memchr.S: Update.
33869         Replace with faster SSE2 version.
33870
33871 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
33872
33873         * elf/dl-load.c (lose): Add cast to avoid warning.
33874
33875 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
33876
33877         * po/ca.po: Update from translation team.
33878
33879         * inet/getnetgrent_r.c: Hook up nscd.
33880         * nscd/Makefile (routines): Add nscd_netgroup.
33881         (nscd-modules): Add netgroupcache.
33882         (CFLAGS-netgroupcache.c): Define.
33883         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
33884         (cache_search): Add const to second parameter.
33885         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
33886         INNETGR.
33887         (dbs): Add netgrdb entry.
33888         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
33889         (verify_persistent_db): Handle netgrdb.
33890         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
33891         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
33892         GETFDNETGR.
33893         (netgroup_response_header): Define.
33894         (innetgroup_response_header): Define.
33895         (datahead): Add netgroup_response_header and innetgroup_response_header
33896         elements.
33897         * nscd/nscd.conf: Add entries for netgroup cache.
33898         * nscd/nscd.h (dbtype): Add netgrdb.
33899         (_PATH_NSCD_NETGROUP_DB): Define.
33900         (netgroup_iov_disabled): Declare.
33901         (xmalloc, xcalloc, xrealloc): Move declarations here.
33902         (cache_search): Adjust prototype.
33903         Add netgroup-related prototypes.
33904         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
33905         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
33906         (__nscd_innetgr): Declare.
33907         * nscd/selinux.c (perms): Use access_vector_t as element type and
33908         add netgroup-related initializers.
33909         * nscd/netgroupcache.c: New file.
33910         * nscd/nscd_netgroup.c: New file.
33911         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
33912         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
33913         For four parameters use innetgr.
33914         * nss/nss_files/files-init.c: Add definition and callback for netgr.
33915         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
33916         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
33917         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
33918
33919         * nscd/connections.c (register_traced_file): Don't register file
33920         for disabled databases.
33921
33922 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
33923
33924         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
33925
33926         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
33927         from tree and freeing node.
33928
33929 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
33930
33931         * nss/nsswitch.c (__nss_database_lookup): Handle
33932         nss_parse_service_list out of memory case.
33933
33934 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
33935
33936         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
33937         out of memory case.
33938
33939 2011-10-04  Andreas Schwab  <schwab@redhat.com>
33940
33941         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
33942         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
33943         pass it down.
33944         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
33945         elf_machine_rela, elf_machine_lazy_rel.
33946         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
33947         (ELF_DYNAMIC_DO_REL): Likewise.
33948         (ELF_DYNAMIC_DO_RELA): Likewise.
33949         (ELF_DYNAMIC_RELOCATE): Likewise.
33950         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
33951         to ELF_DYNAMIC_DO_REL.
33952         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
33953         (dl_main): In trace mode always set __RTLD_NOIFUNC.
33954         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
33955         elf_machine_rela.
33956         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
33957         skip_ifunc, don't call ifunc function if non-zero.
33958         (elf_machine_rela): Likewise.
33959         (elf_machine_lazy_rel): Likewise.
33960         (elf_machine_lazy_rela): Likewise.
33961         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
33962         (elf_machine_lazy_rel): Likewise.
33963         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
33964         Likewise.
33965         (elf_machine_lazy_rel): Likewise.
33966         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33967         Likewise.
33968         (elf_machine_lazy_rel): Likewise.
33969         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
33970         (elf_machine_lazy_rel): Likewise.
33971         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
33972         (elf_machine_lazy_rel): Likewise.
33973         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
33974         (elf_machine_lazy_rel): Likewise.
33975         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
33976         (elf_machine_lazy_rel): Likewise.
33977         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
33978         (elf_machine_lazy_rel): Likewise.
33979         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
33980         (elf_machine_lazy_rel): Likewise.
33981
33982 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
33983
33984         * nss/nss_files/files-init.c (_nss_files_init): Use static
33985         initialization for all the *_traced_file variables.
33986
33987 2011-09-28  Andreas Schwab  <schwab@redhat.com>
33988
33989         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33990
33991 2011-09-27  Roland McGrath  <roland@hack.frob.com>
33992
33993         [BZ #13226]
33994         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
33995
33996 2011-09-27  Andreas Schwab  <schwab@redhat.com>
33997
33998         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
33999         Reread the line before reparsing it.
34000
34001 2011-09-26  Andreas Schwab  <schwab@redhat.com>
34002
34003         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
34004
34005 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
34006             Maxim Kuvyrkov  <maxim@codesourcery.com>
34007             Joseph Myers  <joseph@codesourcery.com>
34008
34009         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
34010         if needed for __stack_chk_guard.
34011
34012 2011-09-19  Roland McGrath  <roland@hack.frob.com>
34013
34014         * sysdeps/posix/spawni.c (script_execute): Always define it.
34015         It will be optimized away if unused.
34016         (maybe_script_execute): New function.
34017         (__spawni): Call it.
34018
34019         * Makerules: Don't include tls.make.
34020         (config-tls): Always set to thread.
34021         * tls.make.c: File removed.
34022
34023 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
34024
34025         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
34026         * config.make.in (CPPFLAGS-config): New substituted variable.
34027
34028 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34029
34030         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
34031
34032         [BZ #13192]
34033         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
34034         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
34035
34036 2011-09-15  Roland McGrath  <roland@hack.frob.com>
34037
34038         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
34039         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
34040         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
34041         (CALL_FAIL): Likewise.
34042         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
34043         (CALL_FAIL): Macro removed.
34044         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
34045
34046 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34047
34048         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
34049         for __FINITE_MATH_ONLY__ == 1.
34050
34051 2011-09-15  Andreas Schwab  <schwab@redhat.com>
34052
34053         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
34054         __ieee754_sqrt instead of sqrt.
34055         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
34056         __ieee754_sqrtf instead of sqrtf.
34057         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
34058         __floorf instead of floorf.
34059         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
34060         __floorf, __truncf instead of floorf, truncf.
34061
34062 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
34063
34064         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
34065
34066         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
34067         __extern_always_inline.
34068         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
34069         32-bit.
34070
34071 2011-09-14  Andreas Schwab  <schwab@redhat.com>
34072
34073         * elf/rtld.c (dl_main): Also relocate in dependency order when
34074         doing symbol dependency testing.
34075
34076 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
34077
34078         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34079         Always define `refsym'.
34080
34081 2011-09-13  Andreas Schwab  <schwab@redhat.com>
34082
34083         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
34084         (__FD_ELT): Renamed from __FDELT.
34085         * misc/bits/select2.h (__FD_ELT): Likewise.
34086         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
34087         __FD_MASK instead of __FDELT, __FDMASK.
34088         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34089         Likewise.
34090         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34091         Likewise.
34092
34093         * elf/Makefile (gen-ldd): Fix pattern.
34094
34095         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
34096         (init_tls): Likewise.
34097
34098 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
34099
34100         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
34101
34102 2011-09-12  Andreas Schwab  <schwab@redhat.com>
34103
34104         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
34105         `struct cmsghdr *' instead of `void *'.
34106         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
34107         Likewise.
34108
34109 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
34110
34111         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
34112         if non-absolute.
34113         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
34114         ldd_rewrite_script.
34115
34116 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
34117
34118         * configure.in: Remove --with-tls option.
34119         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
34120         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
34121         out in case it is missing.
34122         * sysdeps/ia64/elf/configure.in: Likewise.
34123         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
34124         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
34125         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
34126         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
34127         * sysdeps/sh/elf/configure.in: Likewise.
34128         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
34129         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
34130         * sysdeps/x86_64/elf/configure.in: Likewise.
34131         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
34132         * sysdeps/mach/hurd/tls.h: Likewise.
34133
34134         [BZ #13067]
34135         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
34136
34137         [BZ #13090]
34138         * configure.in: Fix use of AC_INIT.
34139
34140         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
34141
34142 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
34143
34144         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
34145         __set_errno.
34146         * malloc/hooks.c: Likewise.
34147
34148         [BZ #11929]
34149         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
34150         variables statically.
34151         (narenas): Initialize.
34152         (list_lock): Initialize.
34153         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
34154         initializtion of main_arena and list_lock.  Small cleanups.
34155         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
34156         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
34157         Add initializers to main_arena and mp_.
34158         (malloc_state): Remove pagesize member.  Change all users to use
34159         GLRO(dl_pagesize).
34160
34161         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
34162         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
34163         is always initialized.
34164
34165         * malloc/malloc.c: Removed unused configurations and dead code.
34166         * malloc/arena.c: Likewise.
34167         * malloc/hooks.c: Likewise.
34168         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
34169
34170         * include/tls.h: Removed.  USE___THREAD must always be defined.
34171         * bits/libc-tsd.h: Don't handle !USE___THREAD.
34172         * elf/dl-libc.c: Likewise.
34173         * elf/dl-tsd.c: Likewise.
34174         * include/errno.h: Likewise.
34175         * include/netdb.h: Likewise.
34176         * include/resolv.h: Likewise.
34177         * inet/herrno-loc.c: Likewise.
34178         * inet/herrno.c: Likewise.
34179         * malloc/arena.c: Likewise.
34180         * malloc/hooks.c: Likewise.
34181         * malloc/malloc.c: Likewise.
34182         * resolv/res-state.c: Likewise.
34183         * resolv/res_libc.c: Likewise.
34184         * sysdeps/i386/dl-machine.h: Likewise.
34185         * sysdeps/ia64/dl-machine.h: Likewise.
34186         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
34187         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
34188         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
34189         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
34190         * sysdeps/sh/dl-machine.h: Likewise.
34191         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
34192         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
34193         * sysdeps/unix/i386/sysdep.S: Likewise.
34194         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
34195         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
34196         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
34197         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
34198         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
34199         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
34200         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
34201         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
34202         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34203         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
34204         * sysdeps/unix/x86_64/sysdep.S: Likewise.
34205         * sysdeps/x86_64/dl-machine.h: Likewise.
34206         * tls.make.c: Likewise.
34207
34208         * configure.in: Remove --with-__thread option.  Make tests for
34209         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
34210         tls_model attribute fail if no support is available.  Remove
34211         USE_IN_LIBIO.
34212         * Makeconfig: Adjust for dropped configure option.  All features are
34213         now mandatory.
34214         * Makerules: Likewise.
34215         * Versions.def: Likewise.
34216         * argp/argp-fmtstream.c: Likewise.
34217         * argp/argp-fmtstream.h: Likewise.
34218         * argp/argp-help.c: Likewise.
34219         * assert/assert.c: Likewise.
34220         * config.h.in: Likewise.
34221         * config.make.in: Likewise.
34222         * configure: Likewise.
34223         * configure.in: Likewise.
34224         * csu/Versions: Likewise.
34225         * csu/init.c: Likewise.
34226         * elf/tst-audit2.c: Likewise.
34227         * elf/tst-tls10.c: Likewise.
34228         * elf/tst-tls10.h: Likewise.
34229         * elf/tst-tls11.c: Likewise.
34230         * elf/tst-tls12.c: Likewise.
34231         * elf/tst-tls14.c: Likewise.
34232         * elf/tst-tlsmod11.c: Likewise.
34233         * elf/tst-tlsmod12.c: Likewise.
34234         * elf/tst-tlsmod13.c: Likewise.
34235         * elf/tst-tlsmod13a.c: Likewise.
34236         * elf/tst-tlsmod14a.c: Likewise.
34237         * elf/tst-tlsmod15b.c: Likewise.
34238         * elf/tst-tlsmod16a.c: Likewise.
34239         * elf/tst-tlsmod16b.c: Likewise.
34240         * elf/tst-tlsmod7.c: Likewise.
34241         * elf/tst-tlsmod8.c: Likewise.
34242         * elf/tst-tlsmod9.c: Likewise.
34243         * gmon/gmon.c: Likewise.
34244         * grp/fgetgrent_r.c: Likewise.
34245         * grp/putgrent.c: Likewise.
34246         * hurd/fopenport.c: Likewise.
34247         * include/libc-symbols.h: Likewise.
34248         * include/tls.h: Likewise.
34249         * intl/gettextP.h: Likewise.
34250         * intl/loadinfo.h: Likewise.
34251         * locale/global-locale.c: Likewise.
34252         * locale/localeinfo.h: Likewise.
34253         * mach/devstream.c: Likewise.
34254         * malloc/arena.c: Likewise.
34255         * malloc/set-freeres.c: Likewise.
34256         * misc/err.c: Likewise.
34257         * misc/getttyent.c: Likewise.
34258         * misc/mntent_r.c: Likewise.
34259         * posix/getopt.c: Likewise.
34260         * posix/wordexp.c: Likewise.
34261         * pwd/fgetpwent_r.c: Likewise.
34262         * resolv/Versions: Likewise.
34263         * resolv/res_hconf.c: Likewise.
34264         * shadow/fgetspent_r.c: Likewise.
34265         * shadow/putspent.c: Likewise.
34266         * stdio-common/printf_fphex.c: Likewise.
34267         * stdio-common/tmpfile.c: Likewise.
34268         * stdlib/abort.c: Likewise.
34269         * stdlib/fmtmsg.c: Likewise.
34270         * sunrpc/auth_unix.c: Likewise.
34271         * sunrpc/clnt_perr.c: Likewise.
34272         * sunrpc/clnt_tcp.c: Likewise.
34273         * sunrpc/clnt_udp.c: Likewise.
34274         * sunrpc/clnt_unix.c: Likewise.
34275         * sunrpc/openchild.c: Likewise.
34276         * sunrpc/svc_simple.c: Likewise.
34277         * sunrpc/svc_tcp.c: Likewise.
34278         * sunrpc/svc_udp.c: Likewise.
34279         * sunrpc/svc_unix.c: Likewise.
34280         * sunrpc/xdr.c: Likewise.
34281         * sunrpc/xdr_array.c: Likewise.
34282         * sunrpc/xdr_rec.c: Likewise.
34283         * sunrpc/xdr_ref.c: Likewise.
34284         * sunrpc/xdr_stdio.c: Likewise.
34285
34286 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34287
34288         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34289
34290 2011-07-03  Andreas Jaeger  <aj@suse.de>
34291
34292         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
34293         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
34294         regenerate with gen-libm-tests.pl.
34295
34296 2010-05-12  Petr Baudis  <pasky@suse.cz>
34297
34298         [BZ #11589]
34299         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
34300         around j0() zero points by switching to j1().
34301         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
34302         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
34303         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
34304         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
34305
34306 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34307
34308         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
34309         instead of 0.
34310         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
34311         instead of 0.
34312         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
34313         Patch in part by Pavel Roskin <proski@gnu.org>.
34314
34315         [BZ #13138]
34316         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
34317         realloc.
34318         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
34319         Free memory block if necessary.
34320
34321         [BZ #12847]
34322         * libio/genops.c (INTDEF): For string streams the _lock pointer can
34323         be NULL.  Don't lock in this case.
34324
34325 2011-09-09  Roland McGrath  <roland@hack.frob.com>
34326
34327         * elf/elf.h (ELFOSABI_GNU): New macro.
34328         (ELFOSABI_LINUX): Define to that.
34329
34330 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
34331
34332         * string/strncat.c (strncat): Undef the symbol in case it has been
34333         defined in bits/string.h.
34334
34335 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34336
34337         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
34338
34339         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
34340         link map.
34341
34342 2011-08-17  Andreas Jaeger  <aj@suse.de>
34343
34344         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
34345
34346 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
34347             Ian Lance Taylor  <iant@google.com>
34348
34349         * math/libm-test.inc (lround_test): New testcase.
34350         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
34351
34352 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
34353
34354         * Makefile: Remove support for automatic cvs check-ins.
34355         * Makerules: Likewise.
34356         * config.make.in: Likewise.
34357         * configure.in: Likewise.
34358         * intl/Makefile: Likewise.
34359         * locale/Makefile: Likewise.
34360         * po/Makefile: Likewise.
34361         * posix/Makefile: Likewise.
34362         * sysdeps/gnu/Makefile: Likewise.
34363         * sysdeps/mach/hurd/Makefile: Likewise.
34364         * sysdeps/sparc/sparc32/Makefile: Likewise.
34365
34366         [BZ #13118]
34367         * posix/Makefile (bug-regex32-ENV): Define.
34368         Patch by John Stanley <jpsinthemix@verizon.net>.
34369
34370         * misc/Makefile (headers): Add bits/select2.h.
34371         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
34372         * misc/bits/select2.h: New file.
34373         * include/bits/select2.h: New file.
34374         * debug/Makefile (routines): Add fdelt_chk.
34375         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
34376         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
34377         FD_ISSET.
34378         * debug/fdelt_chk.c: New file.
34379
34380         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
34381         * wcsmbs/test-wmemcmp.c: Likewise.
34382         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
34383         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
34384
34385 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34386
34387         * string/Makefile (strop-tests): Add memcmp.
34388         * string/test-wmemcmp.c: New file.
34389         * string/test-memcmp.c: Add wmemcmp support.
34390
34391 2011-09-08  Roland McGrath  <roland@hack.frob.com>
34392
34393         [BZ #13153]
34394         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
34395         2011-07-19 change.
34396
34397         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
34398         garbage value in a __mach_port_mod_refs call in the cases of the
34399         task-self and thread-self ports.
34400
34401 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34402
34403         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
34404
34405 2011-09-08  Andreas Schwab  <schwab@redhat.com>
34406
34407         * elf/dl-load.c (lose): Check for non-null L.
34408
34409 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34410
34411         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
34412
34413         * elf/dl-libc.c (dlerror_run): Pass back error code from
34414         dl_catch_error.
34415
34416         [BZ #13123]
34417         * elf/dl-load.c (lose): Free l_origin if it is valid.
34418
34419         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
34420         names.
34421         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
34422         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34423         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34424         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34425         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
34426         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
34427
34428 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34429
34430         * sysdeps/powerpc/fpu/e_hypot.c: New file.
34431         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
34432         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
34433         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
34434         * sysdeps/powerpc/fpu/k_cosf.c: New file.
34435         * sysdeps/powerpc/fpu/k_sinf.c: New file.
34436         * sysdeps/powerpc/fpu/s_cosf.c: New file.
34437         * sysdeps/powerpc/fpu/s_sinf.c: New file.
34438         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
34439         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
34440
34441 2011-08-15  Alan Modra  <amodra@gmail.com>
34442
34443         [BZ #13092]
34444         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
34445         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
34446         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
34447         ppc_mcount to static-only-routines.
34448         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
34449         __mcount_internal.
34450         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
34451         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
34452
34453 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
34454
34455         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
34456         for finite and infinity parameters.
34457
34458 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
34459
34460         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
34461         and add nop instructions for throughput optimization.
34462         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
34463
34464 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
34465
34466         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
34467         aligned copy for power7 with vector-scalar instructions.
34468         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
34469
34470 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
34471
34472         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
34473         AVX check.
34474
34475 2011-09-07  Andreas Schwab  <schwab@redhat.com>
34476
34477         [BZ #13144]
34478         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
34479         last change.
34480
34481 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34482
34483         * sysdeps/unix/sysv/linux/x86_64/init-first.c
34484         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
34485         syscall wrapper around clock_gettime in __vdso_clock_gettime.
34486         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
34487         clock_gettime.
34488
34489 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34490
34491         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
34492         Forgot to demangle the pointer.
34493
34494         * sysdeps/i386/sysdep.h: Define atom_text_section.
34495         * sysdeps/x86_64/sysdep.h: Likewise.
34496         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
34497         section with atom_text_section.
34498         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34499         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34500         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
34501         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34502         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
34503
34504         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
34505         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
34506         already be defined.  Change to take two parameters and don't assign
34507         result to variable.  Adjust all users.
34508         Define INTERNAL_GETTIME if not already defined.
34509         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
34510         call.
34511         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
34512         HAVE_CLOCK_GETTIME_VSYSCALL.
34513         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
34514
34515         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
34516         gettimeofday vsyscall, just use time.
34517
34518 2011-09-06  Andreas Schwab  <schwab@redhat.com>
34519
34520         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
34521         <errno.h>.
34522
34523 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34524
34525         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
34526         syscall on x86-64.
34527         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
34528         syscall.
34529         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
34530         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
34531         syscall if possible.
34532
34533 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34534
34535         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
34536         e_ident.  Don't pass to find_mapsXX.
34537         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
34538
34539 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34540
34541         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34542         strchr-sse2-no-bsf strrchr-sse2-no-bsf
34543         * sysdeps/x86_64/multiarch/strchr.S: Update.
34544         Check bit_slow_BSF bit.
34545         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
34546         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
34547         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
34548
34549 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34550
34551         [BZ #13134]
34552         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
34553         before glibc 2.15.
34554         (tryshell): Define.
34555         (__spawni): Change last parameter to be flag.  Test
34556         SPAWN_XFLAGS_USE_PATH flag to use path or not.
34557         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
34558         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
34559         * posix/spawni.c: Likewise.
34560         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
34561         * posix/spawnp.c: Likewise.  Change normal version to use
34562         SPAWN_XFLAGS_USE_PATH.
34563         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
34564         SPAWN_XFLAGS_TRY_SHELL.
34565
34566         [BZ #13150]
34567         * posix/glob.h: Remove gcc 1.x support.
34568
34569         [BZ #13068]
34570         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
34571
34572 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34573
34574         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34575         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
34576         strrchr-sse2-bsf
34577         * sysdeps/i386/i686/multiarch/strchr.S: New file.
34578         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
34579         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
34580         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
34581         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
34582         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
34583
34584 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34585
34586         * sysdeps/x86_64/wcscmp.S: New file.
34587
34588         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
34589         wcscmp-c wcscmp-sse2
34590         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
34591         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
34592         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
34593         * wcsmbs/wcscmp.c: Allow renaming.
34594
34595 2011-09-05  David S. Miller  <davem@davemloft.net>
34596
34597         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
34598         stack slot, rather than the struct return pointer slot.
34599         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
34600         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
34601         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
34602         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
34603
34604 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34605
34606         * po/ja.po: Update from translation team.
34607
34608         [BZ #13144]
34609         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
34610         kernel in 64-bit binaries.
34611
34612 2011-09-01  David S. Miller  <davem@davemloft.net>
34613
34614         * elf/elf.h (HWCAP_SPARC_*): Move to..
34615         * sysdeps/sparc/sysdep.h: this new file and add new values.
34616         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
34617         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
34618         _DL_HWCAP_COUNT to 24.
34619         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
34620         entries.
34621         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
34622         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
34623         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
34624         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
34625         instead of magic constants.
34626         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
34627
34628 2011-08-31  David S. Miller  <davem@davemloft.net>
34629
34630         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
34631         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
34632         Reimplement to do errno handling inline.
34633         (SYSCALL_ERROR_HANDLER): New macro.
34634         (__SYSCALL_STRING): Do not do errno handling in asm.
34635         (__CLONE_SYSCALL_STRING): Delete.
34636         (__INTERNAL_SYSCALL_STRING): Delete.
34637         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
34638         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
34639         (PSEUDO): Reimplement to do errno handling inline.
34640         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
34641         (SYSCALL_ERROR_HANDLER): New macro.
34642         (__SYSCALL_STRING): Do not do errno handling in asm.
34643         (__CLONE_SYSCALL_STRING): Delete.
34644         (__INTERNAL_SYSCALL_STRING): Delete.
34645         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
34646         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
34647         i386.
34648         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
34649         (inline_syscall*): Add 'err' argument.
34650         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
34651         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
34652         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
34653         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
34654
34655         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
34656         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34657
34658 2011-08-30  Andreas Schwab  <schwab@redhat.com>
34659
34660         * elf/rtld.c (dl_main): Relocate objects in dependency order.
34661
34662 2011-08-29  Jiri Olsa <jolsa@redhat.com>
34663
34664         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
34665         directive.
34666
34667 2011-08-24  David S. Miller  <davem@davemloft.net>
34668
34669         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
34670
34671 2011-08-24  Andreas Schwab  <schwab@redhat.com>
34672
34673         * elf/Makefile: Add rules to build and run unload8 test.
34674         * elf/unload8.c: New file.
34675         * elf/unload8mod1.c: New file.
34676         * elf/unload8mod1x.c: New file.
34677         * elf/unload8mod2.c: New file.
34678         * elf/unload8mod3.c: New file.
34679
34680         * elf/dl-close.c (_dl_close_worker): Reset private search list if
34681         it wasn't used.
34682
34683 2011-08-23  David S. Miller  <davem@davemloft.net>
34684
34685         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
34686         subtract stack bias.
34687         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
34688         %sp not %fp in calculations.
34689         (_JMPBUF_UNWINDS_ADJ): Likewise.
34690
34691         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
34692         (aio_suspend): Call it to force an exception region around the
34693         AIO_MISC_WAIT() invocation.
34694
34695 2011-08-23  Andreas Schwab  <schwab@redhat.com>
34696
34697         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
34698         backslash.
34699
34700 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
34701
34702         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
34703         protection macro.
34704         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
34705         and <dl-machine.h>.
34706         (Elf64_FuncDesc): Remove.
34707
34708 2011-08-22  David S. Miller  <davem@davemloft.net>
34709
34710         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
34711         sigaltstack check, add missing cfi directives.
34712         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
34713         missing cfi directives, and sigaltstack handling.
34714
34715 2011-08-16  Andreas Schwab  <schwab@redhat.com>
34716
34717         [BZ #11724]
34718         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
34719         object is seen twice.
34720         * elf/dl-fini.c (_dl_sort_fini): Likewise.
34721
34722         * elf/Makefile (distribute): Add tst-initorder2.c.
34723         (tests): Add tst-initorder2.
34724         (modules-names): Add tst-initorder2a tst-initorder2b
34725         tst-initorder2c tst-initorder2d.  Add rules to build them.
34726         ($(objpfx)tst-initorder2.out): New rule.
34727         * elf/tst-initorder2.c: New file.
34728         * elf/tst-initorder2.exp: New file.
34729
34730 2011-08-22  Andreas Schwab  <schwab@redhat.com>
34731
34732         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
34733
34734         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
34735         dependencies back to end of function.
34736
34737         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
34738         $(elfobjdir)/ld.so.
34739
34740 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
34741
34742         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
34743         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
34744         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
34745         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
34746         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
34747         of __vdso_gettimeofday.
34748         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
34749         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
34750         attribute_hidden.
34751         (_libc_vdso_platform_setup): Remove initialization of
34752         __vdso_gettimeofday and __vdso_time.
34753
34754 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34755
34756         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
34757         and fgetc_unlocked.
34758         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
34759         getc_unlocked.
34760
34761         * elf/dl-open.c (add_to_global): Report additions to the global scope
34762         for LD_DEBUG=scopes.
34763         (dl_open_worker): Also print scope of newly loaded dependencies.
34764         (_dl_show_scope): Indicate if there is no scope.
34765
34766         [BZ #13114]
34767         * stdio-common/Makefile (tests): Add bug24.
34768         * stdio-common/bug24.c: New file.
34769
34770 2011-08-19  Andreas Jaeger  <aj@suse.de>
34771
34772         [BZ #13114]
34773         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
34774         non-existant file when using close-on-exec mode.
34775
34776 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34777
34778         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
34779         the very first instruction.
34780
34781         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
34782         the CFI state in the end.
34783         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
34784         inclusion of dl-trampoline.h.
34785         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
34786
34787 2011-08-19  Andreas Schwab  <schwab@redhat.com>
34788
34789         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
34790         expectations for long double.
34791
34792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
34793         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
34794
34795 2011-08-14  David S. Miller  <davem@davemloft.net>
34796
34797         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
34798         artificual limit depends upon the system page size.
34799
34800 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34801
34802         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
34803         * resolv/Makefile: Define CFLAGS-libresolv.
34804
34805 2011-08-17  Andreas Schwab  <schwab@redhat.com>
34806
34807         * nss/makedb.c (compute_tables): Make variables used in nested
34808         function static.
34809
34810 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34811
34812         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
34813         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
34814         if buffer was too small.
34815
34816         * elf/pldd.c (main): Attach to all threads in the process.
34817         Rewrite /proc handling to use *at functions.
34818
34819 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
34820
34821         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
34822         specifies first scope to show.
34823         (dl_open_worker): Update callers.  Move printing scope of new
34824         object to before the relocation.
34825         * elf/rtld.c (dl_main): Update _dl_show_scope call.
34826         * sysdeps/generic/ldsodefs.h: Update declaration.
34827
34828         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
34829         string for the scope number.
34830
34831 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
34832
34833         * nscd/servicescache.c (cache_addserv): Make sure written is always
34834         initialized.
34835
34836 2011-08-14  Roland McGrath  <roland@hack.frob.com>
34837
34838         * sysdeps/i386/i486/bits/atomic.h
34839         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
34840         statement expression, so as to suppress "set but not used" warning.
34841         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
34842
34843         * string/strncat.c (STRNCAT): Use prototype definition.
34844
34845         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
34846         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
34847         -Iprograms here.
34848         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
34849         (localedef-modules): Add localedef.
34850         (locale-modules): Add locale.
34851
34852         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
34853         * elf/rtld.c (dl_main): Invert order of assignment in last change,
34854         to avoid a warning.
34855
34856 2011-08-14  David S. Miller  <davem@davemloft.net>
34857
34858         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
34859         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
34860
34861 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
34862
34863         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
34864         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
34865         * elf/rtld.c (dl_main): Set l_name of vDSO.
34866         Call _dl_show_scope when DL_DEBUG_SCOPES.
34867         (process_dl_debug): Recognize scopes flag and also set it for all.
34868         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
34869         Declare _dl_show_scope.
34870
34871         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
34872         (do_dlopen): Pass caller_dlopen to dl_open.
34873         (__libc_dlopen_mode): Initialize caller_dlopen.
34874
34875         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
34876         of libc.  Make tolower call locale-independent.  Optimize a bit by
34877         using isdigit instead of isalnum.
34878         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
34879
34880 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
34881
34882         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
34883         was a dependency or dynamically loaded.
34884
34885 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
34886
34887         * intl/l10nflist.c: Allow architecture-specific pop function.
34888         * sysdeps/x86_64/l10nflist.c: New file.
34889
34890         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
34891         classification.
34892
34893 2011-08-10  Andreas Schwab  <schwab@redhat.com>
34894
34895         * include/dirent.h: Add libc_hidden_proto for scandirat and
34896         scandirat64.  Don't declare __scandirat64.
34897         * dirent/scandirat.c: Add libc_hidden_def.
34898         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
34899         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
34900
34901 2011-08-10  David S. Miller  <davem@davemloft.net>
34902
34903         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
34904         enum.
34905         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34906         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34907         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34908
34909 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
34910
34911         * Versions.def [libc]: Add GLIBC_2.15.
34912         * dirent/Makefile (routines): Add scandirat and scandirat64.
34913         * dirent/Versions [libc]: Export scandirat and scandirat64 for
34914         GLIBC_2.15.
34915         * dirent/dirent.h: Declare scandirat and scandirat64.
34916         * dirent/scandirat.c: New file.
34917         * dirent/scandirat64.c: New file.
34918         * sysdeps/wordsize-64/scandirat.c: New file.
34919         * sysdeps/wordsize-64/scandirat64.c: New file.
34920         * dirent/opendir.c: Define opendirat.
34921         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
34922         using scandirat.
34923         * dirent/scandir64.c: Adjust for scandir.c change.
34924         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
34925         __scandirat64, and __scandir_cancel_handler.
34926         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
34927         additional parameter and use openat instead of open (outside of ld.so).
34928         Add new __opendir as wrapper around __opendirat.
34929         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
34930         here without requiring old scandirat implementation.
34931
34932 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
34933
34934         * dirent/scandir.c (cancel_handler): Renamed to
34935         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
34936         defined.  Adjust users.
34937         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
34938         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
34939
34940 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
34941
34942         * string/test-string.h (IMPL): Use __STRING to expand name and then
34943         stringify it.
34944
34945         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
34946         of cleanups.
34947
34948 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34949
34950         * string/Makefile: Update.
34951         (strop-tests): Append strncat.
34952         * string/test-wcscmp.c: New file.
34953         New comprehensive test for wcscmp.
34954         * string/test-strcmp.c: Update.
34955         (WIDE): New define.
34956
34957 2011-07-22  Andreas Schwab  <schwab@redhat.com>
34958
34959         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
34960         line.
34961
34962 2011-07-26  Andreas Schwab  <schwab@redhat.com>
34963
34964         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
34965         encoding to ACE if AI_IDN.
34966
34967 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
34968
34969         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
34970         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
34971
34972 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34973
34974         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
34975         Fix overflow bug in strncat.
34976         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
34977
34978         * string/test-strncat.c: Update.
34979         Add new tests for checking overflow bugs.
34980
34981 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34982
34983         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34984         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
34985         * sysdeps/i386/i686/multiarch/strcat.S: New file.
34986         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
34987         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
34988         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
34989         * sysdeps/i386/i686/multiarch/strncat.S: New file.
34990         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
34991         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
34992
34993         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
34994         (USE_AS_STRCAT): Define.
34995         Add strcat and strncat support.
34996         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34997
34998 2011-07-25  Andreas Schwab  <schwab@redhat.com>
34999
35000         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
35001         __n bigger than INT_MAX+1.
35002         (__strncmp_g): Likewise.
35003
35004 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
35005
35006         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
35007         * libio/stido.h: Likewise.
35008
35009         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
35010         (AF_NFC): Define.
35011         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
35012         (AF_NFC): Define.
35013
35014         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
35015         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35016         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35017         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35018         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35019
35020         [BZ #13021]
35021         * scripts/test-installation.pl: Don't expect libnss_test1 to be
35022         installed.
35023
35024         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
35025         typo.
35026         (_dl_x86_64_save_sse): Likewise.
35027
35028 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
35029
35030         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
35031         OSXSAVE.
35032         (_dl_x86_64_save_sse): Likewise.
35033
35034         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
35035
35036         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
35037
35038 2011-07-21  Andreas Schwab  <schwab@redhat.com>
35039
35040         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
35041         change.
35042         (_dl_x86_64_save_sse): Use correct AVX check.
35043
35044 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35045
35046         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
35047         bug in strncpy/strncat.
35048         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
35049
35050 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
35051
35052         * string/tester.c (test_strcat): Add tests for different alignments
35053         of source and destination.
35054         (test_strncat): Likewise.
35055
35056 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35057
35058         [BZ #12852]
35059         * posix/glob.c (glob): Check passed in values before using them in
35060         expressions to avoid some overflows.
35061         (glob_in_dir): Likewise.
35062
35063         [BZ #13007]
35064         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
35065         check for AVX enablement so that we don't crash with old kernels and
35066         new hardware.
35067         * elf/tst-audit4.c: Add same checks here.
35068         * elf/tst-audit6.c: Likewise.
35069
35070         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
35071
35072 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
35073
35074         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
35075
35076 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35077
35078         * po/cs.po: Update from translation team.
35079         * po/bg.po: Likewise.
35080
35081 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
35082
35083         * misc/sys/cdefs.h: Add support for const attribute.
35084         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
35085         to gnu_dev_{major,minor,makedev} functions.
35086
35087 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
35088
35089         * intl/dcigettext.c (get_output_charset): Add missing bracket.
35090
35091 2011-07-20  Andreas Schwab  <schwab@redhat.com>
35092
35093         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
35094         strlen results.
35095
35096 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35097
35098         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
35099         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
35100         register in order to avoid conflicts with the soft frame pointer
35101         being held in r11 when necessary.
35102         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
35103         (INTERNAL_VSYSCALL_NCS): Likewise.
35104
35105 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
35106
35107         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
35108         * elf/dl-fini.c (_dl_fini): Adjust caller.
35109         * elf/dl-close.c (_dl_close_worker): Likewise.
35110         * sysdeps/generic/ldsodefs.h: Adjust declaration.
35111
35112 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35113
35114         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
35115         "aux_cache->nlibs < 0".
35116
35117         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
35118         in the reload-count case.
35119
35120 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35121
35122         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35123         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
35124         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
35125         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
35126         * sysdeps/x86_64/multiarch/strcat.S: New file.
35127         * sysdeps/x86_64/multiarch/strncat.S: New file.
35128         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
35129         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
35130         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
35131         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
35132         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
35133         (USE_AS_STRCAT): Define.
35134         Add strcat and strncat support.
35135         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
35136         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
35137         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
35138         * string/strncat.c: Update.
35139         (USE_AS_STRNCAT): Define.
35140         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35141         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
35142         and i7.
35143         * sysdeps/x86_64/multiarch/init-arch.h
35144         (bit_Prefer_PMINUB_for_stringop): New.
35145         (index_Prefer_PMINUB_for_stringop): Likewise.
35146         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
35147         bit_Prefer_PMINUB_for_stringop.
35148
35149 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35150
35151         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
35152         buffer64.
35153         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
35154         of casting of buffer.
35155         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
35156         buffer32 and buffer64.
35157         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
35158         writes instead of casting of buffer.
35159         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
35160         buffer32.
35161         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
35162         casting of buffer.
35163
35164 2011-07-19  Andreas Schwab  <schwab@redhat.com>
35165
35166         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
35167
35168 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35169
35170         * nscd/nscd.c (termination_handler): Don't do anything for a database
35171         if it has not yet been initialized.
35172
35173 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35174
35175         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35176
35177 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35178
35179         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35180
35181 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35182
35183         * po/nl.po: Update from translation team.
35184         * po/sv.po: Likewise.
35185
35186 2011-07-16  Roland McGrath  <roland@hack.frob.com>
35187
35188         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
35189         now disallowed by GCC.
35190
35191         * configure.in (use-default-link): Default to yes if a test -shared
35192         link meets our qualifications.
35193         * configure: Regenerated.
35194
35195         * config.make.in (output-format): New variable.
35196         * configure.in: Check for ld --print-output-format support.
35197         * configure: Regenerated.
35198         * Makerules ($(common-objpfx)format.lds)
35199         [$(output-format) != unknown]: Just use $(output-format),
35200         instead of the linker-script munging.
35201
35202 2011-07-14  Roland McGrath  <roland@hack.frob.com>
35203
35204         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
35205         of $(common-objpfx)shlib.lds.
35206         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
35207
35208         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
35209         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
35210
35211         * configure.in (-z relro check): Adjust test code to add a large
35212         writable data section after it.
35213         * configure: Regenerated.
35214
35215 2011-07-11  Roland McGrath  <roland@hack.frob.com>
35216
35217         * configure.in (-z relro check): Fix test code to make the variable
35218         truly const.
35219         * configure: Regenerated.
35220
35221 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
35222
35223         * nscd/nscd.h (struct traced_file): Define.
35224         (struct database_dyn): Remove inotify_descr, reset_res, and filename
35225         elements.  Add traced_files.
35226         (inotify_fd): Declare.
35227         (register_traced_file): Declare.
35228         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
35229         (inotify_fd): Export.
35230         (resolv_conf_descr): Remove.
35231         (nscd_init): Move inotify descriptor creation to main.
35232         Don't register files for notification here.
35233         (register_traced_file): New function.
35234         (invalidate_cache): Don't use reset_res to determine whether to call
35235         res_init, go through the list of registered files.
35236         (main_loop_poll): The inotify descriptors are now stored in the
35237         structures for the traced files.
35238         (main_loop_epoll): Likewise
35239         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
35240         to __nss_disable_nscd.
35241         * nscd/cache.c (prune_cache): There is no single inotify descriptor
35242         for a database anymore.  Check the records for all the registered
35243         files instead.
35244         * nss/Makefile (libnss_files-routines): Add files-init.
35245         (libnss_db-routines): Add db-init.
35246         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
35247         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
35248         * nss/nss_db/db-init.c: New file.
35249         * nss/nss_files/files-init.c: New file.
35250         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
35251         __nss_lookup_function.
35252         (__nss_lookup_function): Call nss_load_library.
35253         (nss_load_all_libraries): New function.
35254         (__nss_disable_nscd): Take parameter with callback function for files
35255         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
35256         used for the cached services.
35257         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
35258         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
35259         options for features to all the files in nscd.
35260
35261         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
35262
35263 2011-07-10  Roland McGrath  <roland@hack.frob.com>
35264
35265         * csu/elf-init.c (__libc_csu_init): Comment typo.
35266
35267 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
35268
35269         * po/pl.po: Update from translation team.
35270         * po/ja.po: Likewise.
35271         * po/ru.po: Likewise.
35272         * po/ko.po: Likewise.
35273         * po/fr.po: Likewise.
35274
35275 2011-07-09  Roland McGrath  <roland@hack.frob.com>
35276
35277         * configure.in (.ctors/.dtors header and trailer check):
35278         Use an empirical test on a built program.
35279         * configure: Regenerated.
35280
35281         * configure.in (-z relro check): Use an empirical test on a built DSO.
35282         Detect, but do not require, on ia64.
35283         * configure: Regenerated.
35284
35285         * configure.in (READELF): Find it with AC_CHECK_TOOL.
35286         Update tests that use readelf to use $READELF instead.
35287         * configure: Regenerated.
35288
35289 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
35290
35291         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
35292         if the result is not used.
35293
35294 2011-07-05  Andreas Jaeger  <aj@suse.de>
35295
35296         [BZ#9696]
35297         * stdlib/tst-strtod.c: Add testcase.
35298
35299 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35300
35301         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
35302         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
35303         The latter has a higher limit.  Take additional parameter to pass to
35304         the new function.
35305         (__pathconf): Pass file to __statfs_link_max.
35306         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
35307         __statfs_link_max.
35308         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
35309         __statfs_link_max.
35310
35311         [BZ #12868]
35312         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
35313         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
35314         Handle Lustre.
35315         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
35316         (__statfs_filesize_max): Likewise.
35317         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
35318
35319 2011-07-05  Andreas Jaeger  <aj@suse.de>
35320
35321         * resolv/res_comp.c (dn_skipname): Remove unused variable.
35322
35323 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
35324
35325         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
35326         `status' variable.
35327         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
35328         Likewise.
35329
35330 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
35331
35332         * Makefile (strop-tests): Add strncat.
35333         * string/test-strncat.c: New file.
35334
35335 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
35336
35337         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
35338
35339 2011-06-21  Andreas Jaeger  <aj@suse.de>
35340
35341         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
35342         Copy rule from iconvdata/Makefile.
35343
35344 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35345
35346         [BZ #12922]
35347         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
35348         but no long options are defined, just return 'W'.
35349
35350 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
35351
35352         [BZ #9696]
35353         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
35354
35355 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35356
35357         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
35358         netgroups to read.
35359         (innetgr): Likewise.
35360
35361 2011-07-05  Roland McGrath  <roland@hack.frob.com>
35362
35363         * config.make.in (install_root): Default to $(DESTDIR).
35364
35365 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
35366
35367         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
35368
35369 2011-07-02  Roland McGrath  <roland@hack.frob.com>
35370
35371         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
35372
35373         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
35374         containing directory rather than embedding absolute directory names.
35375
35376         * scripts/check-local-headers.sh: Rewritten using awk.
35377         Match by word, not by line.  Print error messages for matches.
35378         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
35379
35380         * Makerules [shlib-lds-flags empty]:
35381         ($(common-objpfx)libc_pic.opts): New target.
35382         ($(common-objpfx)libc_pic.os.clean): New target.
35383         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
35384
35385         * config.make.in (OBJCOPY): New variable.
35386         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
35387         * configure: Regenerated.
35388
35389         * config.make.in (use-default-link): New variable.
35390         * configure.in (use_default_link): Grok --with-default-link to set it.
35391         * configure: Regenerated.
35392         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
35393         (shlib-lds, shlib-lds-flags): Define to empty.
35394
35395         * Makerules (shlib-lds): New variable.
35396         (shlib-lds-flags): New variable.
35397         (build-shlib, build-moduile, build-module-asneeded): Use it.
35398         ($(common-objpfx)libc.so): Use $(shlib-lds).
35399         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
35400         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
35401
35402         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
35403         DT_FLAGS/DT_FLAGS_1 with zero flags.
35404
35405         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
35406         linker script munging.
35407
35408 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
35409
35410         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
35411         as 128-bit value.
35412         * crypt/sha512.c (sha512_process_block): Perform total addition using
35413         128-bit if possible.
35414         (__sha512_finish_ctx): Likewise.
35415         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
35416         as 64-bit value.
35417         * crypt/sha256.c (SWAP64): Define.
35418         (sha256_process_block): Perform total addition using 64-bit if
35419         possible.
35420         (__sha256_finish_ctx): Likewise.
35421
35422 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
35423
35424         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
35425         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35426         * nscd/hstcache.c (cache_addhst): Likewise.
35427         * nscd/grpcache.c (cache_addgr): Likewise.
35428         * nscd/aicache.c (addhstaiX): Likewise
35429         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
35430
35431 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
35432
35433         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
35434         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35435         * nscd/hstcache.c (cache_addhst): Likewise.
35436         * nscd/grpcache.c (cache_addgr): Likewise.
35437         * nscd/aicache.c (addhstaiX): Likewise
35438
35439 2011-07-01  Andreas Schwab  <schwab@redhat.com>
35440
35441         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
35442         domain only when needed.
35443
35444 2011-06-30  Andreas Schwab  <schwab@redhat.com>
35445
35446         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
35447         is always restored.
35448
35449 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
35450
35451         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
35452         are re-adding the entry.
35453         * nscd/servicescache.c (cache_addserv): Likewise.
35454
35455 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
35456
35457         * sysdeps/generic/dl-irel.h: fix protection against multiple
35458         inclusions.
35459         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
35460
35461 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
35462
35463         [BZ #12935]
35464         * malloc/memusage.sh: Fix quoting in message.
35465         * debug/xtrace.sh: Likewise.
35466
35467         * configure.in: Remove support for --experimental-malloc option, make
35468         it the default.
35469         * config.make.in: Likewise.
35470         * malloc/Makefile: Likewise.
35471
35472 2011-06-27  Andreas Schwab  <schwab@redhat.com>
35473
35474         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
35475         two-byte characters.
35476
35477 2011-06-27  Roland McGrath  <roland@hack.frob.com>
35478
35479         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
35480         AC_CACHE_CHECK invocation.
35481         * configure: Regenerated.
35482
35483         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
35484
35485 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
35486
35487         [BZ #12350]
35488         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
35489         bit from old_res_options.
35490
35491         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
35492
35493         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
35494         value type for setfct.
35495
35496 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
35497
35498         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35499         __gettimeofday instead of gettimeofday.
35500
35501 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
35502
35503         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
35504
35505 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
35506
35507         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
35508
35509         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
35510         info.
35511
35512 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35513
35514         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35515         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35516         strcpy-sse2-unaligned strncpy-sse2-unaligned
35517         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
35518         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
35519         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
35520         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
35521         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
35522         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
35523         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
35524         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
35525         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
35526         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
35527         (STRCPY): Support SSE2 and SSSE3 versions.
35528
35529 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
35530
35531         [BZ #12874]
35532         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
35533         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
35534         kernels which artificially limit size of requests.
35535
35536 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35537
35538         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35539         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35540         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
35541         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
35542         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
35543         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
35544         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
35545         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
35546         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
35547         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
35548         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
35549         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
35550         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
35551         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
35552         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
35553         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35554         Enable unaligned load optimization for Intel Core i3, i5 and i7
35555         processors.
35556         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
35557         Define.
35558         (index_Fast_Unaligned_Load): Define.
35559         (HAS_FAST_UNALIGNED_LOAD): Define.
35560
35561 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
35562
35563         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
35564
35565 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35566
35567         [BZ #12907]
35568         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
35569         until it is clear that the information is realy needed.
35570         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
35571
35572 2011-06-22  Andreas Schwab  <schwab@redhat.com>
35573
35574         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
35575
35576 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35577
35578         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35579         /sys/devices/system/cpu/online if it is usable.
35580
35581         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
35582         reading the information from the /proc filesystem to once a second.
35583
35584 2011-06-21  Andreas Jaeger  <aj@suse.de>
35585
35586         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
35587         NULL after inclusion of kernel headers.
35588
35589 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
35590
35591         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
35592         calls to internal_setent.
35593
35594         [BZ #12885]
35595         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
35596         addresses using gethostbyname4_r ignore IPv4 addresses.
35597
35598         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
35599         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
35600
35601         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
35602
35603 2011-06-20  David S. Miller  <davem@davemloft.net>
35604
35605         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
35606         inclusions.
35607         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
35608
35609         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
35610         (elf_irel): Use it.
35611         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
35612         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
35613         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
35614         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
35615         * sysdeps/x86_64/dl-irel.h: Likewise.
35616
35617         * elf/dl-runtime.c: Use elf_ifunc_invoke.
35618         * elf/dl-sym.c: Likewise.
35619
35620 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35621
35622         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
35623         need to dereference resplen2.
35624
35625 2011-06-14  Andreas Schwab  <schwab@redhat.com>
35626
35627         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
35628
35629 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35630
35631         * Makeconfig: Define vardbdir and inst_vardbdir.
35632         * nss/Makefile: Add rules to install db-Makefile.
35633
35634         * nss/nss_db/db-XXX.c: Cleanup.
35635
35636         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
35637         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
35638         GLIBC_PRIVATE.
35639         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
35640         * nss/makedb.c: Implement -g option to specify that value strings
35641         are generated and should not be added to table iterated over for
35642         get*ent calls.
35643         * nss/nss_db/db-initgroups.c: New file.
35644
35645         * nss/getent.c: Add support for initgroups lookups through getgrouplist
35646         interface.
35647
35648         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
35649         (internal_getgrouplist): Adjust to name change.
35650         Update use_initgroups_entry if this is not the first call.
35651         * nss/databases.def: Add initgroups entry.
35652
35653         * nss/makedb.c (compute_tables): Check result of multiple hash table
35654         sizes to minimize maximum chain length.
35655
35656 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
35657
35658         * Versions.def: Add entry for libnss_db.
35659         * shlib-versions: Likewise.
35660         * nss/Makefile: Add rules to build libnss_db.
35661         * nss/Versions: Add libnss_db information.  Organize libnss_files
35662         entries better.
35663         * nss/db-Makefile: Add gshadow support.  Change rules for the new
35664         makedb progra.  Some minor improvements to generate smaller files.
35665         * nss/nss_db/nss_db.h: Move NSS database header data structures to
35666         here from...
35667         * nss/makedb.c: ...here.
35668         Improve database format to be smaller and require less memory at
35669         runtime.
35670         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
35671         db anymore.
35672         * nss/nss_db/db-netgrp.c: Likewise.
35673         * nss/nss_db/db-open.c: Likewise.
35674         * nss/nss_files/flies-XXX.x: Adjust comments.
35675         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
35676         * nss/nss_files/files-grp.c: Likewise.
35677         * nss/nss_files/files-hosts.c: Likewise.
35678         * nss/nss_files/files-network.c: Likewise.
35679         * nss/nss_files/files-proto.c: Likewise.
35680         * nss/nss_files/files-pwd.c: Likewise.
35681         * nss/nss_files/files-rpc.c: Likewise.
35682         * nss/nss_files/files-service.c: Likewise.
35683         * nss/nss_files/files-sgrp.c: Likewise.
35684         * nss/nss_files/files-spwd.c: Likewise.
35685         * nss/nss_db/db-alias.c: Removed.
35686         * nss/nss_db/dummy-db.h: Removed.
35687
35688 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
35689
35690         * nss/makedb.c: Rewritten to not use database library.
35691         * nss/Makefile: Update to build new makedb program.
35692
35693 2011-06-14  Andreas Jaeger  <aj@suse.de>
35694
35695         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
35696         memset declaration.
35697
35698 2011-06-10  Andreas Schwab  <schwab@redhat.com>
35699
35700         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
35701         tmpbuf.
35702
35703 2011-06-10  Roland McGrath  <roland@hack.frob.com>
35704
35705         * Makerules (shlib.lds): Fail if the linker script comes out empty.
35706         * elf/Makefile ($(objpfx)ld.so): Likewise.
35707
35708         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
35709         Don't list ld.so twice in dependencies.
35710
35711         * posix/bug-regex31.c: Include <stdlib.h>.
35712
35713         * nscd/hstcache.c (cache_addhst): Remove unused variable.
35714
35715         * nis/nss_compat/compat-spwd.c
35716         (getspent_next_nss_netgr): Remove unused variable.
35717         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
35718
35719         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
35720         nonmembers" output to use the right array.
35721
35722         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
35723
35724         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
35725
35726         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
35727         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
35728         * catgets/gencat.c (read_input_file): Likewise.
35729         * locale/programs/locarchive.c (enlarge_archive): Likewise.
35730
35731         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
35732         variable definition inside #if's controlling its use.
35733
35734         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
35735
35736         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
35737
35738         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
35739
35740         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
35741         unreachable code.
35742
35743         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
35744
35745         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
35746         * configure: Regenerated.
35747
35748         * Makerules: Revert last change.
35749         * elf/Makefile: Likewise.
35750
35751 2011-06-09  Roland McGrath  <roland@hack.frob.com>
35752
35753         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
35754         * elf/Makefile ($(objpfx)librtld.os): Likewise.
35755         (reloc-link): Likewise.
35756
35757 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
35758
35759         * elf/Makefile: Add rules to build pldd.
35760         * elf/pldd.c: New file.
35761         * elf/pldd-xx.c: New file.
35762
35763 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
35764
35765         * version.h: Update for 2.15 development version.
35766
35767 2011-06-07  David S. Miller  <davem@davemloft.net>
35768
35769         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
35770         ifuncs.
35771         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
35772         elf_machine_lazy_rel): Likewise.
35773         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
35774         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
35775         elf_machine_lazy_rel): Likewise.
35776         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
35777         dl_hwcap via passed in argument.
35778         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
35779         Likewise.
35780
35781 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35782
35783         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
35784
35785 2011-06-06  Roland McGrath  <roland@hack.frob.com>
35786
35787         [BZ #12849]
35788         * manual/fdl-1.1.texi: New file, verbatim from:
35789         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
35790         * manual/lgpl-2.1.texi: New file, verbatim from:
35791         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
35792         * manual/Makefile (licenses): New variable, list those new file names.
35793         (texis): Use it.
35794         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
35795
35796         * manual/fdl.texi: File removed.
35797         * manual/lesser.texi: File removed.
35798         * manual/libc.texinfo (Copying, Documentation License):
35799         Use new @include file names, put @appendix directive before @include.
35800
35801 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
35802
35803         [BZ #12841]
35804         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
35805         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
35806         (mq_open): Add __NTH.
35807
35808 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
35809
35810         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35811         Assume Intel Core i3/i5/i7 processor if AVX is available.
35812
35813 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35814
35815         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
35816         typo.
35817
35818 2011-05-31  Andreas Schwab  <schwab@redhat.com>
35819
35820         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
35821         memory.  Use alloca_account.  Fix memory leak when retrying.
35822
35823 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35824
35825         * version.h (RELEASE): Bump for 2.14 release.
35826         * include/features.h (__GLIBC_MINOR__): Bump to 14.
35827
35828         * config.make.in (RANLIB): Remove entry.
35829
35830 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
35831
35832         * po/Makefile (po-sed-cmd): Add ksh to extensions.
35833         (libc.pot): Work around missing support for .ksh extension in xgettext.
35834
35835         [BZ #12684]
35836         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
35837         if both request failed.
35838         (send_dg): In case of server errors clear resplen or *resplen2.
35839
35840         [BZ #12454]
35841         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
35842         when there are multiple maps.
35843         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
35844         (_dl_fini): Remove test here.
35845
35846         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
35847
35848 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
35849
35850         [BZ #12350]
35851         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
35852         bit from old_res_options.
35853         (gaih_inet): Likewise.
35854
35855         [BZ #11099]
35856         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
35857         as signed.
35858
35859         * resolv/res_init.c (res_setoptions): Make the code more compact.
35860
35861         [BZ #11558]
35862         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
35863         set RES_USEVC.
35864
35865         [BZ #11634]
35866         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
35867
35868         * malloc/malloc.h: Mark malloc hook variables as deprecated.
35869
35870         [BZ #11781]
35871         * malloc/malloc.h: Declare malloc hook variables as volatile.
35872
35873         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
35874         in last patch.
35875
35876         [BZ #11799]
35877         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
35878         raise in the comment.
35879         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
35880         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
35881         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
35882
35883 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
35884
35885         [BZ #12811]
35886         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
35887         grow the buffers more if it already has to be sufficient.
35888         (build_wcs_upper_buffer): Likewise.
35889         * posix/regexec.c (check_matching): Likewise.
35890         (clean_state_log_if_needed): Likewise.
35891         (extend_buffers): Don't enlarge buffers beyond size of the input
35892         buffer.
35893         Patches mostly by Emil Wojak <emil@wojak.eu>.
35894         * posix/bug-regex32.c: New file.
35895         * posix/Makefile (tests): Add bug-regex32.
35896
35897         * locale/findlocale.c (_nl_find_locale): Return right away if
35898         _nl_explode_name failed.
35899         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
35900
35901         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
35902
35903         * debug/xtrace.sh: Unify messages.
35904         * malloc/memusage.sh: Likewise.
35905
35906         [BZ #12813]
35907         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
35908         time symbol from vDSO.  Substitute with vsyscall if not available.
35909         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
35910         __vdso_time.
35911
35912         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
35913         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
35914         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
35915         Add sendmmsg and internal_sendmmsg.
35916         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
35917         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
35918         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
35919
35920         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
35921         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
35922         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
35923
35924 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
35925
35926         [BZ #12813]
35927         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
35928         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
35929         available.
35930         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
35931         __vdso_getcpu.
35932
35933         [BZ #12814]
35934         * iconvdata/Makefile (tests): Add bug-iconv9.
35935         * iconvdata/bug-iconv9.c: New file.
35936
35937 2011-05-27  Andreas Schwab  <schwab@redhat.com>
35938
35939         [BZ #12814]
35940         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
35941
35942 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
35943
35944         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
35945         (struct user_regs_struct): Change intcs field back to cs.
35946
35947 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
35948
35949         * po/ja.po: Update from translation team.
35950
35951 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
35952
35953         [BZ #12795]
35954         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
35955         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
35956
35957 2011-05-20  Andreas Schwab  <schwab@redhat.com>
35958
35959         * stdlib/longlong.h: Update from GCC.
35960
35961 2011-05-23  Andreas Schwab  <schwab@redhat.com>
35962
35963         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
35964         parameter name.
35965         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
35966         Add parameter name.
35967         (__sysconf): Pass it down.
35968
35969 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
35970
35971         [BZ #12671]
35972         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
35973         some situations.
35974         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
35975         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
35976         add in in __libc_use_alloca calls.  Adjust callers.
35977         (glob): Use malloc in some situations.
35978
35979         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
35980         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
35981         pltexit.
35982
35983 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
35984
35985         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
35986         and CLOCK_BOOTTIME_ALARM.
35987
35988         [BZ #12782]
35989         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
35990         is returned.
35991
35992         * string/_strerror.c (__strerror_r): Print negative errors as signed
35993         numbers.
35994
35995         [BZ #12777]
35996         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
35997         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
35998         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
35999
36000         * configure.in: Fix typo in redirection and correct removal of test
36001         files in two cases.
36002
36003         [BZ #12788]
36004         * locale/setlocale.c (new_composite_name): Fix test to check for
36005         identical name of all categories.
36006
36007         [BZ #12792]
36008         * libio/filedoalloc.c (local_isatty): New function.
36009         (_IO_file_doallocate): Use local_isatty.
36010         * stdio-common/perror.c (perror): In case a new stream is used
36011         forward the stream error.
36012         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
36013         error flag.
36014
36015 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
36016
36017         [BZ #11869]
36018         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
36019         alloca.
36020         * include/alloca.h (extend_alloca_account): Define.
36021
36022         [BZ #11857]
36023         * posix/regex.h: Fix comments with documentation of user-accessible
36024         fields after compilation and describe correct free'ing of pattern
36025         after re_compile_pattern.
36026         Patch by Reuben Thomas <rrt@sc3d.org>.
36027
36028 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
36029
36030         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
36031         and -mno-altivec to prevent the compiler from using Altivec and/or
36032         VSX instructions when the corresponding registers are not available.
36033
36034 2011-05-19  Andreas Schwab  <schwab@redhat.com>
36035
36036         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
36037
36038 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
36039
36040         * libio/freopen.c (freopen): Use __dup2, not dup2.
36041         * libio/freopen64.c (freopen64): Likewise.
36042
36043 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
36044
36045         [BZ #12775]
36046         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
36047         * math/Makefile (tests): Add test-powl.
36048         (CFLAGS-test-powl.c): Define.
36049         * math/test-powl.c: New file.
36050
36051 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
36052
36053         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
36054
36055 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
36056
36057         [BZ #11837]
36058         * iconvdata/gb18030.c: Update to GB18020-2005.
36059
36060 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
36061
36062         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
36063         RE_SYNTAX_POSIX_AWK): Update to match recent development.
36064         Patch by Aharon Robbins <arnold@skeeve.com>.
36065
36066         [BZ #11892]
36067         * stdlib/putenv.c (putenv): Don't always create copy of the variable
36068         on the stack.
36069
36070         [BZ #11895]
36071         * misc/pselect.c (__pselect): Handle timeout value errors hidden
36072         through underflows.
36073
36074         [BZ #12766]
36075         * misc/error.c (error_at_line): Ensure file_name and old_file_name
36076         point to strings before performing equality test for error_one_per_line
36077         mode.
36078
36079         [BZ #11697]
36080         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
36081
36082         [BZ #11820]
36083         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
36084         (struct user_fpregs_struct): Avoid __uint*_t types.
36085
36086         [BZ #6420]
36087         * malloc/mtrace.c (tr_where): Add additional parameter to point to
36088         symbol info.  Use it instead of calling _dl_addr locally.
36089         (lock_and_info): New function.
36090         (tr_freehook): Call lock_and_info and pass symbol info as additional
36091         parameter to tr_where.
36092         (tr_mallochook): Likewise.
36093         (tr_reallochook): Likewise.
36094         (tr_memalignhook): Likewise.
36095
36096         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
36097         used and couldn't be at all thread-safe.
36098
36099 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
36100
36101         * libio/freopen.c (freopen): Don't close old file descriptor
36102         before the new one is opened.  Instead dup the new file descriptor
36103         to the old one after the new stream is created.
36104         * libio/freopen64.c (freopen64): Likewise.
36105         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
36106         * libio/fileops.c (_IO_new_file_close_it): Handle new
36107         _IO_FLAGS2_NOCLOSE flag.
36108         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
36109         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
36110         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
36111         _IO_FLAGS2_NOCLOSE flag.
36112         * include/unistd.h: Add hidden_proto for dup3.
36113         Define __have_dup3.
36114         * io/dup3.c: Define hidden symbol.
36115         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
36116
36117         [BZ #7101]
36118         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
36119         when an incomplete long option is used.
36120         * posix/tst-getopt_long1.c: New file.
36121         * posix/Makefile (tests): Add tst-getopt_long1.
36122
36123         [BZ #10138]
36124         * scripts/config.guess: Update from autoconf-2.68.
36125         * scripts/config.sub: Likewise.
36126
36127         [BZ #10157]
36128         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
36129         tests into ...
36130         (has_cpuclock): ...this.  New function.
36131         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
36132         macro here based on has_cpuclock code.
36133
36134         [BZ #10149]
36135         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36136         First byte (not low byte) is now always NUL.
36137         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
36138
36139         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36140         Use non-cancelable interfaces.
36141
36142         [BZ #9809]
36143         * locale/iso-639.def: Add entry for Sorani.
36144
36145         [BZ #11901]
36146         * include/stdlib.h: Move include protection to the right place.
36147         Define abort_msg_s.  Declare __abort_msg with it.
36148         * stdlib/abort.c (__abort_msg): Adjust type.
36149         * assert/assert.c (__assert_fail_base): New function.  Majority
36150         of code from __assert_fail.  Allocate memory for __abort_msg with
36151         mmap.
36152         (__assert_fail): Now call __assert_fail_base.
36153         * assert/assert-perr.c: Remove bulk of implementation.  Use
36154         __assert_fail_base.
36155         * include/assert.hL Declare __assert_fail_base.
36156         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
36157         mmap.
36158         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
36159
36160 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
36161
36162         [BZ #11952]
36163         [BZ #12453]
36164         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
36165         until all modules are registered in the DTV.
36166         * elf/Makefile: Add rules to build and run tst-tls19.
36167         * elf/tst-tls19.c: New file.
36168         * elf/tst-tls19mod1.c: New file.
36169         * elf/tst-tls19mod2.c: New file.
36170         * elf/tst-tls19mod3.c: New file.
36171         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
36172
36173         [BZ #12083]
36174         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
36175         correctly.
36176
36177         [BZ #12601]
36178         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
36179         two-byte sequence errors.
36180         * iconvdata/Makefile (tests): Add bug-iconv8.
36181         * iconvdata/bug-iconv8.c: New file.
36182
36183         [BZ #12626]
36184         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
36185         buf2 definition.
36186
36187         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
36188
36189         [BZ #12432]
36190         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
36191         (dummy_getcfa): New function.
36192         (init): Get _Unwind_GetCFA address, use dummy if not found.
36193         (backtrace_helper): In recursion check, also check whether CFA changes.
36194         (__backtrace): Completely initialize arg.
36195
36196         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
36197         storing incomplete byte sequence in state object.  Avoid testing for
36198         guaranteed too small input if we know there is enough data available.
36199
36200 2011-05-11  Andreas Schwab  <schwab@redhat.com>
36201
36202         * Makeconfig (+link-pie): Indent.
36203         * Rules (binaries-pie): Define if $(have-fpie) and
36204         $(build-shared).
36205         (binaries-shared): Also filter out $(binaries-pie).
36206         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
36207         * nscd/Makefile (others-pie): Add nscd.
36208         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
36209         ($(objpfx)nscd): Remove command override.
36210         * login/Makefile (others-pie): Add pt_chown.
36211         ($(objpfx)pt_chown): Remove command override.
36212         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
36213         remove command overrides.
36214
36215 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
36216
36217         * libio/tst_putwc.c: Fix error messages.
36218
36219         [BZ #12724]
36220         * libio/fileops.c (_IO_new_file_close_it): Always flush when
36221         currently writing and seek to current position when not.
36222         * libio/Makefile (tests): Add bug-fclose1.
36223         * libio/bug-fclose1.c: New file.
36224
36225 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
36226
36227         [BZ #12511]
36228         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
36229         don't set DF_1_NODELETE here.
36230         (do_lookup_x): When entering new entry test for copy relocation
36231         and if necessary set DF_1_NODELETE flag.
36232         * elf/tst-unique4.cc: New file.
36233         * elf/tst-unique4.h: New file.
36234         * elf/tst-unique4lib.cc: New file.
36235         * elf/Makefile: Add rules to build and run tst-unique4.
36236         Patch by Piotr Bury <pbury@goahead.com>.
36237
36238 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36239
36240         [BZ #12052]
36241         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
36242
36243         [BZ #12625]
36244         * misc/mntent_r.c (addmntent): Flush the stream after the output
36245
36246         [BZ #12393]
36247         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
36248         (is_trusted_path_normalize): Skip initial colon.  Append slash
36249         to empty buffer.  Duplicate is_trusted_path code but allow
36250         constructed patch to be prefix.
36251         (is_dst): Allow $ORIGIN followed by /.
36252         (_dl_dst_substitute): Correct clearing of check_for_trusted.
36253         Correct testing of result of is_trusted_path_normalize
36254         (decompose_rpath): Fix warning.
36255
36256 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
36257
36258         [BZ #11257]
36259         * grp/initgroups.c (internal_getgrouplist): When we found the service
36260         list through the initgroups entry in nsswitch.conf do not always
36261         continue on a successful lookup.  Don't always use the
36262         __nss_group_database value if it is set.
36263         * nss/nsswitch.conf (initgroups): Change action for successful db
36264         lookup to continue for compatibility.
36265
36266 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
36267
36268         [BZ #11532]
36269         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
36270         and CP774 modules.
36271         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
36272         and CP774 modules.
36273         * iconvdata/tst-tables.sh: Likewise.
36274         * iconvdata/cp770.c: New file.
36275         * iconvdata/cp771.c: New file.
36276         * iconvdata/cp772.c: New file.
36277         * iconvdata/cp773.c: New file.
36278         * iconvdata/cp774.c: New file.
36279         * iconvdata/testdata/CP770: New file.
36280         * iconvdata/testdata/CP770..UTF8: New file.
36281         * iconvdata/testdata/CP771: New file.
36282         * iconvdata/testdata/CP771..UTF8: New file.
36283         * iconvdata/testdata/CP772: New file.
36284         * iconvdata/testdata/CP772..UTF8: New file.
36285         * iconvdata/testdata/CP773: New file.
36286         * iconvdata/testdata/CP773..UTF8: New file.
36287         * iconvdata/testdata/CP774: New file.
36288         * iconvdata/testdata/CP774..UTF8: New file.
36289
36290         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
36291         END CHARMAP line.
36292         * iconvdata/gen-8bit-gap.sh: Likewise.
36293         * iconvdata/gen-8bit.sh: Likewise.
36294
36295         * locale/iso-639.def: Add ary entry.
36296
36297         [BZ #11258]
36298         * locale/C-translit.h.in: Add U20A1 transliteration.
36299
36300         [BZ #12178]
36301         * locale/iso-639.def: Add wae entry.
36302         Patch by Kevin Bortis <bortis@translate-wae.ch>.
36303
36304         [BZ #12545]
36305         * locale/programs/localedef.c (construct_output_path): Use ssize_t
36306         for n.
36307
36308         [BZ #12711]
36309         * locale/C-translit.h.in: Add entry for U20B9.
36310         Patch by pravin.d.s@gmail.com.
36311
36312 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
36313
36314         [BZ #12713]
36315         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
36316         ENAMETOOLONG use generic getcwd.
36317         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
36318         in rtld.  Use *stat64.
36319         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
36320         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
36321         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
36322         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
36323         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
36324         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
36325         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
36326         __fstatat64 macros.
36327         * include/dirent.h: Add libc_hidden_proto for rewinddir.
36328         * dirent/rewinddir.c: Add libc_hidden_def.
36329         * sysdeps/mach/hurd/rewinddir.c: Likewise.
36330         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
36331
36332         * include/dirent.h (__alloc_dir): Add flags parameter.
36333         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
36334         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
36335         __alloc_dir.
36336         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
36337         from fdopendir if O_CLOEXEC is already set.
36338
36339 2011-03-15  Alan Modra  <amodra@gmail.com>
36340
36341         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
36342         l_tls_firstbyte_offset non-zero.  Save padding offset in
36343         l_tls_firstbyte_offset for later use.
36344         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
36345         freeing static tls block.
36346
36347 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
36348
36349         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
36350         where #ifdef was intended.  The intent is to prevent ARG_MAX from
36351         being defined by the kernel headers.
36352
36353 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
36354
36355         [BZ #12734]
36356         * resolv/resolv.h: Define RES_NOTLDQUERY.
36357         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
36358         no-tld-query and set RES_NOTLDQUERY.
36359         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
36360         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
36361         modern BIND to search name as TLD unless forbidden.
36362
36363 2011-05-07  Petr Baudis  <pasky@suse.cz>
36364             Ulrich Drepper  <drepper@gmail.com>
36365
36366         [BZ #12393]
36367         * elf/dl-load.c (fillin_rpath): Move trusted path check...
36368         (is_trusted_path): ...to here.
36369         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
36370         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
36371         using is_trusted_path_normalize() in setuid scripts.
36372
36373 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
36374
36375         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
36376         __BEGIN/__END_DECLS.
36377
36378 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
36379
36380         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
36381         NSS_STATUS_NOTFOUND if no record was found.
36382
36383 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36384
36385         * sunrpc/Makefile (headers): Add rpc/netdb.h.
36386         (headers-not-in-tirpc): Remove rpc/netdb.h
36387         * resolv/netdb.h: Revert last change.
36388
36389 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
36390
36391         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
36392         circular dependency between libgcc.a and libc.a.
36393
36394 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36395
36396         * resolv/netdb.h: Don't include <rpc/netdb.h>.
36397         * nis/Makefile: Don't install rpcsvc/*.
36398         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
36399         instead of <rpc/types.h>.
36400         (MAXHOSTNAMELEN): Define.
36401
36402 2011-05-03  Andreas Schwab  <schwab@redhat.com>
36403
36404         * elf/ldconfig.c (add_dir): Don't crash on empty path.
36405
36406 2011-04-28  Maciej Babinski  <mbabinski@google.com>
36407
36408         [BZ #12714]
36409         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
36410         gethostbyname4_r when IPv6 results are possible.
36411
36412 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
36413
36414         [BZ #12723]
36415         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
36416         _PC_PIPE_BUF handling.
36417
36418 2011-04-30  Bruno Haible  <bruno@clisp.org>
36419
36420         [BZ #12717]
36421         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
36422         * resolv/netdb.h (getnameinfo): Change type of flags parameter
36423         to 'int'.
36424         * inet/getnameinfo.c (getnameinfo): Likewise.
36425
36426 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
36427
36428         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
36429         to groups setting in database lookup.
36430         * nss/nsswitch.conf: Add initgroups entry.
36431
36432 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
36433
36434         [BZ #12685]
36435         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
36436         mode string.
36437         Patch by Eric Blake <eblake@redhat.com>.
36438
36439 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
36440
36441         * sunrpc/Makefile (need-export-routines): Add svc_run.
36442         (routines): Remove svc_run.
36443         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
36444         * sunrpc/clnt_perr.c (clnt_perrno): Export.
36445         * sunrpc/svc_run.c (svc_run): Likewise.
36446         * sunrpc/svc_udp.c (svcudp_create): Likewise.
36447
36448 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
36449
36450         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
36451         problem in reallocation in last patch.
36452
36453 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
36454
36455         * sunrpc/Makefile: Move inclusion of Rules.
36456
36457 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36458
36459         * nss/nss_files/files-initgroups.c: New file.
36460         * nss/Makefile (libnss_files-routines): Add files-initgroups.
36461         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
36462         _nss_files_initgroups_dyn.
36463
36464 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
36465
36466         * elf/elf.h (R_ARM_IRELATIVE): Define.
36467
36468 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36469
36470         * po/ru.po: Update from translation team.
36471
36472 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36473
36474         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
36475         dependencies.
36476
36477 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
36478
36479         [BZ #12653]
36480         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
36481         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
36482         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
36483         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
36484         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
36485
36486 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
36487
36488         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
36489         differing bytes.
36490         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
36491         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
36492         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
36493
36494 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36495
36496         [BZ #12420]
36497         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
36498         storing it.
36499         * stdlib/bug-getcontext.c: New file.
36500         * stdlib/Makefile: Add rules to build and run bug-getcontext.
36501
36502 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36503
36504         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
36505         instructions into .machine "z9-109".
36506         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
36507         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
36508
36509 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36510
36511         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
36512         between environment variables and auxiliary vector.
36513
36514 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
36515
36516         * Makefile: Add rules to build linkobj/libc.so.
36517         * include/libc-symbols.h: Define libc_hidden_nolink.
36518         * include/rpc/auth.h: Mark functions which are to be hidden.
36519         * include/rpc/auth_des.h: Likewise.
36520         * include/rpc/auth_unix.h: Likewise.
36521         * include/rpc/clnt.h: Likewise.
36522         * include/rpc/des_crypt.h: Likewise.
36523         * include/rpc/key_prot.h: Likewise.
36524         * include/rpc/pmap_clnt.h: Likewise.
36525         * include/rpc/pmap_prot.h: Likewise.
36526         * include/rpc/pmap_rmt.h: Likewise.
36527         * include/rpc/rpc_msg.h: Likewise.
36528         * include/rpc/svc.h: Likewise.
36529         * include/rpc/svc_auth.h: Likewise.
36530         * include/rpc/xdr.h: Likewise.
36531         * nis/Makefile: Link all DSOs against linkobj/libc.so.
36532         * nss/Makefile: Likewise.
36533         * sunrpc/Makefile: Don't install headers.  Build library with normal
36534         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
36535         * sunrpc/auth_des.c: Hide exported symbols by default, export some
36536         for the compat linking library.  Remove use of INTDEF/INTUSE.
36537         * sunrpc/auth_none.c: Likewise.
36538         * sunrpc/auth_unix.c: Likewise.
36539         * sunrpc/authdes_prot.c: Likewise.
36540         * sunrpc/authuxprot.c: Likewise.
36541         * sunrpc/clnt_gen.c: Likewise.
36542         * sunrpc/clnt_perr.c: Likewise.
36543         * sunrpc/clnt_raw.c: Likewise.
36544         * sunrpc/clnt_simp.c: Likewise.
36545         * sunrpc/clnt_tcp.c: Likewise.
36546         * sunrpc/clnt_udp.c: Likewise.
36547         * sunrpc/clnt_unix.c: Likewise.
36548         * sunrpc/des_crypt.c: Likewise.
36549         * sunrpc/des_soft.c: Likewise.
36550         * sunrpc/get_myaddr.c: Likewise.
36551         * sunrpc/key_call.c: Likewise.
36552         * sunrpc/key_prot.c: Likewise.
36553         * sunrpc/netname.c: Likewise.
36554         * sunrpc/pm_getmaps.c: Likewise.
36555         * sunrpc/pm_getport.c: Likewise.
36556         * sunrpc/pmap_clnt.c: Likewise.
36557         * sunrpc/pmap_prot.c: Likewise.
36558         * sunrpc/pmap_prot2.c: Likewise.
36559         * sunrpc/pmap_rmt.c: Likewise.
36560         * sunrpc/publickey.c: Likewise.
36561         * sunrpc/rpc_cmsg.c: Likewise.
36562         * sunrpc/rpc_common.c: Likewise.
36563         * sunrpc/rpc_dtable.c: Likewise.
36564         * sunrpc/rpc_prot.c: Likewise.
36565         * sunrpc/rpc_thread.c: Likewise.
36566         * sunrpc/rtime.c: Likewise.
36567         * sunrpc/svc.c: Likewise.
36568         * sunrpc/svc_auth.c: Likewise.
36569         * sunrpc/svc_authux.c: Likewise.
36570         * sunrpc/svc_raw.c: Likewise.
36571         * sunrpc/svc_run.c: Likewise.
36572         * sunrpc/svc_simple.c: Likewise.
36573         * sunrpc/svc_tcp.c: Likewise.
36574         * sunrpc/svc_udp.c: Likewise.
36575         * sunrpc/svc_unix.c: Likewise.
36576         * sunrpc/svcauth_des.c: Likewise.
36577         * sunrpc/xcrypt.c: Likewise.
36578         * sunrpc/xdr.c: Likewise.
36579         * sunrpc/xdr_array.c: Likewise.
36580         * sunrpc/xdr_float.c: Likewise.
36581         * sunrpc/xdr_intXX_t.c: Likewise.
36582         * sunrpc/xdr_mem.c: Likewise.
36583         * sunrpc/xdr_rec.c: Likewise.
36584         * sunrpc/xdr_ref.c: Likewise.
36585         * sunrpc/xdr_sizeof.c: Likewise.
36586         * sunrpc/xdr_stdio.c: Likewise.
36587
36588 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
36589
36590         [BZ #12650]
36591         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
36592         * sysdeps/ia64/dl-tls.h: Likewise.
36593         * sysdeps/powerpc/dl-tls.h: Likewise.
36594         * sysdeps/s390/dl-tls.h: Likewise.
36595         * sysdeps/sh/dl-tls.h: Likewise.
36596         * sysdeps/sparc/dl-tls.h: Likewise.
36597         * sysdeps/x86_64/dl-tls.h: Likewise.
36598         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
36599
36600 2011-03-14  Andreas Schwab  <schwab@redhat.com>
36601
36602         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
36603         rpath element also skip the following colon.
36604         (expand_dynamic_string_token): Add is_path parameter and pass
36605         down to DL_DST_REQUIRED and _dl_dst_substitute.
36606         (decompose_rpath): Call expand_dynamic_string_token with
36607         non-zero is_path.  Ignore empty rpaths.
36608         (_dl_map_object_from_fd): Call expand_dynamic_string_token
36609         with zero is_path.
36610
36611 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
36612
36613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
36614         Make cancelable.
36615
36616 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
36617
36618         [BZ #12655]
36619         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
36620         Patch by Filipe David Manana <fdmanana@apache.org>.
36621
36622 2011-04-07  Andreas Schwab  <schwab@redhat.com>
36623
36624         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
36625         Maintain aligned stack.
36626         (CHECK_RSP): Remove unused macro.
36627
36628 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
36629
36630         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
36631         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
36632
36633 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
36634
36635         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
36636
36637         * include/features.h: Mention __USE_XOPEN2K8 in comment.
36638
36639 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
36640
36641         [BZ #12518]
36642         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
36643         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
36644         * sysdeps/x86_64/memmove.c: New file.
36645         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
36646         (memcpy): Renamed to ...
36647         (__new_memcpy): This.
36648         (memcpy): Provide GLIBC_2_14 memcpy.
36649         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
36650         (memcpy): Provide GLIBC_2_2_5 memcpy.
36651
36652 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36653
36654         [BZ #12631]
36655         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
36656
36657 2011-03-30  Andreas Schwab  <schwab@redhat.com>
36658
36659         * misc/syncfs.c: New file.
36660         * misc/Makefile (routines): Add syncfs.
36661         * posix/unistd.h: Declare syncfs.
36662         * sysdeps/unix/syscalls.list: Add syncfs.
36663
36664 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36665
36666         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
36667         open_by_handle_at.
36668         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
36669         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36670         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36671         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36672         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36673         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
36674         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36675
36676 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36677
36678         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
36679         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36680         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
36681         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36682         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36683         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36684         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36685
36686         * io/Makefile: Compile fallocate.c, fallocate64.c, and
36687         sync_file_range.c with -fexceptions.
36688         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
36689         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
36690         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
36691         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
36692         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
36693         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
36694         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
36695         sync_file_range as cancellation point
36696         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
36697         now a wrapper around __call_sync_file_range with cancellation handling.
36698         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
36699         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
36700         function name to __call_sync_file_range.
36701         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
36702         Add call_sync_file_range.
36703
36704 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36705
36706         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36707         bits/timex.h.
36708
36709 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36710
36711         * iconv/iconv.h: Fix typo in comment.
36712         * io/fcntl.h: Likewise.
36713         * libio/stdio.h: Likewise.
36714         * posix/spawn.h: Likewise.
36715         * posix/unistd.h: Likewise.
36716         * stdlib/stdlib.h: Likewise.
36717         * time/time.h: Likewise.
36718         * wcsmbs/wchar.h: Likewise.
36719
36720         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
36721         open_by_handle): Add.
36722         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
36723         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
36724         Augment a few comments.
36725         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36726         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36727         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36728         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36729         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36730         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
36731         open_by_handle.
36732
36733         * io/fcntl.h (AT_EMPTY_PATH): Define.
36734
36735 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
36736
36737         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
36738         * sysdeps/unix/sysv/linux/bits/time.h: New file.
36739         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
36740         to...
36741         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
36742         * Versions.def: Add GLIBC_2.14.
36743         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
36744         Export.
36745
36746 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
36747
36748         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
36749         round counter.
36750         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36751
36752 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36753
36754         [BZ #12597]
36755         * string/test-strncmp.c (do_page_test): New function.
36756         (check2): Likewise.
36757         (test_main): Call check2.
36758         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
36759
36760 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
36761
36762         [BZ #12587]
36763         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
36764         Handle cache information in CPU leaf 4.
36765         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36766
36767 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
36768
36769         [BZ #12583]
36770         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
36771         character representation.
36772         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
36773
36774 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
36775
36776         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
36777         END(__isnan) to END(__isnanf) to match function entry point/label
36778         EALIGN(__isnanf,...).
36779
36780 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
36781
36782         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
36783
36784 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
36785
36786         [BZ #12510]
36787         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
36788         copy from the symbol referenced in the relocation to initialize the
36789         used variable.
36790         Patch by Piotr Bury <pbury@goahead.com>.
36791         * elf/Makefile: Add rules to build and tst-unique3.
36792         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
36793         * elf/tst-unique3.cc: New file.
36794         * elf/tst-unique3.h: New file.
36795         * elf/tst-unique3lib.cc: New file.
36796         * elf/tst-unique3lib2.cc: New file.
36797
36798         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
36799
36800 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
36801
36802         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
36803         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
36804         to _start.
36805
36806 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
36807
36808         * elf/dl-load.c (_dl_map_object): If we are looking for the first
36809         to-be-loaded object along a path to loader is ld.so.
36810
36811 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36812             Ulrich Drepper  <drepper@gmail.com>
36813
36814         * sysdeps/x86_64/memset.S: After aligning destination, code
36815         branches to different locations depending on the value of
36816         misalignment, when multiarch is enabled. Fix this.
36817
36818 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36819
36820         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
36821         Set _x86_64_preferred_memory_instruction for AMD processsors.
36822         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36823         Set bit_Prefer_SSE_for_memop for AMD processors.
36824
36825 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
36826
36827         * libio/fmemopen.c (fmemopen): Optimize a bit.
36828
36829 2011-03-03  Andreas Schwab  <schwab@redhat.com>
36830
36831         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
36832
36833 2011-03-03  Roland McGrath  <roland@redhat.com>
36834
36835         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
36836
36837 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
36838
36839         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
36840         __bzero_ultra1 instead of __memset_ultra1.
36841
36842 2011-02-23  Andreas Schwab  <schwab@redhat.com>
36843             Ulrich Drepper  <drepper@gmail.com>
36844
36845         [BZ #12509]
36846         * include/link.h (struct link_map): Add l_orig_initfini.
36847         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
36848         returning unsuccessfully.
36849         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
36850         close of a file loaded at startup, restore the original l_initfini
36851         list.
36852         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
36853         list, store the pointer.
36854         * elf/Makefile ($(objpfx)noload-mem): New rule.
36855         (noload-ENV): Define.
36856         (tests): Add $(objpfx)noload-mem.
36857         * elf/noload.c: Include <memcheck.h>.
36858         (main): Call mtrace.  Close all opened handles.
36859
36860 2011-02-17  Andreas Schwab  <schwab@redhat.com>
36861
36862         [BZ #12454]
36863         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
36864         dependencies are missing.
36865
36866 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36867
36868         Fix __if_freereq crash: Unlike the generic version which uses free,
36869         Hurd needs munmap.
36870         * sysdeps/mach/hurd/ifreq.h: New file.
36871
36872 2011-01-27  Petr Baudis  <pasky@suse.cz>
36873             Ulrich Drepper  <drepper@gmail.com>
36874
36875         [BZ 12445]#
36876         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
36877         to extend_alloca().
36878         * stdio-common/bug23.c: New file.
36879         * stdio-common/Makefile (tests): Add bug23.
36880
36881 2010-09-28  Andreas Schwab  <schwab@redhat.com>
36882             Ulrich Drepper  <drepper@gmail.com>
36883
36884         [BZ #12489]
36885         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
36886         before performing relro protection.  At old place add assertion
36887         to make sure nothing changed.
36888
36889 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
36890             Glauber de Oliveira Costa  <glommer@gmail.com>
36891
36892         * elf/elf.h: Add new ARM TLS relocs.
36893
36894 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
36895
36896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
36897         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
36898         cast from r3.
36899         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
36900         'tests' variable.
36901         * sysdeps/wordsize-64/tst-writev.c: New file.
36902
36903 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
36904
36905         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
36906         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
36907         insns in _dl_start to prevent a TOC reference before relocs are
36908         resolved.
36909
36910 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
36911
36912         [BZ #12469]
36913         * Makeconfig: Remove RANLIB definition.
36914         * Makerules: Don't use RANLIB.
36915         * aclocal.m4: Remove ranlib test.
36916         * configure.in: No need to check for ranlib.
36917         * elf/rtld-Rules: Don't use RANLIB.
36918
36919 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36920
36921         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
36922         protection macro.
36923         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
36924         inclusion protection macro.
36925
36926         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
36927         SIGRTMIN and SIGRTMAX and print information in that case only when
36928         SIGRTMIN is defined.
36929
36930 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
36931
36932         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
36933         arginfo fn returning -1.
36934
36935         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
36936         and thousands string is zero terminated.
36937
36938 2011-02-03  Andreas Schwab  <schwab@redhat.com>
36939
36940         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
36941         sysdeps/unix/sysv/linux/bits/socket.h.
36942
36943 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36944
36945         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
36946         (__CPU_COUNT): Remove old macros.
36947         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
36948         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
36949         (__CPU_ALLOC, __CPU_FREE): Add macros.
36950         (__sched_cpualloc, __sched_cpufree): Add declarations.
36951
36952 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
36953
36954         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
36955         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
36956         * nscd/aicache.c (addhstaiX): Return timeout of added value.
36957         (readdhstai): Return value of addhstaiX call.
36958         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
36959         (addgrbyX): Return value returned by cache_addgr.
36960         (readdgrbyname): Return value returned by addgrbyX.
36961         (readdgrbygid): Likewise.
36962         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
36963         (addpwbyX): Return value returned by cache_addpw.
36964         (readdpwbyname): Return value returned by addhstbyX.
36965         (readdpwbyuid): Likewise.
36966         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
36967         (addservbyX): Return value returned by cache_addserv.
36968         (readdservbyname): Return value returned by addservbyX:
36969         (readdservbyport): Likewise.
36970         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
36971         (addhstbyX): Return value returned by cache_addhst.
36972         (readdhstbyname): Return value returned by addhstbyX.
36973         (readdhstbyaddr): Likewise.
36974         (readdhstbynamev6): Likewise.
36975         (readdhstbyaddrv6): Likewise.
36976         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
36977         (readdinitgroups): Return value returned by addinitgroupsX.
36978         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
36979         (prune_cache): Keep track of timeout value of re-added entries.
36980         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
36981         * nscd/nscd.h: Adjust prototypes of readd* functions.
36982
36983 2011-02-04  Roland McGrath  <roland@redhat.com>
36984
36985         * nis/nis_server.c (nis_servstate): Use the right name for 0.
36986         (nis_stats): Likewise.
36987         * nis/nis_modify.c (nis_modify): Likewise.
36988         * nis/nis_remove.c (nis_remove): Likewise.
36989         * nis/nis_add.c (nis_add): Likewise.
36990
36991         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
36992
36993         * posix/fnmatch_loop.c: Add some consts.
36994
36995         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
36996
36997 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
36998
36999         [BZ #12460]
37000         * config.make.in (config-cflags-novzeroupper): Define.
37001         * configure.in: Substitute libc_cv_cc_novzeroupper.
37002         * elf/Makefile (AVX-CFLAGS): Define.
37003         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
37004         (CFLAGS-tst-auditmod4a.c): Likewise.
37005         (CFLAGS-tst-auditmod4b.c): Likewise.
37006         (CFLAGS-tst-auditmod6b.c): Likewise.
37007         (CFLAGS-tst-auditmod6c.c): Likewise.
37008         (CFLAGS-tst-auditmod7b.c): Likewise.
37009         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
37010
37011 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
37012
37013         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
37014         function to the callback.
37015         Patch partly by Jiri Olsa <jolsa@redhat.com>.
37016
37017 2011-02-02  Andreas Schwab  <schwab@redhat.com>
37018
37019         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
37020         of errno.
37021
37022 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
37023
37024         [BZ #11724]
37025         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
37026         of constructors.
37027         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
37028         of destructors.
37029         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
37030
37031         [BZ #11724]
37032         * elf/Makefile: Add rules to build and run new test.
37033         * elf/tst-initorder.c: New file.
37034         * elf/tst-initorder.exp: New file.
37035         * elf/tst-initordera1.c: New file.
37036         * elf/tst-initordera2.c: New file.
37037         * elf/tst-initordera3.c: New file.
37038         * elf/tst-initordera4.c: New file.
37039         * elf/tst-initorderb1.c: New file.
37040         * elf/tst-initorderb2.c: New file.
37041         * elf/tst-order-a1.c: New file.
37042         * elf/tst-order-a2.c: New file.
37043         * elf/tst-order-a3.c: New file.
37044         * elf/tst-order-a4.c: New file.
37045         * elf/tst-order-b1.c: New file.
37046         * elf/tst-order-b2.c: New file.
37047         * elf/tst-order-main.c: New file.
37048         New test case by George Gensure <werkt0@gmail.com>.
37049
37050 2010-10-01  Andreas Schwab  <schwab@redhat.com>
37051
37052         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
37053         decoding ACE if AI_CANONIDN.
37054
37055 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
37056
37057         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
37058
37059 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
37060
37061         * version.h (RELEASE): Bump for 2.13 release.
37062         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
37063
37064         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
37065
37066         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
37067         MADV_NOHUGEPAGE.
37068         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
37069         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
37070         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
37071         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
37072         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
37073         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37074
37075         * posix/getconf.c: Update copyright year.
37076         * catgets/gencat.c: Likewise.
37077         * csu/version.c: Likewise.
37078         * debug/catchsegv.sh: Likewise.
37079         * debug/xtrace.sh: Likewise.
37080         * elf/ldconfig.c: Likewise.
37081         * elf/ldd.bash.in: Likewise.
37082         * elf/sprof.c (print_version): Likewise.
37083         * iconv/iconv_prog.c: Likewise.
37084         * iconv/iconvconfig.c: Likewise.
37085         * locale/programs/locale.c: Likewise.
37086         * locale/programs/localedef.c: Likewise.
37087         * malloc/memusage.sh: Likewise.
37088         * malloc/mtrace.pl: Likewise.
37089         * nscd/nscd.c (print_version): Likewise.
37090         * nss/getent.c: Likewise.
37091
37092         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
37093         PF_CAIF, and PF_ALG.
37094         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37095
37096 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
37097
37098         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
37099         (modules-names): Use them.
37100         (ifunc-test-modules, ifunc-pie-tests): Define.
37101         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
37102         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
37103         (test-extras): Likewise.
37104         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
37105         $(compile-command.c).
37106         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
37107         (all-built-dso): Define.
37108         (check-textrel.out, check-execstack.out): Depend on it.
37109
37110         * configure.in: Don't override --enable-multi-arch.
37111
37112 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
37113
37114         [BZ #6812]
37115         * nscd/hstcache.c (tryagain): Define.
37116         (cache_addhst): Return tryagain not notfound for temporary errors.
37117         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
37118         failed.
37119
37120 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
37121
37122         [BZ #10563]
37123         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
37124         to make the syscall.
37125         * sysdeps/unix/sysv/linux/setgroups.c: New file.
37126
37127         [BZ #12378]
37128         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
37129         and fall back to matching as normal character if the string ends before
37130         the matching ']' is found.  This is what POSIX requires.
37131         * posix/testfnm.c: Adjust test result.
37132         * posix/globtest.sh: Adjust test result.  Add new test.
37133         * posix/tst-fnmatch.input: Likewise.
37134         * posix/tst-fnmatch2.c: Add new test.
37135
37136 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
37137
37138         * elf/Makefile (check-execstack): Revert last change.  Depend on
37139         check-execstack.h.
37140         (check-execstack.h): New target.
37141         (generated): Add check-execstack.h.
37142         * elf/check-execstack.c: Include "check-execstack.h".
37143         (main): Revert last change.
37144         (handle_file): Return zero if GNU_STACK is absent and
37145         DEFAULT_STACK_PERMS doesn't include PF_X.
37146
37147 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
37148
37149         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
37150         in child fails because the descriptor is already closed.
37151         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
37152         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
37153         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
37154
37155         [BZ #12397]
37156         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
37157         syscall.
37158
37159         [BZ #10484]
37160         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
37161         temporary buffer used to handle multi lookups locally.
37162         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
37163
37164 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37165
37166         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
37167         loader is ld.so.
37168
37169 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
37170
37171         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
37172         alignment for SSE2.
37173
37174 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37175
37176         [BZ #12394]
37177         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
37178         characters.  When rounding increased number of integer digits recompute
37179         number of groups.
37180         * stdio-common/tst-grouping.c: New file.
37181         * stdio-common/Makefile: Add rules to build and run tst-grouping.
37182
37183 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
37184
37185         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
37186         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
37187
37188         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
37189         void.
37190         * bits/select.h: Likewise.
37191
37192 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
37193
37194         * po/ja.po: Update from translation team.
37195
37196 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
37197
37198         [BZ #11155]
37199         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
37200         implementation just like for lxstat, fxstatat, et al.
37201
37202 2010-12-27  Jim Meyering  <meyering@redhat.com>
37203
37204         [BZ #12348]
37205         * posix/regexec.c (build_trtable): Return failure indication upon
37206         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
37207
37208 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
37209
37210         [BZ #12201]
37211         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
37212         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
37213         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
37214         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
37215
37216         [BZ #12207]
37217         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
37218
37219         [BZ #12204]
37220         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
37221         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
37222
37223 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
37224
37225         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
37226         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
37227         script has SORT_BY_INIT_PRIORITY.
37228         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
37229         NO_CTORS_DTORS_SECTIONS is defined.
37230         * elf/soinit.c: Likewise.
37231         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
37232         NO_CTORS_DTORS_SECTIONS is defined.
37233         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
37234         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
37235         * sysdeps/sh/init-first.c: Likewise.
37236         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
37237
37238 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
37239
37240         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
37241         always use the slow path.
37242
37243 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
37244
37245         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
37246         similar rule which adds the sysdep directories to the header search in
37247         order to pick up the correct platform stackinfo.h.
37248         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
37249         perform test if it is, otherwise return successfully without testing.
37250         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
37251         DEFAULT_STACK_PERMS define in stackinfo.h.
37252         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
37253         defined in stackinfo.h.
37254         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
37255         DEFAULT_STACK_PERMS defined in stackinfo.h.
37256         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
37257         * sysdeps/ia64/stackinfo.h: Likewise.
37258         * sysdeps/s390/stackinfo.h: Likewise.
37259         * sysdeps/sh/stackinfo.h: Likewise.
37260         * sysdeps/sparc/stackinfo.h: Likewise.
37261         * sysdeps/x86_64/stackinfo.h: Likewise.
37262         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
37263         PF_X for powerpc64.  Retain PF_X for powerpc32.
37264
37265 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
37266
37267         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
37268         accurately.
37269         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
37270         GETDENTS_64BIT_ALIGNED.
37271
37272 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
37273
37274         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
37275
37276 2010-12-10  Andreas Schwab  <schwab@redhat.com>
37277
37278         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
37279         _GNU_SOURCE.
37280
37281         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
37282         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
37283         Remove __restrict.
37284         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
37285         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
37286
37287 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
37288
37289         [BZ #11655]
37290         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
37291         are initialized.
37292
37293 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
37294
37295         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
37296
37297 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
37298
37299         * po/it.po: Update from translation team.
37300
37301 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
37302
37303         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
37304         unused codes.
37305
37306 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
37307
37308         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
37309
37310 2010-11-24  Andreas Schwab  <schwab@redhat.com>
37311
37312         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
37313         specially.
37314         (gaih_getanswer_slice): Likewise.
37315
37316 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
37317
37318         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
37319
37320 2010-05-31  Petr Baudis  <pasky@suse.cz>
37321
37322         [BZ #11149]
37323         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
37324         silently even in the chroot mode.
37325
37326 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
37327
37328         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
37329         last patch a bit.  Pretty printing
37330
37331 2010-05-31  Petr Baudis <pasky@suse.cz>
37332
37333         [BZ #10085]
37334         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
37335         initialization of skip_initgroups_dyn.
37336
37337 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
37338
37339         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
37340         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37341
37342 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
37343
37344         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
37345
37346 2010-11-11  Andreas Schwab  <schwab@redhat.com>
37347
37348         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
37349         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
37350         (tst-fnmatch-ENV): Set MALLOC_TRACE.
37351         ($(objpfx)tst-fnmatch-mem): New rule.
37352         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
37353         * posix/tst-fnmatch.c (main): Call mtrace.
37354
37355 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
37356
37357         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37358         Support Intel processor model 6 and model 0x2c.
37359
37360 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
37361
37362         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
37363           signed comparison.
37364
37365 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
37366
37367         [BZ #12205]
37368         * string/test-strncasecmp.c (check_result): New function.
37369         (do_one_test): Use it.
37370         (check1): New function.
37371         (test_main): Use it.
37372         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
37373         Support strcasecmp and strncasecmp.
37374
37375 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
37376
37377         [BZ #12194]
37378         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
37379         * sysdeps/x86_64/bits/byteswap.h: Likewise.
37380
37381 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
37382
37383         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
37384         IFUNC support.
37385         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37386         memset-x86-64.
37387         * sysdeps/x86_64/multiarch/bzero.S: New file.
37388         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
37389         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
37390         * sysdeps/x86_64/multiarch/memset.S: New file.
37391         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
37392         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37393         Set bit_Prefer_SSE_for_memop for Intel processors.
37394         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
37395         Define.
37396         (index_Prefer_SSE_for_memop): Define.
37397         (HAS_PREFER_SSE_FOR_MEMOP): Define.
37398
37399 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
37400
37401         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
37402         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
37403
37404 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
37405
37406         [BZ #12191]
37407         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37408         (__x86_64_raw_data_cache_size_half): Likewise.
37409         (__x86_64_raw_shared_cache_size): Likewise.
37410         (__x86_64_raw_shared_cache_size_half): Likewise.
37411
37412         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37413         (__x86_64_raw_data_cache_size_half): Likewise.
37414         (__x86_64_raw_shared_cache_size): Likewise.
37415         (__x86_64_raw_shared_cache_size_half): Likewise.
37416         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
37417         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
37418         and __x86_64_raw_shared_cache_size_half.  Round
37419         __x86_64_data_cache_size_half, __x86_64_data_cache_size
37420         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
37421         to multiple of 256 bytes.
37422
37423 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
37424
37425         [BZ #12167]
37426         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
37427         of inacessible symlinks.  Verify result of symlink before returning it.
37428         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37429         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
37430
37431 2010-10-28  Erich Ritz  <erichritz@gmail.com>
37432
37433         * math/math.h (isinf): Fix typo in comment.
37434
37435 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
37436
37437         * po/da.po: Update from translation team.
37438
37439 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
37440
37441         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
37442         is added to the list.
37443
37444 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37445             Ulrich Drepper  <drepper@gmail.com>
37446
37447         * elf/dl-object.c (_dl_new_object): Don't append the new object to
37448         the global list here.  Move code to...
37449         (_dl_add_to_namespace_list): ...here.  New function.
37450         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
37451         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
37452         * elf/dl-load.c (lose): Don't remove the element from the list.
37453         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
37454         (_dl_map_object): Likewise.
37455
37456 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
37457
37458         [BZ #12159]
37459         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
37460         into all bytes of SSE register.
37461         Patch by Richard Li <richardpku@gmail.com>.
37462
37463 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
37464
37465         [BZ #12140]
37466         * malloc/malloc.c (_int_free): Fill correct number of bytes when
37467         perturbing.
37468
37469 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
37470
37471         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
37472         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
37473         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
37474         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
37475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
37476         submachine.
37477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
37478
37479 2010-10-22  Andreas Schwab  <schwab@redhat.com>
37480
37481         * include/dlfcn.h (__RTLD_SECURE): Define.
37482         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
37483         mode & __RTLD_SECURE instead.
37484         (open_path): Rename preloaded parameter to secure.
37485         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
37486         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
37487         * elf/dl-deps.c (openaux): Likewise.
37488         * elf/rtld.c (struct map_args): Remove is_preloaded.
37489         (map_doit): Don't use it.
37490         (dl_main): Likewise.
37491         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
37492         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
37493
37494 2010-09-09  Andreas Schwab  <schwab@redhat.com>
37495
37496         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
37497         (sysd-rules-targets): Remove duplicates.
37498         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
37499         rtld-%.$o dependency.
37500
37501 2010-10-18  Andreas Schwab  <schwab@redhat.com>
37502
37503         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
37504         _dl_map_object do it.
37505
37506 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
37507
37508         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
37509         fast fma builtins, define the macros in the C99 standard.
37510         (FP_FAST_FMAF): Likewise.
37511         (FP_FAST_FMAL): Likewise.
37512         * sysdeps/x86_64/bits/mathdef.h: Likewise.
37513
37514         * bits/mathdef.h: Update copyright year.
37515         * sysdeps/powerpc/bits/mathdef.h: Likewise.
37516
37517 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
37518
37519         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
37520         builtins, define the macros in the C99 standard.
37521         (FP_FAST_FMAF): Likewise.
37522         (FP_FAST_FMAL): Likewise.
37523         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
37524         multiply/add.
37525         (FP_FAST_FMAF): Likewise.
37526
37527 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
37528
37529         [BZ #3268]
37530         * math/libm-test.inc (fma_test): Some new testcases.
37531         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
37532         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
37533         y and infinite z.  Do multiplication by C already in long double.
37534         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
37535         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
37536         y and infinite z.  Do bitwise or of inexact bit into u.d.
37537         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
37538         * sysdeps/i386/fpu/s_fmaf.S: Removed.
37539         * sysdeps/i386/fpu/s_fma.S: Removed.
37540         * sysdeps/i386/fpu/s_fmal.S: Removed.
37541
37542 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
37543
37544         [BZ #3268]
37545         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
37546         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
37547         computation is not scheduled after fetestexcept.  Fix value
37548         of minimum denormal long double.
37549
37550 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
37551
37552         [BZ #3268]
37553         * math/libm-test.inc (fma_test): Add some more tests.
37554         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
37555         correctly.
37556
37557 2010-10-15  Andreas Schwab  <schwab@redhat.com>
37558
37559         * scripts/data/localplt-s390-linux-gnu.data: New file.
37560         * scripts/data/localplt-s390x-linux-gnu.data: New file.
37561
37562 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
37563
37564         [BZ #3268]
37565         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
37566         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
37567         instead of dbl-64.
37568         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
37569         inlines.
37570         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
37571         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
37572         if one of x and y is very large and the other is subnormal.
37573         * sysdeps/s390/fpu/s_fmaf.c: New file.
37574         * sysdeps/s390/fpu/s_fma.c: New file.
37575         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
37576         * sysdeps/powerpc/fpu/s_fma.S: New file.
37577         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
37578         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
37579         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
37580
37581 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
37582
37583         [BZ #3268]
37584         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
37585         fma tests.
37586         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
37587         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
37588         * sysdeps/i386/i686/multiarch/s_fma.c: Include
37589         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
37590         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
37591         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
37592         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
37593
37594 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
37595
37596         [BZ #12078]
37597         * posix/regcomp.c (parse_branch): One more memory leak plugged.
37598         * posix/bug-regex31.input: Add test case.
37599
37600 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37601
37602         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
37603         * posix/bug-regex31.input: New file.
37604
37605         [BZ #12078]
37606         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
37607         (parse_sub_exp): Fix last change, use postorder.
37608
37609         * posix/bug-regex31.c: New file.
37610         * posix/Makefile: Add rules to build and run bug-regex31.
37611
37612         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
37613
37614         [BZ #12078]
37615         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
37616
37617         [BZ #12108]
37618         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
37619         to have entries in sys_siglist.
37620
37621         [BZ #12093]
37622         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
37623         be NULL.
37624
37625 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
37626
37627         [BZ #3268]
37628         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
37629         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
37630         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
37631         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
37632         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
37633         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
37634         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
37635         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
37636         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
37637         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
37638         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
37639         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
37640         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
37641         * math/ftestexcept.c (fetestexcept): Likewise.
37642         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
37643         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
37644         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
37645         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
37646         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
37647         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
37648         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
37649
37650 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37651
37652         [BZ #12107]
37653         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
37654         newline.
37655
37656 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
37657
37658         * string/bug-strstr1.c: New file.
37659         * string/Makefile: Add rules to build and run bug-strstr1.
37660
37661 2010-10-05  Eric Blake  <eblake@redhat.com>
37662
37663         [BZ #12092]
37664         * string/str-two-way.h (two_way_long_needle): Always clear memory
37665         when skipping input due to the shift table.
37666
37667 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
37668
37669         [BZ #12005]
37670         * malloc/mcheck.c: Handle large requests.
37671
37672         [BZ #12077]
37673         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
37674         for strncmp and strncasecmp.
37675         * string/stratcliff.c: Add tests for strcmp and strncmp.
37676         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
37677
37678 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37679
37680         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
37681         __set_fpscr.
37682
37683 2010-09-30  Andreas Jaeger  <aj@suse.de>
37684
37685         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
37686         (CGROUP_SUPER_MAGIC): Define.
37687         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37688         Handle btrfs and cgroup file systems.
37689         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
37690         Likewise.
37691
37692 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
37693
37694         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
37695         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
37696
37697 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37698
37699         [BZ #12067]
37700         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
37701         trying to locate the ELF header.
37702
37703 2010-09-27  Andreas Schwab  <schwab@redhat.com>
37704
37705         [BZ #11611]
37706         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
37707         Mask out sign-bit copies when constructing f_fsid.
37708
37709 2010-09-24  Petr Baudis <pasky@suse.cz>
37710
37711         * debug/stack_chk_fail_local.c: Add missing licence exception.
37712         * debug/warning-nop.c: Likewise.
37713
37714 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
37715
37716         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
37717         implementing getdents64 using getdents syscall, set d_type if
37718         __ASSUME_GETDENTS32_D_TYPE.
37719
37720 2010-09-16  Andreas Schwab  <schwab@redhat.com>
37721
37722         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
37723         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
37724
37725 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
37726
37727         [BZ #12037]
37728         * posix/unistd.h: Undo change of feature selection for ftruncate from
37729         2010-01-11.
37730
37731 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
37732
37733         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
37734         detection.
37735
37736 2010-09-20  Andreas Schwab  <schwab@redhat.com>
37737
37738         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
37739         fanotify_mark.
37740         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
37741
37742 2010-09-14  Andreas Schwab  <schwab@redhat.com>
37743
37744         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
37745         variables after CHECK_SP call.
37746         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
37747
37748 2010-09-13  Andreas Schwab  <schwab@redhat.com>
37749             Ulrich Drepper  <drepper@redhat.com>
37750
37751         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
37752         re-relocationg ld.so.
37753         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
37754         _dl_init_paths call.
37755         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
37756         here anymore.
37757
37758 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
37759
37760         * resolv/res_init.c (__res_vinit): Count the default server we added.
37761
37762 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
37763             Ulrich Drepper  <drepper@redhat.com>
37764
37765         [BZ #11968]
37766         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
37767         (____longjmp_chk): Use %ebx for saving value across system call.
37768         Add unwind info.
37769
37770 2010-09-06  Andreas Schwab  <schwab@redhat.com>
37771
37772         * manual/Makefile: Don't mix pattern rules with normal rules.
37773
37774 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
37775
37776         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
37777         operation.
37778         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
37779         * libio/iofopncook.c (_IO_cookie_init): Likewise.
37780         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
37781         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
37782         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
37783         Likewise.
37784
37785 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
37786
37787         [BZ #11979]
37788         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
37789         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
37790
37791 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
37792
37793         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
37794         * sysdeps/x86_64/addmul_1.S: Likewise.
37795         * sysdeps/x86_64/lshift.S: Likewise.
37796         * sysdeps/x86_64/mul_1.S: Likewise.
37797         * sysdeps/x86_64/rshift.S: Likewise.
37798         * sysdeps/x86_64/sub_n.S: Likewise.
37799         * sysdeps/x86_64/submul_1.S: Likewise.
37800
37801 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37802
37803         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
37804         Define __sched_param instead of SCHED_* and sched_param when
37805         <bits/sched.h> is included with __need_schedparam defined.
37806         * bits/sched.h [__need_schedparam]
37807         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
37808         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
37809         (__defined_schedparam): Define to 1.
37810         (__sched_param): New structure, identical to sched_param.
37811         (__need_schedparam): Undefine.
37812
37813 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
37814
37815         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
37816         (epoll_create1): Declare.
37817
37818         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
37819
37820 2010-08-31  Andreas Schwab  <schwab@redhat.com>
37821
37822         [BZ #7066]
37823         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
37824         shifting retval into place.
37825
37826 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
37827
37828         * nis/rpcsvc/nis.h: Update copyright notice.
37829         * nis/rpcsvc/nis.x: Likewise.
37830         * nis/rpcsvc/nis_callback.h: Likewise.
37831         * nis/rpcsvc/nis_callback.x: Likewise.
37832         * nis/rpcsvc/nis_object.x: Likewise.
37833         * nis/rpcsvc/nis_tags.h: Likewise.
37834         * nis/rpcsvc/yp.h: Likewise.
37835         * nis/rpcsvc/yp.x: Likewise.
37836         * nis/rpcsvc/ypupd.h: Likewise.
37837         * nis/yp_xdr.c: Likewise.
37838         * nis/ypupdate_xdr.c: Likewise.
37839
37840         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
37841         mainly the body of pmap_getport.  Add parameters to specify timeouts.
37842         (pmap_getport): Use __libc_rpc_getport.
37843         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
37844         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
37845         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
37846
37847 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
37848
37849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
37850         fanotify_mark.
37851
37852 2010-08-27  Roland McGrath  <roland@redhat.com>
37853
37854         * sysdeps/i386/i686/multiarch/Makefile
37855         (CFLAGS-varshift.c): New variable.
37856
37857 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
37858
37859         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
37860         * sysdeps/i386/i686/multiarch/varshift.c: New file.
37861
37862         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
37863
37864         * sysdeps/x86_64/strlen.S: Minimal code improvement.
37865
37866 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
37867
37868         * sysdeps/x86_64/strlen.S: Unroll the loop.
37869         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37870         strlen-sse2 strlen-sse2-bsf.
37871         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
37872         __strlen_no_bsf if bit_Slow_BSF is set.
37873         (__strlen_sse42): Removed.
37874         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
37875         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
37876
37877 2010-08-25  Roland McGrath  <roland@redhat.com>
37878
37879         * sysdeps/x86_64/multiarch/varshift.S: File removed.
37880         * sysdeps/x86_64/multiarch/varshift.c: New file.
37881         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
37882         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
37883         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
37884         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
37885
37886 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
37887
37888         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37889         strlen-sse2 strlen-sse2-bsf.
37890         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
37891         __strlen_sse2_bsf if bit_Slow_BSF is unset.
37892         (__strlen_sse2): Removed.
37893         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
37894         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
37895         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
37896         bit_Slow_BSF for Atom.
37897         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
37898         (index_Slow_BSF): Define.
37899         (HAS_SLOW_BSF): Define.
37900
37901 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
37902
37903         [BZ #10851]
37904         * resolv/res_init.c (__res_vinit): When no server address at all
37905         is given default to loopback.
37906
37907 2010-08-24  Roland McGrath  <roland@redhat.com>
37908
37909         * configure.in: Remove config-name.h generation.
37910         * configure: Regenerated.
37911         * config-name.in: File removed.
37912         * scripts/config-uname.sh: New file.
37913         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
37914         ($(objdir)config-name.h): New target.
37915
37916         * sunrpc/rpc_parse.h: Avoid nested comment.
37917
37918 2010-08-24  Richard Henderson  <rth@redhat.com>
37919             Ulrich Drepper  <drepper@redhat.com>
37920             H.J. Lu  <hongjiu.lu@intel.com>
37921
37922         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
37923         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
37924         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
37925         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
37926         _mm_alignr_epi8 with _mm_loadu_si128.
37927         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
37928         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
37929         (__m128i_shift_right): Removed.
37930         * sysdeps/i386/i686/multiarch/varshift.h: New file.
37931         * sysdeps/i386/i686/multiarch/varshift.S: New file.
37932         * sysdeps/x86_64/multiarch/varshift.h: New file.
37933         * sysdeps/x86_64/multiarch/varshift.S: New file.
37934
37935 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
37936
37937         * configure.in: Move assembler checks to before sysdep dir checking.
37938
37939 2010-08-20  Petr Baudis  <pasky@suse.cz>
37940
37941         * LICENSES: Sync the sunrpc license.
37942
37943 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
37944
37945         * sunrpc/auth_des.c: Update copyright notice once again.
37946         * sunrpc/auth_none.c: Likewise.
37947         * sunrpc/auth_unix.c: Likewise.
37948         * sunrpc/authdes_prot.c: Likewise.
37949         * sunrpc/authuxprot.c: Likewise.
37950         * sunrpc/bindrsvprt.c: Likewise.
37951         * sunrpc/clnt_gen.c: Likewise.
37952         * sunrpc/clnt_perr.c: Likewise.
37953         * sunrpc/clnt_raw.c: Likewise.
37954         * sunrpc/clnt_simp.c: Likewise.
37955         * sunrpc/clnt_tcp.c: Likewise.
37956         * sunrpc/clnt_udp.c: Likewise.
37957         * sunrpc/clnt_unix.c: Likewise.
37958         * sunrpc/des_crypt.c: Likewise.
37959         * sunrpc/des_soft.c: Likewise.
37960         * sunrpc/get_myaddr.c: Likewise.
37961         * sunrpc/getrpcport.c: Likewise.
37962         * sunrpc/key_call.c: Likewise.
37963         * sunrpc/key_prot.c: Likewise.
37964         * sunrpc/openchild.c: Likewise.
37965         * sunrpc/pm_getmaps.c: Likewise.
37966         * sunrpc/pm_getport.c: Likewise.
37967         * sunrpc/pmap_clnt.c: Likewise.
37968         * sunrpc/pmap_prot.c: Likewise.
37969         * sunrpc/pmap_prot2.c: Likewise.
37970         * sunrpc/pmap_rmt.c: Likewise.
37971         * sunrpc/rpc/auth.h: Likewise.
37972         * sunrpc/rpc/auth_unix.h: Likewise.
37973         * sunrpc/rpc/clnt.h: Likewise.
37974         * sunrpc/rpc/des_crypt.h: Likewise.
37975         * sunrpc/rpc/key_prot.h: Likewise.
37976         * sunrpc/rpc/netdb.h: Likewise.
37977         * sunrpc/rpc/pmap_clnt.h: Likewise.
37978         * sunrpc/rpc/pmap_prot.h: Likewise.
37979         * sunrpc/rpc/pmap_rmt.h: Likewise.
37980         * sunrpc/rpc/rpc.h: Likewise.
37981         * sunrpc/rpc/rpc_des.h: Likewise.
37982         * sunrpc/rpc/rpc_msg.h: Likewise.
37983         * sunrpc/rpc/svc.h: Likewise.
37984         * sunrpc/rpc/svc_auth.h: Likewise.
37985         * sunrpc/rpc/types.h: Likewise.
37986         * sunrpc/rpc/xdr.h: Likewise.
37987         * sunrpc/rpc_clntout.c: Likewise.
37988         * sunrpc/rpc_cmsg.c: Likewise.
37989         * sunrpc/rpc_common.c: Likewise.
37990         * sunrpc/rpc_cout.c: Likewise.
37991         * sunrpc/rpc_dtable.c: Likewise.
37992         * sunrpc/rpc_hout.c: Likewise.
37993         * sunrpc/rpc_main.c: Likewise.
37994         * sunrpc/rpc_parse.c: Likewise.
37995         * sunrpc/rpc_parse.h: Likewise.
37996         * sunrpc/rpc_prot.c: Likewise.
37997         * sunrpc/rpc_sample.c: Likewise.
37998         * sunrpc/rpc_scan.c: Likewise.
37999         * sunrpc/rpc_scan.h: Likewise.
38000         * sunrpc/rpc_svcout.c: Likewise.
38001         * sunrpc/rpc_tblout.c: Likewise.
38002         * sunrpc/rpc_util.c: Likewise.
38003         * sunrpc/rpc_util.h: Likewise.
38004         * sunrpc/rpcinfo.c: Likewise.
38005         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
38006         * sunrpc/rpcsvc/key_prot.x: Likewise.
38007         * sunrpc/rpcsvc/klm_prot.x: Likewise.
38008         * sunrpc/rpcsvc/mount.x: Likewise.
38009         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
38010         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
38011         * sunrpc/rpcsvc/rex.x: Likewise.
38012         * sunrpc/rpcsvc/rstat.x: Likewise.
38013         * sunrpc/rpcsvc/rusers.x: Likewise.
38014         * sunrpc/rpcsvc/sm_inter.x: Likewise.
38015         * sunrpc/rpcsvc/spray.x: Likewise.
38016         * sunrpc/rpcsvc/yppasswd.x: Likewise.
38017         * sunrpc/rtime.c: Likewise.
38018         * sunrpc/svc.c: Likewise.
38019         * sunrpc/svc_auth.c: Likewise.
38020         * sunrpc/svc_authux.c: Likewise.
38021         * sunrpc/svc_raw.c: Likewise.
38022         * sunrpc/svc_run.c: Likewise.
38023         * sunrpc/svc_simple.c: Likewise.
38024         * sunrpc/svc_tcp.c: Likewise.
38025         * sunrpc/svc_udp.c: Likewise.
38026         * sunrpc/svc_unix.c: Likewise.
38027         * sunrpc/svcauth_des.c: Likewise.
38028         * sunrpc/xcrypt.c: Likewise.
38029         * sunrpc/xdr.c: Likewise.
38030         * sunrpc/xdr_array.c: Likewise.
38031         * sunrpc/xdr_float.c: Likewise.
38032         * sunrpc/xdr_mem.c: Likewise.
38033         * sunrpc/xdr_rec.c: Likewise.
38034         * sunrpc/xdr_ref.c: Likewise.
38035         * sunrpc/xdr_sizeof.c: Likewise.
38036         * sunrpc/xdr_stdio.c: Likewise.
38037
38038         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
38039         handling.
38040
38041 2010-08-19  Andreas Schwab  <schwab@redhat.com>
38042
38043         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
38044
38045 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
38046
38047         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
38048         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
38049         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
38050         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
38051         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
38052         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
38053         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
38054         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
38055         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
38056         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
38057         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
38058         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
38059         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
38060         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
38061
38062 2010-07-26  Anton Blanchard  <anton@samba.org>
38063
38064         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
38065         * malloc/arena.c (heap_trim): Likewise.
38066
38067 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
38068
38069         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
38070         here.  Not...
38071         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
38072         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
38073
38074 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
38075
38076         * sysdeps/i386/elf/Makefile: New file.
38077
38078 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38079
38080         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
38081         from fanotify_init.
38082         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
38083         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38084
38085 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
38086
38087         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
38088         of strncasecmp_l.
38089         * sysdeps/multiarch/strcmp.S: Likewise.
38090
38091 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
38092
38093         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38094         strncase_l-nonascii.
38095         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38096         Add strncase_l-ssse3.
38097         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
38098         * sysdeps/x86_64/strcmp.S: Likewise.
38099         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
38100         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
38101         * sysdeps/x86_64/strncase.S: New file.
38102         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
38103         * sysdeps/x86_64/strncase_l.S: New file.
38104         * string/Makefile (strop-tests): Add strncasecmp.
38105         * string/test-strncasecmp.c: New file.
38106
38107         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
38108         warning.
38109
38110         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
38111         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
38112
38113 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38114
38115         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
38116
38117 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
38118
38119         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
38120         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
38121         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
38122
38123 2010-05-01  Alan Modra  <amodra@gmail.com>
38124
38125         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
38126         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
38127         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
38128         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
38129         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
38130         tidying.  Don't tail-call __sigjmp_save for static lib.
38131         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
38132         save location.
38133         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
38134         (CALL_MCOUNT): Add eh info, and nop after bl.
38135         (TAIL_CALL_SYSCALL_ERROR): New macro.
38136         (PSEUDO_RET): Use it.
38137         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
38138         Correct save location of integer regs and cr.
38139         (_dl_profile_resolve): Correct cr save location.  Delete nops
38140         after bl when SHARED.  Reduce cfi size a little by better
38141         placement of cfi directives.
38142         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
38143         make a stack frame.  Instead use parm save area as a temp.
38144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
38145         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
38146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
38147         Don't make a stack frame for parent, use parm save area.
38148         Increase child stack frame to 112 bytes.  Don't save unused reg,
38149         and adjust reg usage.  Set up cfi on error recovery and
38150         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
38151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
38152         (__makecontext): Add dummy nop after jump to exit.
38153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
38154         Use correct parm save area and cr save, reduce stack frame.
38155         Correct cfi for possible PSEUDO_RET frame setup.
38156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
38157         Branch to local label emitted by PSEUDO_RET rather than
38158         __syscall_error.
38159
38160 2010-08-12  Andreas Schwab  <schwab@redhat.com>
38161
38162         [BZ #11904]
38163         * locale/programs/locale.c (print_assignment): New function.
38164         (show_locale_vars): Use it.
38165
38166 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
38167
38168         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
38169         field.
38170         (struct statfs64): Likewise.
38171         (_STATFS_F_FLAGS): Define.
38172         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
38173         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38174         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
38175         (ST_VALID): Define locally.
38176         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
38177         __statvfs_getflags, use the provided value.
38178         * sysdeps/unix/sysv/linux/kernel-features.h: Define
38179         __ASSUME_STATFS_F_FLAGS.
38180
38181         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
38182
38183         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
38184         Add sys/fanotify.h.
38185         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
38186         fanotify_mask for GLIBC_2.13.
38187         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
38188         fanotify_init and fanotify_mark.
38189         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38190         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
38191
38192         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
38193         Add prlimit.
38194         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
38195         prlimit64 for GLIBC_2.13.
38196         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
38197         prlimit64.
38198         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
38199         syscall.
38200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
38201         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
38202         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
38203         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
38204         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
38205         add prlimit alias.
38206         * sysdeps/unix/sysv/linux/prlimit.c: New file.
38207
38208         [BZ #11903]
38209         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
38210         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
38211
38212         * nss/Makefile: Add rules to build and run tst-nss-test1.
38213         * shlib-versions: Add entry for libnss_test1.
38214         * nss/nss_test1.c: New file.
38215         * nss/tst-nss-test1.c: New file.
38216
38217         * nss/nsswitch.c (__nss_database_custom): Define new variable.
38218         (__nss_configure_lookup): Set appropriate entry in
38219         __nss_configure_lookup to true.
38220         * nss/nsswitch.h: Define enum with indeces of databases in
38221         databases and __nss_database_custom arrays.  Declare
38222         __nss_database_custom.
38223         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
38224         to avoid using nscd when custom rules are installed.
38225         * nss/getXXbyYY_r.c: Likewise.
38226         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
38227
38228         * nss/nss_files/files-parse.c: Whitespace fixes.
38229
38230 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
38231
38232         [BZ #11883]
38233         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
38234         * posix/fnmatch_loop.c: Likewise.
38235
38236 2010-07-17  Andi Kleen  <ak@linux.intel.com>
38237
38238         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
38239         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
38240         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
38241         * Versions.def [GLIBC_2.13]: Add.
38242
38243 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
38244
38245         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38246         Also fail if tpwd after pwuid call is NULL.
38247
38248 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38249
38250         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
38251         when converting to ms.
38252
38253 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38254
38255         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
38256         EOPNOTSUPP errors with ENOTTY.
38257         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
38258         EOPNOTSUPP errors with ENOTTY.
38259
38260 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
38261
38262         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38263         Add strcasecmp_l-ssse3.
38264         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
38265         strcasecmp.
38266         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
38267         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
38268         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
38269
38270 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
38271
38272         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
38273
38274         * string/Makefile (strop-tests): Add strcasecmp.
38275         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38276         strcasecmp_l-nonascii.
38277         (gen-as-const-headers): Add locale-defines.sym.
38278         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
38279         * sysdeps/x86_64/strcasecmp.S: New file.
38280         * sysdeps/x86_64/strcasecmp_l.S: New file.
38281         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
38282         * sysdeps/x86_64/locale-defines.sym: New file.
38283         * string/test-strcasecmp.c: New file.
38284
38285         * string/test-strcasestr.c: Test both ends of the range of characters.
38286         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
38287
38288 2010-07-29  Roland McGrath  <roland@redhat.com>
38289
38290         [BZ #11856]
38291         * manual/locale.texi (Yes-or-No Questions): Fix example code.
38292
38293 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
38294
38295         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
38296         for ld.so.
38297
38298 2010-07-27  Andreas Schwab  <schwab@redhat.com>
38299
38300         * manual/memory.texi (Malloc Tunable Parameters): Document
38301         M_PERTURB.
38302
38303 2010-07-26  Roland McGrath  <roland@redhat.com>
38304
38305         [BZ #11840]
38306         * configure.in (-fgnu89-inline check): Set and substitute
38307         gnu89_inline, not libc_cv_gnu89_inline.
38308         * configure: Regenerated.
38309         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
38310
38311 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
38312
38313         * string/test-strnlen.c: New file.
38314         * string/Makefile (strop-tests): Add strnlen.
38315         * string/tester.c (test_strnlen): Add a few more test cases.
38316         * string/tst-strlen.c: Better error reporting.
38317
38318         * sysdeps/x86_64/strnlen.S: New file.
38319
38320 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
38321
38322         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
38323         lower-latency instructions.
38324
38325 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
38326
38327         * string/test-strcasestr.c: New file.
38328         * string/test-strstr.c: New file.
38329         * string/Makefile (strop-tests): Add strstr and strcasestr.
38330         * string/str-two-way.h: Don't undefine MAX.
38331         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
38332
38333 2010-07-21  Andreas Schwab  <schwab@redhat.com>
38334
38335         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38336         strcasestr-nonascii.
38337         (CFLAGS-strcasestr-nonascii.c): Define.
38338         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
38339         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
38340         Remove unused attribute.
38341
38342 2010-07-20  Roland McGrath  <roland@redhat.com>
38343
38344         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
38345         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
38346         ld.so.cache was broken.  With it, there is no way to disable dsocaps
38347         like LD_HWCAP_MASK can disable hwcaps.
38348
38349 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38350
38351         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
38352
38353 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
38354
38355         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
38356         call in strcasestr.
38357         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
38358         __strcasestr_sse42_nonascii.
38359         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
38360         strcasestr-nonascii.c.
38361         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
38362
38363 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
38364
38365         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
38366         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
38367         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
38368         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
38369
38370 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
38371
38372         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
38373         fcntl.
38374
38375 2010-07-06  Andreas Schwab  <schwab@redhat.com>
38376
38377         [BZ #11577]
38378         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
38379         dl_signal_cerror.
38380
38381 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
38382
38383         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
38384         _PC_PIPE_BUF using F_GETPIPE_SZ.
38385
38386 2010-07-05  Roland McGrath  <roland@redhat.com>
38387
38388         * manual/arith.texi (Rounding Functions): Fix rint description
38389         implicit in round description.
38390
38391 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
38392
38393         * elf/Makefile: Fix linking for a few tests to make recent linker
38394         happy.
38395
38396 2010-06-30  Andreas Schwab  <schwab@redhat.com>
38397
38398         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
38399         $(common-objpfx)libc_nonshared.a.
38400
38401 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
38402
38403         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
38404         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
38405         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38406         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38407         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
38408         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
38409         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38410         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
38412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
38413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
38414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
38416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
38418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
38419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
38420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
38421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
38423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
38425         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
38426         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
38427         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
38428         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
38429         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
38430         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
38431         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
38432         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
38433         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
38434         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
38435         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
38436         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
38437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
38438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
38439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
38440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
38441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
38442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
38443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
38444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
38445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
38446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
38447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
38448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
38449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
38450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
38451
38452 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
38453
38454         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
38455         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
38456         * string/memmove.c (memmove): Renamed to ...
38457         (MEMMOVE): ...this.  Default to memmove.
38458         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
38459         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
38460         (END_CHK): Define.
38461         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38462         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
38463         mempcpy-ssse3-back memmove-ssse3-back.
38464         * sysdeps/x86_64/multiarch/bcopy.S: New file .
38465         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
38466         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
38467         * sysdeps/x86_64/multiarch/memcpy.S: New file.
38468         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
38469         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
38470         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
38471         * sysdeps/x86_64/multiarch/memmove.c: New file.
38472         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
38473         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
38474         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
38475         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
38476         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
38477         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
38478         Define.
38479         (index_Fast_Copy_Backward): Define.
38480         (HAS_ARCH_FEATURE): Define.
38481         (HAS_FAST_REP_STRING): Define.
38482         (HAS_FAST_COPY_BACKWARD): Define.
38483
38484 2010-06-21  Andreas Schwab  <schwab@redhat.com>
38485
38486         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38487         Restore proper fallback handling.
38488
38489 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
38490
38491         [BZ #11701]
38492         * posix/group_member.c (__group_member): Correct checking loop.
38493
38494         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
38495         OOM in getpwuid_r correctly.  Return error number when the caller
38496         should return, otherwise -1.
38497         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
38498         call returning > 0 value.
38499         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
38500
38501 2010-06-07  Andreas Schwab  <schwab@redhat.com>
38502
38503         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
38504         libc_nonshared.a from targets in modules-names.
38505
38506 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
38507
38508         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
38509         requires it.
38510
38511 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
38512
38513         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
38514         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
38515         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
38516         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
38517
38518 2010-06-02  Andreas Schwab  <schwab@redhat.com>
38519
38520         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
38521
38522 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
38523
38524         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
38525         and F_GETPIPE_SZ.
38526         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
38527         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
38528         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
38529         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
38530         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
38531         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
38532
38533 2010-06-14  Roland McGrath  <roland@redhat.com>
38534
38535         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
38536
38537 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
38538
38539         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
38540         __REDIRECT followed by __THROW.
38541         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
38542         * posix/getopt.h (getopt): Likewise.
38543
38544 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38545
38546         * hurd/lookup-at.c (__file_name_lookup_at): Accept
38547         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
38548         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
38549         in AT_FLAGS.
38550         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
38551         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
38552
38553 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
38554
38555         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
38556
38557 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
38558
38559         [BZ #11640]
38560         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
38561         Properly check family and model.
38562
38563 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
38564
38565         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
38566
38567 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
38568
38569         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
38570
38571 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
38572
38573         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
38574         symbol reference.
38575
38576 2010-05-19  Andreas Schwab  <schwab@redhat.com>
38577
38578         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
38579         symbol reference.
38580
38581 2010-05-21  Andreas Schwab  <schwab@redhat.com>
38582
38583         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
38584         and internal_recvmmsg.
38585         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
38586         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
38587         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
38588         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
38589
38590         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
38591         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
38592         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
38593
38594 2010-05-20  Andreas Schwab  <schwab@redhat.com>
38595
38596         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
38597
38598 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
38599
38600         POWER7 optimizations.
38601         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
38602         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
38603
38604 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
38605
38606         * version.h: Update for 2.13 development version.
38607
38608 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
38609
38610         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
38611         exceptions.  Return 0.
38612
38613 2010-05-07  Roland McGrath  <roland@redhat.com>
38614
38615         * elf/ldconfig.c (main): Add a const.
38616
38617 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
38618
38619         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
38620         (args_options): Add no-idn option.
38621         (ahosts_keys_int): Add idn_flags to ai_flags.
38622         (parse_option): Handle 'i' option to clear idn_flags.
38623
38624         * malloc/malloc.c (_int_free): Possible race in the most recently
38625         added check.  Only act on the data if no current modification
38626         happened.
38627
38628 See ChangeLog.17 for earlier changes.