Include generic symbol-hacks.h for x32
[jlayton/glibc.git] / ChangeLog
1 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
2
3         [BZ #15605]
4         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
5
6 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7
8         [BZ#16431]
9         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
10         Adjust the vDSO correctly for internal calls.
11         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
12
13 2014-01-20  Allan McRae  <allan@archlinux.org>
14
15         * po/ca.po: Update Catalan translation from translation project.
16
17 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
18
19         * sysdeps/s390/sotruss-lib.c: New file.
20
21 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22
23         [BZ#16430]
24         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
25         (__GI___gettimeofday): Alias for a different internal symbol to avoid
26         local calls issues by not having a PLT stub required for IFUNC calls.
27         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
28
29 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
30
31         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
32         * math/test-fpucw-static.c: Likewise.
33
34 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
35
36         [BZ #16453]
37         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38
39 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40
41         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
42         implementation for powerpc.
43
44 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
45
46         [BZ #14782]
47         * sysdeps/posix/system.c (__libc_system): Do not enable
48         asynchronous cancellation.
49
50 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51
52         [BZ #16427]
53         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
54         handling only for numbers special also in the IEEE case.
55
56 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57
58         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
59
60 2014-01-11  Allan McRae  <allan@archlinux.org>
61
62         * po/bg.po: Update Bulgarian translation from translation project.
63
64         * po/de.po: Update German translation from translation project.
65
66 2014-01-10  Roland McGrath  <roland@hack.frob.com>
67
68         * sysdeps/generic/gcc-compat.h: New file.
69
70 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
71
72         * benchtests/asin-inputs: Correct slow inputs.
73         * benchtests/acos-inputs: Likewise.
74
75 2014-01-10  Allan McRae  <allan@archlinux.org>
76
77         * po:sv.po: Update Swedish translation from translation project.
78
79         * po/vi.po: Update Vietnamese translation from translation project.
80
81         * po/eo.po: Update Esperanto translation from translation project.
82
83         * po/cs.po: Update Czech translation from translation project.
84
85         * po/nl.po: Update Dutch translation from translation project.
86
87         * po/pl.po: Update Polish translation from translation project.
88
89         * po/ru.po: Update Russian translation from translation project.
90
91         * po/uk.po: Update Ukrainian translation from translation project.
92
93 2014-01-08  Brooks Moses  <bmoses@google.com>
94
95         * elf/dl-load.c: Fix comment typo.
96
97 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
98
99         * po/header.pot: Rename to...
100         * po/pot.header: ... this.
101         * po/Makefile: Use pot.header.
102
103 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
104             Maxim Kuvyrkov  <maxim@kugelworks.com>
105
106         [BZ #16394]
107         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
108         SRC and DEST against LEN.
109
110 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
111
112         [BZ #16414]
113         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
114         implementation.
115         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
116
117 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
118
119         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
120
121 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
122
123         [BZ #16408]
124         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
125         for large positive arguments.
126
127 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
128
129         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
130
131         * math/auto-libm-test-in: Mark various tests with
132         xfail-rounding:ldbl-128ibm.
133         * math/auto-libm-test-out: Regenerated.
134
135         [BZ #16407]
136         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
137         Increase overflow threshold.
138
139 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
140
141         [BZ #14286]
142         * stdio-common/vfprintf.c: Check for integer overflow.
143
144 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
145
146         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
147         the first argument and return value of __tls_get_addr_internal.
148
149 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
150
151         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
152         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
153
154 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
155
156         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
157         * sysdeps/s390/rtld-global-offsets.sym: New file.
158         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
159         GLIBC_2.19 symbol.
160         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
161         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
162         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
163         ... this.
164         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
165         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
166         ... this.
167         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
168         Regenerate.
169         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
170         Regenerate.
171         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
172         halfs of GPRs for high_gprs contexts.
173         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
174         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
175         field.
176         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
177         uc_flags field.
178         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
179         64 bit versions:
180         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
181         for high GPRs (uc_high_gprs) and for future extensions
182         (__reserved).
183         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
184         for future extensions (__reserved).
185         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
186         64 bit versions:
187         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
188         SC_HIGHGPRS offset definition.
189         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
190         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
191
192 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
193
194         * Versions.def: Add GLIBC_2.19 for libpthread.
195         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
196         siglongjmp for libpthread with GLIBC_2.19 symver.
197         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
198         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
199         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
200         * sysdeps/s390/__longjmp.c: New file.
201         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
202         * sysdeps/s390/longjmp.c: New file.
203         * sysdeps/s390/setjmp.S: New file.
204         * sysdeps/s390/sigjmp.S: New file.
205         * sysdeps/s390/v1-longjmp.c: New file.
206         * sysdeps/s390/v1-setjmp.h: New file.
207         * sysdeps/s390/v1-sigjmp.c: New file.
208         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
209         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
210         GLIBC_2.19 version.
211         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
212         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
213         versioned symbols for ____longjmp_chk.
214         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
215         Likewise.
216         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
217         Regenerate.
218         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
219         Regenerate.
220         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
221         Regenerate.
222         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
223         Regenerate.
224         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
225         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
226         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
227         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
228         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
229         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
230         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
231         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
232         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
233         * sysdeps/s390/rtld-__longjmp.c: New file.
234         * sysdeps/s390/rtld-setjmp.S: New file.
235
236 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
237
238         [BZ #16400]
239         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
240         Return -__logl (x) for small positive arguments without evaluating
241         a polynomial.
242
243 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
244
245         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
246         Rename to ...
247         (__ptrace_peeksiginfo_args): ... this.
248         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
249         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
250         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
251
252 2014-01-06  Allan McRae  <allan@archlinux.org>
253
254         * inet/netinet/in.h: Fix typo in comment.
255
256 2014-01-05  Andreas Jaeger  <aj@suse.de>
257
258         * sysdeps/i386/fpu/libm-test-ulps: Update.
259
260 2014-01-05  Allan McRae  <allan@archlinux.org>
261
262         * po/libc.pot: Regenerated.
263
264         * malloc/memusagestat.c: Fix gettext call formatting.
265
266 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
267
268         * nscd/nscd.c: Improve usage() output.
269
270 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
271
272         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
273         * sysdeps/unix/sysv/linux/configure: Regenerated.
274         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
275         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
276
277 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
278
279         [BZ #16390]
280         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
281         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
282
283 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
284
285         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
286         extra tokens at end of #undef directive.
287         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
288         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
289         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
290
291 2014-01-03  Andrew Hunter  <ahh@google.com>
292
293         * elf/dl-open.c (dl_open_worker): New comment.
294         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Use
295         atomic_compare_and_exchange_bool_acq
296         (_dl_allocate_static_tls): Block signals.
297         * elf/dl-tls.c (allocate_and_init): Return void.
298         (_dl_update_slotinfo): Block signals, use atomic update.
299
300 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
301
302         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
303
304         * math/auto-libm-test-in: Mark various tests with
305         xfail-rounding:ldbl-128ibm.
306         * math/auto-libm-test-out: Regenerated.
307
308 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
309
310         [BZ #16386]
311         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
312         numbers with subnormal high part when calculating exponent.
313
314         [BZ #16385]
315         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
316         fabs.
317
318         [BZ #16384]
319         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
320         M_LN2l.
321         (__ieee754_acoshl): Use __log1pl not __log1p.
322
323 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
324
325         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all,
326         ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry,
327         __failing_morecore, ptmalloc_init, dump_heap, new_heap, grow_heap,
328         heap_trim, _int_new_arena, get_free_list, reused_arena, arena_get2):
329         Convert to GNU style.
330         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init,
331         mem2mem_check, mem2chunk_check, top_check, realloc_check,
332         memalign_check, __malloc_set_state): Likewise.
333         * malloc/mallocbug.c (main): Likewise.
334         * malloc/malloc.c (__malloc_assert, malloc_init_state, free_perturb,
335         do_check_malloced_chunk, do_check_malloc_state, sysmalloc, systrim,
336         mremap_chunk, __libc_malloc, __libc_free, __libc_realloc, _mid_memalign,
337         _int_malloc, malloc_consolidate, _int_realloc, _int_memalign, mtrim,
338         musable, __libc_mallopt, __posix_memalign, malloc_info): Likewise.
339         * malloc/malloc.h: Likewise.
340         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook, mallochook,
341         memalignhook, reallochook, mabort): Likewise.
342         * malloc/mcheck.h: Likewise.
343         * malloc/memusage.c (update_data, me, malloc, realloc, calloc, free, mmap,
344         mmap64, mremap, munmap, dest): Likewise.
345         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
346         * malloc/morecore.c (__default_morecore): Likewise.
347         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
348         * malloc/obstack.c (_obstack_begin, _obstack_newchunk,
349         _obstack_allocated_p, obstack_free, _obstack_memory_used,
350         print_and_abort): Likewise.
351         * malloc/obstack.h: Likewise.
352         * malloc/set-freeres.c (__libc_freeres): Likewise.
353         * malloc/tst-mallocstate.c (main): Likewise.
354         * malloc/tst-mtrace.c (main): Likewise.
355         * malloc/tst-realloc.c (do_test): Likewise.
356
357 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
358
359         [BZ #16366]
360         * nscd/netgroupcache.c (do_notfound): New function.
361         (addgetnetgrentX): Use it.
362
363         [BZ # 16365]
364         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
365         NSS_STATUS_NOTFOUND.
366
367 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
368
369         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
370         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
371
372 2014-01-01  Allan McRae  <allan@archlinux.org>
373
374         * scripts/update-copyrights: Update configure input file suffix.
375
376         * NEWS: Update copyright year.
377         * catgets/gencat.c: Likewise.
378         * csu/version.c: Likewise.
379         * debug/catchsegv.sh: Likewise.
380         * debug/pcprofiledump.c: Likewise.
381         * debug/xtrace.sh: Likewise.
382         * elf/ldconfig.c: Likewise.
383         * elf/ldd.bash.in: Likewise.
384         * elf/pldd.c: Likewise.
385         * elf/sotruss.ksh: Likewise.
386         * elf/sprof.c: Likewise.
387         * iconv/iconv_prog.c: Likewise.
388         * iconv/iconvconfig.c: Likewise.
389         * locale/programs/locale.c: Likewise.
390         * locale/programs/localedef.c: Likewise.
391         * login/programs/pt_chown.c: Likewise.
392         * malloc/memusage.sh: Likewise.
393         * malloc/memusagestat.c: Likewise.
394         * malloc/mtrace.pl: Likewise.
395         * manual/libc.texinfo: Likewise.
396         * nscd/nscd.c: Likewise.
397         * nss/getent.c: Likewise.
398         * nss/makedb.c: Likewise.
399         * posix/getconf.c: Likewise.
400         * scripts/test-installation.pl: Likewise.
401
402         * All files with FSF copyright notices: Update copyright dates
403         using scripts/update-copyrights.
404         * intl/plural.c: Regenerated.
405         * locale/programs/charmap-kw.h: Likewise.
406         * locale/programs/locfile-kw.h: Likewise.
407
408 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
409
410         * sysdeps/unix/sysv/linux/configure: Regenerated.
411         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
412         the linux/fanotify.h header.
413         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
414         HAVE_LINUX_FANOTIFY_H is defined.
415
416 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
417
418         * benchtests/cos-inputs: New inputs.
419         * benchtests/sin-inputs: Likewise.
420
421         * benchtests/atan-inputs: New inputs. Fix name of multiple
422         precision fallback inputs.
423
424         * benchtests/atanh-inputs: New inputs.
425         * benchtests/tanh-inputs: Likewise.
426
427         * benchtests/acosh-inputs: New inputs.
428         * benchtests/asinh-inputs: Likewise.
429
430         * benchtests/cosh-inputs: New inputs.
431         * benchtests/sinh-inputs: Likewise.
432
433         * benchtests/acos-inputs: Add more inputs.
434         * benchtests/asin-inputs: Likewise.
435
436 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
437
438         [BZ #16375]
439         * manual/arith.texi: Fix spelling.
440         * manual/charset.texi: Likewise.
441         * manual/errno.texi: Likewise.
442         * manual/filesys.texi: Likewise.
443         * manual/lang.texi: Likewise.
444         * manual/llio.texi: Likewise.
445         * manual/locale.texi: Likewise.
446         * manual/message.texi: Likewise.
447         * manual/resource.texi: Likewise.
448         * manual/search.texi: Likewise.
449         * manual/setjmp.texi: Likewise.
450         * manual/stdio.texi: Likewise.
451         * manual/string.texi: Likewise.
452         * manual/sysinfo.texi: Likewise.
453         * manual/time.texi: Likewise.
454
455 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
456
457         * po/sl.po: New file.
458
459 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
460
461         * .gitignore: Add core/.gdbinit/.gdb_history.
462
463 2013-12-27  Allan McRae  <allan@archlinux.org>
464
465         [BZ #16369]
466         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
467         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
468
469 2013-12-24  Brooks Moses  <bmoses@google.com>
470
471         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
472         all compilers that claim C++98 compliance, not just GCC.
473         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
474         Likewise.
475
476 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
477
478         * NEWS: Restore accidentally deleted bug-fix entries.
479
480 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
481             Ondřej Bílka  <neleai@seznam.cz>
482
483         [BZ #15073]
484         * malloc/malloc.c (_int_free): Perform sanity check only if we
485         have_lock.
486
487 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
488
489         [BZ #12986]
490         * manual/stdio.texi (String Input Conversions): Clarify that character
491         classes are not supported.
492
493 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
494
495         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
496
497 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
498
499         [BZ #16337]
500         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
501         Calculate results for small negative arguments directly rather
502         than using reflection formula with special underflow handling.
503
504         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
505         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
506         sysdeps/unix/bsd/bsd4.4/syscalls.list.
507         (fchflags): Likewise.
508         (revoke): Likewise.
509         (setlogin): Likewise.
510         (sigaltstack): Likewise.
511         (wait4): Likewise.
512         (sigblock): Remove.
513         (sigsetmask): Likewise.
514         (wait3): Likewise.
515         (waitpid): Likewise.
516         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
517         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
518         file.
519         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
520         * sysdeps/unix/bsd/Makefile: ... here.
521         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
522         * sysdeps/unix/bsd/Versions: ... here.
523         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
524         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
525         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
526         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
527         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
528         * sysdeps/unix/bsd/sigblock.c: ... here.
529         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
530         * sysdeps/unix/bsd/sigsetmask.c: ... here.
531         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
532         * sysdeps/unix/bsd/sigvec.c: ... here.
533         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
534         * sysdeps/unix/bsd/tcdrain.c: ... here.
535         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
536         * sysdeps/unix/bsd/tcgetattr.c: ... here.
537         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
538         * sysdeps/unix/bsd/tcsetattr.c: ... here.
539         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
540         * sysdeps/unix/bsd/wait.c: ... here.
541         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
542         * sysdeps/unix/bsd/wait3.c: ... here.
543         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
544         * sysdeps/unix/bsd/waitpid.c: ... here.
545
546 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
547
548         [BZ #16356]
549         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
550         round-to-nearest for [!USE_AS_EXPM1L].
551         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
552         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
553         more tests of exp and exp10.  Expect some exp10 tests to miss
554         exceptions or fail in directed rounding modes.
555         * math/auto-libm-test-out: Regenerated.
556         * math/libm-test.inc (exp10_tonearest_test_data): New array.
557         (exp10_test_tonearest): New function.
558         (exp10_towardzero_test_data): New array.
559         (exp10_test_towardzero): New function.
560         (exp10_downward_test_data): New array.
561         (exp10_test_downward): New function.
562         (exp10_upward_test_data): New array.
563         (exp10_test_upward): New function.
564         (main): Call the new functions.
565         * sysdeps/i386/fpu/libm-test-ulps: Update.
566         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
567
568 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
569
570         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
571         asinh, atan, atan2, atanh, cbrt, cos and cosh.
572         * math/auto-libm-test-out: Regenerated.
573         * math/libm-test.inc (acosh_test_data): Add more tests.
574         (atanh_test_data): Likewise.
575         (ceil_test_data): Likewise.
576         (copysign_test_data): Likewise.
577         * sysdeps/i386/fpu/libm-test-ulps: Update.
578         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
579
580         * timezone/checktab.awk: Update from tzcode 2013i.
581         * timezone/private.h: Likewise.
582         * timezone/scheck.c: Likewise.
583         * timezone/tzfile.h: Likewise.
584         * timezone/tzselect.ksh: Likewise.
585         * timezone/zdump.c: Likewise.
586         * timezone/zic.c: Likewise.
587
588         * math/auto-libm-test-in: Add tests of cpow.
589         * math/auto-libm-test-out: Regenerated.
590         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
591         * * math/gen-auto-libm-tests.c (func_calc_method): Add value
592         mpc_cc_c.
593         (func_calc_desc): Add mpc_cc_c union field.
594         (test_functions): Add cpow.
595         (special_fill_2pi): New function.
596         (special_real_inputs): Add 2pi.
597         (calc_generic_results): Handle mpc_cc_c.
598         * sysdeps/i386/fpu/libm-test-ulps: Update.
599         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
600
601         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
602         csqrt, ctan and ctanh.
603         * math/auto-libm-test-out: Regenerated.
604         * math/libm-test.inc (TEST_COND_x86_64): New macro.
605         (TEST_COND_x86): Likewise.
606         (ccos_test_data): Use AUTO_TESTS_c_c.
607         (ccosh_test_data): Likewise.
608         (cexp_test_data): Likewise.
609         (clog_test_data): Likewise.
610         (csqrt_test_data): Likewise.
611         (ctan_test_data): Likewise.
612         (ctan_tonearest_test_data): Likewise.
613         (ctan_towardzero_test_data): Likewise.
614         (ctan_downward_test_data): Likewise.
615         (ctan_upward_test_data): Likewise.
616         (ctanh_test_data): Likewise.
617         (ctanh_tonearest_test_data): Likewise.
618         (ctanh_towardzero_test_data): Likewise.
619         (ctanh_downward_test_data): Likewise.
620         (ctanh_upward_test_data): Likewise.
621         * math/gen-auto-libm-tests.c (func_calc_method): Add value
622         mpc_c_c.
623         (func_calc_desc): Add mpc_c_c union field.
624         (FUNC_mpc_c_c): New macro.
625         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
626         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
627         ctanh.
628         (special_fill_min_subnorm_p120): New function.
629         (special_real_inputs): Add min_subnorm_p120.
630         (calc_generic_results): Handle mpc_c_c.
631         * sysdeps/i386/fpu/libm-test-ulps: Update.
632         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
633
634 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
635
636         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin,
637         do_sin_slow): New functions.
638         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2,
639         cslow2, csloww1, csloww2): Use the new functions.
640
641         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
642         Use M to change sign of result instead of X.  Assume X is
643         positive.
644         (csloww1): Likewise.
645         (__sin): Adjust.
646         (__cos): Adjust.
647
648         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
649         arguments A and DA.
650         (__sin): Adjust.
651         (__cos): Likewise.
652
653         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
654         (__cos): Likewise.
655         (sloww1): Don't adjust sign of DX.
656         (csloww1): Likewise.
657         (sloww2): Use X directly and don't adjust sign of DX.
658         (csloww2): Likewise.
659
660 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
661
662         * math/auto-libm-test-in: Add tests of cabs and carg.
663         * math/auto-libm-test-out: Regenerated.
664         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
665         (carg_test_data): Likewise.
666         * math/gen-auto-libm-tests.c (func_calc_method): Add value
667         mpc_c_f.
668         (func_calc_desc): Add mpc_c_f union field.
669         (test_functions): Add cabs and carg.
670         (calc_generic_results): Handle mpc_c_f.
671
672         * sysdeps/powerpc/powerpc32/libgcc-compat.S
673         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
674         as a macro and a compat symbol.
675         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
676         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
677         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
678         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
679         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
680         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
681         not use .hidden.
682         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
683         Likewise.
684         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
685         Likewise.
686         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
687         Likewise.
688         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
689         Likewise.
690         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
691         Likewise.
692         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
693         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
694         from GLIBC_2.3.2.
695
696 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
697
698         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
699
700 2013-12-19  Paul Pluzhnikov  <ppluzhnikov@google.com>
701
702         * elf/dl-misc.c (ptr_to_signal_safe_allocator_header): New function.
703         (__signal_safe_memalign, __signal_safe_free): Use it.
704         (__signal_safe_realloc): Likewise.
705
706 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
707
708         * manual/texinfo.tex: Update to version 2013-11-26.10 with
709         trailing whitespace removed.
710         * scripts/config.guess: Update to version 2013-11-29.
711         * scripts/config.sub: Update to version 2013-10-01.
712
713         * math/auto-libm-test-in: Add tests of sincos.
714         * math/auto-libm-test-out: Regenerated.
715         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
716         * math/gen-auto-libm-tests.c (func_calc_method): Add value
717         mpfr_f_11.
718         (func_calc_desc): Add mpfr_f_11 union field.
719         (test_functions): Add sincos.
720         (calc_generic_results): Handle mpfr_f_11.
721         * sysdeps/i386/fpu/libm-test-ulps: Update.
722         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
723
724 2013-12-19  Andreas Schwab  <schwab@suse.de>
725
726         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
727         CALL_MCOUNT.
728         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
729         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
730         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
731
732 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
733
734         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
735         * sysdeps/i386/fpu/libm-test-ulps: Update.
736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
737
738         [BZ #16293]
739         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
740         round-to-nearest mode when using frndint.
741         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
742         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
743         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
744         Likewise.
745         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
746         sinh test to fail.
747         * math/auto-libm-test-out: Regenerated.
748         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
749         (TEST_COND_x86): Likewise.
750         (expm1_tonearest_test_data): New array.
751         (expm1_test_tonearest): New function.
752         (expm1_towardzero_test_data): New array.
753         (expm1_test_towardzero): New function.
754         (expm1_downward_test_data): New array.
755         (expm1_test_downward): New function.
756         (expm1_upward_test_data): New array.
757         (expm1_test_upward): New function.
758         (main): Run the new test functions.
759         * sysdeps/i386/fpu/libm-test-ulps: Update.
760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
761
762         * include/features.h: Update comment documenting feature test
763         macros.  Mention _DEFAULT_SOURCE in comment.
764         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
765         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
766         _BSD_SOURCE and _SVID_SOURCE.
767         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
768         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
769         !_SVID_SOURCE]: Likewise.
770         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
771         (__USE_POSIX_IMPLICITLY): Define.
772         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
773         (_POSIX_SOURCE): Undefine and redefine.
774         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
775         (_POSIX_C_SOURCE): Likewise.
776         * manual/creature.texi (_DEFAULT_SOURCE): Document.
777         (Feature Test Macros): Update documentation of default features.
778
779 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
780
781         * benchtests/Makefile: Add bench-strtok.
782         * benchtests/bench-strtok.c: New file: strtok benchtest.
783
784 2013-12-19  Allan McRae  <allan@archlinux.org>
785
786         * manual/install.texi: Suppress menu for plain text output.
787         * INSTALL: Regenerated.
788
789 2013-12-18  Andrew Hunter  <ahh@google.com>
790
791         * sysdeps/generic/ldsodefs.h (__signal_safe_memalign): New prototype.
792         (__signal_safe_malloc, __signal_safe_free): Likewise.
793         (__signal_safe_realloc, __signal_safe_calloc): Likewise.
794         * elf/dl-misc.c (__signal_safe_allocator_header): New struct.
795         (__signal_safe_memalign, __signal_safe_malloc): New function.
796         (__signal_safe_free, __signal_safe_realloc): Likewise.
797         (__signal_safe_calloc): Likewise.
798         * elf/dl-tls.c (allocate_dtv, _dl_clear_dtv): Call signal-safe
799         functions.
800         (_dl_deallocate_tls, _dl_update_slotinfo): Likewise.
801
802 2013-12-18  Andrew Hunter  <ahh@google.com>
803
804         * elf/Versions (ld): Add _dl_clear_dtv.
805         * sysdeps/generic/ldsodefs.h (_dl_clear_dtv): New prototype.
806         * elf/dl-tls.c (_dl_clear_dtv): New function.
807         * nptl/allocatestack.c (get_cached_stack): Call _dl_clear_dtv.
808
809 2013-12-18  Andrew Hunter  <ahh@google.com>
810
811         * sysdeps/generic/ldsodefs.h (_dl_mask_all_signals): New prototype.
812         (_dl_unmask_signals): Likewise.
813         * sysdeps/mach/hurd/dl-sysdep.h (_dl_mask_all_signals): New stub.
814         (_dl_unmask_all_signals): Likewise.
815         * sysdeps/unix/sysv/linux/dl-sysdep.h (_dl_mask_all_signals): New prototype.
816         (_dl_unmask_all_signals): Likewise.
817         * sysdeps/unix/sysv/linux/dl-sysdep.c (_dl_mask_all_signals): New function.
818         (_dl_unmask_signals): Likewise.
819
820 2013-12-18  Brooks Moses  <bmoses@google.com>
821
822         [BZ #15846]
823         * misc/getauxval.c: Include errno.h.
824         (__getauxval): Set errno to ENOENT if the requested type is not
825         found.
826         * misc/sys/auxv.h (getauxval): Document that it may set errno;
827         don't declare with __attribute_const__.
828         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
829         * manual/startup.texi: Document that getauxval sets errno.
830
831 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
832
833         * math/auto-libm-test-in: Add tests of jn and yn.
834         * math/auto-libm-test-out: Regenerated.
835         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
836         (yn_test_data): Likewise.
837         * math/gen-auto-libm-tests.c (func_calc_method): Add value
838         mpfr_if_f.
839         (func_calc_desc): Add mpfr_if_f union field.
840         (FUNC_mpfr_if_f): New macro.
841         (test_functions): Add jn and yn.
842         (calc_generic_results): Assert type of second input for
843         mpfr_ff_f.  Handle mpfr_if_f.
844         (output_for_one_input_case): Disable all checking for arguments
845         fitting floating-point types in case of an integer argument.
846         * sysdeps/i386/fpu/libm-test-ulps: Update.
847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
848
849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
850         Don't expect fegetround reference in libm.so.
851
852 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
853
854         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
855         $(config-cflags-nofma).
856
857 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
858
859         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
860         * math/auto-libm-test-out: Regenerated.
861
862         [BZ #16338]
863         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
864         to determine exponent and adjust argument to have exponent of -1.
865         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
866         log2.
867         * math/auto-libm-test-out: Regenerated.
868         * sysdeps/i386/fpu/libm-test-ulps: Update.
869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
870
871 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
872
873         * manual/probes.texi: Remove cases when per-thread arenas are
874         disabled.
875
876 2013-12-18  Andreas Schwab  <schwab@suse.de>
877
878         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
879         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
880         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
881         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
882         * sysdeps/i386/i686/multiarch/Makefile: Update.
883         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
884
885 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
886
887         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
888         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
889
890 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
891
892         Support TZ transition times < 00:00:00.
893         This is needed for version-3 tz-format files; it supports time
894         stamps past 2037 for America/Godthab (the only entry in the tz
895         database for which this change is relevant).
896         * manual/time.texi (TZ Variable): Document transition times
897         from -167:59:59 through -00:00:01.
898         * time/tzset.c (tz_rule): Time of day is now signed.
899         (__tzset_parse_tz): Parse negative time of day.
900
901         Document TZ transition times >= 25:00:00.
902         * manual/time.texi (TZ Variable): Document transition times from
903         25:00:00 through 167:59:59.  These are already supported, and this
904         support will help with version-3 tz-format files.
905
906         * manual/time.texi (TZ Variable): Modernize North America example
907         to reflect current (i.e., 2007-and-later) daylight saving rules.
908
909         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
910
911 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
912
913         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
914         * sysdeps/unix/bsd/bits/stat.h: Likewise.
915         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
916         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
917         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
918         * sysdeps/unix/bsd/bsdstat.h: Likewise.
919         * sysdeps/unix/bsd/clock.c: Likewise.
920         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
921         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
922         * sysdeps/unix/bsd/init-posix.c: Likewise.
923         * sysdeps/unix/bsd/poll.c: Likewise.
924         * sysdeps/unix/bsd/ptsname.c: Likewise.
925         * sysdeps/unix/bsd/seekdir.c: Likewise.
926         * sysdeps/unix/bsd/setegid.c: Likewise.
927         * sysdeps/unix/bsd/seteuid.c: Likewise.
928         * sysdeps/unix/bsd/setgid.c: Likewise.
929         * sysdeps/unix/bsd/setrgid.c: Likewise.
930         * sysdeps/unix/bsd/setruid.c: Likewise.
931         * sysdeps/unix/bsd/setsid.c: Likewise.
932         * sysdeps/unix/bsd/setuid.c: Likewise.
933         * sysdeps/unix/bsd/sigaction.c: Likewise.
934         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
935         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
936         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
937         * sysdeps/unix/bsd/telldir.c: Likewise.
938         * sysdeps/unix/bsd/times.c: Likewise.
939         * sysdeps/unix/bsd/usleep.c: Likewise.
940
941         * misc/Makefile (install-lib): Remove libbsd-compat.a.
942         ($(objpfx)libbsd-compat.a): Remove rule.
943
944         * include/features.h (__FAVOR_BSD): Do not define.
945         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
946         features conflicting with POSIX.
947         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
948         (_BSD_SOURCE): Remove description of not being a subset of other
949         feature test macros.
950         * manual/job.texi (getpgrp): Do not document BSD version.
951         (getpgid): Do not document by reference to BSD getpgrp.
952         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
953         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
954         * signal/signal.h [__FAVOR_BSD]: Likewise.
955         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
956         instead of making contents conditional on [__FAVOR_BSD].
957         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
958
959 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
960
961         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
962
963 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
964
965         [BZ #16314]
966         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
967         values below 2**-450, not 2**-500.
968         * math/auto-libm-test-in: Don't allow spurious underflow from
969         hypot.
970         * math/auto-libm-test-out: Regenerated.
971
972         [BZ #16316]
973         [BZ #16330]
974         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
975         values of ha and hb and sort them after adjusting subnormal
976         arguments.
977         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
978         Likewise.
979         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
980         values of ea and eb and sort them after adjusting subnormal
981         arguments.
982         * math/auto-libm-test-in: Do not expect some hypot tests of
983         subnormals to fail.  Add more hypot tests.
984         * math/auto-libm-test-out: Regenerated.
985
986 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
987
988         [BZ #13304]
989         * sysdeps/sh/s_fma.c: New file.
990         * sysdeps/sh/s_fmaf.c: New file.
991         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
992         version.
993         * sysdeps/sh/Implies: Add sh/soft-fp.
994
995 2013-12-16  Roland McGrath  <roland@hack.frob.com>
996
997         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
998         level of indirection to members `objname', `errstring', `malloced'.
999         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
1000         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
1001         it as the __longjmp argument (just pass 1 instead).
1002         (_dl_catch_error): Initialize C with argument pointers and address of
1003         volatile local ERRCODE rather than copying values out of C at return.
1004
1005 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
1006
1007         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
1008         * math/auto-libm-test-out: Regenerated.
1009         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
1010         (hypot_test_data): Likewise.
1011         (pow_test_data): Likewise.
1012         (pow_tonearest_test_data): Likewise.
1013         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1014         mpfr_ff_f.
1015         (func_calc_desc): Add mpfr_ff_f union field.
1016         (FUNC_mpfr_ff_f): New macro.
1017         (test_functions): Add atan2, hypot and pow.
1018         (special_fill_min): New function.
1019         (special_fill_minus_min): Likewise.
1020         (special_fill_min_subnorm): Likewise.
1021         (special_fill_minus_min_subnorm): Likewise.
1022         (special_real_inputs): Add min, -min, min_subnorm and
1023         -min_subnorm.
1024         (calc_generic_results): Handle mpfr_ff_f.
1025         * sysdeps/i386/fpu/libm-test-ulps: Update.
1026         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1027
1028 2013-12-16  Will Newton  <will.newton@linaro.org>
1029
1030         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
1031         (Aligned Memory Blocks): Add documentation for aligned_alloc
1032         and suggest it as an alternative to posix_memalign.
1033         (Hooks for Malloc): Document __memalign_hook is also called
1034         for aligned_alloc.  (Summary of Malloc): Add summary for
1035         aligned alloc.  Document __memalign_hook is also called
1036         for aligned_alloc.
1037
1038 2013-12-16  Will Newton  <will.newton@linaro.org>
1039
1040         * manual/memory.texi (Malloc Examples): Clarify default
1041         alignment documentation.  Suggest posix_memalign rather
1042         than memalign or valloc.
1043         (Aligned Memory Blocks): Remove suggestion to use memalign
1044         or valloc.  Remove obsolete comment about BSD.
1045         Document memalign errno values and mark the function obsolete.
1046         Document posix_memalign returned error codes.  Mark valloc
1047         as obsolete.  (Hooks for Malloc): __memalign_hook is also
1048         called for posix_memalign and valloc.
1049         (Summary of Malloc): Add posix_memalign to function summary.
1050         __memalign_hook is also called for posix_memalign and valloc.
1051
1052 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1053
1054         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
1055         TAYLOR_SIN.
1056         (__sin): Adjust.
1057         (__cos): Likewise.
1058         (sloww): Use mynumber union.  Expand ternary operator into
1059         if-else statements.
1060         (cslow): use mynumber union.
1061
1062 2013-12-16  Allan McRae  <allan@archlinux.org>
1063
1064         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
1065         * configure: Regenerated.
1066
1067         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
1068
1069         [BZ #14120]
1070         * configure.ac: Added --enable-maintainer-mode. Check for
1071         autoconf when enabled.
1072         * configure: Regenerated.
1073
1074         * nscd/nscd.service: New file.
1075         * nscd/nscd.tmpfiles: New file.
1076
1077 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
1078
1079         [BZ #12100]
1080         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
1081         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
1082         * sysdeps/x86_64/multiarch/strstr.c: ... here.
1083         (strstr): Add __strstr_sse2_unaligned ifunc.
1084         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
1085         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
1086         (strcasestr): Remove __strcasestr_sse42 ifunc.
1087         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
1088         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1089         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
1090
1091 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1092
1093         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
1094         * sysdeps/sh/bits/fenv.h: ... here.
1095         * sysdeps/sh/sh4/fpu/bits: Remove directory.
1096
1097 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1098
1099         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
1100
1101 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1102
1103         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
1104         hypotf multiarch implementations.
1105         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
1106         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
1107         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
1108         multiarch hypot for PPC64.
1109         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
1110         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
1111         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
1112         multiarch hypotf for PPC64.
1113
1114 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1115
1116         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
1117         modff multiarch implementations.
1118         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
1119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
1120         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
1121         multiarch modf for PPC64.
1122         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
1123         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
1124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
1125         multiarch modff for PPC64.
1126
1127 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1128
1129         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
1130         and logl multiarch implementations.
1131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
1132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
1133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
1134         multiarch logb for PPC64.
1135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
1136         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
1137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
1138         multiarch logb for PPC64.
1139         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
1140         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
1141         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
1142         multiarch logb for PPC64.
1143
1144 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1145
1146         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
1147         isinff multiarch implementation.
1148         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
1149         file.
1150         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
1151         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
1152         multiarch isinf for PPC64.
1153         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
1154         file.
1155         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
1156         multiarch isinff for PPC64.
1157
1158 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1159
1160         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
1161         finitef multiarch implementation.
1162         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
1163         file.
1164         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
1165         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
1166         multiarch finite for PPC64.
1167         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
1168         file.
1169         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
1170         multiarch finitef for PPC64.
1171
1172 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1173
1174         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
1175         lrint multiarch implementation.
1176         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
1177         file.
1178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
1179         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
1180         multiarch llrint for PPC64.
1181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
1182         multiarch lrint for PPC64.
1183
1184 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1185
1186         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
1187         copysignf multiarch implementation.
1188         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
1189         file.
1190         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
1191         file.
1192         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
1193         multiarch copysign for PPC64.
1194         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
1195         multiarch copysignf for PPC64.
1196
1197 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1198
1199         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
1200         multiarch implementation.
1201         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
1202         file.
1203         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
1204         file.
1205         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
1206         file.
1207         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
1208         file.
1209         multiarch llround for PPC64.
1210         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
1211         multiarch trunc for PPC64.
1212         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
1213         multiarch truncf for PPC64.
1214
1215 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1216
1217         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
1218         multiarch implementation.
1219         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
1220         file.
1221         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
1222         file.
1223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
1224         file.
1225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
1226         file.
1227         multiarch llround for PPC64.
1228         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
1229         multiarch round for PPC64.
1230         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
1231         multiarch roundf for PPC64.
1232
1233 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1234
1235         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
1236         multiarch implementation.
1237         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
1238         file.
1239         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
1240         file.
1241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
1242         file.
1243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
1244         file.
1245         multiarch llround for PPC64.
1246         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
1247         multiarch floor for PPC64.
1248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
1249         multiarch floorf for PPC64.
1250
1251 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1252
1253         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
1254         multiarch implementation.
1255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
1256         file.
1257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
1258         file.
1259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
1260         file.
1261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
1262         file.
1263         multiarch llround for PPC64.
1264         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
1265         multiarch ceil for PPC64.
1266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
1267         multiarch ceilf for PPC64.
1268
1269 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1270
1271         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
1272         multiarch implementation.
1273         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
1274         file.
1275         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
1276         file.
1277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
1278         file.
1279         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
1280         multiarch llround for PPC64.
1281         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
1282         multiarch lround for PPC64.
1283
1284 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1285
1286         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
1287         multiarch implementation.
1288         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
1289         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
1290         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
1291         file.
1292         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
1293         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
1294         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
1295         multiarch isnan for PPC64.
1296         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
1297         multiarch isnanf for PPC64.
1298
1299 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1300
1301         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
1302         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
1303         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
1304         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
1305         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
1306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
1307
1308 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1309
1310         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
1311         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
1312         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
1313         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
1314
1315 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1316
1317         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
1318         multiarch implementations.
1319         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1320         (__libc_ifunc_impl_list): Likewise.
1321         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
1322         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
1323         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
1324         multiarch stpcpy for PPC64.
1325
1326 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1327
1328         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
1329         multiarch implementations.
1330         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1331         (__libc_ifunc_impl_list): Likewise.
1332         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
1333         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
1334         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
1335         multiarch strcpy for PPC64.
1336
1337 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1338
1339         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
1340         redefine function name.
1341         (_wordcopy_fwd_dest_aligned): Likewise.
1342         (_wordcopy_bwd_aligned): Likewise.
1343         (_wordcopy_bwd_dest_aligned): Likewise.
1344         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
1345         multiarch implementations.
1346         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1347         (__libc_ifunc_impl_list): Likewise.
1348         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
1349         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
1350         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
1351         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
1352         multiarch wcscpy for PPC64.
1353
1354 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1355
1356         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
1357         multiarch implementations.
1358         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1359         (__libc_ifunc_impl_list): Likewise.
1360         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
1361         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
1362         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
1363         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
1364         multiarch wcscpy for PPC64.
1365
1366 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1367
1368         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
1369         multiarch implementations.
1370         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1371         (__libc_ifunc_impl_list): Likewise.
1372         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
1373         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
1374         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
1375         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
1376         multiarch wcsrchr for PPC64.
1377
1378 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1379
1380         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
1381         multiarch implementations.
1382         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1383         (__libc_ifunc_impl_list): Likewise.
1384         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
1385         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
1386         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
1387         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
1388         multiarch wcschr for PPC64.
1389
1390 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1391
1392         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
1393         multiarch implementations.
1394         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1395         (__libc_ifunc_impl_list): Likewise.
1396         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
1397         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
1398         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
1399         multiarch strchrnul for PPC64.
1400
1401 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1402
1403         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
1404         implementations.
1405         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1406         (__libc_ifunc_impl_list): Likewise.
1407         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
1408         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
1409         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
1410         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
1411         strchr for PPC64.
1412
1413 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1414
1415         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
1416         implementations.
1417         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1418         (__libc_ifunc_impl_list): Likewise.
1419         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
1420         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
1421         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
1422         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
1423         strncmp for PPC64.
1424
1425 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1426
1427         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
1428         multiarch implementations.
1429         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1430         (__libc_ifunc_impl_list): Likewise.
1431         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
1432         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
1433         strncasecmp for PPC64.
1434         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
1435         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
1436         multiarch strncasecmp_l for PPC64.
1437
1438 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1439
1440         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
1441         multiarch implementations.
1442         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1443         (__libc_ifunc_impl_list): Likewise.
1444         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
1445         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
1446         multiarch strcasecmp for PPC64.
1447         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
1448         file.
1449         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
1450         multiarch strcasecmp_l for PPC64.
1451
1452 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1453
1454         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
1455         implementations.
1456         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1457         (__libc_ifunc_impl_list): Likewise.
1458         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
1459         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
1460         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
1461         strnlen for PPC64.
1462
1463 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1464
1465         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
1466         implementations.
1467         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1468         (__libc_ifunc_impl_list): Likewise.
1469         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
1470         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
1471         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
1472         strlen for PPC64.
1473
1474 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1475
1476         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
1477         implementations.
1478         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1479         (__libc_ifunc_impl_list): Likewise.
1480         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
1481         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
1482         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
1483         rawmemrchr for PPC64.
1484
1485 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1486
1487         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
1488         implementation.
1489         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1490         (__libc_ifunc_impl_list): Likewise.
1491         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
1492         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
1493         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
1494         memrchr for PPC64.
1495
1496 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1497
1498         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
1499         implementation.
1500         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1501         (__libc_ifunc_impl_list): Likewise.
1502         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
1503         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
1504         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
1505         memchr for PPC64.
1506
1507 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1508
1509         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
1510         implementation.
1511         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1512         (__libc_ifunc_impl_list): Likewise.
1513         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
1514         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
1515         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
1516         mempcpy for PPC64.
1517
1518 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1519
1520         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
1521         avoid cretion of __bzero symbol.
1522         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
1523         Likewise.
1524         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
1525         Likewise.
1526         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
1527         Likewise.
1528         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
1529         multiarch implementations.
1530         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1531         (__libc_ifunc_impl_list): Likewise.
1532         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
1533         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
1534         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
1535         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
1536         bzero for PPC32.
1537         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
1538         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
1539         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
1540         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
1541         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
1542         memset for PPC64.
1543         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
1544
1545 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1546
1547         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
1548         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
1549         implementations.
1550         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1551         (__libc_ifunc_impl_list): Likewise.
1552         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
1553         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
1554         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
1555         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
1556         memcmp for PPC64.
1557
1558 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1559
1560         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
1561         multiarch for POWER/PPC64.
1562         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1563         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
1564         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
1565         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
1566         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
1567         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
1568         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
1569         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
1570         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
1571         memcpy for PPC64.
1572
1573 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1574
1575         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
1576         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
1577         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
1578         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
1579         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
1580         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
1581         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
1582         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
1583         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
1584         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
1585         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
1586         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
1587         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
1588         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
1589         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
1590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
1591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
1592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
1593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
1594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
1595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
1596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
1597
1598 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1599
1600         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
1601
1602 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1603
1604         * benchtests/Makefile (bench): Add exp2 and log2.
1605         (LDLIBS-bench-exp2): Add -lm.
1606         (LDLIBS-bench-log2): Likewise.
1607         * benchtests/exp2-inputs: New inputs file.
1608         * benchtests/log2-inputs: New inputs file.
1609         * benchtests/log-inputs: Add new inputs.
1610         * benchtests/tan-inputs: Likewise.
1611
1612 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1613
1614         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
1615         definition...
1616         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2,
1617         csloww1, csloww2): ... from here.
1618
1619         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
1620         instead of structures.
1621         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
1622         (POLYNOMIAL): Likewise.
1623         (TAYLOR_SLOW): Likewise.
1624         (__sin): Likewise.
1625         (__cos): Likewise.
1626         (slow1): Likewise.
1627         (slow2): Likewise.
1628         (sloww): Likewise.
1629         (sloww1); Likewise.
1630         (sloww2): Likewise.
1631         (bsloww1): Likewise.
1632         (bsloww2): Likewise.
1633         (cslow2): Likewise.
1634         (csloww): Likewise.
1635         (csloww1): Likewise.
1636         (csloww2): Likewise.
1637
1638 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1639
1640         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
1641         (__malloc_assert, __libc_realloc, __libc_calloc,
1642         _int_realloc): Expand MALLOC_COPY and MALLOC_ZERO to
1643         memcpy and memset.
1644         * malloc/hooks.c (realloc_check): Likewise.
1645
1646 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1647
1648         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
1649         * malloc/arena.c: Remove PER_THREAD conditional.
1650         [!PER_THREAD]: Remove code.
1651         (ptmalloc_unlock_all2): Likewise.
1652         (ptmalloc_init): Likewise.
1653         (_int_new_arena): Likewise.
1654         (arena_get2): Likewise.
1655         * malloc/hooks.c (__malloc_get_state): Likewise.
1656         (__malloc_set_state): Likewise.
1657         * malloc/malloc.c: Likewise.
1658         (struct malloc_state): Likewise.
1659         (struct malloc_par): Likewise.
1660         (__libc_realloc): Likewise.
1661         (__libc_mallopt): Likewise.
1662
1663 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1664
1665         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
1666
1667 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1668
1669         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
1670         macro to a function.  Check for zero perturb_byte.
1671         (_int_malloc, _int_free): Remove zero perturb_byte checks.
1672
1673 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1674
1675         * malloc/malloc.c: (force_reg): Remove.
1676         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
1677         _mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
1678         force_reg by atomic_forced_read.
1679         * malloc/arena.c (ptmalloc_init): Likewise.
1680         * malloc/hooks.c (top_check): Likewise.
1681
1682 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1683
1684         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1685
1686 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
1687
1688         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1689
1690 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
1691
1692         * math/auto-libm-test-in: Add tests of lgamma.
1693         * math/auto-libm-test-out: Regenerated.
1694         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
1695         (M_LOG_2_SQRT_PIl): Likewise.
1696         (lgamma_test_data): Use AUTO_TESTS_f_f1.
1697         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1698         mpfr_f_f1.
1699         (func_calc_desc): Add mpfr_f_f1 union field.
1700         (ARGS1): New macro.
1701         (ARGS2): Likewise.
1702         (ARGS3): Likewise.
1703         (ARGS4): Likewise.
1704         (RET1): Likewise.
1705         (RET2): Likewise.
1706         (CALC): Likewise.
1707         (FUNC): Likewise.
1708         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
1709         (test_functions): Add lgamma.
1710         (calc_generic_results): Handle mpfr_f_f1.
1711         * sysdeps/i386/fpu/libm-test-ulps: Update.
1712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1713
1714 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1715
1716         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
1717         __mpn_add_n for PowerPC64/POWER7.
1718         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
1719         __mpn_sub_n for PowerPC64/POWER7.
1720
1721 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1722
1723         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
1724         __mpn_addmul_1 for PowerPC64.
1725         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
1726         __mpn_submul_1 for PowerPC64.
1727         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
1728         for PowerPC64.
1729         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
1730         for PowerPC64.
1731
1732 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
1733
1734         [BZ #15089]
1735         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
1736
1737 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1738
1739         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
1740
1741 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1742
1743         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
1744         add multiarch folders.
1745         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
1746         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
1747         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
1748         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
1749         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
1750         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
1751         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
1752         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
1753         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
1754         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
1755         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
1756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
1757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
1758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
1759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
1760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
1761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
1762
1763 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1764
1765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
1766         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
1767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
1768         New file.
1769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
1770         New file.
1771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
1772         multiarch __ieee754_hypot for PowerPC32.
1773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
1774         New file.
1775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
1776         New file.
1777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
1778         multiarch __ieee754_hypotf for PowerPC32.
1779
1780 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1781
1782         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
1783         long_double_symbol only if __logbl is defined.
1784         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
1785         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
1786         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
1787         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
1788         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
1789         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
1790         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
1791         path for implementation.
1792         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
1793         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
1794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
1795         logb, and logbl multiarch implementations for PowerPC32.
1796         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
1797         file.
1798         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
1799         file.
1800         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
1801         multiarch logb for PowerPC32.
1802         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
1803         file.
1804         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
1805         file.
1806         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
1807         multiarch logbf for PowerPC32.
1808         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
1809         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
1810         file.
1811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
1812         multiarch logbl implementation for PowerPC32.
1813
1814 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1815
1816         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
1817         and modff multiarch implementations.
1818         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
1819         New file.
1820         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
1821         New file.
1822         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
1823         multiarch modf for PowerPC32.
1824         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
1825         New file.
1826         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
1827         New file.
1828         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
1829         multiarch modff for PowerPC32.
1830
1831 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1832
1833         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
1834         and lrintf multiarch implementations.
1835         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
1836         New file.
1837         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
1838         New file.
1839         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
1840         multiarch lrint for PowerPC32.
1841         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
1842         file: multiarch lrintf for PowerPC32.
1843
1844 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1845
1846         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
1847         and lroundf multiarch implementations.
1848         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
1849         New file.
1850         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
1851         New file.
1852         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
1853         New file.
1854         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
1855         multiarch lround for PowerPC32.
1856         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
1857         file: multiarch lroundf for PowerPC32.
1858
1859 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1860
1861         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
1862         copysign and copysignf multiarch implementations.
1863         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
1864         New file.
1865         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
1866         New file.
1867         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
1868         file: multiarch copysign for PowerPC32.
1869         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
1870         file: multiarch copysignf for PowerPC32.
1871
1872 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1873
1874         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
1875         and truncf multiarch implementations.
1876         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
1877         New file.
1878         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
1879         file.
1880         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
1881         multiarch trunc for PowerPC32.
1882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
1883         New file.
1884         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
1885         New file.
1886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
1887         multiarch truncf for PowerPC32.
1888
1889 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1890
1891         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
1892         and roundf multiarch implementations.
1893         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
1894         New file.
1895         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
1896         file.
1897         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
1898         multiarch round for PowerPC32.
1899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
1900         New file.
1901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
1902         New file.
1903         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
1904         multiarch roundf for PowerPC32.
1905
1906 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1907
1908         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
1909         and floorf multiarch implementations.
1910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1911         New file.
1912         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
1913         file.
1914         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
1915         multiarch floor for PowerPC32.
1916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1917         New file.
1918         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1919         New file.
1920         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
1921         multiarch floorf for PowerPC32.
1922
1923 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1924
1925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
1926         and ceilf multiarch implementations.
1927         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1928         New file.
1929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
1930         file.
1931         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
1932         multiarch ceil for PowerPC32.
1933         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1934         New file.
1935         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
1936         file.
1937         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
1938         multiarch ceilf for PowerPC32.
1939
1940 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1941
1942         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
1943         is defined.
1944         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
1945         FINITEF is defined.
1946         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
1947         and finitef multiarch implementations.
1948         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
1949         New file.
1950         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
1951         file.
1952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
1953         multiarch finite for PowerPC32.
1954         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
1955         New file.
1956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
1957         file: multiarch finitef for PowerPC32.
1958
1959 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1960
1961         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
1962         and isinff multiarch implementations.
1963         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
1964         file.
1965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
1966         file.
1967         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
1968         multiarch isinf for PowerPC32.
1969         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
1970         New file.
1971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
1972         multiarch isinff for PowerPC32.
1973
1974 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1975
1976         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
1977         alias when __isnan is defined.
1978         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
1979         and isnanf multiarch implementations.
1980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
1981         file.
1982         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
1983         file.
1984         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
1985         file.
1986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
1987         file.
1988         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
1989         multiarch isnan for PowerPC32.
1990         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
1991         New file.
1992         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
1993         New file.
1994         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
1995         multiarch isnanf for PowerPC32.
1996
1997 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1998
1999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
2000         and sqrtf multiarch implementations.
2001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
2002         file.
2003         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
2004         file.
2005         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
2006         multiarch sqrt for PowerPC32.
2007         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
2008         file.
2009         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
2010         file.
2011         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
2012         multiarch sqrtf for PowerPC32.
2013
2014 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2015
2016         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
2017         and llroundf multiarch implementations.
2018         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2019         New file.
2020         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2021         New file.
2022         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2023         New file.
2024         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
2025         file: multiarch llround for PowerPC32.
2026         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
2027         file: multiarch llroundf for PowerPC32.
2028
2029 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2030
2031         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
2032         multiarch PowerPC32 fpu implementations.
2033         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2034         New file.
2035         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2036         New file.
2037         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
2038         multiarch llrint for PowerPC32.
2039         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2040         New file.
2041         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2042         New file.
2043         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
2044         file.
2045
2046 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2047
2048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
2049
2050 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2051
2052         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
2053         file.
2054         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
2055         file.
2056         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
2057         file.
2058         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
2059         multiarch wordcopy for PPC32.
2060         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2061         wordcopy objects.
2062         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2063         (__libc_ifunc_impl_list): Likewise.
2064         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
2065         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
2066         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
2067         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
2068         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
2069         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
2070
2071 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2072
2073         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
2074         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
2075         file.
2076         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
2077         file.
2078         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
2079         file.
2080         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
2081         multiarch wcscpy for PPC32.
2082         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2083         multiarch objects.
2084         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2085         (__libc_ifunc_impl_list): Likewise.
2086         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2087         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2088         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
2089         sysdeps/powerpc/power6/wcscpy.c.
2090
2091 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2092
2093         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
2094         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
2095         file.
2096         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
2097         file.
2098         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
2099         file.
2100         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
2101         multiarch wcsrchr for PPC32.
2102         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2103         multiarch objects.
2104         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2105         (__libc_ifunc_impl_list): Likewise.
2106         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2107         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2108         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
2109         sysdeps/powerpc/power6/wcsrchr.c.
2110
2111 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2112
2113         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
2114         file.
2115         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
2116         file.
2117         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
2118         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
2119         multiarch wcschr for PPc32.
2120         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2121         multiarch objects.
2122         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2123         (__libc_ifunc_impl_list): Likewise.
2124         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
2125         * sysdeps/powerpc/power6/wcschr.c: ... to here.
2126         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
2127         sysdeps/powerpc/power6/wcschr.c.
2128
2129 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2130
2131         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
2132         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
2133         file.
2134         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
2135         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
2136         file: multiarch strchr for PPC32.
2137         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
2138         multiarch objects.
2139         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2140         (__libc_ifunc_impl_list): Likewise.
2141
2142 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2143
2144         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
2145         name.
2146         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
2147         file.
2148         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
2149         file.
2150         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
2151         multiarch strchrnul for PPC32.
2152         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
2153         multiarch objects.
2154         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2155         (__libc_ifunc_impl_list): Likewise.
2156
2157 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2158
2159         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
2160         file.
2161         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
2162         multiarch strncasecmp for PPC32.
2163         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
2164         file.
2165         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
2166         multiarch strncasecmp_l for PPC32.
2167         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
2168         strncasecmp multiarch objects.
2169         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2170         (__libc_ifunc_impl_list): Likewise.
2171
2172 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2173
2174         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
2175         file.
2176         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
2177         multiarch strncasecmp for PPC32.
2178         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
2179         New file.
2180         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
2181         multiarch strcasecmp_l for PPC32.
2182         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
2183         multiarch objects.
2184         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2185         (__libc_ifunc_impl_list): Likewise.
2186
2187 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2188
2189         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
2190         file.
2191         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
2192         file.
2193         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
2194         multiarch strncmp for PPC32.
2195         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
2196         multiarch objects.
2197         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2198         (__libc_ifunc_impl_list): Likewise.
2199
2200 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2201
2202         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
2203         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
2204         file.
2205         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
2206         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
2207         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
2208         multiarch objects.
2209         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2210         (__libc_ifunc_impl_list): Likewise.
2211
2212 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2213
2214         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
2215         file.
2216         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
2217         file.
2218         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
2219         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
2220         multiarch objects.
2221         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2222         (__libc_ifunc_impl_list): Likewise.
2223
2224 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2225
2226         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
2227         file.
2228         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
2229         file.
2230         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
2231         multiarch rawmemchr for PPC32.
2232         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
2233         multiarch objects.
2234         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2235         (__libc_ifunc_impl_list): Likewise.
2236
2237 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2238
2239         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
2240         file.
2241         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
2242         file.
2243         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
2244         file: memrchr multiarch for PPC32.
2245         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
2246         multiarch objects.
2247         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2248         (__libc_ifunc_impl_list): Likewise.
2249
2250 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2251
2252         * string/memchr.c (__memchr): Using macro to redefine symbol name.
2253         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
2254         file.
2255         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
2256         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
2257         multiarch memchr for PPC32.
2258         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
2259         multiarch objects.
2260         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2261         (__libc_ifunc_impl_list): Likewise.
2262
2263 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2264
2265         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
2266         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
2267         file.
2268         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
2269         file.
2270         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
2271         file: multiarch mempcpy for PPC32.
2272         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
2273         multiarch objects.
2274         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2275         (__libc_ifunc_impl_list): Likewise.
2276
2277 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2278
2279         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
2280         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
2281         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
2282         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
2283         multiarch bzero for PPC32.
2284         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
2285         file.
2286         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
2287         file.
2288         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
2289         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
2290         file: multiarch memset for PPC32.
2291         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
2292         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
2293         memset multiarch objects.
2294         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2295         (__libc_ifunc_impl_list): Likewise.
2296
2297 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2298
2299         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
2300         file.
2301         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
2302         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
2303         memcmp for PPC32.
2304         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
2305         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
2306         multiarch objects.
2307         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2308         (__libc_ifunc_impl_list): Likewise.
2309
2310 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2311
2312         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
2313         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
2314         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
2315         file.
2316         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
2317         file.
2318         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
2319         file.
2320         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
2321         multiarch memcpy for PPC32.
2322         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
2323         multiarch objects.
2324         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2325         (__libc_ifunc_impl_list): Likewise.
2326
2327 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2328
2329         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
2330         support multiarch for POWER/PPC32.
2331         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2332         Likewise.
2333         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
2334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
2335         Implies file to make multiarch folder appers before the fpu and
2336         default folder for power4 configuration.
2337
2338 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2339
2340         * scripts/bench.pl: Append volatile keyword to type.
2341
2342 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2343
2344         * sysdeps/sh/sotruss-lib.c: New file.
2345         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
2346
2347 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2348
2349         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2350
2351 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
2352
2353         [BZ #6810]
2354         * math/w_tgamma.c: Include <errno.h>.
2355         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
2356         * math/w_tgammaf.c: Include <errno.h>.
2357         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
2358         * math/w_tgammal.c: Include <errno.h>.
2359         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
2360         * math/auto-libm-test-in: Do not allow missing errno on tgamma
2361         underflow.  Add more tgamma tests.
2362         * math/auto-libm-test-out: Regenerated.
2363         * sysdeps/i386/fpu/libm-test-ulps: Update.
2364         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2365
2366         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
2367         sin, sinh, tan, tanh, tgamma, y0 and y1.
2368         * math/auto-libm-test-out: Regenerated.
2369         * math/libm-test.inc (TEST_COND_x86_64): New macro.
2370         (TEST_COND_x86): Likewise.
2371         (M_E2l): Remove macro.
2372         (M_E3l): Likewise.
2373         (M_2_SQRT_PIl): Likewise.
2374         (M_SQRT_PIl): Likewise.
2375         (M_1_DIV_El): Likewise.
2376         (log_test_data): Use AUTO_TESTS_f_f.
2377         (log10_test_data): Likewise.
2378         (log1p_test_data): Likewise.
2379         (log2_test_data): Likewise.
2380         (sin_test_data): Likewise.
2381         (sin_tonearest_test_data): Likewise.
2382         (sin_towardzero_test_data): Likewise.
2383         (sin_downward_test_data): Likewise.
2384         (sin_upward_test_data): Likewise.
2385         (sinh_test_data): Likewise.
2386         (sinh_tonearest_test_data): Likewise.
2387         (sinh_towardzero_test_data): Likewise.
2388         (sinh_downward_test_data): Likewise.
2389         (sinh_upward_test_data): Likewise.
2390         (tan_test_data): Likewise.
2391         (tan_tonearest_test_data): Likewise.
2392         (tan_towardzero_test_data): Likewise.
2393         (tan_downward_test_data): Likewise.
2394         (tan_upward_test_data): Likewise.
2395         (tanh_test_data): Likewise.
2396         (tgamma_test_data): Likewise.
2397         (y0_test_data): Likewise.
2398         (y1_test_data): Likewise.
2399         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
2400         (special_real_inputs): Add pi/4.
2401         * sysdeps/i386/fpu/libm-test-ulps: Update.
2402         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2403
2404 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2405
2406         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
2407         "longjmp_target" static probes.
2408         (__longjmp): Rename to __longjmp_symbol.
2409         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2410         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
2411         on which longjmp to generate.
2412         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
2413         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
2414         probe.
2415         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2416         (__sigjmp_save): Rename to __sigjmp_save_symbol.
2417         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
2418         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
2419         and __sigjmp_save_symbol based on which sigsetjmp to generated.
2420         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
2421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
2422         __longjmp_symbol based on which __longjmp to generate.
2423         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
2424         probe.
2425         (setjmp): Rename to setjmp_symbol.
2426         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2427         (_setjmp): Rename to _setjmp_symbol.
2428         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2429         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
2430         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
2431         which setjmp to generate.
2432         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
2433         "longjmp_target" static probes.
2434
2435 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2436
2437         * benchtests/README: Add note about output arguments.
2438         * benchtests/bench-sincos.c: Remove file.
2439         * benchtests/sincos-inputs: New file.
2440         * scripts/bench.pl: Identify output arguments and define
2441         static variables for them.
2442
2443         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
2444
2445         [BZ #15941]
2446         * Makefile (INSTALL): Add install-plain.texi as the primary
2447         dependency.
2448         * manual/install-plain.texi: New file.
2449         * manual/install.texi: Include node directive only for
2450         non-plaintext output.
2451
2452 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
2453
2454         * stdlib/longlong.h: Update from GCC.
2455
2456         [BZ #6807]
2457         [BZ #15901]
2458         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
2459         * math/w_j0f.c (y0f): Likewise.
2460         * math/w_j0l.c (__y0l): Likewise.
2461         * math/w_j1.c (y1): Likewise.
2462         * math/w_j1f.c (y1f): Likewise.
2463         * math/w_j1l.c (__y1l): Likewise
2464         * math/w_jn.c (yn): Likewise.
2465         * math/w_jnf.c (ynf): Likewise.
2466         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
2467         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
2468         value for Bessel function domain errors outside _SVID_ mode.
2469         Adjust sign of return value for yn (negative integer, 0).
2470         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
2471         by zero in return for negative x and set sign appropriately for
2472         negative n.
2473         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
2474         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2475         * math/libm-test.inc (y0_test_data): Add more tests and adjust
2476         expectations in error cases.
2477         (y1_test_data): Likewise.
2478         (yn_test_data): Likewise.
2479         * sysdeps/i386/fpu/libm-test-ulps: Update.
2480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2481
2482 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2483
2484         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
2485         "64" to "64-v1".  Add "64-v2".
2486         (abi-64-options): Rename to ...
2487         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
2488         (abi-64-condition): Rename to ...
2489         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
2490         (abi-64-ld-soname): Rename to ...
2491         (abi-64-v1-ld-soname): ... this.
2492         (abi-64-v2-options): Define.
2493         (abi-64-v2-condition): Likewise.
2494         (abi-64-v2-ld-soname): Likewise.
2495         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
2496         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
2497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
2498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
2499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
2500
2501 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2502             Alan Modra  <amodra@gmail.com>
2503
2504         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
2505         New versions for use with the ELFv2 ABI.
2506         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
2507         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
2508         declaration.
2509         (struct La_ppc64v2_retval): Likewise.
2510         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
2511         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
2512         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
2513         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
2514         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
2515         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
2516         Do not save or restore CR.
2517         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
2518         (_dl_profile_resolve): Do no save or restore CR.  Support extended
2519         return values for ELFv2 ABI.  Fix location of FPR return registers.
2520         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
2521         updated values for _CALL_ELF == 2.
2522         (La_regs, La_retval, int_retval): Likewise.
2523
2524 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2525
2526         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
2527         (FRAME_MIN_SIZE_PARM): Likewise.
2528         (FRAME_BACKCHAIN): Likewise.
2529         (FRAME_CR_SAVE): Likewise.
2530         (FRAME_LR_SAVE): Likewise.
2531         (FRAME_TOC_SAVE): Likewise.
2532         (FRAME_PARM_SAVE): Likewise.
2533         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2534         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2535         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2536         (call_mcount_parm_offset): New macro.
2537         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
2538         (PROF): Use symbolic stack frame offsets.
2539         (TAIL_CALL_SYSCALL_ERROR): Likewise.
2540         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
2541         Redefine in terms of FRAME_MIN_SIZE.
2542         (_dl_runtime_resolve): Use symbolic stack frame offsets.
2543         (_dl_profile_resolve): Likewise.  Update comment.
2544         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
2545         symbols stack frame offsets.
2546         (__sigsetjmp): Likewise.
2547         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
2548         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
2549         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
2550         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
2551
2552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
2553         (FRAME_BACKCHAIN): Remove.
2554         (FRAME_CR_SAVE): Likewise.
2555         (FRAME_LR_SAVE): Likewise.
2556         (FRAME_COMPILER_DW): Likewise.
2557         (FRAME_LINKER_DW): Likewise.
2558         (FRAME_TOC_SAVE): Likewise.
2559         (FRAME_PARM_SAVE): Likewise.
2560         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2561         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2562         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
2564         (CHECK_SP): Use symbolic stack frame offsets.
2565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
2566         zone" instead of caller's parameter save area for temp storage.
2567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2568         Likewise.  Also, use symbolic stack frame offsets.
2569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
2570         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
2571         our own stack frame instead of the caller's.
2572         (__socket): Use symbolic stack frame offsets.
2573
2574 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2575             Alan Modra  <amodra@gmail.com>
2576
2577         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
2578         Define.
2579         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
2580         PPC64_LOCAL_ENTRY_OFFSET): Define.
2581         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
2582         New function.
2583         (elf_machine_fixup_plt): Call it.
2584         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
2585         reloc arguments.
2586         (elf_machine_rela): Update call to elf_machine_plt_conflict.
2587         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2588         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
2589         r2 before calling target.
2590
2591 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2592             Alan Modra  <amodra@gmail.com>
2593
2594         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
2595         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
2596         versions of macros to support ELFv2 ABI.
2597         (LOCALENTRY): New macro.
2598         (ENTRY, EALIGN): Use it.
2599         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
2600         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
2601         fall through into ENTRY entry point.
2602         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
2603         Only define if _CALL_ELF != 2.
2604
2605         (elf_machine_matches_host): Verify ABI version matches.
2606         (RTLD_START): Use LOCALENTRY.
2607         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
2608         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
2609         (PLT_ENTRY_WORDS): New macro.
2610         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
2611         (elf_machine_runtime_setup): Support ELFv2 ABI.
2612         (elf_machine_fixup_plt): Likewise.
2613         (elf_machine_plt_conflict): Likewise.
2614         (resolve_ifunc): Likewise.
2615         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
2616         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
2617         Likewise.
2618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
2619         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
2620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2621         (makecontext): Support ELFv2 ABI.
2622         * elf/elf.h (EF_PPC64_ABI): Define.
2623
2624 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2625
2626         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
2627         New assembler macro.
2628         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
2629         [ASSEMBLER] (ENTRY): ... but instead here ...
2630         [ASSEMBLER] (EALIGN): ... and here.
2631         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
2632         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
2633         [!ASSEMBLER] (ENTRY_2): Use it.
2634         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
2635         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
2636         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2637         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
2638         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
2639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
2640         Use PPC64_LOAD_FUNCPTR.
2641
2642 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2643
2644         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
2645
2646 2013-12-04  Alan Modra  <amodra@gmail.com>
2647
2648         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
2649         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
2650         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
2651         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
2652
2653         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
2654         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
2655         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
2656         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
2657         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
2658         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
2659
2660 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2661
2662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2663         (__makecontext): Fix incorrect CFI when backtracing out of
2664         context created via makecontext.
2665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
2666         (__setcontext): Fix incorrect CFI during switch to new context.
2667         (__novec_setcontext): Likewise.
2668
2669 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2670
2671         [BZ #4772]
2672         * time/strptime_l.c (__strptime_internal): Allow modifiers
2673         in strptime.
2674         * time/tst-strptime.c (day_tests): Add testcase.
2675
2676
2677 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2678
2679         * scripts/bench.pl: Skip over blank lines.
2680
2681 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
2682
2683         [BZ #926]
2684         * manual/time.texi (Calendar Time): Clarify what timezone functions
2685         use.
2686
2687 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2688
2689         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2690
2691 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2692
2693         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
2694         implementation.
2695         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
2696         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
2697         * debug/memset_chk.c (__memset_chk): Likewise.
2698         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
2699         * debug/strncpy_chk.c: Likewise.
2700
2701 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2702
2703         [BZ #15268]
2704         [BZ #15425]
2705         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
2706         (__ieee754_exp): For possibly underflowing results, check size of
2707         result and force underflow exception if required.
2708         * math/auto-libm-test-in: Add more tests of exp.
2709         * math/auto-libm-test-out: Regenerated.
2710         * sysdeps/i386/fpu/libm-test-ulps: Update.
2711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2712
2713         [BZ #16283]
2714         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
2715         * math/w_exp2f.c (__exp2f): Likewise.
2716         * math/w_exp2l.c (__exp2l): Likewise.
2717         * math/auto-libm-test-in: Do not allow missing errno on exp2
2718         underflow.
2719         * math/auto-libm-test-out: Regenerated.
2720
2721 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
2722
2723         [BZ #16274]
2724         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
2725         handle filename validation.
2726         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
2727         (do_open): Delete.
2728
2729 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2730
2731         [BZ #6786]
2732         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
2733         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
2734         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
2735         <float.h>.
2736         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
2737         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
2738         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2739         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
2740         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2741         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
2742         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2743         * math/auto-libm-test-in: Don't allow missing errno from erfc.
2744         Add more erfc tests.
2745         * math/auto-libm-test-out: Regenerated.
2746         * sysdeps/i386/fpu/libm-test-ulps: Update.
2747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2748
2749         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
2750         exp2, expm1, j0 and j1.
2751         * math/auto-libm-test-out: Regenerated.
2752         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
2753         (erfc_test_data): Likewise.
2754         (exp_test_data): Likewise.
2755         (exp_tonearest_test_data): Likewise.
2756         (exp_towardzero_test_data): Likewise.
2757         (exp_downward_test_data): Likewise.
2758         (exp_upward_test_data): Likewise.
2759         (exp10_test_data): Likewise.
2760         (exp2_test_data): Likewise.
2761         (expm1_test_data): Likewise.
2762         (j0_test_data): Likewise.
2763         (j1_test_data): Likewise.
2764         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
2765         (input_flag_type): Add flag_xfail_rounding.
2766         (input_flags): Add xfail-rounding.
2767         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
2768         (output_for_one_input_case): Handle flag_xfail_rounding.
2769         * sysdeps/i386/fpu/libm-test-ulps: Update.
2770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2771
2772 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
2773
2774         [BZ #16289]
2775         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
2776         division by 0.
2777
2778 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2779
2780         [BZ #16195]
2781         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2782         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
2783         (STAP_PROBE0): New macro.
2784         (STAP_PROBE1): Likewise.
2785         (STAP_PROBE2): Likewise.
2786         (STAP_PROBE3): Likewise.
2787         (STAP_PROBE4): Likewise.
2788
2789 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
2790
2791         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
2792
2793 2013-12-02  Steve Ellcey  <sellcey@mips.com>
2794
2795         * benchtests/Makefile (bench): Add sqrt.
2796         (LDLIBS-bench-sqrt): New.
2797         * benchtests/sqrt-input: New.
2798
2799 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
2800
2801         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
2802         (GAIH_EAI): Likewise.
2803         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
2804         (gaih_inet): Likewise.
2805         (getaddrinfo): Don't use GAIH_EAI.
2806
2807         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
2808         (struct gaih): Remove definition.
2809
2810 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2811
2812         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
2813         Use HERRNOP directly.
2814
2815 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2816
2817         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2818
2819 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
2820
2821         * math/gen-auto-libm-tests.c (test_functions): Add more
2822         single-argument functions.
2823         (special_fill_pi_2): New function.
2824         (special_fill_minus_pi_2): Likewise.
2825         (special_fill_pi_6): Likewise.
2826         (special_fill_minus_pi_6): Likewise.
2827         (special_fill_pi_3): Likewise.
2828         (special_fill_2pi_3): Likewise.
2829         (special_fill_e): Likewise.
2830         (special_fill_1_e): Likewise.
2831         (special_fill_e_minus_1): Likewise.
2832         (special_real_inputs): Add more special inputs.
2833         (output_for_one_input_case): Do not require ERANGE on underflow to
2834         zero if round-to-nearest result does not underflow to zero, unless
2835         exact results required.
2836         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
2837         atan, atanh, cbrt, cos and cosh.
2838         * math/auto-libm-test-out: Regenerated.
2839         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
2840         (acos_tonearest_test_data): Likewise.
2841         (acos_towardzero_test_data): Likewise.
2842         (acos_downward_test_data): Likewise.
2843         (acos_upward_test_data): Likewise.
2844         (acosh_test_data): Likewise.
2845         (asin_test_data): Likewise.
2846         (asin_tonearest_test_data): Likewise.
2847         (asin_towardzero_test_data): Likewise.
2848         (asin_upward_test_data): Likewise.
2849         (asinh_test_data): Likewise.
2850         (atan_test_data): Likewise.
2851         (atanh_test_data): Likewise.
2852         (cbrt_test_data): Likewise.
2853         (cos_test_data): Likewise.
2854         (cos_tonearest_test_data): Likewise.
2855         (cos_towardzero_test_data): Likewise.
2856         (cos_downward_test_data): Likewise.
2857         (cos_upward_test_data): Likewise.
2858         (cosh_test_data): Likewise.
2859         (cosh_tonearest_test_data): Likewise.
2860         (cosh_towardzero_test_data): Likewise.
2861         (cosh_downward_test_data): Likewise.
2862         (cosh_upward_test_data): Likewise.
2863         * sysdeps/i386/fpu/libm-test-ulps: Update.
2864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2865
2866 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
2867
2868         [BZ #6787]
2869         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
2870         * math/w_exp10f.c (__exp10f): Likewise.
2871         * math/w_exp10l.c (__exp10l): Likewise.
2872         * math/libm-test.inc (exp10_test_data): Add more tests and expect
2873         errno settings in existing tests.
2874
2875         [BZ #14032]
2876         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
2877         precision control set to double precision.
2878         * sysdeps/i386/fpu/w_sqrt.c: New file.
2879         * math/auto-libm-test-in: Add more tests.
2880         * math/auto-libm-test-out: Update.
2881
2882         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
2883         (sqrt_test_tonearest): New function.
2884         (sqrt_towardzero_test_data): New variable.
2885         (sqrt_test_towardzero): New function.
2886         (sqrt_downward_test_data): New variable.
2887         (sqrt_test_downward): New function.
2888         (sqrt_upward_test_data): New variable.
2889         (sqrt_test_upward): New function.
2890         (main): Call the new functions.
2891
2892         * math/gen-auto-libm-tests.c: New file.
2893         * math/auto-libm-test-in: Likewise.
2894         * math/auto-libm-test-out: New generated file.
2895         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
2896         variables.
2897         (%beautify): Add generated representations of zero.
2898         (top level): Set $auto_input and call parse_auto_input.
2899         (beautify): Remove trailing "f" from hex float constants.
2900         (parse_args): Handle XFAIL_TEST.
2901         (convert_condition): New function.
2902         (or_value): Likewise.
2903         (or_cond_value): Likewise.
2904         (generate_testfile): Handle AUTO_TESTS_* lines.
2905         (parse_auto_input): New function.
2906         * math/libm-test.inc (XFAIL_TEST): New macro.
2907         (ERRNO_UNCHANGED): Update value.
2908         (ERRNO_EDOM): Likewise.
2909         (ERRNO_ERANGE): Likewise.
2910         (IGNORE_RESULT): Likewise.
2911         (TEST_COND_flt_32): New macro.
2912         (TEST_COND_dbl_64): Likewise.
2913         (TEST_COND_ldbl_96_intel): Likewise.
2914         (TEST_COND_ldbl_96_m68k): Likewise.
2915         (TEST_COND_ldbl_128): Likewise.
2916         (TEST_COND_ldbl_128ibm): Likewise.
2917         (TEST_COND_long32): Likewise.
2918         (TEST_COND_long64): Likewise.
2919         (TEST_COND_before_rounding): Likewise.
2920         (TEST_COND_after_rounding): Likewise.
2921         (enable_test): Handle XFAIL_TEST flag.
2922         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
2923         with finite results.
2924         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
2925         auto-libm-test-out.
2926
2927 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2928             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2929
2930         [BZ #16214]
2931         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
2932         __tls_get_addr_internal instead of __tls_get_offset in order to
2933         avoid GOT pointer dependency.  Make rtld export
2934         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
2935         __tls_get_addr since we are a __tls_get_offset platform.
2936         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
2937         GOT pointer being set up before.
2938         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
2939
2940 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
2941
2942         * manual/math.texi (Errors in Math Functions): Document accuracy
2943         goals.
2944
2945         [BZ #15004]
2946         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
2947         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
2948         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2949         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2950         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2951         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2952         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2953         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2954         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2955         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2956         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2957         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2958         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2959         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2960         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2961         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2962
2963         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
2964         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
2965         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
2966         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
2967         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
2968         Likewise.
2969         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
2970         Likewise.
2971         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
2972         Likewise.
2973         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
2974         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
2975         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
2976         atomic-feupdateenv and flt-rounds.
2977         * sysdeps/powerpc/nofpu/Versions (libc): Add
2978         __atomic_feholdexcept, __atomic_feclearexcept,
2979         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
2980         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
2981         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
2982         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
2983         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
2984         here.
2985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
2986         Update.
2987
2988         * manual/arith.texi (FP Exceptions): Document that exceptions may
2989         not be raised when matherr is used.
2990         (Math Error Reporting): Document overflow in directed rounding
2991         modes.  Document that errno may not be set when finite values are
2992         returned on overflow.  Document intent to set errno on underflow
2993         only for underflow to zero.
2994
2995         [BZ #16271]
2996         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
2997         round-to-nearest then adjust result for other rounding modes.
2998         * include/fenv.h (fegetround): Use libm_hidden_proto.
2999         * math/fegetround.c (fegetround): Use libm_hidden_def.
3000         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
3001         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
3002         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3003         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
3004         Likewise.
3005         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
3006         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3007         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
3008         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
3009
3010 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3011
3012         [BZ #16077]
3013         * nss/Versions (libnss_files): Add
3014         _nss_files_gethostbyname3_r.
3015         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
3016         New function.
3017         (HOST_DB_LOOKUP): Remove macro.
3018         (_nss_files_gethostbyname_r): Implement function without the
3019         HOST_DB_LOOKUP macro.
3020         (_nss_files_gethostbyname2_r): Likewise.
3021
3022 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
3023
3024         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
3025
3026 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
3027
3028         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
3029         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
3030         warning.
3031
3032 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3033
3034         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
3035         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
3036         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3037         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
3038         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
3039         __fe_nomask_env_priv and attribute_hidden.
3040         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
3041         (libc_feupdateenv_test_ppc): Likewise.
3042         (libc_feresetround_ppc): Likewise.
3043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3044         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
3045         compat_symbol macro.
3046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3047         (__fe_nomask_env): Likewise.
3048         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
3049
3050 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3051
3052         * string/Makefile: Remove ifunc tests.
3053         * string/test-string.h: Define TEST_IFUNC.
3054         * string/test-bcopy-ifunc.c: Remove.
3055         * string/test-bzero-ifunc.c: Likewise.
3056         * string/test-memccpy-ifunc.c: Likewise.
3057         * string/test-memchr-ifunc.c: Likewise.
3058         * string/test-memcmp-ifunc.c: Likewise.
3059         * string/test-memcpy-ifunc.c: Likewise.
3060         * string/test-memmem-ifunc.c: Likewise.
3061         * string/test-memmove-ifunc.c: Likewise.
3062         * string/test-mempcpy-ifunc.c: Likewise.
3063         * string/test-memrchr-ifunc.c: Likewise.
3064         * string/test-memset-ifunc.c: Likewise.
3065         * string/test-rawmemchr-ifunc.c: Likewise.
3066         * string/test-stpcpy-ifunc.c: Likewise.
3067         * string/test-stpncpy-ifunc.c: Likewise.
3068         * string/test-strcasecmp-ifunc.c: Likewise.
3069         * string/test-strcasestr-ifunc.c: Likewise.
3070         * string/test-strcat-ifunc.c: Likewise.
3071         * string/test-strchr-ifunc.c: Likewise.
3072         * string/test-strchrnul-ifunc.c: Likewise.
3073         * string/test-strcmp-ifunc.c: Likewise.
3074         * string/test-strcpy-ifunc.c: Likewise.
3075         * string/test-strcspn-ifunc.c: Likewise.
3076         * string/test-strlen-ifunc.c: Likewise.
3077         * string/test-strncasecmp-ifunc.c: Likewise.
3078         * string/test-strncat-ifunc.c: Likewise.
3079         * string/test-strncmp-ifunc.c: Likewise.
3080         * string/test-strncpy-ifunc.c: Likewise.
3081         * string/test-strnlen-ifunc.c: Likewise.
3082         * string/test-strpbrk-ifunc.c: Likewise.
3083         * string/test-strrchr-ifunc.c: Likewise.
3084         * string/test-strspn-ifunc.c: Likewise.
3085         * string/test-strstr-ifunc.c: Likewise.
3086
3087 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3088
3089         * benchtests/Makefile: Remove ifunc tests.
3090         * benchtests/bench-string.h: Define TEST_IFUNC.
3091         * benchtests/bench-bcopy-ifunc.c: Remove.
3092         * benchtests/bench-bzero-ifunc.c: Likewise.
3093         * benchtests/bench-memccpy-ifunc.c: Likewise.
3094         * benchtests/bench-memchr-ifunc.c: Likewise.
3095         * benchtests/bench-memcmp-ifunc.c: Likewise.
3096         * benchtests/bench-memcpy-ifunc.c: Likewise.
3097         * benchtests/bench-memmem-ifunc.c: Likewise.
3098         * benchtests/bench-memmove-ifunc.c: Likewise.
3099         * benchtests/bench-mempcpy-ifunc.c: Likewise.
3100         * benchtests/bench-memrchr-ifunc.c: Likewise.
3101         * benchtests/bench-memset-ifunc.c: Likewise.
3102         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
3103         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
3104         * benchtests/bench-stpcpy-ifunc.c: Likewise.
3105         * benchtests/bench-stpncpy-ifunc.c: Likewise.
3106         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
3107         * benchtests/bench-strcasestr-ifunc.c: Likewise.
3108         * benchtests/bench-strcat-ifunc.c: Likewise.
3109         * benchtests/bench-strchr-ifunc.c: Likewise.
3110         * benchtests/bench-strchrnul-ifunc.c: Likewise.
3111         * benchtests/bench-strcmp-ifunc.c: Likewise.
3112         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
3113         * benchtests/bench-strcpy-ifunc.c: Likewise.
3114         * benchtests/bench-strcspn-ifunc.c: Likewise.
3115         * benchtests/bench-strlen-ifunc.c: Likewise.
3116         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
3117         * benchtests/bench-strncat-ifunc.c: Likewise.
3118         * benchtests/bench-strncmp-ifunc.c: Likewise.
3119         * benchtests/bench-strncpy-ifunc.c: Likewise.
3120         * benchtests/bench-strnlen-ifunc.c: Likewise.
3121         * benchtests/bench-strpbrk-ifunc.c: Likewise.
3122         * benchtests/bench-strrchr-ifunc.c: Likewise.
3123         * benchtests/bench-strsep-ifunc.c: Likewise.
3124         * benchtests/bench-strspn-ifunc.c: Likewise.
3125         * benchtests/bench-strstr-ifunc.c: Likewise.
3126
3127 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3128
3129         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
3130
3131 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3132
3133         * resolv/netdb.h: Use __glibc_reserved instead __unused.
3134         * rt/aio.h: Likewise.
3135         * sysdeps/gnu/bits/utmp.h: Likewise.
3136         * sysdeps/gnu/bits/utmpx.h: Likewise.
3137         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
3138         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
3139         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
3140         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
3141         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3142         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3143         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
3144         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
3145         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
3146         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
3147         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
3148         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3149         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
3151         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3152         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
3153         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
3154         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
3155         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3156         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3157         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
3158         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
3159         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
3160         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
3161         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3162         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3163         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
3164         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
3165         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
3166         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3167         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3168         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
3169         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
3170         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
3171         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
3172         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
3173         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
3174         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
3175         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
3176         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
3177         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
3178         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
3179
3180 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
3181
3182         [BZ #16245]
3183         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
3184         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
3185
3186 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
3187
3188         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
3189         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
3190         Likewise.
3191
3192 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3193
3194         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3195         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
3196         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
3197         (__fesetround): Remove define.
3198         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
3199         rounding and exceptions handling.
3200         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
3201         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
3202         (__fe_nomask_env): Likewise.
3203         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
3204         __fegetround instead of fegetround.
3205         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
3206         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
3207
3208 2013-11-21  Roland McGrath  <roland@hack.frob.com>
3209
3210         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
3211         it's there.
3212
3213         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
3214
3215 2013-11-21  Meador Inge  <meadori@codesourcery.com>
3216
3217         [BZ #11157]
3218         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
3219         (encrypt_r): Likewise.
3220         * malloc/obstack.h (obstack_free): Likewise.
3221         * posix/unistd.h (encrypt): Likewise.
3222
3223 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
3224
3225         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
3226         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
3227         DL_CALL_DT_FINI() that call the functions directly.
3228         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
3229         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
3230         * elf/dl-fini.c: Likewise.
3231
3232 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
3233
3234         * malloc/hooks.c (memalign_check): Add alignment rounding.
3235         * malloc/malloc.c (_mid_memalign): New function.
3236         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
3237         Implement by calling _mid_memalign.
3238         * manual/probes.texi (Memory Allocation Probes): Remove
3239         memory_valloc_retry and memory_pvalloc_retry.
3240
3241 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3242
3243         * locale/programs/locarchive.c (open_archive): Add const
3244         qualifier to ARCHIVEFNAME and copy default fname to
3245         DEFAULT_FNAME.
3246
3247         [BZ #15601]
3248         * libio/tst-widetext.input: Rename Oriya to Odia.
3249         * locale/iso-639.def: Likewise.
3250
3251         * manual/probes.texi (Mathematical Function Probes): Add
3252         documentation for sin, cos, asin and acos probes.
3253         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
3254         (__sin32): Add slowasin probe.
3255         (__cos32): Add slowacos probe.
3256         (__mpsin): Add slowsin probe.
3257         (__mpcos): Add slowcos probe.
3258
3259 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
3260
3261         [BZ #15483]
3262         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
3263         thread-local __sim_exceptions_thread and global
3264         __sim_exceptions_global.
3265         (__sim_disabled_exceptions): Change to thread-local
3266         __sim_disabled_exceptions_thread and global
3267         __sim_disabled_exceptions_global.
3268         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3269         and global __sim_round_mode_global.
3270         (__simulate_exceptions): Use thread-local floating-point state and
3271         set global state from it as needed.
3272         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
3273         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
3274         __sim_round_mode_thread.
3275         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
3276         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
3277         and global __sim_exceptions_global.
3278         (__sim_disabled_exceptions): Change to thread-local
3279         __sim_disabled_exceptions_thread and global
3280         __sim_disabled_exceptions_global.
3281         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3282         and global __sim_round_mode_global.
3283         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
3284         (SIM_SET_GLOBAL): Likewise.
3285         * sysdeps/powerpc/soft-fp/sfp-machine.h
3286         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
3287         __sim_round_mode_thread.
3288         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
3289         __sim_disabled_exceptions_thread.
3290         (__sim_exceptions): Change to __sim_exceptions_thread.
3291         (__sim_disabled_exceptions): Change to
3292         __sim_disabled_exceptions_thread.
3293         (__sim_round_mode): Change to __sim_round_mode_thread.
3294         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
3295         thread-local floating-point state and set global state from it as
3296         needed.
3297         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
3298         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
3299         (__sim_disabled_exceptions): Remove extern declaration.
3300         (feenableexcept): Use thread-local floating-point state and set
3301         global state from it as needed.
3302         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
3303         extern declaration.
3304         (__sim_disabled_exceptions): Likewise.
3305         (__sim_round_mode): Likewise.
3306         (__fegetenv): Use thread-local floating-point state.
3307         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
3308         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3309         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
3310         floating-point state and set global state from it as needed.
3311         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
3312         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
3313         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
3314         Likewise.
3315         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
3316         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
3317         Likewise.
3318         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
3319         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
3320         Use __sim_round_mode_thread.
3321         * math/test-fenv-tls.c: New file.
3322         * math/Makefile (tests): Add test-fenv-tls.
3323         ($(objpfx)test-fenv-tls): Depend on
3324         $(common-objpfx)nptl/libpthread.so.
3325
3326 2013-11-19  Andreas Schwab  <schwab@suse.de>
3327
3328         * locale/programs/locale.c (show_info): Decode wordarray elements.
3329         * locale/categories.def (LC_MONETARY): Add element for
3330         _NL_MONETARY_CRNCYSTR.
3331         * locale/C-monetary.c (conversion_rate): New variable.
3332         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
3333         element.
3334
3335 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
3336
3337         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
3338         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
3339
3340 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
3341
3342         * elf/Makefile (tst-auxv): New test.
3343         * elf/tst-auxv.c: New
3344         * elf/rtld.c (dl_main): Adjust AT_EXECFN
3345
3346 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
3347
3348         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
3349         (hidden_proto): Caller changed.
3350         (hidden_tls_proto): New macro.
3351         (libc_hidden_tls_proto): Likewise.
3352         (rtld_hidden_tls_proto): Likewise.
3353         (libm_hidden_tls_proto): Likewise.
3354         (libresolv_hidden_tls_proto): Likewise.
3355         (librt_hidden_tls_proto): Likewise.
3356         (libdl_hidden_tls_proto): Likewise.
3357         (libnss_files_hidden_tls_proto): Likewise.
3358         (libnsl_hidden_tls_proto): Likewise.
3359         (libnss_nisplus_hidden_tls_proto): Likewise.
3360         (libutil_hidden_tls_proto): Likewise.
3361
3362 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
3363
3364         [BZ #10253]
3365         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
3366         (decompose_rpath): Defer expansion to fillin_rpath.
3367         (_dl_init_paths): Pass linkmap to fillin_rpath.
3368
3369 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3370
3371         * benchtests/Makefile: Add strsep.
3372         * benchtests/bench-strsep.c: New file: strsep benchtest.
3373         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
3374
3375 2013-11-18  Andreas Schwab  <schwab@suse.de>
3376
3377         * locale/programs/locale.c (show_info) [case byte]: Check for
3378         '\377' instead of '\177'.
3379         * locale/C-monetary.c (not_available): Always use "\377".
3380         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
3381         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
3382         detect unavailable sign_posn locale elements.
3383         * locale/localeconv.c (__localeconv): For grouping and
3384         mon_grouping handle "\177" and "\377" like no grouping.
3385         (INT_ELEM): New macro.  Use it to set all numeric members.
3386         * locale/programs/ld-monetary.c (monetary_read)
3387         <tok_mon_grouping>: Normalize single -1 to the empty string.
3388         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
3389         Likewise.
3390
3391 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3392
3393         [BZ #16055]
3394         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
3395         when we match (nil).
3396         * stdio-common/tst-sscanf.c (struct test): Add testcase.
3397
3398 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
3399
3400         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
3401         (NO_TEST_INLINE): Update value.
3402         (ERRNO_UNCHANGED): Likewise.
3403         (ERRNO_EDOM): Likewise.
3404         (ERRNO_ERANGE): Likewise.
3405         (IGNORE_RESULT): Likewise.
3406         (check_float_internal): Check signs of NaN results if
3407         TEST_NAN_SIGN used.
3408         (check_complex): Pass TEST_NAN_SIGN flag through to second
3409         check_float_internal call.
3410         (copysign_test_data): Add tests with quiet NaNs as second
3411         argument.  Use TEST_NAN_SIGN.
3412         (fabs_test_data): Add test of negative quiet NaN argument.  Use
3413         TEST_NAN_SIGN.
3414         (signbit_test_data): Add tests of quiet NaN argument.
3415         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
3416
3417         * math/gen-libm-test.pl (show_exceptions): Take extra argument
3418         $ignore_result.
3419         (parse_args): Handle function results specified as IGNORE.
3420         * math/libm-test.inc (IGNORE_RESULT): New macro.
3421         (check_float_internal): Do not check numerical result if flag
3422         IGNORE_RESULT set.
3423         (check_complex): Pass through IGNORE_RESULT to second
3424         check_float_internal call.
3425         (check_int): Do not check numerical result if flag IGNORE_RESULT
3426         set.
3427         (check_long): Likewise.
3428         (check_bool): Likewise.
3429         (check_longlong): Likewise.
3430         (lrint_test_data): Add tests of infinite and NaN arguments.
3431         (lrint_tonearest_test_data): Likewise.
3432         (lrint_towardzero_test_data): Likewise.
3433         (lrint_downward_test_data): Likewise.
3434         (lrint_upward_test_data): Likewise.
3435         (llrint_test_data): Likewise.
3436         (llrint_tonearest_test_data): Likewise.
3437         (llrint_towardzero_test_data): Likewise.
3438         (llrint_downward_test_data): Likewise.
3439         (llrint_upward_test_data): Likewise.
3440         (lround_test_data): Likewise.
3441         (llround_test_data): Likewise.
3442
3443         * math/libm-test.inc (NO_TEST_INLINE): New macro.
3444         (ERRNO_UNCHANGED): Update value.
3445         (ERRNO_EDOM): Likewise.
3446         (ERRNO_ERANGE): Likewise.
3447         (NO_TEST_INLINE_FLOAT): New macro.
3448         (NO_TEST_INLINE_DOUBLE): Likewise.
3449         (enable_test): New function.
3450         (RUN_TEST_f_f): Check enable_test before running test.
3451         (RUN_TEST_2_f): Likewise.
3452         (RUN_TEST_fff_f): Likewise.
3453         (RUN_TEST_c_f): Likewise.
3454         (RUN_TEST_f_f1): Likewise.
3455         (RUN_TEST_fF_f1): Likewise.
3456         (RUN_TEST_fI_f1): Likewise.
3457         (RUN_TEST_ffI_f1): Likewise.
3458         (RUN_TEST_c_c): Likewise.
3459         (RUN_TEST_cc_c): Likewise.
3460         (RUN_TEST_f_i): Likewise.
3461         (RUN_TEST_f_i_tg): Likewise.
3462         (RUN_TEST_ff_i_tg): Likewise.
3463         (RUN_TEST_f_b): Likewise.
3464         (RUN_TEST_f_b_tg): Likewise.
3465         (RUN_TEST_f_l): Likewise.
3466         (RUN_TEST_f_L): Likewise.
3467         (RUN_TEST_fFF_11): Likewise.
3468         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
3469         conditionals.
3470         (cosh_test_data): Likewise.
3471         (exp_test_data): Likewise.
3472         (expm1_test_data): Likewise.
3473         (hypot_test_data): Likewise.
3474         (pow_test_data): Likewise.
3475         (sinh_test_data): Likewise.
3476         (tanh_test_data): Likewise.
3477         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
3478         flags argument.
3479
3480         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
3481         tests with quiet NaN input and output.
3482         (acosh_test_data): Likewise.
3483         (asin_test_data): Likewise.
3484         (asinh_test_data): Likewise.
3485         (atan_test_data): Likewise.
3486         (atanh_test_data): Likewise.
3487         (atan2_test_data): Likewise.
3488         (cbrt_test_data): Likewise.
3489         (cos_test_data): Likewise.
3490         (cosh_test_data): Likewise.
3491         (erf_test_data): Likewise.
3492         (erfc_test_data): Likewise.
3493         (exp_test_data): Likewise.
3494         (exp10_test_data): Likewise.
3495         (exp2_test_data): Likewise.
3496         (expm1_test_data): Likewise.
3497         (hypot_test_data): Likewise.
3498         (j0_test_data): Likewise.
3499         (j1_test_data): Likewise.
3500         (jn_test_data): Likewise.
3501         (lgamma_test_data): Likewise.
3502         (log_test_data): Likewise.
3503         (log10_test_data): Likewise.
3504         (log1p_test_data): Likewise.
3505         (log2_test_data): Likewise.
3506         (pow_test_data): Likewise.
3507         (scalb_test_data): Likewise.
3508         (sin_test_data): Likewise.
3509         (sincos_test_data): Likewise.
3510         (sinh_test_data): Likewise.
3511         (tan_test_data): Likewise.
3512         (tanh_test_data): Likewise.
3513         (tgamma_test_data): Likewise.
3514         (y0_test_data): Likewise.
3515         (y1_test_data): Likewise.
3516         (yn_test_data): Likewise.
3517
3518         [BZ #16167]
3519         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
3520         argument being NaN and avoid computations with second argument in
3521         that case.
3522         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3523         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3524         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3525
3526 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
3527
3528         * locale/iso-639.def: Add Chitwani Tharu (the).
3529
3530 2013-11-14  Andreas Schwab  <schwab@suse.de>
3531
3532         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
3533         word instead of empty string.
3534
3535 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3536
3537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3538         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
3539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3540         (__fe_nomask_env): Likewise.
3541
3542 2013-11-13  Steve Ellcey  <sellcey@mips.com>
3543
3544         * benchtests/bench-timing.h: Include time.h.
3545
3546 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
3547
3548         [BZ #15997]
3549         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
3550         to 3.4.0 for x32.
3551         * sysdeps/unix/sysv/linux/configure: Regenerated.
3552
3553 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
3554
3555         [BZ #16151]
3556         * stdlib/strtod_l.c (round_and_return): Do not consider
3557         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
3558         exponent one less than half the least subnormal exponent.
3559         * stdlib/test-strtod-round-data: Add more tests.
3560         * stdlib/tst-strtod-round.c (tests): Regenerated.
3561
3562 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3563
3564         [BZ #14143]
3565         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
3566         (__fe_mask_env): Likewise.
3567         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
3568         libm_hidden_proto and add function prototype.
3569         (__fe_mask_env): Add function prototype.
3570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3571         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
3572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3573         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
3574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3575         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
3576
3577 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3578
3579         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
3580         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
3581
3582 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3583
3584         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
3585         of htab_find_slot().
3586
3587 2013-11-11  David S. Miller  <davem@davemloft.net>
3588
3589         [BZ #16150]
3590         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
3591         symbol in the non-vis3 case in static builds.
3592         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
3593         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
3594         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
3595         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
3596
3597 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3598
3599         [BZ #387]
3600         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
3601         it is empty.
3602
3603 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3604
3605         * benchtests/Makefile: Add bench-strtod.
3606         * benchtests/bench-strtod.c: New file: strtod benchtest
3607
3608 2013-11-11  Andreas Schwab  <schwab@suse.de>
3609
3610         [BZ #16153]
3611         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
3612         terminating NUL in key length.
3613
3614 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3615
3616         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
3617         Add artificial ODP entry for vDSO symbol for PPC64.
3618         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
3619         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
3620
3621 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3622
3623         [BZ #15374]
3624         * nss/getent.c (services_keys): Recognize services starting with digit.
3625
3626 2013-11-06  David S. Miller  <davem@davemloft.net>
3627
3628         [BZ #15985]
3629         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
3630         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
3631
3632 2013-11-06  Will Newton  <will.newton@linaro.org>
3633
3634         * manual/memory.texi (Malloc Examples): Remove register
3635         keyword from examples.
3636
3637 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
3638
3639         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
3640
3641 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
3642
3643         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
3644         depending on [__GCC_IEC_559 > 0].
3645         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
3646         depending on [__GCC_IEC_559_COMPLEX > 0].
3647
3648 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
3649
3650         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
3651         to iso-639.def.
3652
3653 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
3654
3655         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
3656
3657 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
3658
3659         [BZ #16112]
3660         * malloc/malloc (malloc_info): Do not handle first bin as
3661         special case.
3662
3663 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
3664
3665         * locale/iso-639.def: Add Central Nahuatl (nhn).
3666
3667 2013-11-01  Bruno Haible  <bruno@clisp.org>
3668
3669         [BZ #7003]
3670         * manual/math.texi (BSD Random): Specify range upper bound as
3671         in POSIX.
3672
3673 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
3674
3675         * locale/iso-639.def: Add Meadow Mari (mhr).
3676
3677 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
3678
3679         [BZ #14752], [BZ #15763]
3680         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
3681         Validate name.
3682         * rt/tst_shm.c: Add test for escaping directory.
3683
3684 2013-10-31  Andreas Schwab  <schwab@suse.de>
3685
3686         [BZ #15917]
3687         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
3688         followed by 'x' as part of digit sequence.
3689         * stdio-common/tst-sscanf.c (double_tests2): New tests.
3690
3691 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
3692
3693         [BZ #16037]
3694         * configure.ac: allow GNU Make 4.0 and greater.
3695         * configure: Regenerated.
3696
3697 2013-10-30  Will Newton  <will.newton@linaro.org>
3698
3699         [BZ #16038]
3700         * malloc/hooks.c (memalign_check): Limit alignment to the
3701         maximum representable power of two.
3702         * malloc/malloc.c (__libc_memalign): Likewise.
3703         * malloc/tst-memalign.c (do_test): Add test for very
3704         large alignment values.
3705         * malloc/tst-posix_memalign.c (do_test): Likewise.
3706
3707 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3708
3709         [BZ #11087]
3710         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
3711         (munmap_chunk): Likewise.
3712         (mremap_chunk): Likewise.
3713
3714 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3715
3716         [BZ #15799]
3717         * stdlib/div.c (div): Remove obsolete code.
3718         * stdlib/ldiv.c (ldiv): Likewise.
3719         * stdlib/lldiv.c (lldiv): Likewise.
3720
3721 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3722
3723         [BZ #16071]
3724         * nss/nss_files/files-XXX.c (get_contents_ret): New
3725         enumerator.
3726         (get_contents): New function.
3727         (internal_getent): Use it.  Expand size of LINEBUFLEN.
3728
3729 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
3730
3731         * configure.in: Moved to ...
3732         * configure.ac: ... here. Change reference to configure.in
3733         to configure.ac.
3734         * sysdeps/arm/preconfigure.ac: ... here.
3735         configure.in to configure.ac.
3736         * sysdeps/gnu/configure.in: Moved to ...
3737         * sysdeps/gnu/configure.ac: ... here.
3738         * sysdeps/i386/configure.in: Moved to ...
3739         * sysdeps/i386/configure.ac: ... here.
3740         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
3741         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
3742         * sysdeps/mach/configure.in: Moved to ...
3743         * sysdeps/mach/configure.ac: ... here.
3744         * sysdeps/mach/hurd/configure.in: Moved to ...
3745         * sysdeps/mach/hurd/configure.ac: ... here.
3746         * sysdeps/powerpc/configure.in: Moved to ...
3747         * sysdeps/powerpc/configure.ac: ... here.
3748         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
3749         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
3750         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
3751         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
3752         * sysdeps/s390/s390-32/configure.in: Moved to ...
3753         * sysdeps/s390/s390-32/configure.ac: ... here.
3754         * sysdeps/s390/s390-64/configure.in: Moved to ...
3755         * sysdeps/s390/s390-64/configure.ac: ... here.
3756         * sysdeps/sh/configure.in: Moved to ...
3757         * sysdeps/sh/configure.ac: ... here.
3758         * sysdeps/sparc/configure.in: Moved to ...
3759         * sysdeps/sparc/configure.ac: ... here.
3760         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
3761         * sysdeps/unix/sysv/linux/configure.ac: ... here.
3762         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
3763         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
3764         * sysdeps/x86_64/configure.in: Moved to ...
3765         * sysdeps/x86_64/configure.ac: ... here.
3766         * sysdeps/x86_64/preconfigure.in: Moved to ...
3767         * sysdeps/x86_64/preconfigure.ac: ... here.
3768         * aclocal.m4: Change reference to configure.in to configure.ac.
3769         * config.h.in: Likewise.
3770         * manual/install.texi: Likewise.
3771         * manual/maint.texi: Likewise.
3772         * Makefile: Likewise.
3773         * malloc/Makefile: Likewise.
3774         * nscd/Makefile: Likewise.
3775         * Makeconfig: Change reference to configure.in and
3776         preconfigure.in to configure.ac and preconfigure.ac
3777         respectively.
3778         * INSTALL: Regenerated.
3779         * configure: Likewise.
3780         * sysdeps/gnu/configure: Likewise.
3781         * sysdeps/i386/configure: Likewise.
3782         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
3783         * sysdeps/mach/configure: Likewise.
3784         * sysdeps/mach/hurd/configure: Likewise.
3785         * sysdeps/powerpc/configure: Likewise.
3786         * sysdeps/powerpc/powerpc32/configure: Likewise.
3787         * sysdeps/powerpc/powerpc64/configure: Likewise.
3788         * sysdeps/s390/s390-32/configure: Likewise.
3789         * sysdeps/s390/s390-64/configure: Likewise.
3790         * sysdeps/sh/configure: Likewise.
3791         * sysdeps/sparc/configure: Likewise.
3792         * sysdeps/unix/sysv/linux/configure: Likewise.
3793         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
3794         * sysdeps/x86_64/configure: Likewise.
3795         * sysdeps/x86_64/preconfigure: Likewise.
3796
3797 2013-10-29  Andreas Schwab  <schwab@suse.de>
3798
3799         * stdio-common/Makefile (tst-swscanf-ENV): Define.
3800
3801 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3802
3803         * benchtests/pow-inputs: Add new inputs.
3804
3805         * benchtests/exp-inputs: Add new inputs.
3806
3807         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
3808         conditional check for return value.
3809         (__cos32): Likewise.
3810
3811 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3812
3813         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
3814         to provide a boost for large inputs with word alignment.
3815         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
3816         implementation based on optimized PPC64 strcpy.
3817         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
3818         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
3819         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
3820         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
3821
3822 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3823
3824         [BZ #2801]
3825         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
3826
3827 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3828
3829         [BZ #14876]
3830         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
3831         * time/tst-strptime.c (day_tests): Add testcase.
3832
3833 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3834
3835         [BZ #14029]
3836         * manual/pattern.texi: Acknowledge that fnmatch can fail.
3837
3838 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
3839
3840         [BZ #16074]
3841         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
3842         MAP_FAILED on error.
3843
3844 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3845
3846         [BZ #16072]
3847         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
3848         heap for large requests.
3849
3850 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
3851
3852         [BZ #9954]
3853         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
3854         result if the result has no associated interface.
3855         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
3856         interface for all 127.X.Y.Z addresses.
3857
3858 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
3859
3860         * locale/iso-639.def: Add Ligurian (lij)
3861
3862 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
3863
3864         [BZ #15825]
3865         * sunrpc/rpc_main.c: Document rpcgen -5.
3866
3867 2013-10-19  Michael Stahl  <mstahl@redhat.com>
3868
3869         * elf/rtld.c (do_preload): Print the reason why preloading failed.
3870
3871 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
3872
3873         [BZ #10278]
3874         * posix/glob.c: Match only directories when trailing slash is present.
3875         * posix/tst-gnuglob.c (my_opendir): Do not open files.
3876         (main): Add testcase.
3877
3878 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
3879
3880         [BZ #15670]
3881         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
3882
3883 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
3884
3885         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
3886         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
3887         AUTH_DES and cindex for FIPS 140-2.
3888         (DES Encryption): Add cindex FIPS 46-3.
3889
3890         * locale/locarchive.h (struct locarhandle): Add fname.
3891         * locale/programs/localedef.c (main): Pass ARGV[remaining]
3892         if an optional argument was specified to --list-archive,
3893         otherwise NULL.
3894         * locale/programs/locarchive.c (show_archive_content): Take new
3895         argument fname and pass it via ah.fname to open_archive.
3896         * locale/programs/localedef.h: Update decl.
3897         (open_archive): If AH->fname is non-null, open that file
3898         rather than the default file name, and don't ignore ENOENT.
3899         (create_archive): Set AH.fname to NULL.
3900         (delete_locales_from_archive): Likewise.
3901         (add_locales_to_archive): Likewise.
3902         * locale/programs/locfile.c (write_all_categories): Likewise.
3903
3904 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
3905             Aldy Hernandez  <aldyh@redhat.com>
3906
3907         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
3908         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
3909         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
3910         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
3911         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
3912         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
3913         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
3914         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
3915         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
3916         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
3917         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
3918         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
3919         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
3920         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
3921         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
3922         Likewise.
3923         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
3924         Likewise.
3925         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
3926         Likewise.
3927         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
3928         Likewise.
3929         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
3930         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
3931         Likewise.
3932         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
3933         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
3934         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
3935         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
3936         Likewise.
3937         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
3938         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
3939         * sysdeps/powerpc/preconfigure: Likewise.
3940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
3941         Likewise.
3942         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
3943         Replace contents of file by #include of <fenv_libc.h>.
3944         * sysdeps/powerpc/soft-fp/sfp-machine.h
3945         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
3946         and <sys/prctl.h>.
3947         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
3948         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
3949         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
3950         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
3951         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
3952         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
3953         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
3954         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
3955         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
3956         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
3957         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
3958         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
3959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
3960         Allow copysignl PLT reference to be missing.
3961
3962 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
3963             Joseph Myers  <joseph@codesourcery.com
3964
3965         [BZ #15948]
3966         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
3967         single character.
3968         (add_to_tablewc): Assert sequence of wide characters is nonempty.
3969
3970 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3971
3972         * elf/tst-tls-dlinfo.c: Don't include tls.h.
3973         * elf/tst-tls1.c: Likewise.
3974         * elf/tst-tls10.h: Likewise.
3975         * elf/tst-tls14.c: Likewise.
3976         * elf/tst-tls2.c: Likewise.
3977         * elf/tst-tls3.c: Likewise.
3978         * elf/tst-tls4.c: Likewise.
3979         * elf/tst-tls5.c: Likewise.
3980         * elf/tst-tls6.c: Likewise.
3981         * elf/tst-tls7.c: Likewise.
3982         * elf/tst-tls8.c: Likewise.
3983         * elf/tst-tls9.c: Likewise.
3984         * elf/tst-tlsmod1.c: Likewise.
3985         * elf/tst-tlsmod13.c: Likewise.
3986         * elf/tst-tlsmod13a.c: Likewise.
3987         * elf/tst-tlsmod14a.c: Likewise.
3988         * elf/tst-tlsmod16a.c: Likewise.
3989         * elf/tst-tlsmod16b.c: Likewise.
3990         * elf/tst-tlsmod2.c: Likewise.
3991         * elf/tst-tlsmod3.c: Likewise.
3992         * elf/tst-tlsmod4.c: Likewise.
3993         * elf/tst-tlsmod5.c: Likewise.
3994         * elf/tst-tlsmod6.c: Likewise.
3995
3996 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
3997
3998         [BZ #12486]
3999         * malloc/malloc.c: remove checks for statistics.
4000
4001 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4002
4003         [BZ #15277]
4004         * inet/inet_net.c (inet_network): Detect additional invalid strings.
4005         * inet/tst-network.c: Add testcase.
4006
4007 2013-10-17  Andreas Schwab  <schwab@suse.de>
4008
4009         [BZ #15218]
4010         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
4011         to determine canonical name.
4012
4013 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4014
4015         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
4016         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
4017         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4018         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
4019         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4020         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4021         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4022         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
4023         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4024         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4025         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
4026         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4027         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4028         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4029         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
4030         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
4031         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4032         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4033         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4034         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4035         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4036         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4037         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4038         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
4039         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
4040         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4041         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4042         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
4043         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4044         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
4045         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4046         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4047         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
4048         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
4049         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4050         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4051         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4052         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4053         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4054         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4055         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4056         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4057         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
4058         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4059         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4060         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4061         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4062         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4063         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
4064         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4065         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
4066         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
4067         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
4068         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
4069         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4070         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4071         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4072         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4073
4074 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
4075
4076         [BZ #16041]
4077         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
4078         make result into a quiet NaN.
4079
4080 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
4081
4082         * soft-fp/adddf3.c: Fix horizontal whitespace.
4083         * soft-fp/addsf3.c: Likewise.
4084         * soft-fp/addtf3.c: Likewise.
4085         * soft-fp/divdf3.c: Likewise.
4086         * soft-fp/divsf3.c: Likewise.
4087         * soft-fp/divtf3.c: Likewise.
4088         * soft-fp/double.h: Likewise.
4089         * soft-fp/eqdf2.c: Likewise.
4090         * soft-fp/eqsf2.c: Likewise.
4091         * soft-fp/eqtf2.c: Likewise.
4092         * soft-fp/extenddftf2.c: Likewise.
4093         * soft-fp/extended.h: Likewise.
4094         * soft-fp/extendsfdf2.c: Likewise.
4095         * soft-fp/extendsftf2.c: Likewise.
4096         * soft-fp/extendxftf2.c: Likewise.
4097         * soft-fp/fixdfdi.c: Likewise.
4098         * soft-fp/fixdfsi.c: Likewise.
4099         * soft-fp/fixdfti.c: Likewise.
4100         * soft-fp/fixsfdi.c: Likewise.
4101         * soft-fp/fixsfsi.c: Likewise.
4102         * soft-fp/fixsfti.c: Likewise.
4103         * soft-fp/fixtfdi.c: Likewise.
4104         * soft-fp/fixtfsi.c: Likewise.
4105         * soft-fp/fixtfti.c: Likewise.
4106         * soft-fp/fixunsdfdi.c: Likewise.
4107         * soft-fp/fixunsdfsi.c: Likewise.
4108         * soft-fp/fixunsdfti.c: Likewise.
4109         * soft-fp/fixunssfdi.c: Likewise.
4110         * soft-fp/fixunssfsi.c: Likewise.
4111         * soft-fp/fixunssfti.c: Likewise.
4112         * soft-fp/fixunstfdi.c: Likewise.
4113         * soft-fp/fixunstfsi.c: Likewise.
4114         * soft-fp/fixunstfti.c: Likewise.
4115         * soft-fp/floatdidf.c: Likewise.
4116         * soft-fp/floatdisf.c: Likewise.
4117         * soft-fp/floatditf.c: Likewise.
4118         * soft-fp/floatsidf.c: Likewise.
4119         * soft-fp/floatsisf.c: Likewise.
4120         * soft-fp/floatsitf.c: Likewise.
4121         * soft-fp/floattidf.c: Likewise.
4122         * soft-fp/floattisf.c: Likewise.
4123         * soft-fp/floattitf.c: Likewise.
4124         * soft-fp/floatundidf.c: Likewise.
4125         * soft-fp/floatundisf.c: Likewise.
4126         * soft-fp/floatunditf.c: Likewise.
4127         * soft-fp/floatunsidf.c: Likewise.
4128         * soft-fp/floatunsisf.c: Likewise.
4129         * soft-fp/floatunsitf.c: Likewise.
4130         * soft-fp/floatuntidf.c: Likewise.
4131         * soft-fp/floatuntisf.c: Likewise.
4132         * soft-fp/floatuntitf.c: Likewise.
4133         * soft-fp/fmadf4.c: Likewise.
4134         * soft-fp/fmasf4.c: Likewise.
4135         * soft-fp/fmatf4.c: Likewise.
4136         * soft-fp/gedf2.c: Likewise.
4137         * soft-fp/gesf2.c: Likewise.
4138         * soft-fp/getf2.c: Likewise.
4139         * soft-fp/ledf2.c: Likewise.
4140         * soft-fp/lesf2.c: Likewise.
4141         * soft-fp/letf2.c: Likewise.
4142         * soft-fp/muldf3.c: Likewise.
4143         * soft-fp/mulsf3.c: Likewise.
4144         * soft-fp/multf3.c: Likewise.
4145         * soft-fp/negdf2.c: Likewise.
4146         * soft-fp/negsf2.c: Likewise.
4147         * soft-fp/negtf2.c: Likewise.
4148         * soft-fp/op-1.h: Likewise.
4149         * soft-fp/op-2.h: Likewise.
4150         * soft-fp/op-4.h: Likewise.
4151         * soft-fp/op-8.h: Likewise.
4152         * soft-fp/op-common.h: Likewise.
4153         * soft-fp/quad.h: Likewise.
4154         * soft-fp/single.h: Likewise.
4155         * soft-fp/soft-fp.h: Likewise.
4156         * soft-fp/sqrtdf2.c: Likewise.
4157         * soft-fp/sqrtsf2.c: Likewise.
4158         * soft-fp/sqrttf2.c: Likewise.
4159         * soft-fp/subdf3.c: Likewise.
4160         * soft-fp/subsf3.c: Likewise.
4161         * soft-fp/subtf3.c: Likewise.
4162         * soft-fp/truncdfsf2.c: Likewise.
4163         * soft-fp/trunctfdf2.c: Likewise.
4164         * soft-fp/trunctfsf2.c: Likewise.
4165         * soft-fp/trunctfxf2.c: Likewise.
4166         * soft-fp/unorddf2.c: Likewise.
4167         * soft-fp/unordsf2.c: Likewise.
4168         * soft-fp/unordtf2.c: Likewise.
4169
4170 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
4171
4172         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
4173         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
4174
4175 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
4176
4177         * elf/dl-libc.c: Clear initfini list after freeing.
4178
4179 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
4180
4181         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
4182         * soft-fp/addsf3.c: Likewise.
4183         * soft-fp/addtf3.c: Likewise.
4184         * soft-fp/divdf3.c: Likewise.
4185         * soft-fp/divsf3.c: Likewise.
4186         * soft-fp/divtf3.c: Likewise.
4187         * soft-fp/double.h: Likewise.
4188         * soft-fp/eqdf2.c: Likewise.
4189         * soft-fp/eqsf2.c: Likewise.
4190         * soft-fp/eqtf2.c: Likewise.
4191         * soft-fp/extenddftf2.c: Likewise.
4192         * soft-fp/extended.h: Likewise.
4193         * soft-fp/extendsfdf2.c: Likewise.
4194         * soft-fp/extendsftf2.c: Likewise.
4195         * soft-fp/extendxftf2.c: Likewise.
4196         * soft-fp/fixdfdi.c: Likewise.
4197         * soft-fp/fixdfsi.c: Likewise.
4198         * soft-fp/fixdfti.c: Likewise.
4199         * soft-fp/fixsfdi.c: Likewise.
4200         * soft-fp/fixsfsi.c: Likewise.
4201         * soft-fp/fixsfti.c: Likewise.
4202         * soft-fp/fixtfdi.c: Likewise.
4203         * soft-fp/fixtfsi.c: Likewise.
4204         * soft-fp/fixtfti.c: Likewise.
4205         * soft-fp/fixunsdfdi.c: Likewise.
4206         * soft-fp/fixunsdfsi.c: Likewise.
4207         * soft-fp/fixunsdfti.c: Likewise.
4208         * soft-fp/fixunssfdi.c: Likewise.
4209         * soft-fp/fixunssfsi.c: Likewise.
4210         * soft-fp/fixunssfti.c: Likewise.
4211         * soft-fp/fixunstfdi.c: Likewise.
4212         * soft-fp/fixunstfsi.c: Likewise.
4213         * soft-fp/fixunstfti.c: Likewise.
4214         * soft-fp/floatdidf.c: Likewise.
4215         * soft-fp/floatdisf.c: Likewise.
4216         * soft-fp/floatditf.c: Likewise.
4217         * soft-fp/floatsidf.c: Likewise.
4218         * soft-fp/floatsisf.c: Likewise.
4219         * soft-fp/floatsitf.c: Likewise.
4220         * soft-fp/floattidf.c: Likewise.
4221         * soft-fp/floattisf.c: Likewise.
4222         * soft-fp/floattitf.c: Likewise.
4223         * soft-fp/floatundidf.c: Likewise.
4224         * soft-fp/floatundisf.c: Likewise.
4225         * soft-fp/floatunsidf.c: Likewise.
4226         * soft-fp/floatunsisf.c: Likewise.
4227         * soft-fp/floatuntidf.c: Likewise.
4228         * soft-fp/floatuntisf.c: Likewise.
4229         * soft-fp/floatuntitf.c: Likewise.
4230         * soft-fp/fmadf4.c: Likewise.
4231         * soft-fp/fmasf4.c: Likewise.
4232         * soft-fp/fmatf4.c: Likewise.
4233         * soft-fp/gedf2.c: Likewise.
4234         * soft-fp/gesf2.c: Likewise.
4235         * soft-fp/getf2.c: Likewise.
4236         * soft-fp/ledf2.c: Likewise.
4237         * soft-fp/lesf2.c: Likewise.
4238         * soft-fp/letf2.c: Likewise.
4239         * soft-fp/muldf3.c: Likewise.
4240         * soft-fp/mulsf3.c: Likewise.
4241         * soft-fp/multf3.c: Likewise.
4242         * soft-fp/negdf2.c: Likewise.
4243         * soft-fp/negsf2.c: Likewise.
4244         * soft-fp/negtf2.c: Likewise.
4245         * soft-fp/op-1.h: Likewise.
4246         * soft-fp/op-2.h: Likewise.
4247         * soft-fp/op-4.h: Likewise.
4248         * soft-fp/op-8.h: Likewise.
4249         * soft-fp/op-common.h: Likewise.
4250         * soft-fp/quad.h: Likewise.
4251         * soft-fp/single.h: Likewise.
4252         * soft-fp/soft-fp.h: Likewise.
4253         * soft-fp/sqrtdf2.c: Likewise.
4254         * soft-fp/sqrtsf2.c: Likewise.
4255         * soft-fp/sqrttf2.c: Likewise.
4256         * soft-fp/subdf3.c: Likewise.
4257         * soft-fp/subsf3.c: Likewise.
4258         * soft-fp/subtf3.c: Likewise.
4259         * soft-fp/truncdfsf2.c: Likewise.
4260         * soft-fp/trunctfdf2.c: Likewise.
4261         * soft-fp/trunctfsf2.c: Likewise.
4262         * soft-fp/trunctfxf2.c: Likewise.
4263         * soft-fp/unorddf2.c: Likewise.
4264         * soft-fp/unordsf2.c: Likewise.
4265         * soft-fp/unordtf2.c: Likewise.
4266
4267 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
4268
4269         [BZ #15672]
4270         * misc/error.c (error_tail): Fix possible buffer overflow.
4271
4272 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
4273
4274         [BZ #13028]
4275         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
4276         address.
4277
4278 2013-10-14  P. J. McDermott  <pj@pehjota.net>
4279
4280         [BZ #832]
4281         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
4282         testing pipefail option.
4283
4284 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4285
4286         * soft-fp/double.h: Indent preprocessor directives inside #if.
4287         * soft-fp/extended.h: Likewise.
4288         * soft-fp/op-2.h: Likewise.
4289         * soft-fp/op-4.h: Likewise.
4290         * soft-fp/op-common.h: Likewise.
4291         * soft-fp/quad.h: Likewise.
4292         * soft-fp/single.h: Likewise.
4293         * soft-fp/soft-fp.h: Likewise.
4294
4295 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
4296
4297         * iconv/iconv_prog.c: Fix typos.
4298         * stdio-common/psiginfo-data.h: Likewise.
4299
4300 2013-10-12   Reuben Thomas <rrt@sc3d.org>
4301
4302         [BZ #15764]
4303         * locale/setlocale.c: Fix typo.
4304
4305 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4306
4307         [BZ #16036]
4308         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
4309         signaling NaN arguments.
4310         * soft-fp/unordsf2.c (__unordsf2): Likewise.
4311         * soft-fp/unordtf2.c (__unordtf2): Likewise.
4312
4313         [BZ #14910]
4314         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
4315         unordered operands.
4316         * soft-fp/gesf2.c (__gesf2): Likewise.
4317         * soft-fp/getf2.c (__getf2): Likewise.
4318         * soft-fp/ledf2.c (__ledf2): Likewise.
4319         * soft-fp/lesf2.c (__lesf2): Likewise.
4320         * soft-fp/letf2.c (__letf2): Likewise.
4321
4322         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
4323         * soft-fp/eqsf2.c (__eqsf2): Likewise.
4324         * soft-fp/eqtf2.c (__eqtf2): Likewise.
4325         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
4326         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
4327         * soft-fp/fixdfti.c (__fixdfti): Likewise.
4328         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
4329         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
4330         * soft-fp/fixsfti.c (__fixsfti): Likewise.
4331         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
4332         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
4333         * soft-fp/fixtfti.c (__fixtfti): Likewise.
4334         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
4335         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
4336         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
4337         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
4338         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
4339         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
4340         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
4341         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
4342         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
4343         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
4344         * soft-fp/floatdisf.c (__floatdisf): Likewise.
4345         * soft-fp/floatsisf.c (__floatsisf): Likewise.
4346         * soft-fp/floattidf.c (__floattidf): Likewise.
4347         * soft-fp/floattisf.c (__floattisf): Likewise.
4348         * soft-fp/floattitf.c (__floattitf): Likewise.
4349         * soft-fp/floatundidf.c (__floatundidf): Likewise.
4350         * soft-fp/floatundisf.c (__floatundisf): Likewise.
4351         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
4352         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
4353         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
4354         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
4355         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
4356         * soft-fp/gesf2.c (__gesf2): Likewise.
4357         * soft-fp/getf2.c (__getf2): Likewise.
4358         * soft-fp/ledf2.c (__ledf2): Likewise.
4359         * soft-fp/lesf2.c (__lesf2): Likewise.
4360         * soft-fp/letf2.c (__letf2): Likewise.
4361
4362         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
4363         Undefine and redefine.
4364         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
4365         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
4366         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
4367         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
4368         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4369         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
4370         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4371         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
4372         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4373         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
4374         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4375         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
4376         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4377         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
4378         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4379
4380         [BZ #16032]
4381         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
4382         without decrementing exponent if mantissa >= that for the
4383         denominator, not >.
4384         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
4385         denominator, not >.  Decrement exponent in < case instead of
4386         incrementing in >= case.
4387         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
4388         without decrementing exponent if mantissa >= that for the
4389         denominator, not >.
4390
4391         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
4392         computing saturated result for unsigned overflow.
4393
4394 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4395             Jeff Law  <law@redhat.com>
4396
4397         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
4398         (atan2Mp): Add systemtap probe marker.
4399         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
4400         (__ieee754_log): Add systemtap probe marker.
4401         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
4402         (atanMp): Add systemtap probe marker.
4403         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
4404         (tanMp): Add systemtap probe marker.
4405         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
4406         (__slowexp): Add systemtap probe marker.
4407         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
4408         (__slowpow): Add systemtap probe marker.
4409         * manual/probes.texi: Document probes.
4410
4411 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
4412
4413         [BZ #15362]
4414         * libio/fileops.c (_IO_new_file_write): Return count of bytes
4415         written.
4416         (_IO_new_file_xsputn): Don't return EOF if nothing has been
4417         written.
4418         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
4419         written to buffer but not flushed.
4420         * libio/iofwrite_u.c:  Likewise.
4421         * libio/iopadn.c:  Return bytes returned even if EOF was
4422         encountered.
4423         * libio/iowpadn.c:  Likewise.
4424         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
4425         if _IO_padn does not write the whole buffer.
4426         [!COMPILE_WPRINTF] (PAD): Likewise.
4427
4428 2013-10-10  David S. Miller  <davem@davemloft.net>
4429
4430         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
4431         directory block.
4432
4433 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4434
4435         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
4436         instead of FSF address.
4437         * soft-fp/fixdfti.c: Likewise.
4438         * soft-fp/fixsfti.c: Likewise.
4439         * soft-fp/fixtfti.c: Likewise.
4440         * soft-fp/fixunsdfti.c: Likewise.
4441         * soft-fp/fixunssfti.c: Likewise.
4442         * soft-fp/fixunstfti.c: Likewise.
4443         * soft-fp/floattidf.c: Likewise.
4444         * soft-fp/floattisf.c: Likewise.
4445         * soft-fp/floattitf.c: Likewise.
4446         * soft-fp/floatuntidf.c: Likewise.
4447         * soft-fp/floatuntisf.c: Likewise.
4448         * soft-fp/floatuntitf.c: Likewise.
4449         * soft-fp/trunctfxf2.c: Likewise.
4450
4451         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
4452         * soft-fp/fixdfti.c: Likewise.
4453         * soft-fp/fixsfti.c: Likewise.
4454         * soft-fp/fixtfti.c: Likewise.
4455         * soft-fp/fixunsdfti.c: Likewise.
4456         * soft-fp/fixunssfti.c: Likewise.
4457         * soft-fp/fixunstfti.c: Likewise.
4458         * soft-fp/floattidf.c: Likewise.
4459         * soft-fp/floattisf.c: Likewise.
4460         * soft-fp/floattitf.c: Likewise.
4461         * soft-fp/floatuntidf.c: Likewise.
4462         * soft-fp/floatuntisf.c: Likewise.
4463         * soft-fp/floatuntitf.c: Likewise.
4464         * soft-fp/trunctfxf2.c: Likewise.
4465
4466 2013-10-10  David S. Miller  <davem@davemloft.net>
4467
4468         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4469
4470 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
4471
4472         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4473         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
4474         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
4475         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
4476         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
4477         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
4478         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
4479
4480         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
4481         for NaNs before doing comparisons on argument.
4482         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
4483         Likewise.
4484
4485 2013-10-10  Will Newton  <will.newton@linaro.org>
4486
4487         * malloc/hooks.c (memalign_check): Ensure the value of bytes
4488         passed to _int_memalign does not overflow.
4489
4490 2013-10-10  Torvald Riegel  <triegel@redhat.com>
4491
4492         * scripts/bench.pl: Add include-sources directive.
4493         * benchtests/README: Update documentation.
4494
4495 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4496
4497         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
4498         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
4499         instead of FP_INIT_ROUNDMODE.
4500         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
4501         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
4502
4503         [BZ #16034]
4504         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
4505         copy class of input value.
4506         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
4507         not handle exceptions.
4508         * soft-fp/negsf2.c (__negsf2): Likewise.
4509         * soft-fp/negtf2.c (__negtf2): Likewise.
4510         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
4511
4512 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
4513
4514         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
4515         semicolon.  From Linux kernel.
4516
4517 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
4518
4519         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
4520
4521 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
4522
4523         [BZ #156]
4524         * manual/socket.texi: Added statement about buffer
4525         for gethostbyname2_r.
4526
4527 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
4528
4529         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
4530         Use .p2align directive instead, throughout.
4531         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4532         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4533         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
4534         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4535         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4536         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
4537         * sysdeps/x86_64/strchr.S: Likewise.
4538         * sysdeps/x86_64/strrchr.S: Likewise.
4539
4540 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
4541
4542         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
4543
4544         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
4545
4546         * sysdeps/generic/math_private.h (__mpsin1): Remove
4547         declaration.
4548         (__mpcos1): Likewise.
4549         (__mpsin): New argument __range_reduce.
4550         (__mpcos): Likewise.
4551         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4552         (slow): Use __mpsin and __mpcos.
4553         (slow1): Likewise.
4554         (slow2): Likewise.
4555         (sloww): Likewise.
4556         (sloww1): Likewise.
4557         (sloww2): Likewise.
4558         (bsloww): Likewise.
4559         (bsloww1): Likewise.
4560         (bsloww2): Likewise.
4561         (cslow2): Likewise.
4562         (csloww): Likewise.
4563         (csloww1): Likewise.
4564         (csloww2): Likewise.
4565         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
4566         range_reduce.  Merge in __mpsin1.
4567         (__mpcos): Likewise.
4568         (__mpsin1): Remove.
4569         (__mpcos1): Likewise.
4570
4571 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
4572
4573         * locale/loadlocale.c (_nl_intern_locale_data): Use
4574         LOCFILE_ALIGNED_P.
4575         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
4576         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
4577         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
4578         obstack data is appropriately aligned.
4579         (obstack_int32_grow_fast): Likewise.
4580         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
4581         * locale/programs/locfile.c (add_locale_uint32): Likewise.
4582         (add_locale_uint32_array): Likewise.
4583
4584 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
4585
4586         * benchtests/Makefile: Remove ARGLIST and RET variables.
4587         ($(objpfx)bench-%.c): Pass only function name to the script.
4588         * benchtests/README: Update documentation.
4589         * benchtests/acos-inputs: Add new directives.
4590         * benchtests/acosh-inputs: Likewise.
4591         * benchtests/asin-inputs: Likewise.
4592         * benchtests/asinh-inputs: Likewise.
4593         * benchtests/atan-inputs: Likewise.
4594         * benchtests/atanh-inputs: Likewise.
4595         * benchtests/cos-inputs: Likewise.
4596         * benchtests/cosh-inputs: Likewise.
4597         * benchtests/exp-inputs: Likewise.
4598         * benchtests/log-inputs: Likewise.
4599         * benchtests/pow-inputs: Likewise.
4600         * benchtests/rint-inputs: Likewise.
4601         * benchtests/sin-inputs: Likewise.
4602         * benchtests/sinh-inputs: Likewise.
4603         * benchtests/tan-inputs: Likewise.
4604         * benchtests/tanh-inputs: Likewise.
4605         * scripts/bench.pl: Add support for new directives.
4606
4607 2013-10-07  Alan Modra  <amodra@gmail.com>
4608
4609         * README: Fix careless merge.
4610
4611 2013-10-05  Alan Modra  <amodra@gmail.com>
4612
4613         * NEWS: Mention powerpc64le support and bugs fixed.
4614         * README: Both big-endian and little-endian powerpc64 supported.
4615
4616 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4617
4618         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
4619         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
4620         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
4621         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
4622
4623 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
4624
4625         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
4626         match prototype.
4627
4628 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
4629
4630         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
4631         Move -mhard-float appending from
4632         ports/sysdeps/powerpc/powerpc32/Makefile.
4633         [$(with-fp) = yes] (ASFLAGS): Likewise.
4634         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
4635         * sysdeps/powerpc/nofpu: Move directory from
4636         ports/sysdeps/powerpc/nofpu.
4637         * sysdeps/powerpc/soft-fp: Move directory from
4638         ports/sysdeps/powerpc/soft-fp.
4639         * sysdeps/powerpc/powerpc32/405: Move directory from
4640         ports/sysdeps/powerpc/powerpc32/405.
4641         * sysdeps/powerpc/powerpc32/440: Move directory from
4642         ports/sysdeps/powerpc/powerpc32/440.
4643         * sysdeps/powerpc/powerpc32/464: Move directory from
4644         ports/sysdeps/powerpc/powerpc32/464.
4645         * sysdeps/powerpc/powerpc32/476: Move directory from
4646         ports/sysdeps/powerpc/powerpc32/476.
4647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
4648         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
4649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
4650         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
4651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
4652         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
4653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
4654         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
4655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
4656         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
4657         * README: Update for powerpc-*-linux-gnu software floating point
4658         support in libc.
4659
4660         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
4661         case to powerpc/powerpc32*.
4662         * sysdeps/unix/sysv/linux/configure: Regenerated.
4663
4664         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
4665         (_FPU_MASK_OM): Define as 0x04.
4666         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
4667         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
4668         0x00c10080.
4669         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
4670         0x0000003c.
4671         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
4672
4673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4674         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4675         getcontext_e500.
4676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4677         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4678         setcontext_e500.
4679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4680         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
4681         and setcontext_e500.
4682
4683 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
4684
4685         * locale/iso-3166.def: Update iso-1366.def and related occurrences
4686
4687 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4688
4689         * manual/threads.texi (Default Thread Attributes): Fix typo.
4690
4691 2013-10-04  Will Newton  <will.newton@linaro.org>
4692
4693         * malloc/Makefile: Add tst-memalign.
4694         * malloc/tst-memalign.c: New file.
4695
4696         * malloc/tst-posix_memalign.c: Add comments.
4697         (do_test): Add comments and call free on all potentially
4698         allocated pointers. Add space after cast.
4699
4700         * malloc/tst-pvalloc.c: Add comments.
4701         (do_test): Add comments and call free on all potentially
4702         allocated pointers. Remove duplicate check for NULL pointer.
4703         Add space after cast.
4704
4705         * malloc/tst-valloc.c: Add comments.
4706         (do_test): Add comments and call free on all potentially
4707         allocated pointers. Remove duplicate check for NULL pointer.
4708         Add space after cast.
4709
4710 2013-10-04  Alan Modra  <amodra@gmail.com>
4711
4712         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4713         Use stdint types in rather than __attribute__((mode())).
4714         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4715
4716 2013-10-04  Alan Modra  <amodra@gmail.com>
4717
4718         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4719         Correct handling of unaligned relocs for little-endian.
4720         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4721
4722 2013-10-04  Alan Modra  <amodra@gmail.com>
4723
4724         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
4725         * configure: Regenerate.
4726         * nptl/shlib-versions: Powerpc*le starts at 2.18.
4727         * shlib-versions: Likewise.
4728
4729 2013-10-04  Alan Modra  <amodra@gmail.com>
4730
4731         * string/tester.c (test_memrchr): Increment reported test cycle.
4732
4733 2013-10-04  Alan Modra  <amodra@gmail.com>
4734
4735         * string/test-memcpy.c (do_one_test): When reporting errors, print
4736         string address and don't overrun end of string.
4737
4738 2013-10-04  Alan Modra  <amodra@gmail.com>
4739
4740         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
4741         insrdi.  Make better use of reg selection to speed exit slightly.
4742         Schedule entry path a little better.  Remove useless "are we done"
4743         checks on entry to main loop.  Handle wrapping around zero address.
4744         Correct main loop count.  Handle single left-over word from main
4745         loop inline rather than by using loop_small.  Remove extra word
4746         case in loop_small caused by wrong loop count.  Add little-endian
4747         support.
4748         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
4749         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
4750         cache hint.
4751         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
4752         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
4753         support.  Avoid rlwimi.
4754         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
4755
4756 2013-10-04  Alan Modra  <amodra@gmail.com>
4757
4758         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
4759         insrdi.  Formatting.
4760         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
4761         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
4762         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
4763         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
4764         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
4765         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
4766
4767 2013-10-04  Alan Modra  <amodra@gmail.com>
4768
4769         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
4770         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4771         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
4772         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
4773         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
4774         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4775         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4776         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
4777         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
4778         use of regs.  Use power7 mtocrf.  Tidy function tails.
4779
4780 2013-10-04  Alan Modra  <amodra@gmail.com>
4781
4782         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
4783         Formatting.  Consistently use rXXX register defines or rN defines.
4784         Use early exit labels that avoid restoring unused non-volatile regs.
4785         Make cr field use more consistent with rWORDn compares.  Rename
4786         regs used as shift registers for unaligned loop, using rN defines
4787         for short lifetime/multiple use regs.
4788         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4789         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
4790         addi 1,1,64 to pop stack frame.  Simplify return value code.
4791         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4792
4793 2013-10-04  Alan Modra  <amodra@gmail.com>
4794
4795         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
4796         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
4797         rather than rlwimi.
4798         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
4799         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
4800         little-endian support.  Correct typos.
4801         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
4802         rather than rlwimi.
4803         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
4804         in loop and entry code to keep "and." results.
4805         (strchr): Add little-endian support.  Comment.  Move cntlzd
4806         earlier in tail.
4807         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
4808
4809 2013-10-04  Alan Modra  <amodra@gmail.com>
4810
4811         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
4812         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
4813         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
4814         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
4815
4816 2013-10-04  Alan Modra  <amodra@gmail.com>
4817
4818         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
4819         (rTMP): Define as r11.
4820         (strcmp): Add little-endian support.  Optimise tail.
4821         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
4822         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4823         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
4824         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
4825         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
4826         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4827         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
4828
4829 2013-10-04  Alan Modra  <amodra@gmail.com>
4830
4831         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
4832         little-endian support.  Remove unnecessary "are we done" tests.
4833         Handle "s" wrapping around zero and extremely large "size".
4834         Correct main loop count.  Handle single left-over word from main
4835         loop inline rather than by using small_loop.  Correct comments.
4836         Delete "zero" tail, use "end_max" instead.
4837         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
4838
4839 2013-10-04  Alan Modra  <amodra@gmail.com>
4840
4841         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
4842         support.  Don't branch over align.
4843         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
4844         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
4845         support.  Rearrange tmp reg use to suit.  Comment.
4846         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
4847
4848 2013-10-04  Alan Modra  <amodra@gmail.com>
4849
4850         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
4851
4852 2013-10-04  Alan Modra  <amodra@gmail.com>
4853
4854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
4855         conditional form of branch and link when obtaining pc.
4856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
4857
4858 2013-10-04  Alan Modra  <amodra@gmail.com>
4859
4860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
4861         HIWORD/LOWORD.
4862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
4863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
4864
4865 2013-10-04  Alan Modra  <amodra@gmail.com>
4866
4867         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
4868         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
4869         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
4870         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
4871         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
4872         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
4873         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
4874         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
4875         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
4876         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
4877
4878 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4879             Alistair Popple <alistair@ozlabs.au.ibm.com>
4880             Alan Modra <amodra@gmail.com>
4881
4882         [BZ #15723]
4883         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
4884         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
4885         _dl_hwcap access for little-endian.
4886         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
4887         destroy vmx regs when saving unaligned.
4888         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
4889         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
4890         destroy vmx regs when saving unaligned.
4891
4892 2013-10-04  Alan Modra  <amodra@gmail.com>
4893
4894         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
4895         Don't use a union to pack hi/low value.
4896
4897 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4898
4899         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
4900         for little-endian.
4901         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4902         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
4903         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
4904         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4905         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4906
4907 2013-10-04  Alan Modra  <amodra@gmail.com>
4908
4909         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
4910         constants to usual value for .cst8 section, and remove redundant
4911         high address load.
4912         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
4913         constant for 0x1p52.  Load little-endian words of double from
4914         correct stack offsets.
4915
4916 2013-10-04  Alan Modra  <amodra@gmail.com>
4917
4918         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
4919         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
4920         words of double from correct stack offsets.
4921         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
4922         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
4923         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
4924         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
4925         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
4926         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
4927         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
4928         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
4929         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
4930         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
4931         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
4932         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
4933         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
4934         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
4935         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
4936         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
4937         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
4938
4939 2013-10-04  Alan Modra  <amodra@gmail.com>
4940
4941         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
4942         64-bit int/double union.
4943         (_FPU_SETCW): Likewise.
4944         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
4945         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
4946
4947 2013-10-04  Alan Modra  <amodra@gmail.com>
4948
4949         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
4950         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
4951
4952 2013-10-04  Alan Modra  <amodra@gmail.com>
4953
4954         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
4955         use vector int constants.
4956         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
4957
4958 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4959
4960         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
4961         array with long long.
4962         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
4963         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
4964         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
4965         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
4966         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
4967         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
4968         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
4969         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
4970         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
4971         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
4972         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
4973         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
4974         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
4975
4976 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4977
4978         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
4979         (__signbit): Likewise.  Correct for little-endian.
4980         (__signbitl): Call __signbit.
4981         (lrint): Correct for little-endian.
4982         (lrintf): Call lrint.
4983
4984 2013-10-04  Alan Modra  <amodra@gmail.com>
4985
4986         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
4987         union 32-bit int array member with 64-bit int array.
4988         (t515, tm256): Double rather than long double.
4989         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
4990
4991 2013-10-04  Alan Modra  <amodra@gmail.com>
4992
4993         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
4994         Delete.
4995         (IEEE854_LONG_DOUBLE_BIAS): Delete.
4996         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
4997         version of math_ldbl.h.
4998
4999 2013-10-04  Alan Modra  <amodra@gmail.com>
5000
5001         [BZ #15734], [BZ #15735]
5002         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
5003         all uses of ieee875 long double macros and unions.  Simplify test
5004         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
5005         ldbl_extract_mantissa value for ix,iy exponents.  Properly
5006         normalize after ldbl_extract_mantissa, and don't add hidden bit
5007         already handled.  Don't treat low word of ieee854 mantissa like
5008         low word of IBM long double and mask off bit when testing for
5009         zero.
5010         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
5011         all uses of ieee875 long double macros and unions.  Simplify tests
5012         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
5013         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
5014         two1022, instead use their values.  Recognise that tests for large
5015         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
5016         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
5017         Rewrite all uses of ieee875 long double macros and unions.  Simplify
5018         test for 0.0L and nan.  Correct negation.
5019         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
5020         ieee875 long double macros and unions.  Correct output for large
5021         magnitude x.  Correct absolute value calculation.
5022         (__erfcl): Likewise.
5023         * math/libm-test.inc: Add tests for errors discovered in IBM long
5024         double versions of fmodl, remainderl, erfl and erfcl.
5025
5026 2013-10-04  Alan Modra  <amodra@gmail.com>
5027
5028         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
5029         all uses of ieee854 long double macros and unions.  Simplify tests
5030         for long doubles that are fully specified by the high double.
5031         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5032         Likewise.
5033         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
5034         Remove dead code too.
5035         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5036         (__ieee754_ynl): Likewise.
5037         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
5038         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
5039         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
5040         Remove dead code too.
5041         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
5042         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
5043         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
5044         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
5045         Simplify.
5046         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
5047         Simplify.
5048         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
5049         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
5050         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
5051         Comment on variable precision.
5052         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
5053         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5054         Likewise.
5055         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5056         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5057         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5058         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
5059         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
5060
5061 2013-10-04  Alan Modra  <amodra@gmail.com>
5062
5063         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
5064         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
5065         all uses of ieee854 long double macros and unions.
5066         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
5067         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5068         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
5069         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
5070         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
5071         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5072         Likewise.
5073         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
5074         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5075         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
5076         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5077         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
5078         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
5079         Simplify sign and nan test too.
5080         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
5081         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
5082         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
5083         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
5084         Likewise.
5085         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5086         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
5087         Likewise.
5088         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5089         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
5090         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
5091         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
5092         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
5093         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
5094
5095 2013-10-04  Alan Modra  <amodra@gmail.com>
5096
5097         * stdio-common/printf_size.c (__printf_size): Don't use
5098         union ieee854_long_double in fpnum union.
5099         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
5100         signbit macro to retrieve sign from long double.
5101         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
5102         retrieve sign from long double.
5103         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
5104         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
5105         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
5106         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5107         * math/test-misc.c (main): Don't use union ieee854_long_double.
5108
5109 2013-10-04  Alan Modra  <amodra@gmail.com>
5110
5111         [BZ #15680]
5112         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
5113         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5114         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
5115         calculation.  Remove unnecessary test for denormal exponent.
5116         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
5117         Correct handling of denormals.  Avoid undefined shift behaviour.
5118         Correct normalisation of low mantissa when low double is denormal.
5119         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
5120         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
5121         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
5122         Correct normalisation of low mantissa.  Test for overflow of high
5123         mantissa and normalise.
5124         (ldbl_nearbyint): Use more readable constant for two52.
5125         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5126         (__mpn_construct_long_double): Fix test for overflow of high
5127         mantissa and correct normalisation.  Avoid undefined shift.
5128
5129 2013-10-04  Alan Modra  <amodra@gmail.com>
5130
5131         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
5132         (union ibm_extended_long_double): Define as an array of ieee754_double.
5133         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
5134         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
5135         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
5136         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5137         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5138         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
5139         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
5140         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5141         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
5142         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
5143         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
5144
5145 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
5146
5147         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
5148         page size instead of calling getpagesize.
5149
5150         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
5151         (LOCFILE_ALIGN_MASK): Likewise.
5152         (LOCFILE_ALIGN_UP): Likewise.
5153         (LOCFILE_ALIGNED_P): Likewise.
5154         * locale/programs/ld-collate.c (collate_output): Use the new
5155         macros instead of __alignof__ (int32_t).
5156         * locale/weight.h (findidx): Likewise.
5157
5158 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
5159
5160         [BZ #431]
5161         * manual/string.texi: Fix strncat and wcsncat.
5162
5163 2013-10-03  Brooks Moses  <bmoses@google.com>
5164
5165         [BZ #15915]
5166         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
5167         * Makerules: ...here, and adjust associated comments.
5168
5169 2013-10-02  Will Newton  <will.newton@linaro.org>
5170
5171         * malloc/Makefile: Add tst-pvalloc.
5172         * malloc/tst-pvalloc.c: New file.
5173
5174 2013-10-02  Will Newton  <will.newton@linaro.org>
5175
5176         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
5177         improve test coverage.
5178
5179 2013-10-02  Will Newton  <will.newton@linaro.org>
5180
5181         * malloc/Makefile: Add tst-posix_memalign.
5182         * malloc/tst-posix_memalign.c: New file.
5183
5184 2013-10-01  Eric Blake  <eblake@redhat.com>
5185
5186         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
5187         Use __THROWNL rather than __THROW on static functions.
5188
5189 2013-09-30  Petr Machata  <pmachata@redhat.com>
5190
5191         * elf/elf.h (R_AARCH64_ABS16): New macro.
5192         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
5193         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
5194         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
5195         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
5196         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
5197         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
5198         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
5199         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
5200         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
5201         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
5202         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
5203         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
5204         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
5205         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
5206         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
5207         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
5208         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
5209         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
5210         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
5211         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
5212         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
5213         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
5214         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
5215         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
5216         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
5217         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
5218         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
5219         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
5220         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
5221         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
5222         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
5223         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
5224         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
5225         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
5226         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
5227         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
5228         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
5229         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
5230         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
5231         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
5232         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
5233         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
5234         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
5235         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
5236         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
5237         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
5238         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
5239         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
5240         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
5241         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
5242         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
5243         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
5244         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
5245         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
5246         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
5247         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
5248         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
5249         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
5250         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
5251         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
5252         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
5253         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
5254         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
5255         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
5256         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
5257         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
5258         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
5259         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
5260         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
5261         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
5262         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
5263         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
5264         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
5265         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
5266         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
5267         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
5268         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
5269         (R_AARCH64_TLSDESC_LDR): Likewise.
5270         (R_AARCH64_TLSDESC_ADD): Likewise.
5271         (R_AARCH64_TLSDESC_CALL): Likewise.
5272
5273 2013-09-30  Andreas Schwab  <schwab@suse.de>
5274
5275         [BZ #15048]
5276         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
5277         the nss database lookup.
5278         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5279         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5280
5281 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
5282
5283         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
5284
5285 2013-09-28  P. J. McDermott  <pj@pehjota.net>
5286
5287         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
5288         ${Bash-specific parameter/pattern/string} parameter expansion.
5289         * sysdeps/unix/make-syscalls.sh: Likewise.
5290
5291 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5292
5293         * sysdeps/sh/stackguard-macros.h: New file.
5294
5295 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
5296
5297         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
5298         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
5299         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
5300         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
5301         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5302         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
5303
5304 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5305
5306         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
5307         Fix thread ID register.
5308
5309 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
5310
5311         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
5312         [POSIX || UNIX98]: Require rather than permitting all symbols from
5313         <time.h>.
5314         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
5315         element of struct sched_param.
5316         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
5317         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
5318         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
5319         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
5320         constant.
5321
5322 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
5323
5324         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
5325         argument calculation.
5326
5327 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5328
5329         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
5330         Expect macro.
5331         [POSIX] (pthread_attr_t): Do not require type.
5332         [POSIX] (pthread_cond_t): Likewise.
5333         [POSIX] (pthread_condattr_t): Likewise.
5334         [POSIX] (pthread_key_t): Likewise.
5335         [POSIX] (pthread_mutex_t): Likewise.
5336         [POSIX] (pthread_mutexattr_t): Likewise.
5337         [POSIX] (pthread_once_t): Likewise.
5338         [POSIX] (pthread_t): Likewise.
5339         [POSIX-based standards] (pthread_atfork): Expect function.
5340
5341 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5342             Richard Sandiford  <richard@codesourcery.com>
5343
5344         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
5345         (swap_endianness_p): New extern variable.
5346         (set_big_endian): New inline function.
5347         (maybe_swap_uint32): Likewise.
5348         (maybe_swap_uint32_array): Likewise.
5349         (maybe_swap_uint32_obstack): Likewise.
5350         * locale/programs/locfile.c: Include <stdbool.h>.
5351         (swap_endianness_p): New variable.
5352         (add_locale_uint32): Call maybe_swap_uint32.
5353         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
5354         (write_locale_data): Call maybe_swap_uint32_array.
5355         * locale/programs/ld-collate.c (obstack_int32_grow): Call
5356         maybe_swap_uint32.
5357         (obstack_int32_grow_fast): Likewise.
5358         (output_weightwc): Call maybe_swap_uint32_obstack.
5359         (collate_output): Likewise.
5360         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
5361         (OPT_LITTLE_ENDIAN): Likewise.
5362         (options): Add --little-endian and --big-endian options.
5363         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
5364         * locale/programs/locarchive.c: Include "locfile.h".
5365         (GET): New macro.
5366         (SET): Likewise.
5367         (INC): Likewise.
5368         (create_archive): Use the new macros to access fields of
5369         structures directly mapped from or written to locale archives.
5370         (oldlocrecentcmp): Likewise.
5371         (enlarge_archive): Likewise.
5372         (insert_name): Likewise.
5373         (add_alias): Likewise.
5374         (add_locale): Likewise.
5375         (delete_locales_from_archive): Likewise.
5376         (show_archive_content): Likewise.
5377         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
5378         locale data.
5379
5380 2013-09-24  Roland McGrath  <roland@hack.frob.com>
5381
5382         * manual/freemanuals.texi: Updated from (newly) canonical copy at
5383         http://www.gnu.org/doc/freemanuals.texi.
5384         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
5385
5386 2013-09-24  Will Newton  <will.newton@linaro.org>
5387
5388         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
5389         macro.
5390
5391 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
5392
5393         * locale/hashval.h (compute_hashval): Interpret bytes of key as
5394         unsigned char.
5395
5396 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
5397
5398         * manual/threads.texi (POSIX Threads): Fix a typo.
5399
5400 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
5401
5402         [BZ #14547]
5403         * string/tst-strcoll-overflow.c: New test case.
5404         * string/Makefile (xtests): Add tst-strcoll-overflow.
5405         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
5406         cache if string sizes may cause integer overflow.
5407
5408         [BZ #14547]
5409         * string/strcoll_l.c (coll_seq): New members rule, idx,
5410         save_idx and back_us.
5411         (get_next_seq_nocache): New function.
5412         (do_compare_nocache): New function.
5413         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
5414         when malloc fails.
5415
5416 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
5417
5418         [BZ #15754]
5419         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
5420         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
5421         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
5422
5423         [BZ #15754]
5424         * elf/Makefile (tests): Add tst-ptrguard1.
5425         (tests-static): Add tst-ptrguard1-static.
5426         (tst-ptrguard1-ARGS): Define.
5427         (tst-ptrguard1-static-ARGS): Define.
5428         * elf/tst-ptrguard1.c: New file.
5429         * elf/tst-ptrguard1-static.c: New file.
5430         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
5431         * sysdeps/i386/stackguard-macros.h: Likewise.
5432         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5433         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5434         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5435         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5436         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5437         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5438
5439 2013-09-23  Hector Marco  <hecmargi@upv.es>
5440             Ismael Ripoll  <iripoll@disca.upv.es>
5441             Carlos O'Donell  <carlos@redhat.com>
5442
5443         [BZ #15754]
5444         * sysdeps/generic/stackguard-macros.h: Define
5445         __pointer_chk_guard_local and POINTER_CHK_GUARD.
5446         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
5447         Define __pointer_chk_guard_local.
5448         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
5449         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
5450
5451 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
5452
5453         [BZ #15859]
5454         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
5455
5456 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
5457
5458         * include/string.h (__ffs): Declare as hidden.
5459         * string/ffs.c (__ffs): Define as hidden.
5460         * sysdeps/i386/ffs.c (__ffs): Likewise.
5461         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
5462         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
5463         * sysdeps/s390/ffs.c (__ffs): Likewise.
5464         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
5465
5466 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
5467
5468         * NEWS: Mention malloc probes.
5469
5470         * malloc/arena.c (new_heap): New memory_heap_new probe.
5471         (grow_heap): New memory_heap_more probe.
5472         (shrink_heap): New memory_heap_less probe.
5473         (heap_trim): New memory_heap_free probe.
5474         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
5475         (systrim): New memory_sbrk_less probe.
5476         * manual/probes.texi: Document them.
5477
5478         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
5479         * manual/probes.texi: Document it.
5480
5481         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
5482         (__libc_realloc): Add memory_realloc_retry probe.
5483         (__libc_memalign): Add memory_memalign_retry probe.
5484         (__libc_valloc): Add memory_valloc_retry probe.
5485         (__libc_pvalloc): Add memory_pvalloc_retry probe.
5486         (__libc_calloc): Add memory_calloc_retry probe.
5487         * manual/probes.texi: Document them.
5488
5489         * malloc/arena.c (get_free_list): Add probe
5490         memory_arena_reuse_free_list.
5491         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
5492         and memory_arena_reuse.
5493         (arena_get2) [!PER_THREAD]: Likewise.
5494         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
5495         memory_arena_reuse_realloc.
5496         * manual/probes.texi: Document them.
5497
5498         * malloc/malloc.c (__libc_free): Add
5499         memory_mallopt_free_dyn_thresholds probe.
5500         (__libc_mallopt): Add multiple memory_mallopt probes.
5501         * manual/probes.texi: Document them.
5502
5503         * malloc/malloc.c: Include stap-probe.h.
5504         (__libc_mallopt): Add memory_mallopt probe.
5505         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
5506         * manual/probes.texi: New.
5507         * manual/Makefile (chapters): Add probes.
5508         * manual/threads.texi: Set next node.
5509
5510 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
5511
5512         [BZ #15963, #13985]
5513         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
5514         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
5515         Add `Chinese' to `nan' entry name.
5516
5517 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5518
5519         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
5520         (POLYNOMIAL): Likewise.
5521         (TAYLOR_SINCOS): Likewise.
5522         (TAYLOR_SLOW): Likewise.
5523         (__sin): Use TAYLOR_SINCOS.
5524         (__cos): Likewise.
5525         (slow): Use TAYLOR_SLOW.
5526         (sloww): Likewise.
5527         (bsloww): Likewise.
5528         (csloww): Likewise.
5529
5530 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5531
5532         * stdlib/strtod_l.c: Fix buffer overrun.
5533
5534 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5535
5536         * benchtests/Makefile (bench): Add sincos.
5537         * benchtests/bench-sincos.c: New file.
5538
5539         * math/libm-test.inc (cos_test_data): New test inputs.
5540         (sin_test_data): Likewise.
5541
5542         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
5543         macro.
5544         (__sin): Use it.
5545         (__cos): Likewise.
5546         (slow1): Likewise.
5547         (slow2): Likewise.
5548         (sloww1): Likewise.
5549         (sloww2): Likewise.
5550         (bsloww1): Likewise.
5551         (bsloww2): Likewise.
5552         (cslow2): Likewise.
5553         (csloww1): Likewise.
5554         (csloww2): Likewise.
5555
5556         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
5557         function.
5558         (__sin): Use it.
5559         (__cos): Likewise.
5560
5561         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
5562         gotos.
5563         (__cos): Likewise.
5564
5565 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
5566
5567         * config.h.in (HAVE_MIPS_NAN2008): New macro.
5568         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
5569         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
5570         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
5571         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
5572         * elf/cache.c (print_entry): Handle the new cache flags.
5573
5574 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5575             Aldy Hernandez  <aldyh@redhat.com>
5576
5577         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
5578         Change condition to [_SOFT_FLOAT].
5579         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
5580         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
5581         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
5582         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
5583         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
5584         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
5585         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
5586         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
5587         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
5588         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
5589         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
5590         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
5591         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
5592         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
5593         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
5594         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
5595         declaration.
5596
5597 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5598
5599         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
5600         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5601         (__longjmp): Use LOAD_GP to load saved GPRs.
5602         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
5603         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5604         (__sigsetjmp): Use SAVE_GP to save GPRs.
5605
5606         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
5607         Do not append -msoft-float.
5608         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
5609
5610 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5611
5612         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
5613
5614 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
5615
5616         [BZ #15966]
5617         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
5618         (_FPU_GETCW): Use initial "__" on variable and field names but not
5619         on macro parameter name.
5620         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
5621         parentheses around reference to macro parameter.
5622
5623 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
5624
5625         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
5626         prototype.
5627         (ctype_startup): Use uint32_t in cast and sizeof for
5628         ctype->charnames.
5629
5630 2013-09-11  Jia Liu  <proljc@gmail.com>
5631
5632         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
5633         __daddr_t_defined.
5634         [__FreeBSD__]: Likewise.
5635
5636 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
5637
5638         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
5639         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
5640         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
5641         (strchr): Remove __strchr_sse42 ifunc selection.
5642         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
5643         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
5644
5645 2013-09-11  Will Newton  <will.newton@linaro.org>
5646
5647         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
5648         parameter to RES. Remove hardcoded 1000 value.
5649         * benchtests/bench-skeleton.c (main): Pass RES parameter
5650         to TIMING_INIT and multiply result by 1000.
5651
5652 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5653
5654         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5655
5656 2013-09-11  Andreas Schwab  <schwab@suse.de>
5657
5658         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
5659         if not defined.
5660         (O_TMPFILE) [__USE_GNU]: Define.
5661         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
5662         Define.
5663
5664 2013-09-11  Will Newton  <will.newton@linaro.org>
5665
5666         [BZ #15857]
5667         * malloc/malloc.c (__libc_memalign): Check the value of bytes
5668         does not overflow.
5669
5670 2013-09-11  Will Newton  <will.newton@linaro.org>
5671
5672         [BZ #15856]
5673         * malloc/malloc.c (__libc_valloc): Check the value of bytes
5674         does not overflow.
5675
5676 2013-09-11  Will Newton  <will.newton@linaro.org>
5677
5678         [BZ #15855]
5679         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
5680         does not overflow.
5681
5682 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
5683
5684         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
5685         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5686         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5687         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5688         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5689
5690 2013-09-10  Allan McRae  <allan@archlinux.org>
5691
5692         [BZ #15748]
5693         * manual/arith.texi (Parsing of Floats): Clarify
5694         cross-reference.
5695
5696         [BZ #15849]
5697         * manual/install.texi (Running make install): Mention
5698         --enable-pt-chown.
5699         * INSTALL: Regenerated.
5700
5701 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
5702
5703         * csu/init-first.c (_init): Remove the !SHARED condition around
5704         FPU control word initialization.
5705         * elf/dl-support.c (_dl_fpu_control): New variable.
5706         (_dl_aux_init) <AT_FPUCW>: Initialize it.
5707         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
5708         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
5709         * math/test-fpucw-static.c: New file.
5710         * math/test-fpucw-ieee.c: New file.
5711         * math/test-fpucw-ieee-static.c: New file.
5712         * math/Makefile (tests): Add `test-fpucw-ieee' and
5713         `$(tests-static)'.
5714         (tests-static): New variable.
5715         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
5716         dependency to...
5717         [($(build-shared),yes)]
5718         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
5719         ... this.
5720         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
5721         New dependency.
5722
5723 2013-09-09  Allan McRae  <allan@archlinux.org>
5724
5725         [BZ #15939]
5726         * manual/string.texi (Collation Functions): Fix typo in
5727         strcoll example.
5728         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
5729
5730         [BZ #15893]
5731         * stdlib/isomac.c (get_null_defines): Fix memory leak.
5732
5733         [BZ #15892]
5734         * libio/memstream.c (open_memstream): Fix memory leak.
5735         * libio/wmemstream.c (open_wmemstream): Likewise.
5736
5737         [BZ #15895]
5738         * nscd/netgroupcache.c: Fix nesting of ifdefs.
5739
5740 2013-09-09  Will Newton  <will.newton@linaro.org>
5741
5742         * malloc/Makefile: Add tst-realloc to tests.
5743         * malloc/tst-realloc.c: New file.
5744
5745 2013-09-09  Allan McRae  <allan@archlinux.org>
5746
5747         [BZ #15844]
5748         * COPYING: Update from GNU website to fix FSF address.
5749         * COPYING.LIB: Likewise.
5750
5751 2013-09-06  David S. Miller  <davem@davemloft.net>
5752
5753         * po/zh_TW.po: Update Chinese (traditional) translation from
5754         translation project.
5755
5756 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
5757             Joseph Myers  <joseph@codesourcery.com>
5758
5759         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
5760         "localeinfo.h".
5761         (obstack_chunk_alloc): New macro.
5762         (obstack_chunk_free): Likewise.
5763         (record_offset): New function.
5764         (init_locale_data): Likewise.
5765         (align_locale_data): Likewise.
5766         (add_locale_empty): Likewise.
5767         (add_locale_raw_data): Likewise.
5768         (add_locale_raw_obstack): Likewise.
5769         (add_locale_string): Likewise.
5770         (add_locale_wstring): Likewise.
5771         (add_locale_uint32): Likewise.
5772         (add_locale_uint32_array): Likewise.
5773         (add_locale_char): Likewise.
5774         (start_locale_structure): Likewise.
5775         (end_locale_structure): Likewise.
5776         (start_locale_prelude): Likewise.
5777         (end_locale_prelude): Likewise.
5778         (write_locale_data): Take locale_file structure rather than an
5779         iovec.
5780         * locale/programs/locfile.h: Include "obstack.h".
5781         (struct locale_file): Change to store locale file contents instead
5782         of header.
5783         (init_locale_data): New prototype.
5784         (align_locale_data): Likewise.
5785         (add_locale_empty): Likewise.
5786         (add_locale_raw_data): Likewise.
5787         (add_locale_raw_obstack): Likewise.
5788         (add_locale_string): Likewise.
5789         (add_locale_wstring): Likewise.
5790         (add_locale_uint32): Likewise.
5791         (add_locale_uint32_array): Likewise.
5792         (add_locale_char): Likewise.
5793         (start_locale_structure): Likewise.
5794         (end_locale_structure): Likewise.
5795         (start_locale_prelude): Likewise.
5796         (end_locale_prelude): Likewise.
5797         (write_locale_data): Update prototype.
5798         * locale/programs/3level.h (struct TABLE): Remove result field.
5799         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
5800         Use new locale_file interface.
5801         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
5802         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
5803         * locale/programs/ld-address.c (address_output): Use new
5804         locale_file interface.
5805         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
5806         NO_ADD_LOCALE.
5807         (collate_finish): Don't call collseq_table_finalize.
5808         (collate_output): Use new locale_file interface.
5809         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
5810         in file.
5811         (NO_FINALIZE): Change to NO_ADD_LOCALE.
5812         (TABLE): Move defines earlier in file.
5813         (ELEMENT): Likewise.
5814         (DEFAULT): Likewise.
5815         (wctrans_table_add): Move macro and inline function earlier in
5816         file.
5817         (struct wctype_table): Move type earlier in file.
5818         (add_locale_wctype_table): New static prototype.
5819         (struct locale_ctype_t): Use logical types instead of struct iovec
5820         pointers for members.
5821         (ctype_output): Use new locale_file interface.
5822         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
5823         new locale_file interface.
5824         (allocate_arrays): Update for use of new locale_file interface.
5825         * locale/programs/ld-identification.c (identification_output): Use
5826         new locale_file interface.
5827         * locale/programs/ld-measurement.c (measurement_output): Likewise.
5828         * locale/programs/ld-messages.c (messages_output): Likewise.
5829         * locale/programs/ld-monetary.c (monetary_output): Likewise.
5830         * locale/programs/ld-name.c (name_output): Likewise.
5831         * locale/programs/ld-numeric.c (numeric_output): Likewise.
5832         * locale/programs/ld-paper.c (paper_output): Likewise.
5833         * locale/programs/ld-telephone.c (telephone_output): Likewise.
5834         * locale/programs/ld-time.c (time_output): Likewise.
5835
5836 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5837
5838         * benchtests/Makefile: Add memrchr benchmark.
5839         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
5840         benchmark as memrchr.
5841         * benchtests/bench-memrchr-ifunc.c: New file.
5842         * benchtests/bench-memrchr.c: New file.
5843
5844 2013-09-06   Will Newton  <will.newton@linaro.org>
5845
5846         * benchtests/Makefile (string-bench): Add memcpy.
5847
5848 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
5849             Cong Wang  <amwang@redhat.com>
5850
5851         [BZ #15850]
5852         * sysdeps/unix/sysv/linux/bits/in.h
5853         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
5854         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
5855         before __USE_KERNEL_IPV6_DEFS uses.
5856         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
5857         IPPROTO_BEETPH.
5858         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
5859         sockaddr_in6, or ipv6_mreq.
5860
5861 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5862
5863         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
5864         memory access for final bytes in some large inputs.
5865         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
5866
5867 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5868
5869         * string/test-memrchr.c: New file.
5870         * string/test-memrchr-ifunc.c: New file.
5871         * string/Makefile: Add new memrchr testcase.
5872
5873 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
5874
5875         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
5876         fanotify_init returns EPERM.
5877
5878 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
5879
5880         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
5881         errors.
5882         (top level): Treat second token from macro or constant entries for
5883         allowed headers as allowed.
5884         * include/complex.h: Condition internal declarations on
5885         [!_ISOMAC].
5886         * include/fenv.h: Condition include of <stdbool.h> and internal
5887         declarations on [!_ISOMAC].
5888
5889 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
5890
5891         [BZ #15923]
5892         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
5893
5894 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
5895
5896         * configure.in (--enable-versioning): Remove configure option.
5897         (libc_cv_asm_symver_directive): Remove configure test.
5898         (libc_cv_ld_version_script_option): Likewise.
5899         (VERSIONING): Remove variable and AC_SUBST.
5900         (DO_VERSIONING): Remove AC_DEFINE.
5901         * configure: Regenerated.
5902         * config.h.in (DO_VERSIONING): Remove macro.
5903         * Makerules [$(versioning) = yes]: Change conditionals to
5904         [$(build-shared) = yes].
5905         * config.make.in (versioning): Remove variable.
5906         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
5907         [$(build-shared) = yes].
5908         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
5909         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
5910         * elf/Makefile [$(versioning) = yes]: Change conditionals to
5911         [$(build-shared) = yes].
5912         * extra-lib.mk [$(versioning) = yes]: Likewise.
5913         * hurd/Makefile [$(versioning) = yes]: Likewise.
5914         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
5915         [SHARED].
5916         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
5917         [SHARED].
5918         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
5919         [SHARED && !NO_HIDDEN].
5920         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
5921         [SHARED].
5922         [SHARED && DO_VERSIONING]: Likewise..
5923         * libio/Makefile [$(versioning) = yes]: Change conditionals to
5924         [$(build-shared) = yes].
5925         * manual/install.texi (--disable-versioning): Remove
5926         documentation.
5927         * INSTALL: Regenerated.
5928         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
5929         to [SHARED].
5930         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
5931         [$(build-shared) = yes].
5932         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
5933         * sysdeps/i386/i686/multiarch/strstr-c.c
5934         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
5935         [SHARED && !NO_HIDDEN].
5936         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
5937         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
5938         * sysdeps/powerpc/powerpc32/dl-machine.c
5939         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
5940         * sysdeps/powerpc/powerpc32/sysdep.h
5941         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
5942         to [SHARED && PIC && !NO_HIDDEN].
5943         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
5944         conditional to [SHARED].
5945
5946 2013-09-04   Will Newton  <will.newton@linaro.org>
5947
5948         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
5949         * benchtests/bench-string.h: Include bench-timing.h instead
5950         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
5951         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
5952         call to HP_TIMING_DIFF_INIT.
5953         * benchtests/bench-memccpy.c: Use bench-timing.h macros
5954         instead of hp-timing.h macros.
5955         * benchtests/bench-memchr.c: Likewise.
5956         * benchtests/bench-memcmp.c: Likewise.
5957         * benchtests/bench-memcpy.c: Likewise.
5958         * benchtests/bench-memmem.c: Likewise.
5959         * benchtests/bench-memmove.c: Likewise.
5960         * benchtests/bench-memset.c: Likewise.
5961         * benchtests/bench-rawmemchr.c: Likewise.
5962         * benchtests/bench-strcasecmp.c: Likewise.
5963         * benchtests/bench-strcasestr.c: Likewise.
5964         * benchtests/bench-strcat.c: Likewise.
5965         * benchtests/bench-strchr.c: Likewise.
5966         * benchtests/bench-strcmp.c: Likewise.
5967         * benchtests/bench-strcpy.c: Likewise.
5968         * benchtests/bench-strcpy_chk.c: Likewise.
5969         * benchtests/bench-strlen.c: Likewise.
5970         * benchtests/bench-strncasecmp.c: Likewise.
5971         * benchtests/bench-strncat.c: Likewise.
5972         * benchtests/bench-strncmp.c: Likewise.
5973         * benchtests/bench-strncpy.c: Likewise.
5974         * benchtests/bench-strnlen.c: Likewise.
5975         * benchtests/bench-strpbrk.c: Likewise.
5976         * benchtests/bench-strrchr.c: Likewise.
5977         * benchtests/bench-strspn.c: Likewise.
5978         * benchtests/bench-strstr.c: Likewise.
5979
5980 2013-09-04  Will Newton  <will.newton@linaro.org>
5981
5982         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
5983
5984 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
5985
5986         [BZ #15427]
5987         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
5988         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
5989         * math/libm-test.inc (lgamma_test_data): Add more tests.
5990         * sysdeps/i386/fpu/libm-test-ulps: Update.
5991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5992
5993 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
5994
5995         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
5996         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
5997         Add ifunc.
5998         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
5999         Add strcmp-sse2-unaligned
6000         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
6001
6002 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6003
6004         * Versions.def (libc): Add GLIBC_2.19.
6005
6006 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6007
6008         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
6009         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
6010
6011 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
6012
6013         [BZ #14155]
6014         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
6015         intermediate calculations in recurrence.
6016         (__ieee754_ynf): Likewise.
6017         * math/libm-test.inc (jn_test_data): Do not allow spurious
6018         underflow exception.  Add more tests.
6019         (yn_test_data): Add more tests.
6020         * sysdeps/i386/fpu/libm-test-ulps: Update.
6021         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6022
6023 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
6024
6025         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
6026
6027 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6028
6029         * csu/init-first.c: Fix then/than typos.
6030         * locale/programs/ld-collate.c: Likewise.
6031         * locale/programs/linereader.h: Likewise.
6032         * manual/charset.texi: Likewise.
6033         * manual/filesys.texi: Likewise.
6034         * manual/stdio.texi: Likewise.
6035         * manual/string.texi: Likewise.
6036         * stdlib/fmtmsg.c: Likewise.
6037         * sysdeps/i386/stpncpy.S: Likewise.
6038         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6039         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
6040         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6041         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6042
6043 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6044
6045         * elf/dl-open.c: Fix typos.
6046         * iconvdata/gbbig5.c: Likewise.
6047         * iconvdata/iso-2022-jp.c: Likewise.
6048         * iconv/gconv_int.h: Likewise.
6049         * iconv/loop.c: Likewise.
6050         * nis/rpcsvc/nis.h: Likewise.
6051         * resolv/ns_name.c: Likewise.
6052         * stdio-common/vfscanf.c: Likewise.
6053         * streams/stropts.h: Likewise.
6054         * sunrpc/rpc_thread.c: Likewise.
6055         * sysdeps/i386/strpbrk.S: Likewise.
6056         * sysdeps/ieee754/k_standard.c: Likewise.
6057         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6058         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6059         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6060         * sysdeps/mach/hurd/profil.c: Likewise.
6061         * sysdeps/s390/dl-procinfo.h: Likewise.
6062         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6063         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6064         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6065         * sysdeps/x86_64/dl-trampoline.S: Likewise.
6066         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6067
6068 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
6069
6070         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
6071         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
6072
6073 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
6074
6075         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
6076         aix specific files.
6077         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
6078         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
6079         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
6080         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
6081         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
6082         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
6083         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
6084         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
6085
6086 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6087             Roland McGrath  <roland@hack.frob.com>
6088
6089         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
6090         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6091
6092 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6093
6094         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
6095         __executable_start symbol instead of _start.
6096
6097 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6098
6099         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
6100         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
6101         Move macros to...
6102         * sysdeps/gnu/ldsodefs.h: ... this new file.
6103
6104         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
6105         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
6106         instead of ELFOSABI_LINUX.
6107
6108         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
6109         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
6110         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
6111         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
6112         Likewise.
6113         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
6114         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
6115         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
6116         Likewise.
6117         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
6118         (ibm_extended_long_double): Add ieee_nan member.
6119         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
6120         (do_test): New function.
6121
6122         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
6123         TEST_TRUNC.
6124         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
6125         functions, renamed from truncdfsf_test, trunctfsf_test,
6126         trunctfdf_test.
6127         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
6128         functions.
6129         (do_test): Run all these.
6130
6131 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
6132
6133         * argp/argp-help.c: Fix typos.
6134         * argp/argp-parse.c: Likewise.
6135         * debug/backtracesyms.c: Likewise.
6136         * elf/elf.h: Likewise.
6137         * malloc/malloc.c: Likewise.
6138         * nis/nis_print.c: Likewise.
6139         * resolv/res_comp.c: Likewise.
6140         * stdlib/stdlib.h: Likewise.
6141         * sunrpc/clnt_tcp.c: Likewise.
6142         * sunrpc/clnt_udp.c: Likewise.
6143         * sunrpc/clnt_unix.c: Likewise.
6144         * sysdeps/unix/bsd/ptsname.c: Likewise.
6145         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6146         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
6147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
6148         Likewise.
6149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
6150         Likewise.
6151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
6152         Likewise.
6153         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
6154
6155 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6156
6157         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
6158         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
6159
6160 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
6161
6162         [BZ #15897]
6163         * dlfcn/Makefile (tests): Add bug-dl-leaf.
6164         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
6165         ($(objpfx)bug-dl-leaf): New rule.
6166         ($(objpfx)bug-dl-leaf.so): Likewise.
6167         ($(objpfx)bug-dl-leaf.out): Likewise.
6168         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
6169         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
6170         * dlfcn/bug-dl-leaf.c: New test.
6171         * dlfcn/bug-dl-leaf-lib.c: Likewise.
6172         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
6173         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
6174         (dlclose): Likewise.
6175         (dlmopen): Likewise.
6176
6177 2013-08-27  Roland McGrath  <roland@hack.frob.com>
6178
6179         * include/netdb.h [!_ISOMAC]:
6180         Don't include <tls.h>.
6181         (h_errno, __libc_h_errno): Move declaration and macros out of
6182         [_LIBC_REENTRANT].
6183
6184         * include/resolv.h [_RESOLV_H_]:
6185         Don't include <tls.h>.
6186         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
6187         * resolv/res_libc.c: Don't include <tls.h>.
6188         (_res): Use __attribute__ ((nocommon)) in place of
6189         __attribute__ ((section (".bss"))).
6190
6191         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
6192         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
6193
6194         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
6195
6196         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
6197         only under [SIOCGIFCONF && SIOCGIFNETMASK].
6198
6199         * resolv/res_mkquery.c: Include <sys/time.h>.
6200
6201         * inet/ifreq.c: Moved to ...
6202         * sysdeps/unix/ifreq.c: ... here.
6203         * inet/ifreq.c: New file, true stub version.
6204
6205         * socket/sa_len.c: New file.
6206         * socket/Makefile (aux): Add it.
6207         * sysdeps/unix/sysv/linux/Makefile
6208         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
6209         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
6210         and #include <socket/sa_len.c>.
6211         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
6212         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
6213
6214         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
6215         * bits/socket.h: ... here.
6216
6217         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
6218         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
6219         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
6220
6221 2013-08-27  Andreas Schwab  <schwab@suse.de>
6222
6223         [BZ #15736]
6224         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
6225         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
6226         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
6227         * string/test-strcasecmp.c (test_main): Run tests in several
6228         locales.
6229         * string/test-strncasecmp.c (test_main): Likewise.
6230
6231         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
6232         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
6233         to __strcasecmp_nonascii and __strncasecmp_nonascii.
6234         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
6235         (__strncasecmp_ssse3) [PIC]: Likewise.
6236
6237 2013-08-26  Roland McGrath  <roland@hack.frob.com>
6238
6239         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
6240
6241         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
6242         instead of explicitly declaring xdecrypt.
6243         * nis/nss_nis/nis-publickey.c: Likewise.
6244
6245 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6246
6247         [BZ #15890]
6248         * nscd/aicache.c: Include res_hconf.h.
6249         (addhstaiX): Initialize res_hconf.
6250
6251 2013-08-26  Andreas Schwab  <schwab@suse.de>
6252
6253         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
6254         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
6255
6256 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6257
6258         * nscd/aicache.c (addhstaiX): Fix indentation.
6259
6260 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
6261
6262         * configure.ac: Quote $build_pt_chown test.
6263         * configure: Regenerated.
6264
6265 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
6266
6267         [BZ #15532]
6268         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
6269         * math/s_cexpf.c (__cexpf): Likewise.
6270         * math/s_cexpl.c (__cexpl): Likewise.
6271         * math/libm-test.inc (cexp_test_data): Correct expected return
6272         value for NaN + i0.  Add another test.
6273
6274 2013-08-22  David S. Miller  <davem@davemloft.net>
6275
6276         * po/ca.po: Update Catalan translation from translation project.
6277         * po/uk.po: Add Ukrainian translations from translation project.
6278
6279 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
6280
6281         [BZ #15797]
6282         * math/s_fdim.c (__fdim): Check for infinite arguments if result
6283         is infinite, not alongside NaN test.
6284         * math/s_fdimf.c (__fdimf): Likewise.
6285         * math/s_fdiml.c (__fdiml): Likewise.
6286         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
6287         errno is unchanged.
6288
6289 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
6290
6291         * argp/argp-help.c: Fix typos.
6292         * crypt/speeds.c: Likewise.
6293         * csu/check_fds.c: Likewise.
6294         * elf/dl-load.c: Likewise.
6295         * elf/dl-open.c: Likewise.
6296         * elf/reldep3.c: Likewise.
6297         * elf/reldep.c: Likewise.
6298         * elf/sprof.c: Likewise.
6299         * iconv/iconv_charmap.c: Likewise.
6300         * iconv/skeleton.c: Likewise.
6301         * iconv/strtab.c: Likewise.
6302         * io/lockf64.c: Likewise.
6303         * libio/libioP.h: Likewise.
6304         * resolv/gai_notify.c: Likewise.
6305         * resolv/ns_name.c: Likewise.
6306         * resolv/ns_samedomain.c: Likewise.
6307         * resolv/res_send.c: Likewise.
6308         * stdlib/random.c: Likewise.
6309         * sunrpc/rpc/xdr.h: Likewise.
6310         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
6311         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
6312         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6313         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6314         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6315         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
6316         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
6317         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6318         * sysdeps/mach/hurd/check_fds.c: Likewise.
6319         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
6320         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6321         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6322         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
6323         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6324         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
6325         * sysdeps/pthread/aio_notify.c: Likewise.
6326         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6327         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
6328         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
6329         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6330         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
6331
6332 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6333
6334         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
6335         version if bit_Slow_SSE4_2 is set.
6336         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6337         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6338
6339 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6340
6341         [BZ #15867]
6342         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
6343         trampoline stack frame information.
6344         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
6345         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
6346         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
6347         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
6348         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
6349         * sysdeps/unix/sysv/linux/powerpc/init-first.c
6350         (_libc_vdso_platform_setup): Initialize the signal trampolines.
6351         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
6352         sa_flags value.
6353         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
6354         interrupting a syscall and set with option SA_SIGINFO.
6355
6356 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6357
6358         [BZ #15531]
6359         * math/s_cproj.c (__cproj): Only return an infinity if one part of
6360         argument is infinite.
6361         * math/s_cprojf.c (__cprojf): Likewise.
6362         * math/s_cprojl.c (__cprojl): Likewise.
6363         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
6364         * math/libm-test.inc (cproj_test_data): Add more tests.
6365
6366         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
6367
6368         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
6369         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
6370         size.  Use __ffs to determine corresponding shift.
6371
6372 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6373             Roland McGrath  <roland@hack.frob.com>
6374
6375         * Makefile (INSTALL): Remove trailing blank lines from output of
6376         makeinfo.
6377
6378 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6379
6380         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
6381         Align 32 bit compat elf_greg to 8 bytes.
6382
6383 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6384
6385         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
6386
6387 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6388
6389         * string/strcoll_l.c (coll_seq): New structure.
6390         (get_next_seq_cached): New function.
6391         (get_next_seq): New function.
6392         (do_compare): New function.
6393         (STRCOLL): Use GNU style definition.  Simplify implementation
6394         by using get_next_seq, get_next_seq_cached and do_compare.
6395
6396 2013-08-16  Florian Weimer  <fweimer@redhat.com>
6397
6398         [BZ #14699]
6399         CVE-2013-4237
6400         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
6401         member.
6402         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
6403         member.
6404         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
6405         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
6406         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
6407         conditional.
6408         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
6409         GETDENTS_64BIT_ALIGNED.
6410         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6411         * manual/filesys.texi (Reading/Closing Directory): Document
6412         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
6413         strongly.
6414         * manual/conf.texi (Limits for Files): Add portability note to
6415         NAME_MAX, PATH_MAX.
6416         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
6417
6418 2013-08-13  Andreas Schwab  <schwab@suse.de>
6419
6420         [BZ #15749]
6421         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
6422         of fabs.
6423         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
6424         LDBL_MAX_EXP >= 16384]: Add tests for it.
6425
6426 2013-08-12  David S. Miller  <davem@davemloft.net>
6427
6428         * version.h (RELEASE): Set to "development".
6429         (VERSION): Set to "2.18.90".
6430         * NEWS: Add 2.19 section.
6431
6432 2013-08-03  David S. Miller  <davem@davemloft.net>
6433
6434         * po/ko.po: Update Korean translation from translation project.
6435
6436 2013-08-01  David S. Miller  <davem@davemloft.net>
6437
6438         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
6439         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
6440         Bilka.
6441
6442 2013-07-30  David S. Miller  <davem@davemloft.net>
6443
6444         * po/fr.po: Update French translation from translation project.
6445
6446 2013-07-28  David S. Miller  <davem@davemloft.net>
6447
6448         * po/cs.po: Update Czech translation from translation project.
6449
6450         * po/sv.po: Update Swedish translation from translation project.
6451
6452 2013-07-27  David S. Miller  <davem@davemloft.net>
6453
6454         * po/eo.po: Update Esperanto translation from translation project.
6455
6456         * po/vi.po: Update Vietnamese translation from translation project.
6457
6458         * po/de.po: Update German translation from translation project.
6459
6460 2013-07-26  David S. Miller  <davem@davemloft.net>
6461
6462         * po/bg.po: Update Bulgarian translation from translation project.
6463
6464         * po/nl.po: Update Dutch translation from translation project.
6465         * po/pl.po: Update Polish translation from translation project.
6466         * po/ru.po: Update Russian translation from translation project.
6467
6468 2013-07-24  David S. Miller  <davem@davemloft.net>
6469
6470         * po/libc.pot: Update.
6471
6472 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6473
6474         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
6475         variable page size.
6476         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
6477         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
6478         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
6479
6480 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6481
6482         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
6483
6484 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6485             Andreas Schwab  <schwab@suse.de>
6486             Roland McGrath  <roland@hack.frob.com>
6487             Joseph Myers  <joseph@codesourcery.com>
6488             Carlos O'Donell  <carlos@redhat.com>
6489
6490         [BZ #15755]
6491         * config.h.in: Define HAVE_PT_CHOWN.
6492         * config.make.in (build-pt-chown): New variable.
6493         * configure.in (--enable-pt_chown): New configure option.
6494         * configure: Regenerate.
6495         * login/Makefile: Include Makeconfig.  Build pt_chown only if
6496         build-pt-chown is enabled.
6497         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
6498         pt_chown to fix pty ownership.
6499         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
6500         CLOSE_ALL_FDS.
6501         * manual/install.texi (Configuring and compiling): Mention
6502         --enable-pt_chown. Add @findex for grantpt.
6503         * INSTALL: Regenerate.
6504
6505 2013-07-20  David S. Miller  <davem@davemloft.net>
6506
6507         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
6508         difference between 32-bit and 64-bit.
6509
6510 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
6511
6512         [BZ #15711]
6513         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
6514         Avoid system header dependency with -ffreestanding.
6515         ($(objpfx)bits/syscall%d): Likewise.
6516
6517 2013-07-13  David S. Miller  <davem@davemloft.net>
6518
6519         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
6520         underflows from atanl/atan2l due to bug 15319.
6521         (casinh_test_data): Likewise.
6522
6523 2013-07-07  David S. Miller  <davem@davemloft.net>
6524
6525         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
6526
6527 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
6528
6529         * sysdeps/i386/fpu/libm-test-ulps: Update.
6530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6531
6532 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6533
6534         * configure.in (--enable-lock-elision): Fix message text.
6535         * INSTALL: Regenerate.
6536         * configure: Regenerate.
6537
6538 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6539
6540         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6541
6542 2013-07-03  Andreas Jaeger  <aj@suse.de>
6543
6544         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
6545         define.
6546         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
6547         (ptrace_peeksiginfo_args): Add.
6548         (__ptrace_peeksiginfo_flags): Add.
6549         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6550         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6551         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6552
6553 2013-07-03  Allan McRae  <allan@archlinux.org>
6554
6555         * sysdeps/i386/fpu/libm-test-ulps: Update.
6556
6557 2013-07-02  David S. Miller  <davem@davemloft.net>
6558
6559         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6560
6561 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
6562
6563         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6564
6565 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6566
6567         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6569
6570 2013-07-02  Andi Kleen <ak@linux.intel.com>
6571
6572         * config.h.in (ENABLE_LOCK_ELISION): Add.
6573         * configure.in (--enable-lock-elision): Add option.
6574         * manual/install.texi: Document --enable lock elision.
6575         * configure: Regenerate
6576         * INSTALL: Regenerate.
6577
6578 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
6579
6580         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
6581         SSE4.2 strcasecmp for libc.a.
6582         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
6583
6584 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6585
6586         [BZ #13304]
6587         * soft-fp/op-common.h (_FP_FMA): New macro.
6588         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
6589         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
6590         (_FP_MUL_MEAT_1_imm): ... here.
6591         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
6592         (_FP_MUL_MEAT_1_wide): ... here.
6593         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
6594         (_FP_MUL_MEAT_1_hard): ... here.
6595         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
6596         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
6597         (_FP_MUL_MEAT_2_wide): ... here.
6598         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
6599         (_FP_MUL_MEAT_2_wide_3mul): ... here.
6600         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
6601         (_FP_MUL_MEAT_2_gmp): ... here.
6602         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
6603         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
6604         (_FP_MUL_MEAT_4_wide): ... here.
6605         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
6606         (_FP_MUL_MEAT_4_gmp): ... here.
6607         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
6608         (_FP_WFRACBITS_DW_S): Likewise.
6609         (_FP_WFRACXBITS_DW_S): Likewise.
6610         (_FP_HIGHBIT_DW_S): Likewise.
6611         (FP_FMA_S): Likewise.
6612         (_FP_FRAC_HIGH_DW_S): Likewise.
6613         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
6614         (_FP_WFRACBITS_DW_D): Likewise.
6615         (_FP_WFRACXBITS_DW_D): Likewise.
6616         (_FP_HIGHBIT_DW_D): Likewise.
6617         (FP_FMA_D): Likewise.
6618         (_FP_FRAC_HIGH_DW_D): Likewise.
6619         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
6620         (_FP_WFRACBITS_DW_E): Likewise.
6621         (_FP_WFRACXBITS_DW_E): Likewise.
6622         (_FP_HIGHBIT_DW_E): Likewise.
6623         (FP_FMA_E): Likewise.
6624         (_FP_FRAC_HIGH_DW_E): Likewise.
6625         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
6626         (_FP_WFRACBITS_DW_Q): Likewise.
6627         (_FP_WFRACXBITS_DW_Q): Likewise.
6628         (_FP_HIGHBIT_DW_Q): Likewise.
6629         (FP_FMA_Q): Likewise.
6630         (_FP_FRAC_HIGH_DW_Q): Likewise.
6631         * soft-fp/fmasf4.c: New file.
6632         * soft-fp/fmadf4.c: Likewise.
6633         * soft-fp/fmatf4.c: Likewise.
6634
6635 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6636
6637         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
6638         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
6639         Silvermont.
6640         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
6641         macro.
6642         (index_Slow_SSE4_2): Likewise.
6643         (index_Prefer_PMINUB_for_stringop): Likewise.
6644         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
6645         bit_Slow_SSE4_2 is set.
6646         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
6647         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
6648
6649 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6650
6651         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
6652         rtld_global._dl_hwcap2.
6653         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
6654         POWER8.
6655         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
6656         POWER8 feature descriptions defined in _dl_hwcap2.
6657         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
6658         string handling for POWER8 feature bits.
6659         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
6660         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
6661         _dl_powerpc_cap_flags.
6662         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
6663         * sysdeps/powerpc/rtld-global-offsets.sym
6664         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
6665         _dl_hwcap2 in the rtld_global_ro structure.
6666
6667 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6668
6669         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
6670         hardware capabilities in support of AT_HWCAP2.
6671         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
6672         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
6673         GLRO(dl_hwcap2).
6674         (_dl_show_auxv): Add support for calling _dl_procinfo to display
6675         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
6676         explicitly the unknown a_type display mechanism is used.
6677         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
6678         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
6679         struct member.
6680         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
6681         to macro prototype for AT_HWCAP2 support.
6682         * sysdeps/i386/dl-procinfo.h: Likewise.
6683         * sysdeps/s390/dl-procinfo.h: Likewise.
6684         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
6685         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
6686         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
6687         return -1 for unknown a_type display fallback.
6688         * sysdeps/sparc/dl-procinfo.h: Likewise.
6689         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
6690         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
6691
6692 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
6693
6694         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
6695         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
6696
6697 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
6698
6699         [BZ #12492]
6700         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
6701         mprotect making __stack_prot writable.
6702
6703 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
6704             Joseph Myers  <joseph@codesourcery.com>
6705
6706         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
6707         as being properly aligned.
6708
6709 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
6710
6711         * dlfcn/modstatic5.c: New file.
6712         * dlfcn/tststatic5.c: New file.
6713         * dlfcn/Makefile (tests): Add tststatic5.
6714         (tests-static): Likewise.
6715         (modules-names): Add modstatic5.
6716         (tststatic5-ENV): New variable.
6717         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
6718
6719         [BZ #15022]
6720         * elf/dl-support.c (_dl_main_map): New variable.
6721         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
6722         (_dl_nns, _dl_load_adds): Set to 1.
6723         (_dl_initial_searchlist): Refer to _dl_main_map.
6724         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
6725         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
6726         call to _dl_get_origin.
6727         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
6728         around call_map.
6729         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
6730         * dlfcn/modstatic3.c: New file.
6731         * dlfcn/tststatic3.c: New file.
6732         * dlfcn/tststatic4.c: New file.
6733         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
6734         (tests-static): Likewise.
6735         (modules-names): Add modstatic3.
6736         (tststatic3-ENV, tststatic4-ENV): New variables.
6737         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
6738         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
6739
6740 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
6741
6742         * configure.in (CC): Require GCC version 4.4 or later.
6743         * configure: Regenerated.
6744         * manual/install.texi (Tools for Compilation): Update GCC version
6745         requirement.
6746         * INSTALL: Regenerated.
6747
6748 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6749
6750         [BZ #15674]
6751         * string/test-memcmp.c (check2): New.
6752         (main): Call check2.
6753
6754         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
6755
6756 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
6757
6758         [BZ #15022]
6759         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
6760         over to...
6761         (dl_open_worker) [!SHARED]: ... here.
6762
6763 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6764
6765         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
6766
6767 2013-06-25  Richard Henderson  <rth@redhat.com>
6768
6769         * locale/programs/locarchive.c: Include <libc-internal.h>
6770
6771 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
6772
6773         * manual/texinfo.tex: Update to version 2013-06-21.17, with
6774         trailing whitespace removed.
6775
6776 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
6777
6778         [BZ #10283]
6779         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
6780         * locale/programs/locarchive.c: Include libc-mmap.h.
6781         (prepare_address_space): Take two new outputs (the mmap base and len).
6782         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
6783         values.
6784         (create_archive): Declare new mmap base and len values for
6785         prepare_address_space, and store the result in ah.
6786         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
6787         (enlarge_archive): If ah->mmap_base is not NULL, use that and
6788         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
6789         Declare new mmap base and len values for
6790         prepare_address_space, and store the result in new_ah.
6791         (open_archive): Declare new mmap base and len values for
6792         prepare_address_space, and store the result in ah.
6793         (close_archive): If ah->mmap_base is not NULL, use that and
6794         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
6795         * sysdeps/generic/libc-mmap.h: New file.
6796
6797 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
6798
6799         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
6800         (ALIGN_UP): Likewise.
6801         (PTR_ALIGN_DOWN): Likewise.
6802         (PTR_ALIGN_UP): Likewise.
6803
6804 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6805
6806         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
6807         entry mapped to PPC_PLATFORM_POWER8.
6808         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
6809         POWER8.
6810         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
6811         (_dl_string_platform): Add case for exporting platform position for
6812         POWER8.
6813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
6814         search path to sysdeps/powerpc/powerpc32/power8 directory.
6815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
6816         search path to sysdeps/powerpc/powerpc64/power8 directory.
6817         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
6818         power7 directories.
6819         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
6820         power7 directories.
6821
6822 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6823
6824         * INSTALL: Regenerate.
6825
6826         * nscd/connections.c (nscd_init): Fix comment.
6827
6828 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
6829
6830         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
6831
6832         [BZ #15667]
6833         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
6834         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
6835
6836 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
6837
6838         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
6839         DL_DST_REQ_STATIC.
6840         (DL_DST_REQ_STATIC): Remove macro.
6841
6842 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
6843
6844         [BZ #7006]
6845         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
6846         with a shift of 0 bits.
6847
6848 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
6849
6850         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
6851         $(tststatic-ENV).
6852
6853 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6854
6855         [BZ #15655]
6856         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
6857
6858 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6859
6860         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
6861         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
6862         accepts -fno-tree-loop-distribute-patterns.
6863         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
6864         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
6865         recursive call.
6866         * string/memset.c (memset): Likewise.
6867         * string/test-memmove.c (simple_memmove): Disable loop transformation
6868         to library calls.
6869         * string/test-memset.c (simple_memset): Likewise.
6870         * benchtests/bench-memmove.c (simple_memmove): Likewise.
6871         * benchtests/bench-memset.c (simple_memset): Likewise.
6872         * configure: Regenerated.
6873
6874 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
6875
6876         * math/test-misc.c (main): Ignore fesetround failure when failures
6877         of subsequent rounding tests would be ignored.
6878
6879         [BZ #15654]
6880         * math/fedisblxcpt.c (fedisableexcept): Return 0.
6881         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
6882         * math/fegetenv.c (__fegetenv): Return 0.
6883         * math/fegetexcept.c (fegetexcept): Return 0.
6884         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
6885         FE_TONEAREST.
6886         * math/feholdexcpt.c (feholdexcept): Return 0.
6887         * math/fesetenv.c (__fesetenv): Return 0.
6888         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
6889         argument FE_TONEAREST.
6890         * math/feupdateenv.c (__feupdateenv): Return 0.
6891         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
6892
6893 2013-06-18  Roland McGrath  <roland@hack.frob.com>
6894
6895         * elf/rtld-Rules (rtld-compile-command.S): New variable.
6896         (rtld-compile-command.s, rtld-compile-command.c): New variables.
6897         ($(objpfx)rtld-%.os rules): Use them.
6898
6899 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6900
6901         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
6902         fields.
6903
6904 2013-06-17  Roland McGrath  <roland@hack.frob.com>
6905
6906         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
6907         length of target pattern, then descending length of dependency pattern.
6908         * configure.in (AWK): Require gawk 3.1.2 or newer.
6909         * manual/install.texi (Tools for Compilation): Say that we do.
6910         * configure: Regenerated.
6911
6912         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
6913         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
6914         * scripts/sysd-rules.awk: ... this new script.
6915         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
6916         than a glob-style pattern.
6917
6918 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
6919
6920         * math/test-misc.c (main): Do not treat incorrectly rounded
6921         conversions as failure unless ROUNDING_TESTS passes.
6922
6923 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
6924
6925         [BZ #15631]
6926         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
6927         restore exception state around main square root computation, then
6928         check for inexactness explicitly.
6929
6930         * math/libm-test.inc (fma_test_data): Add another test.
6931
6932 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6933
6934         * manual/threads.texi (Non-POSIX Extensions): New document
6935         node.  Document pthread_getattr_default_np and
6936         pthread_setattr_default_np.
6937
6938         * Versions.def (libpthread): Add GLIBC_2.18.
6939         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
6940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6941         Likewise.
6942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6943         Likewise.
6944         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6945         Likewise.
6946         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6947         Likewise.
6948         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
6949         Likewise.
6950         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
6951         Likewise.
6952         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
6953         Likewise.
6954         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6955         Likewise.
6956         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6957         Likewise.
6958
6959 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6960
6961         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6962         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
6963
6964 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
6965             H.J. Lu  <hjl.tools@gmail.com>
6966
6967         [BZ #15627]
6968         * sysdeps/x86_64/rtld-memset.c: Remove file.
6969         * sysdeps/x86_64/rtld-memset.S: New file.
6970
6971 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
6972
6973         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
6974         (test_in_one_mode): Take arguments for whether the rounding mode
6975         is supported for each floating-point type.
6976         (do_test): Pass new arguments to test_in_one_mode using
6977         ROUNDING_TESTS.
6978
6979 2013-06-13  Roland McGrath  <roland@hack.frob.com>
6980
6981         * posix/tst-waitid.c (do_test): Distinguish different instances of
6982         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
6983         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
6984         before entering the kernel for waitpid.
6985
6986 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
6987
6988         * NEWS: Fix note on clock function precision.  Text by Roland
6989         McGrath.
6990
6991 2013-06-13  Roland McGrath  <roland@hack.frob.com>
6992
6993         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
6994         it into place only when and if the sanity check passes.
6995
6996 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
6997
6998         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
6999         output for whether conversion result is exact.  Take argument
7000         indicating whether type is IBM long double.
7001         (round_for_all): Change need_exact field to ibm_ld.
7002         * stdlib/tst-strtod-round.c (struct exactness): New type.
7003         (struct test): Change bool ld_ok field to struct exactness exact.
7004         (TEST): Update all definitions for change to field.
7005         (tests): Regenerate array contents.
7006         (test_in_one_mode): Take pointer to new field instead of old ld_ok
7007         field value.  Check for IBM long double here.
7008         (do_test): Update calls to test_in_one_mode.
7009
7010 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7011
7012         [BZ #12515]
7013         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
7014         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
7015
7016 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7017
7018         [BZ #15605]
7019         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
7020         generated by the compiler on loop optimizations.
7021         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
7022         general definitions.
7023
7024 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
7025
7026         * math/bug-nextafter.c: Include <math-tests.h>.
7027         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7028         the relevant type.
7029         * math/bug-nexttoward.c: Include <math-tests.h>.
7030         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7031         the relevant type.
7032         * math/test-misc.c: Include <math-tests.h>.
7033         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7034         the relevant type.
7035
7036 2013-06-12  Andreas Jaeger  <aj@suse.de>
7037
7038         * po/ia.po: Update Interlingua translation from translation
7039         project.
7040
7041 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
7042
7043         * include/fenv.h: Include stdbool.h.
7044         (struct rm_ctx): New structure.
7045         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
7046         Define macro.
7047         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
7048         (SET_RESTORE_ROUNDF): Likewise.
7049         (SET_RESTORE_ROUNDL): Likewise.
7050         (SET_RESTORE_ROUND_NOEX): Likewise.
7051         (SET_RESTORE_ROUND_NOEXF): Likewise.
7052         (SET_RESTORE_ROUND_NOEXL): Likewise.
7053         (SET_RESTORE_ROUND_53BIT): Likewise.
7054         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
7055         (libc_feresetround_noexf_ctx): Likewise.
7056         (libc_feresetround_noexl_ctx): Likewise.
7057         (libc_feholdsetround_53bit_ctx): Likewise.
7058         (libc_feresetround_53bit_ctx): Likewise.
7059         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
7060         (libc_feholdexcept_setround_sse_ctx): New function.
7061         (libc_fesetenv_sse_ctx): Likewise.
7062         (libc_feupdateenv_sse_ctx): Likewise.
7063         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
7064         (libc_feholdexcept_setround_387_ctx): Likewise.
7065         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
7066         (libc_feholdsetround_387_prec_ctx): Likewise.
7067         (libc_feholdsetround_387_ctx): Likewise.
7068         (libc_feholdsetround_387_53bit_ctx): Likewise.
7069         (libc_feholdsetround_sse_ctx): Likewise.
7070         (libc_feresetround_sse_ctx): Likewise.
7071         (libc_feresetround_387_ctx): Likewise.
7072         (libc_feupdateenv_387_ctx): Likewise.
7073         (libc_feholdexcept_setroundf_ctx): Define macro.
7074         (libc_fesetenvf_ctx): Likewise.
7075         (libc_feupdateenvf_ctx): Likewise.
7076         (libc_feholdsetroundf_ctx): Likewise.
7077         (libc_feresetroundf_ctx): Likewise.
7078         (libc_feholdexcept_setround_ctx): Likewise.
7079         (libc_fesetenv_ctx): Likewise.
7080         (libc_feupdateenv_ctx): Likewise.
7081         (libc_feholdsetround_ctx): Likewise.
7082         (libc_feresetround_ctx): Likewise.
7083         (libc_feholdexcept_setroundl_ctx): Likewise.
7084         (libc_feupdateenvl_ctx): Likewise.
7085         (libc_feholdsetroundl_ctx): Likewise.
7086         (libc_feresetroundl_ctx): Likewise.
7087         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
7088         (libc_feresetround_53bit_ctx): Likewise.
7089
7090 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7091
7092         * locale/iso-639.def: Convert to UTF-8.
7093
7094 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
7095
7096         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
7097         (EXCEPTION_TESTS_double): Likewise.
7098         (EXCEPTION_TESTS_long_double): Likewise.
7099         (EXCEPTION_TESTS): Likewise.
7100         * math/libm-test.inc (test_exceptions): Only test exceptions if
7101         EXCEPTION_TESTS (FLOAT).
7102
7103 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7104
7105         * benchtests/Makefile (string-bench): Add strcpy_chk and
7106         stpcpy_chk.
7107         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
7108         * benchtests/bench-stpcpy_chk.c: New file.
7109         * benchtests/bench-strcpy_chk-ifunc.c: New file.
7110         * benchtests/bench-strcpy_chk.c: New file.
7111         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
7112         code.
7113         (do_test): Likewise.
7114
7115 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7116
7117         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
7118         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
7119         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
7120         with tabs where appropriate.
7121         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
7122         dl-procinfo.h.
7123         [PPC_PLATFORM_PPC440]: Likewise.
7124         [PPC_PLATFORM_PPC464]: Likewise.
7125         [PPC_PLATFORM_PPC476]: Likewise.
7126         (_dl_string_platform): Add support for detecting ppc405, ppc440,
7127         ppc464, and ppc476 platform strings merging from ports/
7128         dl-procinfo.h.
7129
7130 2013-06-11  Andreas Schwab  <schwab@suse.de>
7131
7132         [BZ #14991]
7133         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
7134         (from_ucs4_idx): Regenerate.
7135         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
7136         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
7137         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
7138         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
7139         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
7140         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
7141         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
7142         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
7143         from FROM_LOOP and TO_LOOP specific macros.
7144         (BODY): Handle combining characters.
7145         * iconvdata/BIG5HKSCS.irreversible: Update.
7146         * iconvdata/BIG5HKSCS.precomposed: New file.
7147         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
7148         characters.
7149         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
7150
7151 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7152
7153         * include/sys/time.h: Fix indentation and add copyright header.
7154
7155         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
7156         (do_test): Likewise.
7157         * string/test-memchr.c (do_one_test): Likewise.
7158         (do_test): Likewise.
7159         * string/test-memcmp.c (do_one_test): Likewise.
7160         (do_test): Likewise.
7161         * string/test-memcpy.c (do_one_test): Likewise.
7162         (do_test): Likewise.
7163         * string/test-memmem.c (do_one_test): Likewise.
7164         (do_test): Likewise.
7165         (do_random_tests): Likewise.
7166         * string/test-memmove.c (do_one_test): Likewise.
7167         (do_test): Likewise.
7168         * string/test-memset.c (do_one_test): Likewise.
7169         (do_test): Likewise.
7170         * string/test-rawmemchr.c (do_one_test): Likewise.
7171         (do_test): Likewise.
7172         * string/test-strcasecmp.c (do_one_test): Likewise.
7173         (do_test): Likewise.
7174         * string/test-strcasestr.c (do_one_test): Likewise.
7175         (do_test): Likewise.
7176         * string/test-strcat.c (do_one_test): Likewise.
7177         (do_test): Likewise.
7178         * string/test-strchr.c (do_one_test): Likewise.
7179         (do_test): Likewise.
7180         * string/test-strcmp.c (do_one_test): Likewise.
7181         (do_test): Likewise.
7182         * string/test-strcpy.c (do_one_test): Likewise.
7183         (do_test): Likewise.
7184         * string/test-string.h: Likewise.
7185         (test_init): Likewise.
7186         * string/test-strlen.c (do_one_test): Likewise.
7187         (do_test): Likewise.
7188         * string/test-strncasecmp.c (do_one_test): Likewise.
7189         (do_test): Likewise.
7190         * string/test-strncat.c (do_one_test): Likewise.
7191         (do_test): Likewise.
7192         * string/test-strncmp.c (do_one_test): Likewise.
7193         (do_test_limit): Likewise.
7194         (do_test): Likewise.
7195         * string/test-strncpy.c (do_one_test): Likewise.
7196         (do_test): Likewise.
7197         * string/test-strnlen.c (do_one_test): Likewise.
7198         (do_test): Likewise.
7199         * string/test-strpbrk.c (do_one_test): Likewise.
7200         (do_test): Likewise.
7201         * string/test-strrchr.c (do_one_test): Likewise.
7202         (do_test): Likewise.
7203         * string/test-strspn.c (do_one_test): Likewise.
7204         (do_test): Likewise.
7205         * string/test-strstr.c (do_one_test): Likewise.
7206         (do_test): Likewise.
7207
7208         * benchtests/Makefile (string-bench): Add string benchmarks.
7209         * benchtests/bench-bcopy-ifunc.c: New file.
7210         * benchtests/bench-bcopy.c: New file.
7211         * benchtests/bench-bzero-ifunc.c: New file.
7212         * benchtests/bench-bzero.c: New file.
7213         * benchtests/bench-memccpy-ifunc.c: New file.
7214         * benchtests/bench-memccpy.c: New file.
7215         * benchtests/bench-memchr-ifunc.c: New file.
7216         * benchtests/bench-memchr.c: New file.
7217         * benchtests/bench-memcmp-ifunc.c: New file.
7218         * benchtests/bench-memcmp.c: New file.
7219         * benchtests/bench-memmem-ifunc.c: New file.
7220         * benchtests/bench-memmem.c: New file.
7221         * benchtests/bench-memmove-ifunc.c: New file.
7222         * benchtests/bench-memmove.c: New file.
7223         * benchtests/bench-mempcpy-ifunc.c: New file.
7224         * benchtests/bench-mempcpy.c: New file.
7225         * benchtests/bench-memset-ifunc.c: New file.
7226         * benchtests/bench-memset.c: New file.
7227         * benchtests/bench-rawmemchr-ifunc.c: New file.
7228         * benchtests/bench-rawmemchr.c: New file.
7229         * benchtests/bench-stpcpy-ifunc.c: New file.
7230         * benchtests/bench-stpcpy.c: New file.
7231         * benchtests/bench-stpncpy-ifunc.c: New file.
7232         * benchtests/bench-stpncpy.c: New file.
7233         * benchtests/bench-strcasecmp-ifunc.c: New file.
7234         * benchtests/bench-strcasecmp.c: New file.
7235         * benchtests/bench-strcasestr-ifunc.c: New file.
7236         * benchtests/bench-strcasestr.c: New file.
7237         * benchtests/bench-strcat-ifunc.c: New file.
7238         * benchtests/bench-strcat.c: New file.
7239         * benchtests/bench-strchr-ifunc.c: New file.
7240         * benchtests/bench-strchr.c: New file.
7241         * benchtests/bench-strchrnul-ifunc.c: New file.
7242         * benchtests/bench-strchrnul.c: New file.
7243         * benchtests/bench-strcmp-ifunc.c: New file.
7244         * benchtests/bench-strcmp.c: New file.
7245         * benchtests/bench-strcpy-ifunc.c: New file.
7246         * benchtests/bench-strcpy.c: New file.
7247         * benchtests/bench-strcspn-ifunc.c: New file.
7248         * benchtests/bench-strcspn.c: New file.
7249         * benchtests/bench-strlen-ifunc.c: New file.
7250         * benchtests/bench-strlen.c: New file.
7251         * benchtests/bench-strncasecmp-ifunc.c: New file.
7252         * benchtests/bench-strncasecmp.c: New file.
7253         * benchtests/bench-strncat-ifunc.c: New file.
7254         * benchtests/bench-strncat.c: New file.
7255         * benchtests/bench-strncmp-ifunc.c: New file.
7256         * benchtests/bench-strncmp.c: New file.
7257         * benchtests/bench-strncpy-ifunc.c: New file.
7258         * benchtests/bench-strncpy.c: New file.
7259         * benchtests/bench-strnlen-ifunc.c: New file.
7260         * benchtests/bench-strnlen.c: New file.
7261         * benchtests/bench-strpbrk-ifunc.c: New file.
7262         * benchtests/bench-strpbrk.c: New file.
7263         * benchtests/bench-strrchr-ifunc.c: New file.
7264         * benchtests/bench-strrchr.c: New file.
7265         * benchtests/bench-strspn-ifunc.c: New file.
7266         * benchtests/bench-strspn.c: New file.
7267         * benchtests/bench-strstr-ifunc.c: New file.
7268         * benchtests/bench-strstr.c: New file.
7269
7270         * benchtests/Makefile: Disable parallel execution of targets.
7271         (string-bench): Add memcpy.
7272         (benchset): New variable to store a list of benchmark sets.
7273         (bench-func): Renamed from bench.
7274         (bench-set): New target.
7275         (bench): Depend on bench-func and bench-set.
7276         * benchtests/README: Add section on benchmark sets.
7277         * benchtests/bench-memcpy-ifunc.c: New file.
7278         * benchtests/bench-memcpy.c: New file.
7279         * benchtests/bench-string.h: New file.
7280
7281 2013-06-11  Andreas Schwab  <schwab@suse.de>
7282
7283         [BZ #15577]
7284         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
7285         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
7286         values in the triple.
7287         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
7288         terminator in the group key.
7289
7290 2013-06-11  Andreas Jaeger  <aj@suse.de>
7291
7292         * po/zh_TW.po: Update Chinese (traditional) translation from
7293         translation project.
7294
7295 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7296
7297         * include/time.h (__clock_gettime): Add libc_hidden_proto.
7298         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
7299         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
7300         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7301         (clock_getcpuclockid): Likewise.
7302         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
7303         Add weak_alias and libc_hidden_def.
7304         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
7305         * rt/clock_gettime.c (clock_gettime): Rename to
7306         __clock_gettime.  Add weak_alias and libc_hidden_def.
7307         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
7308         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
7309         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
7310         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
7311         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
7312         Likewise.
7313         * rt/clock_settime.c (clock_settime): Rename to
7314         __clock_settime.  Add weak_alias and libc_hidden_def.
7315         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
7316
7317 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
7318
7319         * mach/err_boot.sub: Remove trailing whitespace.
7320         * mach/err_ipc.sub: Likewise.
7321         * mach/err_mach.sub: Likewise.
7322
7323         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
7324         (ROUNDING_TESTS_double): Likewise.
7325         (ROUNDING_TESTS_long_double): Likewise.
7326         (ROUNDING_TESTS): Likewise.
7327         * math/libm-test.inc: Include <math-tests.h>.
7328         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
7329         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
7330         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7331         (IF_ROUND_INIT_FE_UPWARD): Likewise.
7332
7333 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7334
7335         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
7336         of assigning.
7337
7338 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
7339
7340         * sysdeps/gnu/errlist.awk: Do not generate space at end of
7341         otherwise empty TRANS lines.
7342         * sysdeps/gnu/errlist.c: Regenerated.
7343
7344         * catgets/gencat.c (error_print): Use (void) in function
7345         definition.
7346         * crypt/crypt_util.c (__init_des): Likewise.
7347         * crypt/speeds.c (Stop): Likewise.
7348         (main): Likewise.
7349         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
7350         * inet/ruserpass.c (token): Likewise.
7351         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
7352         * intl/localealias.c (extend_alias_table): Likewise.
7353         * intl/plural-exp.c (init_germanic_plural): Likewise.
7354         * libio/fcloseall.c (__fcloseall): Likewise.
7355         * libio/genops.c (_IO_flush_all): Likewise.
7356         (_IO_flush_all_linebuffered): Likewise.
7357         (_IO_cleanup): Likewise.
7358         (_IO_iter_begin): Likewise.
7359         (_IO_iter_end): Likewise.
7360         (_IO_list_lock): Likewise.
7361         (_IO_list_unlock): Likewise.
7362         (_IO_list_resetlock): Likewise.
7363         * libio/getchar.c (getchar): Likewise.
7364         * libio/getchar_u.c (getchar_unlocked): Likewise.
7365         * libio/getwchar.c (getwchar): Likewise.
7366         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7367         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
7368         * login/getpt.c (__getpt): Likewise.
7369         * login/tst-utmp.c (main): Likewise.
7370         * malloc/hooks.c (__malloc_check_init): Likewise.
7371         * malloc/malloc.c (__malloc_stats): Likewise.
7372         * malloc/mtrace.c (tr_break): Likewise.
7373         (mtrace): Likewise.
7374         (muntrace): Likewise.
7375         * misc/fstab.c (endfsent): Likewise.
7376         * misc/getclktck.c (__getclktck): Likewise.
7377         * misc/getdtsz.c (__getdtablesize): Likewise.
7378         * misc/gethostid.c (gethostid): Likewise.
7379         * misc/getpagesize.c (__getpagesize): Likewise.
7380         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
7381         (__get_nprocs): Likewise.
7382         (__get_phys_pages): Likewise.
7383         (__get_avphys_pages): Likewise.
7384         * misc/getttyent.c (getttyent): Likewise.
7385         (setttyent): Likewise.
7386         (endttyent): Likewise.
7387         * misc/getusershell.c (getusershell): Likewise.
7388         (endusershell): Likewise.
7389         (setusershell): Likewise.
7390         (initshells): Likewise.
7391         * misc/hsearch.c (__hdestroy): Likewise.
7392         * misc/sync.c (sync): Likewise.
7393         * misc/syslog.c (closelog_internal): Likewise.
7394         (closelog): Likewise.
7395         * misc/ttyslot.c (ttyslot): Likewise.
7396         * misc/vhangup.c (vhangup): Likewise.
7397         * posix/fork.c (__fork): Likewise.
7398         * posix/getegid.c (__getegid): Likewise.
7399         * posix/geteuid.c (__geteuid): Likewise.
7400         * posix/getgid.c (__getgid): Likewise.
7401         * posix/getpid.c (__getpid): Likewise.
7402         * posix/getppid.c (__getppid): Likewise.
7403         * posix/getuid.c (__getuid): Likewise.
7404         * posix/pause.c (pause): Likewise.
7405         * posix/setpgrp.c (setpgrp): Likewise.
7406         * posix/setsid.c (__setsid): Likewise.
7407         * posix/test-vfork.c (noop): Likewise.
7408         * resolv/gethnamaddr.c (_endhtent): Likewise.
7409         (_gethtent): Likewise.
7410         (ht_endhostent): Likewise.
7411         (gethostent): Likewise.
7412         (dns_service): Likewise.
7413         * stdlib/drand48.c (drand48): Likewise.
7414         * stdlib/lrand48.c (lrand48): Likewise.
7415         * stdlib/mrand48.c (mrand48): Likewise.
7416         * stdlib/rand.c (rand): Likewise.
7417         * stdlib/random.c (__random): Likewise.
7418         * stdlib/setenv.c (clearenv): Likewise.
7419         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
7420         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
7421         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
7422         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
7423         (__get_nprocs): Likewise.
7424         (__get_phys_pages): Likewise.
7425         (__get_avphys_pages): Likewise.
7426         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
7427         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
7428         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
7429         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
7430         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
7431         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
7432         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
7433         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
7434         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
7435         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
7436         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
7437         * sysdeps/mach/hurd/sync.c (sync): Likewise.
7438         * sysdeps/posix/clock.c (clock): Likewise.
7439         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
7440         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
7441         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
7442         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7443         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
7444         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7445         (__get_nprocs_conf): Likewise.
7446         (__get_phys_pages): Likewise.
7447         (__get_avphys_pages): Likewise.
7448         * time/clock.c (clock): Likewise.
7449         * time/tzset.c (__tzname_max): Likewise.
7450
7451 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
7452
7453         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
7454         (__bswap_32): Do not use "register".
7455         * crypt/crypt.c (_ufc_doit_r): Likewise.
7456         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7457         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7458         * gmon/gmon.c (__monstartup): Likewise.
7459         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
7460         * hurd/hurdmalloc.c (more_memory): Likewise.
7461         (malloc): Likewise.
7462         (free): Likewise.
7463         (realloc): Likewise.
7464         (malloc_fork_prepare): Likewise.
7465         (malloc_fork_parent): Likewise.
7466         (malloc_fork_child): Likewise.
7467         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
7468         (_svcauth_des): Likewise.
7469         * inet/inet_lnaof.c (inet_lnaof): Likewise.
7470         * inet/inet_net.c (inet_network): Likewise.
7471         * inet/inet_netof.c (inet_netof): Likewise.
7472         * inet/rcmd.c (__validuser2_sa): Likewise.
7473         * io/fts.c (fts_open): Likewise.
7474         (fts_load): Likewise.
7475         (fts_close): Likewise.
7476         (fts_read): Likewise.
7477         (fts_children): Likewise.
7478         (fts_build): Likewise.
7479         (fts_stat): Likewise.
7480         (fts_sort): Likewise.
7481         (fts_alloc): Likewise.
7482         (fts_lfree): Likewise.
7483         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
7484         (_IO_file_xsgetn): Likewise.
7485         (_IO_file_xsgetn_mmap): Likewise.
7486         * libio/iofopncook.c (_IO_cookie_read): Likewise.
7487         (_IO_cookie_write): Likewise.
7488         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
7489         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
7490         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
7491         * malloc/obstack.c (_obstack_begin): Likewise.
7492         (_obstack_begin_1): Likewise.
7493         (_obstack_newchunk): Likewise.
7494         (_obstack_allocated_p): Likewise.
7495         (obstack_free): Likewise.
7496         (_obstack_memory_used): Likewise.
7497         * misc/getttyent.c (getttynam): Likewise.
7498         (getttyent): Likewise.
7499         (skip): Likewise.
7500         (value): Likewise.
7501         * misc/getusershell.c (initshells): Likewise.
7502         * misc/syslog.c (__vsyslog_chk): Likewise.
7503         * misc/ttyslot.c (ttyslot): Likewise.
7504         * nis/nis_hash.c (__nis_hash): Likewise.
7505         * posix/fnmatch_loop.c (FCT): Likewise.
7506         * posix/getconf.c (print_all): Likewise.
7507         (main): Likewise.
7508         * posix/getopt.c (exchange): Likewise.
7509         * posix/glob.c (globfree): Likewise.
7510         (prefix_array): Likewise.
7511         (__glob_pattern_type): Likewise.
7512         * resolv/arpa/nameser.h (NS_GET16): Likewise.
7513         (NS_GET32): Likewise.
7514         (NS_PUT16): Likewise.
7515         (NS_PUT32): Likewise.
7516         * resolv/gethnamaddr.c (getanswer): Likewise.
7517         (gethostbyname2): Likewise.
7518         (gethostbyaddr): Likewise.
7519         (_gethtent): Likewise.
7520         (_gethtbyname2): Likewise.
7521         (_gethtbyaddr): Likewise.
7522         * resolv/ns_print.c (dst_s_get_int16): Likewise.
7523         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
7524         * resolv/res_init.c (__res_vinit): Likewise.
7525         (net_mask): Likewise.
7526         * resolv/res_mkquery.c (outchar): Likewise.
7527         (PRINT): Likewise.
7528         * stdio-common/printf_fp.c (outchar): Likewise.
7529         (PRINT): Likewise.
7530         * stdio-common/printf_fphex.c (outchar): Likewise.
7531         (PRINT): Likewise.
7532         * stdio-common/printf_size.c (outchar): Likewise.
7533         (PRINT): Likewise.
7534         * stdio-common/test_rdwr.c (main): Likewise.
7535         * stdio-common/tfformat.c (matches): Likewise.
7536         * stdio-common/vfprintf.c (outchar): Likewise.
7537         (printf_unknown): Likewise.
7538         (buffered_vfprintf): Likewise.
7539         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7540         * stdio-common/xbug.c (AppendToBuffer): Likewise.
7541         (ReadFile): Likewise.
7542         * stdlib/qsort.c (SWAP): Likewise.
7543         (_quicksort): Likewise.
7544         * stdlib/setenv.c (__add_to_environ): Likewise.
7545         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7546         * stdlib/strtol_l.c (__strtol_l): Likewise.
7547         * stdlib/tst-strtod.c (main): Likewise.
7548         * stdlib/tst-strtol.c (main): Likewise.
7549         * stdlib/tst-strtoll.c (main): Likewise.
7550         * string/bits/string2.h (__strcmp_cc): Likewise.
7551         (__strcmp_cg): Likewise.
7552         (__strcspn_c1): Likewise.
7553         (__strcspn_c2): Likewise.
7554         (__strcspn_c3): Likewise.
7555         (__strspn_c1): Likewise.
7556         (__strspn_c2): Likewise.
7557         (__strspn_c3): Likewise.
7558         (__strsep_1c): Likewise.
7559         (__strsep_2c): Likewise.
7560         (__strsep_3c): Likewise.
7561         * string/memccpy.c (__memccpy): Likewise.
7562         * string/stpcpy.c (__stpcpy): Likewise.
7563         * string/strcmp.c (strcmp): Likewise.
7564         * string/strrchr.c (strrchr): Likewise.
7565         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
7566         Likewise.
7567         * sysdeps/mach/hurd/getcwd.c
7568         (_hurd_canonicalize_directory_name_internal): Likewise.
7569         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
7570         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
7571         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
7572         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
7573         Likewise, in both definitions.
7574         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
7575         definitions.
7576         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
7577         64] (__bswap_64): Likewise.
7578         * time/test_time.c (main): Likewise.
7579         * time/tzfile.c (__tzfile_read): Likewise.
7580         (__tzfile_compute): Likewise.
7581         * time/tzset.c (__tzset_parse_tz): Likewise.
7582         (tzset_internal): Likewise.
7583         (compute_change): Likewise.
7584         * wcsmbs/wcscat.c (__wcscat): Likewise.
7585         * wcsmbs/wcschr.c (wcschr): Likewise.
7586         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
7587         * wcsmbs/wcscspn.c (wcscspn): Likewise.
7588         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
7589         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
7590         * wcsmbs/wcsspn.c (wcsspn): Likewise.
7591         * wcsmbs/wcsstr.c (wcsstr): Likewise.
7592         * wcsmbs/wmemchr.c (wmemchr): Likewise.
7593         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7594         * wcsmbs/wmemset.c (wmemset): Likewise.
7595
7596 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
7597
7598         * scripts/config.guess: Update to version 2013-05-16.
7599         * scripts/config.sub: Update to version 2013-04-24.
7600         * scripts/install-sh: Update to version 2011-11-20.07.
7601         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
7602         * scripts/move-if-change: Update to version 2012-01-06 07:23.
7603
7604 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
7605
7606         * debug/fgetws_u_chk.c: Fix leading whitespaces.
7607         * elf/sln.c: Likewise.
7608         * hurd/hurd/ioctl.h: Likewise.
7609         * hurd/hurdmalloc.c: Likewise.
7610         * hurd/xattr.c: Likewise.
7611         * include/shlib-compat.h: Likewise.
7612         * inet/ruserpass.c: Likewise.
7613         * libio/iofgets_u.c: Likewise.
7614         * libio/iofgetws_u.c: Likewise.
7615         * locale/programs/ld-identification.c: Likewise.
7616         * locale/programs/ld-time.c: Likewise.
7617         * mach/msg-destroy.c: Likewise.
7618         * nss/nss_files/files-netgrp.c: Likewise.
7619         * resolv/res_data.c: Likewise.
7620         * soft-fp/op-1.h: Likewise.
7621         * soft-fp/op-2.h: Likewise.
7622         * soft-fp/op-4.h: Likewise.
7623         * soft-fp/op-common.h: Likewise.
7624         * stdio-common/printf_fphex.c: Likewise.
7625         * stdlib/strtod_l.c: Likewise.
7626         * sunrpc/rpc/clnt.h: Likewise.
7627         * sysdeps/generic/framestate.c: Likewise.
7628         * sysdeps/i386/bsd-_setjmp.S: Likewise.
7629         * sysdeps/i386/bsd-setjmp.S: Likewise.
7630         * sysdeps/i386/__longjmp.S: Likewise.
7631         * sysdeps/i386/setjmp.S: Likewise.
7632         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7633         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7634         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7635         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7636         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7637         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
7638         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7639         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7640         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7641         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
7642         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
7643         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7644         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7645         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7646         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7647         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7648         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7649         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
7650         * sysdeps/ieee754/support.c: Likewise.
7651         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7652         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
7653         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
7654         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
7655         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
7656         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
7657         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
7658         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
7659         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
7660         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
7661         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
7662         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
7663         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
7664         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
7665         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
7666         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
7667         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
7669
7670 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
7671
7672         * posix/transbug.c: Remove executable mode.
7673
7674 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
7675
7676         * crypt/speeds.c: Remove trailing whitespace.
7677         * dlfcn/default.c: Likewise.
7678         * elf/ifuncdep2.c: Likewise.
7679         * elf/ifuncmain1.c: Likewise.
7680         * elf/ifuncmain1vis.c: Likewise.
7681         * elf/testobj.h: Likewise.
7682         * elf/tst-stackguard1.c: Likewise.
7683         * gmon/sys/gmon.h: Likewise.
7684         * hurd/hurdmsg.c: Likewise.
7685         * hurd/new-fd.c: Likewise.
7686         * hurd/ports-get.c: Likewise.
7687         * iconvdata/ibm1008_420.c: Likewise.
7688         * inet/tst-getni1.c: Likewise.
7689         * inet/tst-getni2.c: Likewise.
7690         * libio/ioungetc.c: Likewise.
7691         * libio/wfiledoalloc.c: Likewise.
7692         * manual/libm-err-tab.pl: Likewise.
7693         * math/w_dremf.c: Likewise.
7694         * misc/ftruncate.c: Likewise.
7695         * posix/bug-glob2.c: Likewise.
7696         * posix/tst-pcre.c: Likewise.
7697         * posix/wait4.c: Likewise.
7698         * resolv/README: Likewise.
7699         * resolv/res_debug.h: Likewise.
7700         * resolv/tst-inet_ntop.c: Likewise.
7701         * setjmp/bug269-setjmp.c: Likewise.
7702         * soft-fp/extended.h: Likewise.
7703         * soft-fp/op-1.h: Likewise.
7704         * soft-fp/op-2.h: Likewise.
7705         * soft-fp/op-4.h: Likewise.
7706         * soft-fp/op-8.h: Likewise.
7707         * soft-fp/testit.c: Likewise.
7708         * stdio-common/bug16.c: Likewise.
7709         * stdlib/random.c: Likewise.
7710         * sunrpc/rpcsvc/rquota.x: Likewise.
7711         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
7712         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7713         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7714         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7715         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7716         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7717         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7718         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7719         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7720         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7721         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7722         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
7723         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7724         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
7725         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7726         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
7727         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
7728         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7729         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
7730         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7731         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7732         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7733         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
7734         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
7735         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
7736         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
7737         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
7738         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7739         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7740         * sysdeps/ieee754/s_lib_version.c: Likewise.
7741         * sysdeps/mach/hurd/check_fds.c: Likewise.
7742         * sysdeps/mach/hurd/getsockname.c: Likewise.
7743         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
7744         * sysdeps/mach/hurd/recvfrom.c: Likewise.
7745         * sysdeps/powerpc/bits/link.h: Likewise.
7746         * sysdeps/powerpc/dl-procinfo.c: Likewise.
7747         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
7748         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
7749         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
7750         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
7751         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7752         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
7753         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
7754         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
7755         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
7756         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
7757         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
7758         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
7759         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
7760         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
7761         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
7762         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
7763         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
7764         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
7765         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
7766         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
7767         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
7768         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
7769         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
7770         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7771         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
7772         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
7773         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
7774         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
7775         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
7776         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
7777         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
7778         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7779         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7780         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
7781         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
7782         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
7783         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
7784         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
7785         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
7786         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
7787         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
7788         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
7789         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
7790         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
7791         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
7792         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
7793         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
7794         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
7795         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
7796         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7797         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7798         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7799         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7800         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
7801         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
7802         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
7803         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
7804         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
7805         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
7806         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
7807         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
7808         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
7809         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
7810         * sysdeps/powerpc/sysdep.h: Likewise.
7811         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
7812         * sysdeps/s390/s390-64/sub_n.S: Likewise.
7813         * sysdeps/sh/dl-trampoline.S: Likewise.
7814         * sysdeps/sh/memset.S: Likewise.
7815         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
7816         * sysdeps/sh/strlen.S: Likewise.
7817         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
7818         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
7819         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
7820         * sysdeps/sparc/sparc32/rem.S: Likewise.
7821         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
7822         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
7823         * sysdeps/sparc/sparc32/strchr.S: Likewise.
7824         * sysdeps/sparc/sparc32/udiv.S: Likewise.
7825         * sysdeps/sparc/sparc32/urem.S: Likewise.
7826         * sysdeps/sparc/sparc64/add_n.S: Likewise.
7827         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7828         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
7829         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
7830         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
7831         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
7832         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
7833         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
7834         * sysdeps/unix/bsd/times.c: Likewise.
7835         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
7836         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
7837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
7838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
7839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
7840         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7841         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
7842         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
7843         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
7844         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
7845         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
7846         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
7847         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
7848         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
7849         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
7850         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7851         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7852         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
7853         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
7854         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
7855         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
7856         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
7857         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
7858         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
7859         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
7860         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7861         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
7862         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
7863         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
7864         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
7865         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
7866         * sysdeps/x86_64/strcspn.S: Likewise.
7867
7868 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7869
7870         * locale/C-translit.h: Revert #include <stdint.h> because this is a
7871         generated file.  Regenerate properly from gen-translit.pl.
7872         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
7873         locale/C-translit.h.
7874
7875 2013-06-05  Andreas Schwab  <schwab@suse.de>
7876
7877         [BZ #15100]
7878         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
7879         week as 6 instead of -1.
7880         * time/tst-strptime.c (day_tests): Add test case.
7881
7882 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7883
7884         * sysdeps/generic/math_private.h
7885         (libc_feholdexcept_setround_53bit): Replace with
7886         libc_feholdsetround_53bit.
7887         (libc_feupdateenv_53bit): Replace with
7888         libc_feresetround_53bit.
7889         (SET_RESTORE_ROUND_53BIT): Adjust.
7890
7891 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
7892
7893         * string/test-strchrnul.c: Add copyright header.
7894
7895         * posix/tst-getaddrinfo4.c: Increase test timeout.
7896
7897 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
7898
7899         [BZ #15536]
7900         * math/libm-test.inc (MAX_EXP): Remove
7901         (MIN_EXP): Define.
7902         (ulp): Use MIN_EXP - MANT_DIG.
7903         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
7904
7905 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
7906
7907         * po/be.po: Revert last change.
7908         * po/zh_CN.po: Likewise.
7909         * po/header.pot: Likewise.
7910
7911 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
7912
7913         * Makefile ($(common-objpfx)linkobj/libc.so): Define
7914         link-libc-deps to empty as target-specific variable.
7915         * Makerules (link-libc-args): New variable.
7916         (libc-for-link): Likewise.
7917         (link-libc-deps): Likewise.
7918         (lib%.so): Depend on $(link-libc-deps).  Link with
7919         $(link-libc-args).
7920         (build-module): Link with $(link-libc-args).
7921         (build-module-asneeded): Likewise.
7922         (build-module-helper-objlist): Filter out $(link-libc-deps) from
7923         list of objects.
7924         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
7925         target-specific variable.
7926         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
7927         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
7928         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
7929         libc.
7930         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
7931         libc and ld.so.
7932         ($(objpfx)libpcprofile.so): Likewise.
7933         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
7934         libc_nonshared.a.
7935         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
7936         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
7937         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
7938         $(link-libc-deps).
7939         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
7940         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
7941         * login/Makefile ($(objpfx)libutil.so): Likewise.
7942         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
7943         * math/Makefile ($(objpfx)libm.so): Likewise.
7944         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
7945         $(objpfx)libnsl.so): Define libc-for-link as target-specific
7946         variable instead of depending directly on libc.
7947         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
7948         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
7949         $(link-libc-deps).
7950         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
7951         libc.
7952         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
7953         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
7954         ($(objpfx)libanl.so): Likewise.
7955         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
7956         ld.so.
7957         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
7958         $(link-libc-deps).
7959         * sysdeps/i386/fpu/Makefile: Remove file.
7960         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
7961         ($(objpfx)libm.so): Remove dependency on ld.so.
7962
7963 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
7964
7965         [BZ # 15553]
7966         * nis/yp_xdr.c (XDRMAXNAME): Define.
7967         (XDRMAXRECORD): Define.
7968         (xdr_domainname): Use XDRMAXNAME.
7969         (xdr_mapname): Likewise.
7970         (xdr_peername): Likewise.
7971         (xdr_keydat): Use XDRMAXRECORD.
7972         (xdr_valdat): Likewise.
7973
7974 2013-05-30  Jeff Law  <law@redhat.com>
7975
7976         [BZ #14256]
7977         * manual/errno.texi (ESTALE): Update to account for more than
7978         just NFS file systems.
7979         * sysdeps/gnu/errlist.c: Regenerated.
7980
7981 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7982
7983         [BZ #15465]
7984         * elf/Makefile (tests): Add tst-null-argv.
7985         (modules-names):  Add tst-null-argv-lib.
7986         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
7987         (tst-null-argv-ENV): Set environment for tst-null-argv.
7988         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
7989         (RTLD_PROGNAME): New macro.
7990         * elf/tst-null-argv.c: New test case.
7991         * elf/tst-null-argv-lib.c: Library for test case.
7992         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
7993         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
7994         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
7995         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
7996         * elf/dl-init.c (call_init): Likewise.
7997         (_dl_init): Likewise.
7998         * elf/dl-load.c (print_search_path): Likewise.
7999         (_dl_map_object): Likewise.
8000         * elf/dl-lookup.c (do_lookup_x): Likewise.
8001         (add_dependency): Likewise.
8002         (_dl_lookup_symbol_x): Likewise.
8003         (_dl_debug_bindings): Likewise.
8004         * elf/dl-open.c (_dl_show_scope): Likewise.
8005         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8006         * elf/dl-version.c (match_symbol): Likewise.
8007         (_dl_check_map_versions): Likewise.
8008         * elf/rtld.c (dl_main): Likewise.
8009         (print_unresolved): Use RTLD_PROGNAME.
8010         (print_missing_version): Likewise.
8011         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8012         (elf_machine_rela): Likewise.
8013         * sysdeps/powerpc/powerpc32/dl-machine.c
8014         (__process_machine_rela): Likewise.
8015         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8016         Likewise.
8017         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
8018         Likewise.
8019         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
8020         Likewise.
8021         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8022         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
8023         Likewise.
8024         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8025         Likewise.
8026         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8027
8028 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
8029
8030         * po/be.po: Add descriptive title.
8031         * po/zh_CN.po: Likewise.
8032         * po/header.pot: Likewise.
8033
8034 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
8035
8036         * locale/programs/locarchive.c (create_archive): Inlucde fname in
8037         error message.
8038         (enlarge_archive): Likewise.
8039
8040 2013-05-28  Ben North  <ben@redfrontdoor.org>
8041
8042         * manual/arith.texi (frexp): It is the magnitude of the return
8043         value which lies in [0.5, 1), not the return value itself.
8044
8045 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8046
8047         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8048
8049 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
8050
8051         * stdio-common/bug26.c (main): Correct fscanf template.
8052
8053         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
8054         declare _dl_skip_args.
8055
8056         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
8057         Don't declare.
8058
8059         * manual/platform.texi: Add missing @end deftypefun.
8060
8061 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8062
8063         [BZ #15529]
8064         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
8065         bit of mantissa of 2^16382.
8066         * math/libm-test.inc (hypot_test_data): Add more tests.
8067
8068         * math/libm-test.inc: Add drem and pow10 to list of tested
8069         functions.
8070         (pow10_test): New function.
8071         (drem_test): Likewise.
8072         (drem_test_tonearest): Likewise.
8073         (drem_test_towardzero): Likewise.
8074         (drem_test_downward): Likewise.
8075         (drem_test_upward): Likewise.
8076         (main): Call the new functions.
8077
8078         * math/libm-test.inc (finite_test_data): Remove.
8079         (finite_test): Run tests from isfinite_test_data.
8080         (gamma_test_data): Remove.
8081         (gamma_test): Run tests from lgamma_test_data.
8082         * sysdeps/i386/fpu/libm-test-ulps: Update.
8083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8084
8085 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8086
8087         * manual/platform.texi: Add PowerPC PPR function set documentation.
8088         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
8089         implementation.
8090
8091 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
8092
8093         * math/libm-test.inc (MAX_EXP): Define.
8094         (ULPDIFF): Define.
8095         (ulp): New function.
8096         (check_float_internal): Use ULPDIFF.
8097         (cpow_test): Disable failing test.
8098         (check_ulp): Test ulp() implemetnation.
8099         (main): Call check_ulp before starting tests.
8100
8101 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8102
8103         * math/gen-libm-test.pl (generate_testfile): Do not handle
8104         START_DATA and END_DATA.
8105         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
8106         END_DATA.
8107         (acos_tonearest_test_data): Likewise.
8108         (acos_towardzero_test_data): Likewise.
8109         (acos_downward_test_data): Likewise.
8110         (acos_upward_test_data): Likewise.
8111         (acosh_test_data): Likewise.
8112         (asin_test_data): Likewise.
8113         (asin_tonearest_test_data): Likewise.
8114         (asin_towardzero_test_data): Likewise.
8115         (asin_downward_test_data): Likewise.
8116         (asin_upward_test_data): Likewise.
8117         (asinh_test_data): Likewise.
8118         (atan_test_data): Likewise.
8119         (atanh_test_data): Likewise.
8120         (atan2_test_data): Likewise.
8121         (cabs_test_data): Likewise.
8122         (cacos_test_data): Likewise.
8123         (cacosh_test_data): Likewise.
8124         (carg_test_data): Likewise.
8125         (casin_test_data): Likewise.
8126         (casinh_test_data): Likewise.
8127         (catan_test_data): Likewise.
8128         (catanh_test_data): Likewise.
8129         (cbrt_test_data): Likewise.
8130         (ccos_test_data): Likewise.
8131         (ccosh_test_data): Likewise.
8132         (ceil_test_data): Likewise.
8133         (cexp_test_data): Likewise.
8134         (cimag_test_data): Likewise.
8135         (clog_test_data): Likewise.
8136         (clog10_test_data): Likewise.
8137         (conj_test_data): Likewise.
8138         (copysign_test_data): Likewise.
8139         (cos_test_data): Likewise.
8140         (cos_tonearest_test_data): Likewise.
8141         (cos_towardzero_test_data): Likewise.
8142         (cos_downward_test_data): Likewise.
8143         (cos_upward_test_data): Likewise.
8144         (cosh_test_data): Likewise.
8145         (cosh_tonearest_test_data): Likewise.
8146         (cosh_towardzero_test_data): Likewise.
8147         (cosh_downward_test_data): Likewise.
8148         (cosh_upward_test_data): Likewise.
8149         (cpow_test_data): Likewise.
8150         (cproj_test_data): Likewise.
8151         (creal_test_data): Likewise.
8152         (csin_test_data): Likewise.
8153         (csinh_test_data): Likewise.
8154         (csqrt_test_data): Likewise.
8155         (ctan_test_data): Likewise.
8156         (ctan_tonearest_test_data): Likewise.
8157         (ctan_towardzero_test_data): Likewise.
8158         (ctan_downward_test_data): Likewise.
8159         (ctan_upward_test_data): Likewise.
8160         (ctanh_test_data): Likewise.
8161         (ctanh_tonearest_test_data): Likewise.
8162         (ctanh_towardzero_test_data): Likewise.
8163         (ctanh_downward_test_data): Likewise.
8164         (ctanh_upward_test_data): Likewise.
8165         (erf_test_data): Likewise.
8166         (erfc_test_data): Likewise.
8167         (exp_test_data): Likewise.
8168         (exp_tonearest_test_data): Likewise.
8169         (exp_towardzero_test_data): Likewise.
8170         (exp_downward_test_data): Likewise.
8171         (exp_upward_test_data): Likewise.
8172         (exp10_test_data): Likewise.
8173         (exp2_test_data): Likewise.
8174         (expm1_test_data): Likewise.
8175         (fabs_test_data): Likewise.
8176         (fdim_test_data): Likewise.
8177         (finite_test_data): Likewise.
8178         (floor_test_data): Likewise.
8179         (fma_test_data): Likewise.
8180         (fma_towardzero_test_data): Likewise.
8181         (fma_downward_test_data): Likewise.
8182         (fma_upward_test_data): Likewise.
8183         (fmax_test_data): Likewise.
8184         (fmin_test_data): Likewise.
8185         (fmod_test_data): Likewise.
8186         (fpclassify_test_data): Likewise.
8187         (frexp_test_data): Likewise.
8188         (gamma_test_data): Likewise.
8189         (hypot_test_data): Likewise.
8190         (ilogb_test_data): Likewise.
8191         (isfinite_test_data): Likewise.
8192         (isgreater_test_data): Likewise.
8193         (isgreaterequal_test_data): Likewise.
8194         (isinf_test_data): Likewise.
8195         (isless_test_data): Likewise.
8196         (islessequal_test_data): Likewise.
8197         (islessgreater_test_data): Likewise.
8198         (isnan_test_data): Likewise.
8199         (isnormal_test_data): Likewise.
8200         (issignaling_test_data): Likewise.
8201         (isunordered_test_data): Likewise.
8202         (j0_test_data): Likewise.
8203         (j1_test_data): Likewise.
8204         (jn_test_data): Likewise.
8205         (ldexp_test_data): Likewise.
8206         (lgamma_test_data): Likewise.
8207         (lrint_test_data): Likewise.
8208         (lrint_tonearest_test_data): Likewise.
8209         (lrint_towardzero_test_data): Likewise.
8210         (lrint_downward_test_data): Likewise.
8211         (lrint_upward_test_data): Likewise.
8212         (llrint_test_data): Likewise.
8213         (llrint_tonearest_test_data): Likewise.
8214         (llrint_towardzero_test_data): Likewise.
8215         (llrint_downward_test_data): Likewise.
8216         (llrint_upward_test_data): Likewise.
8217         (log_test_data): Likewise.
8218         (log10_test_data): Likewise.
8219         (log1p_test_data): Likewise.
8220         (log2_test_data): Likewise.
8221         (logb_test_data): Likewise.
8222         (logb_downward_test_data): Likewise.
8223         (lround_test_data): Likewise.
8224         (llround_test_data): Likewise.
8225         (modf_test_data): Likewise.
8226         (nearbyint_test_data): Likewise.
8227         (nextafter_test_data): Likewise.
8228         (nexttoward_test_data): Likewise.
8229         (pow_test_data): Likewise.
8230         (pow_tonearest_test_data): Likewise.
8231         (pow_towardzero_test_data): Likewise.
8232         (pow_downward_test_data): Likewise.
8233         (pow_upward_test_data): Likewise.
8234         (remainder_test_data): Likewise.
8235         (remainder_tonearest_test_data): Likewise.
8236         (remainder_towardzero_test_data): Likewise.
8237         (remainder_downward_test_data): Likewise.
8238         (remainder_upward_test_data): Likewise.
8239         (remquo_test_data): Likewise.
8240         (rint_test_data): Likewise.
8241         (rint_tonearest_test_data): Likewise.
8242         (rint_towardzero_test_data): Likewise.
8243         (rint_downward_test_data): Likewise.
8244         (rint_upward_test_data): Likewise.
8245         (round_test_data): Likewise.
8246         (scalb_test_data): Likewise.
8247         (scalbn_test_data): Likewise.
8248         (scalbln_test_data): Likewise.
8249         (signbit_test_data): Likewise.
8250         (sin_test_data): Likewise.
8251         (sin_tonearest_test_data): Likewise.
8252         (sin_towardzero_test_data): Likewise.
8253         (sin_downward_test_data): Likewise.
8254         (sin_upward_test_data): Likewise.
8255         (sincos_test_data): Likewise.
8256         (sinh_test_data): Likewise.
8257         (sinh_tonearest_test_data): Likewise.
8258         (sinh_towardzero_test_data): Likewise.
8259         (sinh_downward_test_data): Likewise.
8260         (sinh_upward_test_data): Likewise.
8261         (sqrt_test_data): Likewise.
8262         (tan_test_data): Likewise.
8263         (tan_tonearest_test_data): Likewise.
8264         (tan_towardzero_test_data): Likewise.
8265         (tan_downward_test_data): Likewise.
8266         (tan_upward_test_data): Likewise.
8267         (tanh_test_data): Likewise.
8268         (tgamma_test_data): Likewise.
8269         (trunc_test_data): Likewise.
8270         (y0_test_data): Likewise.
8271         (y1_test_data): Likewise.
8272         (yn_test_data): Likewise.
8273         (significand_test_data): Likewise.
8274
8275         * math/gen-libm-test.pl (@functions): Remove variable.
8276         (generate_testfile): Don't handle START and END lines.
8277         * math/libm-test.inc (START): New macro.
8278         (END): Likewise.
8279         (END_COMPLEX): Likewise.
8280         (acos_test): Use END macro without arguments.
8281         (acos_test_tonearest): Likewise.
8282         (acos_test_towardzero): Likewise.
8283         (acos_test_downward): Likewise.
8284         (acos_test_upward): Likewise.
8285         (acosh_test): Likewise.
8286         (asin_test): Likewise.
8287         (asin_test_tonearest): Likewise.
8288         (asin_test_towardzero): Likewise.
8289         (asin_test_downward): Likewise.
8290         (asin_test_upward): Likewise.
8291         (asinh_test): Likewise.
8292         (atan_test): Likewise.
8293         (atanh_test): Likewise.
8294         (atan2_test): Likewise.
8295         (cabs_test): Likewise.
8296         (cacos_test): Use END_COMPLEX macro without arguments.
8297         (cacosh_test): Likewise.
8298         (carg_test): Use END macro without arguments.
8299         (casin_test): Use END_COMPLEX macro without arguments.
8300         (casinh_test): Likewise.
8301         (catan_test): Likewise.
8302         (catanh_test): Likewise.
8303         (cbrt_test): Use END macro without arguments.
8304         (ccos_test): Use END_COMPLEX macro without arguments.
8305         (ccosh_test): Likewise.
8306         (ceil_test): Use END macro without arguments.
8307         (cexp_test): Use END_COMPLEX macro without arguments.
8308         (cimag_test): Use END macro without arguments.
8309         (clog_test): Use END_COMPLEX macro without arguments.
8310         (clog10_test): Likewise.
8311         (conj_test): Likewise.
8312         (copysign_test): Use END macro without arguments.
8313         (cos_test): Likewise.
8314         (cos_test_tonearest): Likewise.
8315         (cos_test_towardzero): Likewise.
8316         (cos_test_downward): Likewise.
8317         (cos_test_upward): Likewise.
8318         (cosh_test): Likewise.
8319         (cosh_test_tonearest): Likewise.
8320         (cosh_test_towardzero): Likewise.
8321         (cosh_test_downward): Likewise.
8322         (cosh_test_upward): Likewise.
8323         (cpow_test): Use END_COMPLEX macro without arguments.
8324         (cproj_test): Likewise.
8325         (creal_test): Use END macro without arguments.
8326         (csin_test): Use END_COMPLEX macro without arguments.
8327         (csinh_test): Likewise.
8328         (csqrt_test): Likewise.
8329         (ctan_test): Likewise.
8330         (ctan_test_tonearest): Likewise.
8331         (ctan_test_towardzero): Likewise.
8332         (ctan_test_downward): Likewise.
8333         (ctan_test_upward): Likewise.
8334         (ctanh_test): Likewise.
8335         (ctanh_test_tonearest): Likewise.
8336         (ctanh_test_towardzero): Likewise.
8337         (ctanh_test_downward): Likewise.
8338         (ctanh_test_upward): Likewise.
8339         (erf_test): Use END macro without arguments.
8340         (erfc_test): Likewise.
8341         (exp_test): Likewise.
8342         (exp_test_tonearest): Likewise.
8343         (exp_test_towardzero): Likewise.
8344         (exp_test_downward): Likewise.
8345         (exp_test_upward): Likewise.
8346         (exp10_test): Likewise.
8347         (exp2_test): Likewise.
8348         (expm1_test): Likewise.
8349         (fabs_test): Likewise.
8350         (fdim_test): Likewise.
8351         (finite_test): Likewise.
8352         (floor_test): Likewise.
8353         (fma_test): Likewise.
8354         (fma_test_towardzero): Likewise.
8355         (fma_test_downward): Likewise.
8356         (fma_test_upward): Likewise.
8357         (fmax_test): Likewise.
8358         (fmin_test): Likewise.
8359         (fmod_test): Likewise.
8360         (fpclassify_test): Likewise.
8361         (frexp_test): Likewise.
8362         (gamma_test): Likewise.
8363         (hypot_test): Likewise.
8364         (ilogb_test): Likewise.
8365         (isfinite_test): Likewise.
8366         (isgreater_test): Likewise.
8367         (isgreaterequal_test): Likewise.
8368         (isinf_test): Likewise.
8369         (isless_test): Likewise.
8370         (islessequal_test): Likewise.
8371         (islessgreater_test): Likewise.
8372         (isnan_test): Likewise.
8373         (isnormal_test): Likewise.
8374         (issignaling_test): Likewise.
8375         (isunordered_test): Likewise.
8376         (j0_test): Likewise.
8377         (j1_test): Likewise.
8378         (jn_test): Likewise.
8379         (ldexp_test): Likewise.
8380         (lgamma_test): Likewise.
8381         (lrint_test): Likewise.
8382         (lrint_test_tonearest): Likewise.
8383         (lrint_test_towardzero): Likewise.
8384         (lrint_test_downward): Likewise.
8385         (lrint_test_upward): Likewise.
8386         (llrint_test): Likewise.
8387         (llrint_test_tonearest): Likewise.
8388         (llrint_test_towardzero): Likewise.
8389         (llrint_test_downward): Likewise.
8390         (llrint_test_upward): Likewise.
8391         (log_test): Likewise.
8392         (log10_test): Likewise.
8393         (log1p_test): Likewise.
8394         (log2_test): Likewise.
8395         (logb_test): Likewise.
8396         (logb_test_downward): Likewise.
8397         (lround_test): Likewise.
8398         (llround_test): Likewise.
8399         (modf_test): Likewise.
8400         (nearbyint_test): Likewise.
8401         (nextafter_test): Likewise.
8402         (nexttoward_test): Likewise.
8403         (pow_test): Likewise.
8404         (pow_test_tonearest): Likewise.
8405         (pow_test_towardzero): Likewise.
8406         (pow_test_downward): Likewise.
8407         (pow_test_upward): Likewise.
8408         (remainder_test): Likewise.
8409         (remainder_test_tonearest): Likewise.
8410         (remainder_test_towardzero): Likewise.
8411         (remainder_test_downward): Likewise.
8412         (remainder_test_upward): Likewise.
8413         (remquo_test): Likewise.
8414         (rint_test): Likewise.
8415         (rint_test_tonearest): Likewise.
8416         (rint_test_towardzero): Likewise.
8417         (rint_test_downward): Likewise.
8418         (rint_test_upward): Likewise.
8419         (round_test): Likewise.
8420         (scalb_test): Likewise.
8421         (scalbn_test): Likewise.
8422         (scalbln_test): Likewise.
8423         (signbit_test): Likewise.
8424         (sin_test): Likewise.
8425         (sin_test_tonearest): Likewise.
8426         (sin_test_towardzero): Likewise.
8427         (sin_test_downward): Likewise.
8428         (sin_test_upward): Likewise.
8429         (sincos_test): Likewise.
8430         (sinh_test): Likewise.
8431         (sinh_test_tonearest): Likewise.
8432         (sinh_test_towardzero): Likewise.
8433         (sinh_test_downward): Likewise.
8434         (sinh_test_upward): Likewise.
8435         (sqrt_test): Likewise.
8436         (tan_test): Likewise.
8437         (tan_test_tonearest): Likewise.
8438         (tan_test_towardzero): Likewise.
8439         (tan_test_downward): Likewise.
8440         (tan_test_upward): Likewise.
8441         (tanh_test): Likewise.
8442         (tgamma_test): Likewise.
8443         (trunc_test): Likewise.
8444         (y0_test): Likewise.
8445         (y1_test): Likewise.
8446         (yn_test): Likewise.
8447         (significand_test): Likewise.
8448
8449 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
8450
8451         [BZ #15381]
8452         * libio/genops.c (_IO_no_init): Initialize wide struct info.
8453
8454 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8455
8456         [BZ #14894]
8457         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
8458         __ppc_mdoio and __ppc_mdoom.
8459         * manual/platform.texi: Document new functions __ppc_yield,
8460         __ppc_mdoio and __ppc_mdoom.
8461
8462 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
8463
8464         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
8465         (main): Mention "tls" pseudo-hwcap is legacy.
8466         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
8467
8468 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8469
8470         * math/gen-libm-test.pl (parse_args): Output only string of
8471         arguments as text for test name, not full call or descriptions of
8472         tests for extra outputs.
8473         (generate_testfile): Do not pass function name to parse_args.
8474         Generate this_func variable from START.
8475         * math/libm-test.inc (struct test_f_f_data): Rename test_name
8476         field to arg_str.
8477         (struct test_ff_f_data): Likewise.
8478         (test_ff_f_data_nexttoward): Likewise.
8479         (struct test_fi_f_data): Likewise.
8480         (struct test_fl_f_data): Likewise.
8481         (struct test_if_f_data): Likewise.
8482         (struct test_fff_f_data): Likewise.
8483         (struct test_c_f_data): Likewise.
8484         (struct test_f_f1_data): Likewise.  Remove field extra_name.
8485         (struct test_fF_f1_data): Likewise.
8486         (struct test_ffI_f1_data): Likewise.
8487         (struct test_c_c_data): Rename test_name field to arg_str.
8488         (struct test_cc_c_data): Likewise.
8489         (struct test_f_i_data): Likewise.
8490         (struct test_ff_i_data): Likewise.
8491         (struct test_f_l_data): Likewise.
8492         (struct test_f_L_data): Likewise.
8493         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
8494         and extra2_name.
8495         (COMMON_TEST_SETUP): New macro.
8496         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
8497         (COMMON_TEST_CLEANUP): Likewise.
8498         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
8499         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
8500         macros.
8501         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
8502         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
8503         macros.
8504         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
8505         (RUN_TEST_fff_f): Take argument string.  Call new setup and
8506         cleanup macros.
8507         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
8508         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
8509         macros.
8510         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
8511         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
8512         macros.
8513         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8514         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
8515         cleanup macros.
8516         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8517         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
8518         cleanup macros.
8519         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8520         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
8521         cleanup macros.
8522         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8523         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
8524         macros.
8525         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
8526         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
8527         macros.
8528         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
8529         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
8530         macros.
8531         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
8532         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
8533         cleanup macros.
8534         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
8535         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
8536         cleanup macros.
8537         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
8538         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
8539         macros.
8540         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
8541         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
8542         cleanup macros.
8543         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
8544         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
8545         macros.
8546         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
8547         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
8548         macros.
8549         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
8550         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
8551         cleanup macros.
8552         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
8553
8554 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
8555
8556         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
8557         to _sifields.sigfault.
8558         (si_addr_lsb): Define new macro.
8559         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
8560         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8561         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
8562
8563 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
8564
8565         [BZ #15441]
8566         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
8567         returns -1.
8568         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
8569         null return -1.
8570         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
8571         loading the domain.
8572
8573 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8574
8575         * math/gen-libm-test.pl (parse_args): Do not include expected
8576         result in test name.
8577         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
8578         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8579         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8580         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8581         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8582         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8583
8584 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8585
8586         * benchtests/Makefile: Sort function entries.
8587
8588         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
8589         tanh, asinh, acosh, atanh.
8590         * benchtests/acos-inputs: New file.
8591         * benchtests/acosh-inputs: New file.
8592         * benchtests/asin-inputs: New file.
8593         * benchtests/asinh-inputs: New file.
8594         * benchtests/atanh-inputs: New file.
8595         * benchtests/cosh-inputs: New file.
8596         * benchtests/log-inputs: New file.
8597         * benchtests/sinh-inputs: New file.
8598         * benchtests/tanh-inputs: New file.
8599
8600 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
8601
8602         [BZ #15339]
8603         * posix/tst-getaddrinfo4.c: New test.
8604         * posix/Makefile (tests): Add it.
8605
8606 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8607
8608         [BZ #15339]
8609         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
8610         when no services were used.
8611         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
8612         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
8613
8614 2013-05-21  Andreas Schwab  <schwab@suse.de>
8615
8616         [BZ #15014]
8617         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
8618         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
8619         successful.
8620         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
8621         redundant variable declarations and reallocation of buffer when
8622         parsing as IPv6 address.  Always set NSS status when called from
8623         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
8624         buffer too small.  Correct computation of needed size.
8625         * nss/Makefile (tests): Add test-digits-dots.
8626         * nss/test-digits-dots.c: New test.
8627
8628 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8629
8630         * benchtests/Makefile: Remove instructions for adding
8631         benchmark tests.
8632         * benchtests/README: New file to explain how to execute and
8633         enhance the benchmark tests.
8634
8635 2013-05-21  Andreas Schwab  <schwab@suse.de>
8636
8637         [BZ #15493]
8638         * setjmp/Makefile (tests): Add tst-sigsetjmp.
8639         * setjmp/tst-sigsetjmp.c: New test.
8640
8641 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8642
8643         * sysdeps/x86_64/memset.S (memset): New implementation.
8644         (__bzero): Likewise.
8645         (__memset_tail): New function.
8646
8647 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8648
8649         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
8650         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
8651         __memcpy_sse2_unaligned ifunc selection.
8652         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
8653         Add memcpy-sse2-unaligned.S.
8654         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8655         Add: __memcpy_sse2_unaligned.
8656
8657 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
8658
8659         [BZ #15490]
8660         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
8661         math_force_eval before restoring floating-point envrionment.
8662         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
8663         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
8664         Likewise.
8665         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
8666         <math_private.h>.
8667         (__nearbyintl): Use math_force_eval before restoring
8668         floating-point environment.
8669         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
8670
8671         * math/gen-libm-test.pl (special_functions): Remove.
8672         (parse_args): Don't handle TEST_extra.  Handle functions with no
8673         return value.
8674         * math/libm-test.inc (struct test_sincos_data): Replace with
8675         struct test_fFF_11_data.
8676         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
8677         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
8678         (sincos_test_data): Change element type to struct
8679         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
8680         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
8681         RUN_TEST_LOOP_sincos.
8682         * math/README.libm-test: Don't mention special handling of
8683         individual functions.
8684         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
8685         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8686         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8687         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8688         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8690
8691         * math/gen-libm-test.pl (get_variable): Remove function.
8692         (parse_args): Don't show pointer parameters to call in test
8693         names.  Use "extra output N" in test names for extra outputs
8694         rather than naming variables.
8695
8696 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
8697
8698         [BZ #15488]
8699         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
8700         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
8701         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
8702         double tests.
8703         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
8704         disable.
8705         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
8706         check_long_double.
8707
8708         * math/gen-libm-test.pl (@tests): Remove variable.
8709         ($count): Likewise.
8710         (new_test): Remove function.
8711         (show_exceptions): New function.
8712         (special_functions): Use show_exceptions instead of new_test.
8713         (parse_args): Likewise.
8714         (generate_testfile): Pass only function name in generated call to
8715         print_max_error or print_complex_max_error.
8716         (get_ulps): Do not handle complex tests specially.
8717         (output_test): Rename to ...
8718         (get_all_ulps_for_test): ... this.  Return a string rather than
8719         printing to a file.  Require ulps to be present.
8720         (output_ulps): Generate arrays rather than #defines.
8721         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
8722         (struct ulp_data): New type.
8723         (BUILD_COMPLEX_ULP): Remove macro.
8724         (compare_ulp_data): New function.
8725         (find_ulps): Likewise.
8726         (find_test_ulps): Likewise.
8727         (find_function_ulps): Likewise.
8728         (find_complex_function_ulps): Likewise.
8729         (print_max_error): Determine allowed ulps using
8730         find_function_ulps.
8731         (print_complex_max_error): Determine allowed ulps using
8732         find_complex_function_ulps.
8733         (check_float_internal): Determine max ulps using find_test_ulps.
8734         (check_float): Do not take max_ulp parameter.  Update call to
8735         check_float_internal.
8736         (check_complex): Likewise.
8737         (check_int): Do not take max_ulp parameter.
8738         (check_long): Likewise.
8739         (check_bool): Likewise.
8740         (check_longlong): Likewise.
8741         (struct test_f_f_data): Remove max_ulp field.
8742         (struct test_ff_f_data): Likewise.
8743         (struct test_ff_f_data_nexttoward): Likewise.
8744         (struct test_fi_f_data): Likewise.
8745         (struct test_fl_f_data): Likewise.
8746         (struct test_if_f_data): Likewise.
8747         (struct test_fff_f_data): Likewise.
8748         (struct test_c_f_data): Likewise.
8749         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
8750         (struct test_fF_f1_data): Likewise.
8751         (struct test_ffI_f1_data): Likewise.
8752         (struct test_c_c_data): Remove max_ulp field.
8753         (struct test_cc_c_data): Likewise.
8754         (struct test_f_i_data): Likewise.
8755         (struct test_ff_i_data): Likewise.
8756         (struct test_f_l_data): Likewise.
8757         (struct test_f_L_data): Likewise.
8758         (struct test_sincos_data): Likewise.
8759         (RUN_TEST_f_f): Do not handle ulps.
8760         (RUN_TEST_LOOP_f_f): Likewise.
8761         (RUN_TEST_2_f): Likewise.
8762         (RUN_TEST_LOOP_2_f): Likewise.
8763         (RUN_TEST_fff_f): Likewise.
8764         (RUN_TEST_LOOP_fff_f): Likewise.
8765         (RUN_TEST_c_f): Likewise.
8766         (RUN_TEST_LOOP_c_f): Likewise.
8767         (RUN_TEST_f_f1): Likewise.
8768         (RUN_TEST_LOOP_f_f1): Likewise.
8769         (RUN_TEST_fF_f1): Likewise.
8770         (RUN_TEST_LOOP_fF_f1): Likewise.
8771         (RUN_TEST_fI_f1): Likewise.
8772         (RUN_TEST_LOOP_fI_f1): Likewise.
8773         (RUN_TEST_ffI_f1): Likewise.
8774         (RUN_TEST_LOOP_ffI_f1): Likewise.
8775         (RUN_TEST_c_c): Likewise.
8776         (RUN_TEST_LOOP_c_c): Likewise.
8777         (RUN_TEST_cc_c): Likewise.
8778         (RUN_TEST_LOOP_cc_c): Likewise.
8779         (RUN_TEST_f_i): Likewise.
8780         (RUN_TEST_LOOP_f_i): Likewise.
8781         (RUN_TEST_f_i_tg): Likewise.
8782         (RUN_TEST_LOOP_f_i_tg): Likewise.
8783         (RUN_TEST_ff_i_tg): Likewise.
8784         (RUN_TEST_LOOP_ff_i_tg): Likewise.
8785         (RUN_TEST_f_b): Likewise.
8786         (RUN_TEST_LOOP_f_b): Likewise.
8787         (RUN_TEST_f_b_tg): Likewise.
8788         (RUN_TEST_LOOP_f_b_tg): Likewise.
8789         (RUN_TEST_f_l): Likewise.
8790         (RUN_TEST_LOOP_f_l): Likewise.
8791         (RUN_TEST_f_L): Likewise.
8792         (RUN_TEST_LOOP_f_L): Likewise.
8793         (RUN_TEST_sincos): Likewise.
8794         (RUN_TEST_LOOP_sincos): Likewise.
8795
8796 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
8797
8798         [BZ #15480]
8799         [BZ #15485]
8800         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
8801         main case of finite arguments, set rounding mode to FE_TONEAREST
8802         and discard exceptions.
8803         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
8804         exceptions.
8805         (remainder_tonearest_test_data): New variable.
8806         (remainder_test_tonearest): New function.
8807         (remainder_towardzero_test_data): New variable.
8808         (remainder_test_towardzero): New function.
8809         (remainder_downward_test_data): New variable.
8810         (remainder_test_downward): New function.
8811         (remainder_upward_test_data): New variable.
8812         (remainder_test_upward): New function.
8813         (main): Call the new test functions.
8814
8815         * math/libm-test.inc (struct test_f_f1_data): Remove field
8816         extra_init.
8817         (struct test_fF_f1_data): Likewise.
8818         (struct test_ffI_f1_data): Likewise.
8819         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
8820         based on value of EXTRA_EXPECTED.
8821         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8822         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
8823         EXTRA_VAR based on value of EXTRA_EXPECTED.
8824         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8825         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
8826         EXTRA_VAR based on value of EXTRA_EXPECTED.
8827         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8828         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
8829         EXTRA_VAR based on value of EXTRA_EXPECTED.
8830         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8831         * math/gen-libm-test.pl (parse_args): Don't output initializers
8832         for extra output values.
8833
8834         * math/libm-test.inc (check_int): Expect result to be exactly
8835         equal to expected value and do not handle ulps.
8836         (check_long): Likewise.
8837         (check_longlong): Likewise.
8838
8839         * math/libm-test.inc (ceil_test_data): Test for "inexact"
8840         exceptions.
8841         (cimag_test_data): Likewise.
8842         (conj_test_data): Likewise.
8843         (copysign_test_data): Likewise.
8844         (cproj_test_data): Likewise.
8845         (creal_test_data): Likewise.
8846         (fabs_test_data): Likewise.
8847         (fdim_test_data): Likewise.
8848         (finite_test_data): Likewise.
8849         (floor_test_data): Likewise.
8850         (fmax_test_data): Likewise.
8851         (fmin_test_data): Likewise.
8852         (fmod_test_data): Likewise.
8853         (fpclassify_test_data): Likewise.
8854         (frexp_test_data): Likewise.
8855         (ilogb_test_data): Likewise.
8856         (isfinite_test_data): Likewise.
8857         (isgreater_test_data): Likewise.
8858         (isgreaterequal_test_data): Likewise.
8859         (isinf_test_data): Likewise.
8860         (isless_test_data): Likewise.
8861         (islessequal_test_data): Likewise.
8862         (islessgreater_test_data): Likewise.
8863         (isnan_test_data): Likewise.
8864         (isnormal_test_data): Likewise.
8865         (issignaling_test_data): Likewise.
8866         (isunordered_test_data): Likewise.
8867         (ldexp_test_data): Likewise.
8868         (lrint_test_data): Likewise.
8869         (lrint_test_data) [TEST_FLOAT]: Disable one test.
8870         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
8871         (lrint_tonearest_test_data): Test for "inexact" exceptions.
8872         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
8873         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
8874         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
8875         test input.
8876         (lrint_towardzero_test_data): Test for "inexact" exceptions.
8877         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
8878         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
8879         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
8880         that test input.
8881         (lrint_downward_test_data): Test for "inexact" exceptions.
8882         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
8883         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
8884         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
8885         test input.
8886         (lrint_upward_test_data): Test for "inexact" exceptions.
8887         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
8888         test input.
8889         (llrint_test_data): Test for "inexact" exceptions.
8890         (llrint_test_data) [TEST_FLOAT]: Disable one test.
8891         (llrint_tonearest_test_data): Test for "inexact" exceptions.
8892         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
8893         (llrint_towardzero_test_data): Test for "inexact" exceptions.
8894         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
8895         (llrint_downward_test_data): Test for "inexact" exceptions.
8896         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
8897         (llrint_upward_test_data): Test for "inexact" exceptions.
8898         (logb_test_data): Likewise.
8899         (logb_downward_test_data): Likewise.
8900         (nextafter_test_data): Likewise.
8901         (nexttoward_test_data): Likewise.
8902         (remainder_test_data): Likewise.
8903         (remquo_test_data): Likewise.
8904         (scalbn_test_data): Likewise.
8905         (scalbln_test_data): Likewise.
8906         (signbit_test_data): Likewise.
8907         (sqrt_test_data): Likewise.
8908         (significand_test_data): Likewise.
8909
8910 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
8911
8912         [BZ #15424]
8913         * benchtests/bench-modf.c (struct args): Mark arg0 as
8914         volatile.
8915         * scripts/bench.pl: Mark members of struct args as volatile.
8916
8917 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8918
8919         [BZ # 15497]
8920         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
8921         negative infinity on POWER6 or lower.
8922         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
8923
8924 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
8925
8926         [BZ #15442]
8927         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
8928         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
8929         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
8930         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
8931         (_FP_SETQNAN): New macro.
8932         (_FP_SETQNAN_SEMIRAW): Likewise.
8933         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
8934         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
8935         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
8936         (FP_EXTEND): Use _FP_FRAC_SNANP.
8937         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
8938         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
8939         into account.
8940         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
8941         New macro.
8942         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
8943         Likewise.
8944
8945 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8946
8947         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
8948         with DIVIDE_BY_ZERO_EXCEPTION.
8949         (gamma_test_data): Likewise.
8950         (lgamma_test_data): Likewise.
8951         (log_test_data): Likewise.
8952         (log10_test_data): Likewise.
8953         (log2_test_data): Likewise.
8954         (tgamma_test_data): Likewise.
8955
8956         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
8957         (acos_test_tonearest): Likewise.
8958         (acos_test_towardzero): Likewise.
8959         (acos_test_downward): Likewise.
8960         (acos_test_upward): Likewise.
8961         (acosh_test): Likewise.
8962         (asin_test): Likewise.
8963         (asin_test_tonearest): Likewise.
8964         (asin_test_towardzero): Likewise.
8965         (asin_test_downward): Likewise.
8966         (asin_test_upward): Likewise.
8967         (asinh_test): Likewise.
8968         (atan_test): Likewise.
8969         (atanh_test): Likewise.
8970         (atan2_test): Likewise.
8971         (cabs_test): Likewise.
8972         (cacos_test): Likewise.
8973         (cacosh_test): Likewise.
8974         (casin_test): Likewise.
8975         (casinh_test): Likewise.
8976         (catan_test): Likewise.
8977         (catanh_test): Likewise.
8978         (cbrt_test): Likewise.
8979         (ccos_test): Likewise.
8980         (ccosh_test): Likewise.
8981         (cexp_test): Likewise.
8982         (clog_test): Likewise.
8983         (clog10_test): Likewise.
8984         (cos_test): Likewise.
8985         (cos_test_tonearest): Likewise.
8986         (cos_test_towardzero): Likewise.
8987         (cos_test_downward): Likewise.
8988         (cos_test_upward): Likewise.
8989         (cosh_test): Likewise.
8990         (cosh_test_tonearest): Likewise.
8991         (cosh_test_towardzero): Likewise.
8992         (cosh_test_downward): Likewise.
8993         (cosh_test_upward): Likewise.
8994         (cpow_test): Likewise.
8995         (csin_test): Likewise.
8996         (csinh_test): Likewise.
8997         (csqrt_test): Likewise.
8998         (ctan_test): Likewise.
8999         (ctan_test_tonearest): Likewise.
9000         (ctan_test_towardzero): Likewise.
9001         (ctan_test_downward): Likewise.
9002         (ctan_test_upward): Likewise.
9003         (ctanh_test): Likewise.
9004         (ctanh_test_tonearest): Likewise.
9005         (ctanh_test_towardzero): Likewise.
9006         (ctanh_test_downward): Likewise.
9007         (ctanh_test_upward): Likewise.
9008         (erf_test): Likewise.
9009         (erfc_test): Likewise.
9010         (exp_test): Likewise.
9011         (exp_test_tonearest): Likewise.
9012         (exp_test_towardzero): Likewise.
9013         (exp_test_downward): Likewise.
9014         (exp_test_upward): Likewise.
9015         (exp10_test): Likewise.
9016         (exp2_test): Likewise.
9017         (expm1_test): Likewise.
9018         (fmod_test): Likewise.
9019         (gamma_test): Likewise.
9020         (hypot_test): Likewise.
9021         (j0_test): Likewise.
9022         (j1_test): Likewise.
9023         (jn_test): Likewise.
9024         (lgamma_test): Likewise.
9025         (log_test): Likewise.
9026         (log10_test): Likewise.
9027         (log1p_test): Likewise.
9028         (log2_test): Likewise.
9029         (logb_test_downward): Likewise.
9030         (pow_test): Likewise.
9031         (pow_test_tonearest): Likewise.
9032         (pow_test_towardzero): Likewise.
9033         (pow_test_downward): Likewise.
9034         (pow_test_upward): Likewise.
9035         (remainder_test): Likewise.
9036         (remquo_test): Likewise.
9037         (sin_test): Likewise.
9038         (sin_test_tonearest): Likewise.
9039         (sin_test_towardzero): Likewise.
9040         (sin_test_downward): Likewise.
9041         (sin_test_upward): Likewise.
9042         (sincos_test): Likewise.
9043         (sinh_test): Likewise.
9044         (sinh_test_tonearest): Likewise.
9045         (sinh_test_towardzero): Likewise.
9046         (sinh_test_downward): Likewise.
9047         (sinh_test_upward): Likewise.
9048         (sqrt_test): Likewise.
9049         (tan_test): Likewise.
9050         (tan_test_tonearest): Likewise.
9051         (tan_test_towardzero): Likewise.
9052         (tan_test_downward): Likewise.
9053         (tan_test_upward): Likewise.
9054         (tanh_test): Likewise.
9055         (tgamma_test): Likewise.
9056         (y0_test): Likewise.
9057         (y1_test): Likewise.
9058         (yn_test): Likewise.
9059
9060         * math/gen-libm-test.pl (adjust_arg): Remove function.
9061         (special_function): Remove argument $in_func.  Only handle
9062         generating output for tables of tests, not inside functions.
9063         (parse_args): Likewise.
9064         (generate_testfile): Remove variable $in_func.  Update call to
9065         parse_args.
9066         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
9067         (MINUS_ZERO_INIT): Rename macro to minus_zero.
9068         (PLUS_INFTY_INIT): Rename macro to plus_infty.
9069         (MINUS_INFTY_INIT): Rename macro to minus_infty.
9070         (QNAN_VALUE_INIT): Rename macro to qnan_value.
9071         (MAX_VALUE_INIT): Rename macro to max_value.
9072         (MIN_VALUE_INIT): Rename macro to min_value.
9073         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
9074         (plus_zero): Remove variable.
9075         (minus_zero): Likewise.
9076         (plus_infty): Likewise.
9077         (minus_infty): Likewise.
9078         (qnan_value): Likewise.
9079         (max_value): Likewise.
9080         (min_value): Likewise.
9081         (min_subnorm_value): Likewise.
9082
9083 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9084
9085         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
9086         uint64_t or uint32_t usage.
9087         * crypt/sha256-block.c: Likewise.
9088         * crypt/sha256-crypt.c: Likewise.
9089         * crypt/sha256.c: Likewise.
9090         * crypt/sha512-block.c: Likewise.
9091         * crypt/sha512-crypt.c: Likewise.
9092         * crypt/sha512.c: Likewise.
9093         * debug/backtrace-tst.c: Likewise.
9094         * debug/pcprofiledump.c: Likewise.
9095         * elf/cache.c: Likewise.
9096         * elf/dl-cache.c: Likewise.
9097         * elf/dl-misc.c: Likewise.
9098         * elf/dl-profile.c: Likewise.
9099         * elf/dl-support.c: Likewise.
9100         * elf/ldconfig.c: Likewise.
9101         * elf/sprof.c: Likewise.
9102         * iconv/dummy-repertoire.c: Likewise.
9103         * iconv/iconv_charmap.c: Likewise.
9104         * iconv/skeleton.c: Likewise.
9105         * iconvdata/8bit-generic.c: Likewise.
9106         * iconvdata/cp737.h: Likewise.
9107         * iconvdata/cp775.h: Likewise.
9108         * iconvdata/ibm1008.h: Likewise.
9109         * iconvdata/ibm1025.h: Likewise.
9110         * iconvdata/ibm1046.h: Likewise.
9111         * iconvdata/ibm1097.h: Likewise.
9112         * iconvdata/ibm1112.h: Likewise.
9113         * iconvdata/ibm1122.h: Likewise.
9114         * iconvdata/ibm1123.h: Likewise.
9115         * iconvdata/ibm1124.h: Likewise.
9116         * iconvdata/ibm1129.h: Likewise.
9117         * iconvdata/ibm1130.h: Likewise.
9118         * iconvdata/ibm1132.h: Likewise.
9119         * iconvdata/ibm1133.h: Likewise.
9120         * iconvdata/ibm1137.h: Likewise.
9121         * iconvdata/ibm1140.h: Likewise.
9122         * iconvdata/ibm1141.h: Likewise.
9123         * iconvdata/ibm1142.h: Likewise.
9124         * iconvdata/ibm1143.h: Likewise.
9125         * iconvdata/ibm1144.h: Likewise.
9126         * iconvdata/ibm1145.h: Likewise.
9127         * iconvdata/ibm1146.h: Likewise.
9128         * iconvdata/ibm1147.h: Likewise.
9129         * iconvdata/ibm1148.h: Likewise.
9130         * iconvdata/ibm1149.h: Likewise.
9131         * iconvdata/ibm1153.h: Likewise.
9132         * iconvdata/ibm1154.h: Likewise.
9133         * iconvdata/ibm1155.h: Likewise.
9134         * iconvdata/ibm1156.h: Likewise.
9135         * iconvdata/ibm1157.h: Likewise.
9136         * iconvdata/ibm1158.h: Likewise.
9137         * iconvdata/ibm1160.h: Likewise.
9138         * iconvdata/ibm1161.h: Likewise.
9139         * iconvdata/ibm1162.h: Likewise.
9140         * iconvdata/ibm1163.h: Likewise.
9141         * iconvdata/ibm1164.h: Likewise.
9142         * iconvdata/ibm1166.h: Likewise.
9143         * iconvdata/ibm1167.h: Likewise.
9144         * iconvdata/ibm12712.h: Likewise.
9145         * iconvdata/ibm1390.h: Likewise.
9146         * iconvdata/ibm1399.h: Likewise.
9147         * iconvdata/ibm16804.h: Likewise.
9148         * iconvdata/ibm4517.h: Likewise.
9149         * iconvdata/ibm4899.h: Likewise.
9150         * iconvdata/ibm4909.h: Likewise.
9151         * iconvdata/ibm4971.h: Likewise.
9152         * iconvdata/ibm5347.h: Likewise.
9153         * iconvdata/ibm803.h: Likewise.
9154         * iconvdata/ibm856.h: Likewise.
9155         * iconvdata/ibm901.h: Likewise.
9156         * iconvdata/ibm902.h: Likewise.
9157         * iconvdata/ibm9030.h: Likewise.
9158         * iconvdata/ibm9066.h: Likewise.
9159         * iconvdata/ibm921.h: Likewise.
9160         * iconvdata/ibm922.h: Likewise.
9161         * iconvdata/ibm9448.h: Likewise.
9162         * iconvdata/isiri-3342.h: Likewise.
9163         * iconvdata/jis0201.h: Likewise.
9164         * include/link.h: Likewise.
9165         * include/netdb.h: Likewise.
9166         * inet/check_native.c: Likewise.
9167         * inet/check_pf.c: Likewise.
9168         * inet/getipv4sourcefilter.c: Likewise.
9169         * inet/getnameinfo.c: Likewise.
9170         * inet/getsourcefilter.c: Likewise.
9171         * inet/htonl.c: Likewise.
9172         * inet/setipv4sourcefilter.c: Likewise.
9173         * inet/setsourcefilter.c: Likewise.
9174         * inet/test-inet6_opt.c: Likewise.
9175         * inet/tst-network.c: Likewise.
9176         * locale/C-collate.c: Likewise.
9177         * locale/C-ctype.c: Likewise.
9178         * locale/C-time.c: Likewise.
9179         * locale/C-translit.h: Likewise.
9180         * locale/loadarchive.c: Likewise.
9181         * locale/programs/3level.h: Likewise.
9182         * locale/programs/charmap.c: Likewise.
9183         * locale/programs/charmap.h: Likewise.
9184         * locale/programs/ld-address.c: Likewise.
9185         * locale/programs/ld-collate.c: Likewise.
9186         * locale/programs/ld-ctype.c: Likewise.
9187         * locale/programs/ld-identification.c: Likewise.
9188         * locale/programs/ld-measurement.c: Likewise.
9189         * locale/programs/ld-messages.c: Likewise.
9190         * locale/programs/ld-monetary.c: Likewise.
9191         * locale/programs/ld-name.c: Likewise.
9192         * locale/programs/ld-numeric.c: Likewise.
9193         * locale/programs/ld-paper.c: Likewise.
9194         * locale/programs/ld-telephone.c: Likewise.
9195         * locale/programs/ld-time.c: Likewise.
9196         * locale/programs/linereader.c: Likewise.
9197         * locale/programs/locale.c: Likewise.
9198         * locale/programs/locarchive.c: Likewise.
9199         * locale/programs/locfile.h: Likewise.
9200         * locale/programs/repertoire.c: Likewise.
9201         * locale/programs/simple-hash.c: Likewise.
9202         * locale/programs/simple-hash.h: Likewise.
9203         * malloc/memusage.c: Likewise.
9204         * malloc/memusagestat.c: Likewise.
9205         * nis/nis_defaults.c: Likewise.
9206         * nis/nis_hash.c: Likewise.
9207         * nis/nis_print.c: Likewise.
9208         * nis/nis_xdr.c: Likewise.
9209         * nscd/connections.c: Likewise.
9210         * nscd/hstcache.c: Likewise.
9211         * nscd/nscd_gethst_r.c: Likewise.
9212         * nscd/nscd_getserv_r.c: Likewise.
9213         * nscd/nscd_helper.c: Likewise.
9214         * nscd/servicescache.c: Likewise.
9215         * nss/makedb.c: Likewise.
9216         * nss/nss_db/db-XXX.c: Likewise.
9217         * nss/nss_db/db-initgroups.c: Likewise.
9218         * nss/nss_db/db-netgrp.c: Likewise.
9219         * nss/nss_files/files-network.c: Likewise.
9220         * nss/nss_files/files-parse.c: Likewise.
9221         * posix/bug-regex5.c: Likewise.
9222         * posix/fnmatch_loop.c: Likewise.
9223         * posix/regcomp.c: Likewise.
9224         * posix/regexec.c: Likewise.
9225         * posix/tst-rfc3484-2.c: Likewise.
9226         * posix/tst-rfc3484-3.c: Likewise.
9227         * posix/tst-rfc3484.c: Likewise.
9228         * resolv/nss_dns/dns-canon.c: Likewise.
9229         * resolv/nss_dns/dns-network.c: Likewise.
9230         * resolv/res_init.c: Likewise.
9231         * resolv/res_mkquery.c: Likewise.
9232         * resolv/tst-aton.c: Likewise.
9233         * stdlib/cxa_atexit.c: Likewise.
9234         * stdlib/cxa_finalize.c: Likewise.
9235         * stdlib/gen-fpioconst.c: Likewise.
9236         * stdlib/strtol_l.c: Likewise.
9237         * string/tst-endian.c: Likewise.
9238         * sunrpc/auth_des.c: Likewise.
9239         * sunrpc/clnt_udp.c: Likewise.
9240         * sunrpc/rtime.c: Likewise.
9241         * sunrpc/svcauth_des.c: Likewise.
9242         * sunrpc/xdr.c: Likewise.
9243         * sunrpc/xdr_intXX_t.c: Likewise.
9244         * sunrpc/xdr_rec.c: Likewise.
9245         * sysdeps/generic/ldconfig.h: Likewise.
9246         * sysdeps/generic/ldsodefs.h: Likewise.
9247         * sysdeps/generic/memusage.h: Likewise.
9248         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9249         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
9250         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
9251         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9252         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9253         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9254         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9255         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9256         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9257         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
9258         * sysdeps/posix/getaddrinfo.c: Likewise.
9259         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9260         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9261         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9262         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9263         * sysdeps/powerpc/test-gettimebase.c: Likewise.
9264         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
9265         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
9266         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
9267         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
9268         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
9269         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9270         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9271         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
9272         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
9273         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
9274         * sysdeps/x86_64/dl-tls.h: Likewise.
9275         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
9276         * time/alt_digit.c: Likewise.
9277         * time/era.c: Likewise.
9278         * wcsmbs/tst-c16c32-1.c: Likewise.
9279
9280 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9281
9282         * math/libm-test.inc (struct test_sincos_data): New type.
9283         (RUN_TEST_LOOP_sincos): New macro.
9284         (sincos_test_data): New variable.
9285         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
9286
9287 2013-05-16  Richard Henderson  <rth@redhat.com>
9288
9289         * math/atest-exp2.c (LIMB64): New macro.
9290         (CONSTSZ): New macro.
9291         (mp_exp1, mp_exp_m1, mp_log2): New variables.
9292         (hexdig): Move ...
9293         (print_mpn_fp): ... to function scope.
9294         (read_mpn_hex): Remove.
9295         (get_log2): Remove.
9296         (exp2_mpn): Use mp_log2.
9297         (main): Use mp_exp1.
9298
9299 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9300
9301         * math/libm-test.inc: Remove comment about not testing "inexact"
9302         exceptions.
9303         (INEXACT_EXCEPTION): New macro.
9304         (NO_INEXACT_EXCEPTION): Likewise.
9305         (INVALID_EXCEPTION_OK): Update value.
9306         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9307         (OVERFLOW_EXCEPTION_OK): Likewise.
9308         (UNDERFLOW_EXCEPTION_OK): Likewise.
9309         (IGNORE_ZERO_INF_SIGN): Likewise.
9310         (ERRNO_UNCHANGED): Likewise.
9311         (ERRNO_EDOM): Likewise.
9312         (ERRNO_ERANGE): Likewise.
9313         (test_exceptions): Handle testing "inexact" exceptions.
9314         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
9315         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
9316         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
9317         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
9318         INEXACT_EXCEPTION.
9319         (rint_towardzero_test_data): Likewise.
9320         (rint_downward_test_data): Likewise.
9321         (rint_upward_test_data): Likewise.
9322
9323         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
9324         with OVERFLOW_EXCEPTION.
9325         (exp10_test_data): Likewise.
9326         (exp2_test_data): Likewise.
9327         (expm1_test_data): Likewise.
9328         (lgamma_test_data): Likewise.
9329         (pow_test_data): Likewise.
9330         (tgamma_test_data): Likewise.
9331         (yn_test_data): Remove duplicate test of overflow.
9332
9333         * math/libm-test.inc (struct test_cc_c_data): New type.
9334         (RUN_TEST_LOOP_cc_c): New macro.
9335         (cpow_test_data): New variable.
9336         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
9337
9338         * math/libm-test.inc (struct test_f_L_data): New type.
9339         (RUN_TEST_LOOP_f_L): New macro.
9340         (llrint_test_data): New variable.
9341         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
9342         (llrint_tonearest_test_data): New variable.
9343         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
9344         (llrint_towardzero_test_data): New variable.
9345         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
9346         (llrint_downward_test_data): New variable.
9347         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
9348         (llrint_upward_test_data): New variable.
9349         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
9350         (llround_test_data): New variable.
9351         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
9352
9353 2013-05-13  Peter Collingbourne  <pcc@google.com>
9354
9355         * math/atest-exp2.c (get_log2): Remove const attribute.
9356
9357 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9358
9359         * math/libm-test.inc (struct test_f_l_data): New type.
9360         (RUN_TEST_LOOP_f_l): New macro.
9361         (lrint_test_data): New variable.
9362         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
9363         (lrint_tonearest_test_data): New variable.
9364         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
9365         (lrint_towardzero_test_data): New variable.
9366         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
9367         (lrint_downward_test_data): New variable.
9368         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
9369         (lrint_upward_test_data): New variable.
9370         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
9371         (lround_test_data): New variable.
9372         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
9373
9374 2013-05-15  Peter Collingbourne  <pcc@google.com>
9375
9376         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
9377         (EXTRACT_WORDS64) Use where appropriate.
9378         (INSERT_WORDS64) Likewise.
9379
9380         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
9381         constraints with x constraints.
9382         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
9383
9384         * malloc/obstack.c (_obstack_compat): Add initializer.
9385
9386 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
9387
9388         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
9389         si_trapno and add si_addr_lsb to _sifields.sigfault.
9390         (si_trapno): Remove macro.
9391         (si_addr_lsb): Define new macro.
9392         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
9393
9394 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9395
9396         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
9397         instead of TEST_f_l.
9398         (llrint_test_tonearest): Likewise.
9399         (llrint_test_towardzero): Likewise.
9400         (llrint_test_downward): Likewise.
9401         (llrint_test_upward): Likewise.
9402         (llround_test): Likewise.
9403
9404         * math/libm-test.inc (struct test_f_i_data): Add comment.
9405         (RUN_TEST_LOOP_f_b): New macro.
9406         (RUN_TEST_LOOP_f_b_tg): Likewise.
9407         (finite_test_data): New variable.
9408         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
9409         (isfinite_test_data): New variable.
9410         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9411         (isinf_test_data): New variable.
9412         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9413         (isnan_test_data): New variable.
9414         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9415         (isnormal_test_data): New variable.
9416         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9417         (issignaling_test_data): New variable.
9418         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9419         (signbit_test_data): New variable.
9420         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9421
9422         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
9423         with INVALID_EXCEPTION.
9424         (acosh_test_data): Likewise.
9425         (asin_test_data): Likewise.
9426         (atanh_test_data): Likewise.
9427         (fmod_test_data): Likewise.
9428         (log_test_data): Likewise.
9429         (log10_test_data): Likewise.
9430         (log2_test_data): Likewise.
9431         (pow_test_data): Likewise.
9432         (sqrt_test_data): Likewise.
9433         (y0_test_data): Likewise.
9434         (y1_test_data): Likewise.
9435         (yn_test_data): Likewise.
9436
9437         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
9438         function contents.
9439
9440         * math/libm-test.inc (struct test_ff_i_data): New type.
9441         (RUN_TEST_LOOP_ff_i_tg): New macro.
9442         (isgreater_test_data): New variable.
9443         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9444         (isgreaterequal_test_data): New variable.
9445         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9446         (isless_test_data): New variable.
9447         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9448         (islessequal_test_data): New variable.
9449         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9450         (islessgreater_test_data): New variable.
9451         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9452         (isunordered_test_data): New variable.
9453         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9454
9455 2013-05-14  David S. Miller  <davem@davemloft.net>
9456
9457         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9458
9459 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
9460
9461         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
9462
9463         * math/libm-test.inc (struct test_fF_f1_data): Change type of
9464         extra_test to int.
9465         (struct test_f_i_data): Change type of max_ulp to int.
9466
9467         * math/libm-test.inc (test_ffI_f1_data): New type.
9468         (RUN_TEST_LOOP_ffI_f1): New macro.
9469         (remquo_test_data): New variable.
9470         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
9471
9472         * setjmp/tst-setjmp-fp.c: New file.
9473         * setjmp/Makefile (tests): Add tst-setjmp-fp.
9474         (link-libm): New variable.
9475         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
9476
9477         * math/libm-test.inc (struct test_f_i_data): New type.
9478         (RUN_TEST_LOOP_f_i): New macro.
9479         (RUN_TEST_LOOP_f_i_tg): Likewise.
9480         (fpclassify_test_data): New variable.
9481         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
9482         (ilogb_test_data): New variable.
9483         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
9484
9485         * math/libm-test.inc (scalbln_test): Correct function name in END
9486         call.
9487
9488         * math/libm-test.inc (struct test_f_f1_data): Add comment.
9489         (RUN_TEST_LOOP_fI_f1): New macro.
9490         (frexp_test_data): New variable.
9491         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
9492
9493         * math/libm-test.inc (struct test_fF_f1_data): New type.
9494         (RUN_TEST_LOOP_fF_f1): New macro.
9495         (modf_test_data): New variable.
9496         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
9497
9498         * math/libm-test.inc (struct test_f_f1_data): New type.
9499         (RUN_TEST_LOOP_f_f1): New macro.
9500         (gamma_test_data): New variable.
9501         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9502         (lgamma_test_data): New variable.
9503         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9504
9505 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
9506
9507         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
9508         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
9509         (main): Comment "tls" pseudo-hwcap.
9510
9511 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
9512
9513         * math/libm-test.inc (struct test_fl_f_data): New type.
9514         (RUN_TEST_LOOP_fl_f): New variable.
9515         (scalbln_test_data): New variable.
9516         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
9517
9518         * math/libm-test.inc (struct test_fi_f_data): New type.
9519         (RUN_TEST_LOOP_fi_f): New macro.
9520         (ldexp_test_data): New variable.
9521         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
9522         (scalbn_test_data): New variable.
9523         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
9524
9525         * math/libm-test.inc (struct test_c_f_data): New type.
9526         (RUN_TEST_LOOP_c_f): New macro.
9527         (cabs_test_data): New variable.
9528         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
9529         (carg_test_data): New variable.
9530         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
9531         (cimag_test_data): New variable.
9532         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
9533         (creal_test_data): New variable.
9534         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
9535
9536         * math/libm-test.inc (struct test_if_f_data): New type.
9537         (RUN_TEST_LOOP_if_f): New macro.
9538         (jn_test_data): New variable.
9539         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
9540         (yn_test_data): New variable.
9541         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
9542
9543         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
9544
9545 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9546
9547         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
9548         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
9549
9550 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9551
9552         * benchtests/Makefile (CPPFLAGS-nonlib): Add
9553         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
9554         (bench-deps): Add bench-timing.h.
9555         * benchtests-bench-skeleton.c: Include bench-timing.h.
9556         (main): Use TIMING_* macros instead of clock_gettime.
9557         * benchtests/bench-timing.h: New file.
9558
9559         [BZ #14582]
9560         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
9561         Renamed from _LIB_VERSION.
9562         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
9563
9564 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
9565
9566         * math/libm-test.inc (struct test_fff_f_data): New type.
9567         (RUN_TEST_LOOP_fff_f): New macro.
9568         (fma_test_data): New variable.
9569         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
9570         (fma_towardzero_test_data): New variable.
9571         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
9572         (fma_downward_test_data): New variable.
9573         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
9574         (fma_upward_test_data): New variable.
9575         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
9576
9577         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
9578         (struct test_c_c_data): New type.
9579         (RUN_TEST_LOOP_c_c): New macro.
9580         (cacos_test_data): New variable.
9581         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
9582         (cacosh_test_data): New variable.
9583         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
9584         (casin_test_data): New variable.
9585         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
9586         (casinh_test_data): New variable.
9587         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
9588         (catan_test_data): New variable.
9589         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
9590         (catanh_test_data): New variable.
9591         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
9592         (ccos_test_data): New variable.
9593         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
9594         (ccosh_test_data): New variable.
9595         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
9596         (cexp_test_data): New variable.
9597         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
9598         (clog_test_data): New variable.
9599         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
9600         (clog10_test_data): New variable.
9601         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
9602         (conj_test_data): New variable.
9603         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
9604         (cproj_test_data): New variable.
9605         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
9606         (csin_test_data): New variable.
9607         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
9608         (csinh_test_data): New variable.
9609         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
9610         (csqrt_test_data): New variable.
9611         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
9612         (ctan_test_data): New variable.
9613         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
9614         (ctan_tonearest_test_data): New variable.
9615         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9616         (ctan_towardzero_test_data): New variable.
9617         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9618         (ctan_downward_test_data): New variable.
9619         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9620         (ctan_upward_test_data): New variable.
9621         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9622         (ctanh_test_data): New variable.
9623         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
9624         (ctanh_tonearest_test_data): New variable.
9625         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9626         (ctanh_towardzero_test_data): New variable.
9627         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9628         (ctanh_downward_test_data): New variable.
9629         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9630         (ctanh_upward_test_data): New variable.
9631         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9632         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
9633         of BUILD_COMPLEX.
9634
9635         * math/libm-test.inc (struct test_ff_f_data): New type.
9636         (struct test_ff_f_data_nexttoward): Likewise.
9637         (RUN_TEST_LOOP_2_f): New macro.
9638         (RUN_TEST_LOOP_ff_f): Likewise.
9639         (atan2_test_data): New variable.
9640         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
9641         (copysign_test_data): New variable.
9642         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
9643         (fdim_test_data): New variable.
9644         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
9645         (fmax_test_data): New variable.
9646         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
9647         (fmin_test_data): New variable.
9648         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
9649         (fmod_test_data): New variable.
9650         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
9651         (hypot_test_data): New variable.
9652         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
9653         (nextafter_test_data): New variable.
9654         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
9655         (nexttoward_test_data): New variable.
9656         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
9657         (pow_test_data): New variable.
9658         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
9659         (pow_tonearest_test_data): New variable.
9660         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
9661         (pow_towardzero_test_data): New variable.
9662         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
9663         (pow_downward_test_data): New variable.
9664         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
9665         (pow_upward_test_data): New variable.
9666         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
9667         (remainder_test_data): New variable.
9668         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
9669         (scalb_test_data): New variable.
9670         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
9671         * sysdeps/i386/fpu/libm-test-ulps: Update.
9672
9673 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
9674
9675         * math/libm-test.inc (fma_test): Use max_value instead of local
9676         variable fltmax.
9677         (nextafter_test): Likewise.
9678
9679         * math/libm-test.inc (acos_towardzero_test_data): New variable.
9680         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9681         (acos_downward_test_data): New variable.
9682         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9683         (acos_upward_test_data): New variable.
9684         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9685         (acosh_test_data): New variable.
9686         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
9687         (asin_test_data): New variable.
9688         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
9689         (asin_tonearest_test_data): New variable.
9690         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9691         (asin_towardzero_test_data): New variable.
9692         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9693         (asin_downward_test_data): New variable.
9694         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9695         (asin_upward_test_data): New variable.
9696         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9697         (asinh_test_data): New variable.
9698         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
9699         (atan_test_data): New variable.
9700         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
9701         (atanh_test_data): New variable.
9702         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
9703         (cbrt_test_data): New variable.
9704         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
9705         (ceil_test_data): New variable.
9706         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
9707         (cos_test_data): New variable.
9708         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
9709         (cos_tonearest_test_data): New variable.
9710         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9711         (cos_towardzero_test_data): New variable.
9712         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9713         (cos_downward_test_data): New variable.
9714         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9715         (cos_upward_test_data): New variable.
9716         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9717         (cosh_test_data): New variable.
9718         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
9719         (cosh_tonearest_test_data): New variable.
9720         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9721         (cosh_towardzero_test_data): New variable.
9722         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9723         (cosh_downward_test_data): New variable.
9724         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9725         (cosh_upward_test_data): New variable.
9726         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9727         (erf_test_data): New variable.
9728         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
9729         (erfc_test_data): New variable.
9730         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
9731         (exp_test_data): New variable.
9732         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
9733         (exp_tonearest_test_data): New variable.
9734         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9735         (exp_towardzero_test_data): New variable.
9736         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9737         (exp_downward_test_data): New variable.
9738         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9739         (exp_upward_test_data): New variable.
9740         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9741         (exp10_test_data): New variable.
9742         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
9743         (exp2_test_data): New variable.
9744         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
9745         (expm1_test_data): New variable.
9746         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
9747         (fabs_test_data): New variable.
9748         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
9749         (floor_test_data): New variable.
9750         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
9751         (j0_test_data): New variable.
9752         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
9753         (j1_test_data): New variable.
9754         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
9755         (log_test_data): New variable.
9756         (log_test): Run tests with RUN_TEST_LOOP_f_f.
9757         (log10_test_data): New variable.
9758         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
9759         (log1p_test_data): New variable.
9760         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
9761         (log2_test_data): New variable.
9762         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
9763         (logb_test_data): New variable.
9764         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
9765         (logb_downward_test_data): New variable.
9766         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9767         (nearbyint_test_data): New variable.
9768         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
9769         (rint_test_data): New variable.
9770         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
9771         (rint_tonearest_test_data): New variable.
9772         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9773         (rint_towardzero_test_data): New variable.
9774         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9775         (rint_downward_test_data): New variable.
9776         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9777         (rint_upward_test_data): New variable.
9778         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9779         (round_test_data): New variable.
9780         (round_test): Run tests with RUN_TEST_LOOP_f_f.
9781         (sin_test_data): New variable.
9782         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
9783         (sin_tonearest_test_data): New variable.
9784         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9785         (sin_towardzero_test_data): New variable.
9786         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9787         (sin_downward_test_data): New variable.
9788         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9789         (sin_upward_test_data): New variable.
9790         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9791         (sinh_test_data): New variable.
9792         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
9793         (sinh_tonearest_test_data): New variable.
9794         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9795         (sinh_towardzero_test_data): New variable.
9796         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9797         (sinh_downward_test_data): New variable.
9798         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9799         (sinh_upward_test_data): New variable.
9800         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9801         (sqrt_test_data): New variable.
9802         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
9803         (tan_test_data): New variable.
9804         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
9805         (tan_tonearest_test_data): New variable.
9806         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9807         (tan_towardzero_test_data): New variable.
9808         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9809         (tan_downward_test_data): New variable.
9810         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9811         (tan_upward_test_data): New variable.
9812         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9813         (tanh_test_data): New variable.
9814         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
9815         (tgamma_test_data): New variable.
9816         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
9817         (trunc_test_data): New variable.
9818         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
9819         (y0_test_data): New variable.
9820         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
9821         (y1_test_data): New variable.
9822         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
9823         (significand_test_data): New variable.
9824         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
9825
9826 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
9827
9828         [BZ #12387]
9829         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
9830
9831 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9832
9833         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
9834
9835 2013-05-10  Andreas Jaeger  <aj@suse.de>
9836
9837         [BZ #15448]
9838         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
9839         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
9840
9841 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
9842
9843         * math/gen-libm-test.pl (adjust_arg): New function.
9844         (special_functions): Handle generating output in both functions
9845         and arrays.
9846         (parse_args): Likewise.
9847         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
9848         $in_func argument to parse_args.
9849         * math/libm-test.inc (struct test_f_f_data): New type.
9850         (IF_ROUND_INIT_): New macro.
9851         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
9852         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
9853         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9854         (IF_ROUND_INIT_FE_UPWARD): Likewise.
9855         (ROUND_RESTORE_): Likewise.
9856         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
9857         (ROUND_RESTORE_FE_TONEAREST): Likewise.
9858         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
9859         (ROUND_RESTORE_FE_UPWARD): Likewise.
9860         (RUN_TEST_LOOP_f_f): New macro.
9861         (acos_test_data): New variable.
9862         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
9863         (acos_tonearest_test_data): New variable.
9864         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9865
9866 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9867
9868         * benchtests/bench-skeleton.c (startup): Fix coding style.
9869
9870 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
9871
9872         [BZ #6809]
9873         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
9874         negative infinity argument.
9875         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
9876         negative infinity argument.
9877         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
9878         negative infinity argument.
9879         * math/libm-test.inc (tgamma_test): Expect errno to be set for
9880         domain errors.
9881
9882 2013-05-10  Florian Weimer  <fweimer@redhat.com>
9883
9884         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
9885         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
9886         * iconv/iconv_prog.c (main): Likewise.
9887         * locale/programs/charmap-dir.c (charmap_readdir)
9888         (fopen_uncompressed): Likewise.
9889         * locale/programs/locfile.c (siblings_uncached)
9890         (write_locale_data): Use lstat64 instead of lstat.
9891         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
9892         stat.
9893
9894 2013-05-10  Andreas Jaeger  <aj@suse.de>
9895
9896         [BZ #15395]
9897         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
9898         localization.
9899         Include <locale.h>.
9900
9901 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
9902
9903         * elf/dl-close.c (_dl_close_worker): Add comments.
9904
9905 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
9906
9907         [BZ #15359]
9908         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
9909         high part of pi/2.
9910         (__ieee754_rem_pio2l): Update comments.
9911
9912         [BZ #15429]
9913         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
9914         high part of pi/2.
9915         (__ieee754_rem_pio2l): Update comments.
9916
9917         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
9918         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
9919
9920         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
9921         M_PI_4l.
9922
9923         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
9924         (M_PI_34_LOG10El): Likewise.
9925         (M_PI2_LOG10El): Likewise.
9926         (M_PI4_LOG10El): Likewise.
9927         (M_PI_LOG10El): Likewise.
9928
9929 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9930
9931         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9932
9933 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
9934
9935         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
9936         (MINUS_ZERO_INIT): Likewise.
9937         (PLUS_INFTY_INIT): Likewise.
9938         (MINUS_INFTY_INIT): Likewise.
9939         (QNAN_VALUE_INIT): Likewise.
9940         (MAX_VALUE_INIT): Likewise.
9941         (MIN_VALUE_INIT): Likewise.
9942         (MIN_SUBNORM_VALUE_INIT): Likewise.
9943         (plus_zero): Initialize with PLUS_ZERO_INIT.
9944         (minus_zero): Initialize with MINUS_ZERO_INIT.
9945         (plus_infty): Initialize with PLUS_INFTY_INIT.
9946         (minus_infty): Initialize with MINUS_INFTY_INIT.
9947         (qnan_value): Initialize with QNAN_VALUE_INIT.
9948         (max_value): Initialize with MAX_VALUE_INIT.
9949         (min_value): Initialize with MIN_VALUE_INIT.
9950         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
9951
9952         * math/libm-test.inc (RUN_TEST_if_f): New macro.
9953         (jn_test): Use TEST_if_f instead of TEST_ff_f.
9954         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
9955         (yn_test): Use TEST_if_f instead of TEST_ff_f.
9956
9957         * math/libm-test.inc (RUN_TEST_f_f): New macro.
9958         (RUN_TEST_2_f): Likewise.
9959         (RUN_TEST_ff_f): Likewise.
9960         (RUN_TEST_fi_f): Likewise.
9961         (RUN_TEST_fl_f): Likewise.
9962         (RUN_TEST_fff_f): Likewise.
9963         (RUN_TEST_c_f): Likewise.
9964         (RUN_TEST_f_f1): Likewise.
9965         (RUN_TEST_fF_f1): Likewise.
9966         (RUN_TEST_fI_f1): Likewise.
9967         (RUN_TEST_ffI_f1): Likewise.
9968         (RUN_TEST_c_c): Likewise.
9969         (RUN_TEST_cc_c): Likewise.
9970         (RUN_TEST_f_i): Likewise.
9971         (RUN_TEST_f_i_tg): Likewise.
9972         (RUN_TEST_ff_i_tg): Likewise.
9973         (RUN_TEST_f_b): Likewise.
9974         (RUN_TEST_f_b_tg): Likewise.
9975         (RUN_TEST_f_l): Likewise.
9976         (RUN_TEST_f_L): Likewise.
9977         (RUN_TEST_sincos): Likewise.
9978         * math/gen-libm-test.pl (new_test): Take new argument to indicate
9979         whether to show exceptions.  Do not include ");\n" in return
9980         value.
9981         (special_functions): Output call to RUN_TEST_sincos instead of
9982         check_float calls.  Update calls to new_test.
9983         (parse_args): Output call to single RUN_TEST_* macro instead of
9984         check_* calls and other assignments.  Update calls to new_test.
9985
9986         [BZ #2546]
9987         [BZ #2560]
9988         [BZ #5159]
9989         [BZ #15426]
9990         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
9991         input to result for tgamma overflow.
9992         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
9993         (gamma_coeff): New variable.
9994         (NCOEFF): New macro.
9995         (gamma_positive): New function.
9996         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
9997         underflow here.  Use gamma_positive instead of exp (lgamma) for
9998         other arguments.
9999         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
10000         (gamma_coeff): New variable.
10001         (NCOEFF): New macro.
10002         (gammaf_positive): New function.
10003         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
10004         underflow here.  Use gamma_positive instead of exp (lgamma) for
10005         other arguments.
10006         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
10007         (gamma_coeff): New variable.
10008         (NCOEFF): New macro.
10009         (gammal_positive): New function.
10010         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
10011         underflow here.  Use gamma_positive instead of exp (lgamma) for
10012         other arguments.
10013         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
10014         (gamma_coeff): New variable.
10015         (NCOEFF): New macro.
10016         (gammal_positive): New function.
10017         (__ieee754_gammal_r): Handle positive infinity, overflow and
10018         underflow here.  Handle NaN the same as positive infinity.  Remove
10019         check x < 0xffffffff for negative integers.  Use gamma_positive
10020         instead of exp (lgamma) for other arguments.
10021         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
10022         (gamma_coeff): New variable.
10023         (NCOEFF): New macro.
10024         (gammal_positive): New function.
10025         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
10026         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
10027         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10028         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
10029         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
10030         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10031         * sysdeps/generic/math_private.h (__gamma_productf): New
10032         prototype.
10033         (__gamma_product): Likewise.
10034         (__gamma_productl): Likewise.
10035         * math/Makefile (libm-calls): Add gamma_product.
10036         * math/libm-test.inc (tgamma_test): Add more tests.
10037         * sysdeps/i386/fpu/libm-test-ulps: Update.
10038         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10039
10040 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
10041
10042         * benchtests/bench-skeleton.c (main): Preheat CPU.
10043
10044 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
10045
10046         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
10047
10048 2013-05-07  Roland McGrath  <roland@hack.frob.com>
10049
10050         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
10051         and _dl_skip_args_internal.
10052
10053 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
10054
10055         * manual/message.texi (Message Translation): Talk about users.
10056         Message to key mapping impacts design.
10057
10058 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10059
10060         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
10061
10062         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
10063
10064         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
10065         * sysdeps/wordsize-64/glob64.c: ... here.
10066
10067         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
10068         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
10069         New macros.
10070
10071         * debug/getlogin_r_chk.c: Moved to ...
10072         * login/getlogin_r_chk.c: ... here.
10073         * debug/Makefile (routines): Move getlogin_r_chk to ...
10074         * login/Makefile (routines): ... here.
10075         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
10076         * login/Versions (libc: GLIBC_2.4): ... here.
10077
10078         * io/poll.c (__poll): Renamed from poll.
10079         Add libc_hidden_def.
10080         (poll): Define as weak alias.
10081
10082         * debug/ptsname_r_chk.c: Moved to ...
10083         * login/ptsname_r_chk.c: ... here.
10084         * debug/Makefile (routines): Move ptsname_r_chk to ...
10085         * login/Makefile (routines): ... here.
10086         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
10087         * login/Versions (libc: GLIBC_2.4): ... here.
10088
10089         * posix/getlogin.c: Moved to ...
10090         * login/getlogin.c: ... here.
10091         * posix/getlogin_r.c: Moved to ...
10092         * login/getlogin_r.c: ... here.
10093         * posix/getlogin_r.c: Moved to ...
10094         * login/getlogin_r.c: ... here.
10095         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
10096         * login/Makefile (routines): ... here.
10097         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
10098         * login/Versions (libc: GLIBC_2.0): ... here.
10099
10100         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
10101         (setrlimit): Define as weak alias.
10102
10103         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
10104         Call __ names for open, ftruncate, and close.
10105         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
10106         (truncate): Define as weak alias.
10107
10108 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
10109
10110         * math/gen-libm-test.pl (parse_args): Initialize x before each
10111         test of frexp, modf and remquo.
10112
10113         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
10114         test signgam value.
10115
10116 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10117
10118         [BZ #15418]
10119         [BZ #15419]
10120         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
10121         internal tests.
10122         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10123
10124 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10125
10126         * elf/dl-writev.h: New file.
10127         * elf/dl-misc.c: Include it.
10128         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
10129         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
10130
10131 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
10132
10133         * math/libm-test.inc (noXFails): Remove variable.
10134         (noXPasses): Likewise.
10135         (BUILD_COMPLEX_INT): Remove macro.
10136         (print_screen): Remove xfail argument.
10137         (print_screen_max_error): Likewise.
10138         (update_stats): Likewise.
10139         (print_max_error): Likewise.  Update calls to other affected
10140         functions.
10141         (print_complex_max_error): Likewise.
10142         (test_single_exception): Update calls to print_screen.
10143         (test_single_errno): Likewise.
10144         (check_float_internal): Remove xfail argument.  Update calls to
10145         other affected functions.
10146         (check_float): Likewise.
10147         (check_complex): Likewise.
10148         (check_int): Likewise.
10149         (check_long): Likewise.
10150         (check_bool): Likewise.
10151         (check_longlong): Likewise.
10152         (main): Don't print noXFails and noXPasses.
10153         * math/gen-libm-test.pl (top level): Don't mention expected
10154         failure handling in comment.
10155         (new_test): Don't handle expected failures.
10156         (parse_args): Don't mention expected failure handling in comment.
10157         (generate_testfile): Don't handle expected failures.
10158         (parse_ulps): Likewise.
10159         (print_ulps_file): Likewise.
10160         (get_failure): Remove function.
10161         (output_test): Don't handle expected failures.
10162         * make/README.libm-test: Don't mention expected failure handling.
10163
10164         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
10165         (minus_zero): Likewise.
10166         (plus_infty): Likewise.
10167         (minus_infty): Likewise.
10168         (qnan_value): Likewise.
10169         (max_value): Likewise.
10170         (min_value): Likewise.
10171         (min_subnorm_value): Likewise.
10172         (initialize): Do not initialize those variables dynamically.
10173
10174 2013-05-03  Roland McGrath  <roland@hack.frob.com>
10175
10176         * io/open.c (__open_2): Moved to ...
10177         * io/open_2.c: ... this new file.
10178         * io/open64.c (__open64_2): Moved to ...
10179         * io/open64_2.c: ... this new file.
10180         * io/openat.c (__openat_2): Moved to ...
10181         * io/openat_2.c: ... this new file.
10182         * io/openat64.c (__openat64_2): Moved to ...
10183         * io/openat64_2.c: ... this new file.
10184         * io/Makefile (routines): Add them.
10185         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
10186         * sysdeps/unix/sysv/linux/open_2.c: File removed.
10187         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
10188         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
10189         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
10190         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
10191         (__openat64): Add hidden_ver.
10192         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
10193         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
10194
10195         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10196         Separately conditionalize setting of GLRO(dl_sysinfo) so
10197         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
10198         as well, but the actual setting is only under [NEED_DL_SYSINFO].
10199
10200 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10201
10202         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
10203         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
10204         definition.
10205         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
10206         * sysdeps/unix/sysv/linux/powerpc/init-first.c
10207         (_libc_vdso_platform_setup): Add __vdso_time initialization.
10208         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
10209         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
10210
10211 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
10212
10213         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
10214         test signgam value.
10215
10216         * math/libm-test.inc (hypot_test): Do not use
10217         IGNORE_ZERO_INF_SIGN.
10218
10219 2013-05-03  Andreas Jaeger  <aj@suse.de>
10220
10221         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
10222         Linux 3.9.
10223         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
10224         (PF_MAX): Adjust for VSOCK change.
10225
10226 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10227
10228         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10229
10230 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
10231
10232         [BZ #15264]
10233         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
10234         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
10235         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
10236
10237 2013-05-02  David S. Miller  <davem@davemloft.net>
10238
10239         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10240
10241 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
10242
10243         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
10244
10245 2013-05-01  Roland McGrath  <roland@hack.frob.com>
10246
10247         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
10248
10249 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
10250
10251         [BZ #14952]
10252         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
10253         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10254         Use __attribute__ ((__gnu_inline__)).
10255         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10256         Don't use __attribute__ ((__gnu_inline__)).
10257
10258 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
10259
10260         [BZ #15423]
10261         * math/s_catan.c (__catan): Handle small real or imaginary part of
10262         input specially to avoid spurious underflow.
10263         * math/s_catanf.c (__catanf): Likewise.
10264         * math/s_catanh.c (__catanh): Likewise.
10265         * math/s_catanhf.c (__catanhf): Likewise.
10266         * math/s_catanhl.c (__catanhl): Likewise.
10267         * math/s_catanl.c (__catanl): Likewise.
10268         * math/libm-test.inc (catan_test): Add more tests.
10269         (catanh_test): Likewise.
10270         * sysdeps/i386/fpu/libm-test-ulps: Update.
10271         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10272
10273 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10274
10275         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10276
10277 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
10278
10279         [BZ #15416]
10280         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
10281         accurately for denominator in atan2.
10282         * math/s_catanf.c (__catanf): Likewise.
10283         * math/s_catanh.c (__catanh): Likewise.
10284         * math/s_catanhf.c (__catanhf): Likewise.
10285         * math/s_catanhl.c (__catanhl): Likewise.
10286         * math/s_catanl.c (__catanl): Likewise.
10287         * math/libm-test.inc (catan_test): Add more tests.
10288         (catanh_test): Likewise.
10289         * sysdeps/i386/fpu/libm-test-ulps: Update.
10290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10291
10292 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10293
10294         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
10295
10296         * benchtests/Makefile (bench): Remove slow benchmarks.
10297         * benchtests/atan-inputs: Add slow benchmark inputs.
10298         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
10299         (BENCH_FUNC): Accept variant offset.
10300         (VARIANT): Define.
10301         * benchtests/bench-skeleton.c (main): Run benchmark for each
10302         variant.
10303         * benchtests/cos-inputs: Add slow benchmark inputs.
10304         * benchtests/exp-inputs: Likewise.
10305         * benchtests/pow-inputs: Likewise.
10306         * benchtests/sin-inputs: Likewise.
10307         * benchtests/slowatan-inputs: Remove.
10308         * benchtests/slowatan.c: Remove.
10309         * benchtests/slowcos-inputs: Remove.
10310         * benchtests/slowcos.c: Remove.
10311         * benchtests/slowexp-inputs: Remove.
10312         * benchtests/slowexp.c: Remove.
10313         * benchtests/slowpow-inputs: Remove.
10314         * benchtests/slowpow.c: Remove.
10315         * benchtests/slowsin-inputs: Remove.
10316         * benchtests/slowsin.c: Remove.
10317         * benchtests/slowtan-inputs: Remove.
10318         * benchtests/slowtan.c: Remove.
10319         * benchtests/tan-inputs: Add slow benchmark inputs.
10320         * scripts/bench.pl: Parse comments and directives.
10321
10322         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
10323         in CPPFLAGS.
10324         ($(objpfx)bench-%.c): Remove *-ITER.
10325         * benchtests/bench-modf.c: Remove definition of ITER.
10326         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
10327         (main): Loop for DURATION seconds instead of fixed number of
10328         iterations.
10329         * scripts/bench.pl: Don't expect iterations in parameters.
10330
10331 2013-04-29  Roland McGrath  <roland@hack.frob.com>
10332
10333         * io/fchdir.c (__fchdir): Renamed from fchdir.
10334         (fchdir): Define as weak alias.
10335
10336 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10337
10338         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
10339         (ERRNO_EDOM): Likewise.
10340         (ERRNO_ERANGE): Likewise.
10341         (noErrnoTests): New variable.
10342         (init_max_error): Set errno to 0.
10343         (test_single_errno): New function.
10344         (test_errno): Likewise.
10345         (check_float_internal): Call test_errno.  Set errno to 0.
10346         (check_complex): Refer to errno tests in comment.
10347         (check_int): Call test_errno.  Set errno to 0.
10348         (check_long): Likewise.
10349         (check_bool): Likewise.
10350         (check_longlong): Likewise.
10351         (cos_test): Use ERRNO_* flags for errno tests instead of
10352         check_int.
10353         (expm1_test): Likewise.
10354         (fmod_test): Likewise.
10355         (ilogb_test): Likewise.
10356         (lgamma_test): Likewise.
10357         (pow_test): Likewise.
10358         (remainder_test): Likewise.
10359         (sin_test): Likewise.
10360         (tan_test): Likewise.
10361         (yn_test): Likewise.
10362         (initialize): Set errno to 0.
10363         (main): Print number of errno tests.
10364         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
10365
10366 2013-04-29  Andreas Jaeger  <aj@suse.de>
10367
10368         [BZ #15084]
10369         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
10370         and RES_USEVC.
10371
10372         [BZ #15085]
10373         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
10374         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
10375         unimplemented.
10376
10377         [BZ #15380]
10378         * stdlib/random.c (__initstate): Return NULL if
10379         __initstate fails.
10380
10381         [BZ #15086]
10382         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
10383         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
10384         RES_SNGLKUPREOP.
10385
10386 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10387
10388         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10389
10390 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10391
10392         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
10393         of individual tests.
10394         (casin_test): Likewise.
10395         (casinh_test): Likewise.
10396
10397 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
10398
10399         [BZ #15409]
10400         * math/s_catan.c (__catan): Handle arguments with large real or
10401         imaginary part separately without squaring.
10402         * math/s_catanf.c (__catanf): Likewise.
10403         * math/s_catanh.c (__catanh): Likewise.
10404         * math/s_catanhf.c (__catanhf): Likewise.
10405         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10406         and redefine.
10407         (__catanhl): Handle arguments with large real or imaginary part
10408         separately without squaring.
10409         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10410         and redefine.
10411         (__catanl): Handle arguments with large real or imaginary part
10412         separately without squaring.
10413         * math/libm-test.inc (catan_test): Add more tests.
10414         (catanh_test): Likewise.
10415         * sysdeps/i386/fpu/libm-test-ulps: Update.
10416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10417
10418 2013-04-27  Andreas Jaeger  <aj@suse.de>
10419
10420         [BZ #15007]
10421         * stdlib/stdlib.h: Update guards for qecvt.
10422         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
10423         <stdlib.h>.
10424
10425 2013-04-27  Allan McRae  <allan@archlinux.org>
10426
10427         * sysdeps/i386/fpu/libm-test-ulps: Update.
10428
10429 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
10430
10431         [BZ #15406]
10432         * math/s_catan.c: Include <float.h>.
10433         (__catan): Ensure underflow exception occurs for underflowed
10434         result.
10435         * math/s_catanf.c: Include <float.h>.
10436         (__catanf): Ensure underflow exception occurs for underflowed
10437         result.
10438         * math/s_catanh.c: Include <float.h>.
10439         (__catanh): Ensure underflow exception occurs for underflowed
10440         result.
10441         * math/s_catanhf.c: Include <float.h>.
10442         (__catanhf): Ensure underflow exception occurs for underflowed
10443         result.
10444         * math/s_catanhl.c: Include <float.h>.
10445         (__catanhl): Ensure underflow exception occurs for underflowed
10446         result.
10447         * math/s_catanl.c: Include <float.h>.
10448         (__catanl): Ensure underflow exception occurs for underflowed
10449         result.
10450         * math/libm-test.inc (catan_test): Add more tests.
10451         (catanh_test): Likewise.
10452
10453         [BZ #15405]
10454         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
10455         underflowed result.
10456         * math/s_ccoshf.c (__ccoshf): Likewise.
10457         * math/s_ccoshl.c (__ccoshl): Likewise.
10458         * math/s_csin.c (__csin): Likewise.
10459         * math/s_csinf.c (__csinf): Likewise.
10460         * math/s_csinh.c (__csinh): Likewise.
10461         * math/s_csinhf.c (__csinhf): Likewise.
10462         * math/s_csinhl.c (__csinhl): Likewise.
10463         * math/s_csinl.c (__csinl): Likewise.
10464         * math/libm-test.inc (ccos_test): Add more tests.
10465         (ccosh_test): Likewise.
10466         (csin_test): Likewise.
10467         (csinh_test): Likewise.
10468
10469 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10470
10471         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
10472         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
10473         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
10474         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
10475         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
10476         powerpc/power5+/fpu folders.
10477         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
10478
10479
10480 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10481
10482         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10483
10484 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
10485
10486         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
10487         additions to variable.
10488         [$(config-machine) = x86_64] (modules-names): Likewise.
10489         ($(objpfx)tst-audit3): Remove dependency.
10490         ($(objpfx)tst-audit3.out): Likewise.
10491         ($(objpfx)tst-audit4): Likewise.
10492         ($(objpfx)tst-audit4.out): Likewise.
10493         ($(objpfx)tst-audit5): Likewise.
10494         ($(objpfx)tst-audit5.out): Likewise.
10495         ($(objpfx)tst-audit6): Likewise.
10496         ($(objpfx)tst-audit6.out): Likewise.
10497         ($(objpfx)tst-audit7): Likewise.
10498         ($(objpfx)tst-audit7.out): Likewise.
10499         (tst-audit3-ENV): Remove variable.
10500         (tst-audit4-ENV): Likewise.
10501         (tst-audit5-ENV): Likewise.
10502         (tst-audit6-ENV): Likewise.
10503         (tst-audit7-ENV): Likewise.
10504         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
10505         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
10506         addition to variable.
10507         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
10508         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
10509         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
10510         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
10511         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
10512         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
10513         tst-audit3, tst-audit4 and tst-audit5.
10514         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
10515         tst-audit6 and tst-audit7.
10516         [$(subdir) = elf] (modules-names): Add audit modules for those
10517         tests.
10518         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
10519         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
10520         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
10521         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
10522         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
10523         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
10524         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
10525         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
10526         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
10527         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
10528         [$(subdir) = elf] (tst-audit3-ENV): New variable.
10529         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
10530         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
10531         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
10532         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
10533         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
10534         Likewise.
10535         [$(subdir) = elf && $(config-cflags-avx) = yes]
10536         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
10537         [$(subdir) = elf && $(config-cflags-avx) = yes]
10538         (CFLAGS-tst-auditmod4a.c): Likewise.
10539         [$(subdir) = elf && $(config-cflags-avx) = yes]
10540         (CFLAGS-tst-auditmod4b.c): Likewise.
10541         [$(subdir) = elf && $(config-cflags-avx) = yes]
10542         (CFLAGS-tst-auditmod6b.c): Likewise.
10543         [$(subdir) = elf && $(config-cflags-avx) = yes]
10544         (CFLAGS-tst-auditmod6c.c): Likewise.
10545         [$(subdir) = elf && $(config-cflags-avx) = yes]
10546         (CFLAGS-tst-auditmod7b.c): Likewise.
10547         * elf/tst-audit3.c: Move to ...
10548         * sysdeps/x86_64/tst-audit3.c: ... here.
10549         * elf/tst-audit4.c: Move to ...
10550         * sysdeps/x86_64/tst-audit4.c: ... here.
10551         * elf/tst-audit5.c: Move to ...
10552         * sysdeps/x86_64/tst-audit5.c: ... here.
10553         * elf/tst-audit6.c: Move to ...
10554         * sysdeps/x86_64/tst-audit6.c: ... here.
10555         * elf/tst-audit7.c: Move to ...
10556         * sysdeps/x86_64/tst-audit7.c: ... here.
10557         * elf/tst-auditmod3a.c: Move to ...
10558         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
10559         * elf/tst-auditmod3b.c: Move to ...
10560         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
10561         * elf/tst-auditmod4a.c: Move to ...
10562         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
10563         * elf/tst-auditmod4b.c: Move to ...
10564         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
10565         * elf/tst-auditmod5a.c: Move to ...
10566         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
10567         * elf/tst-auditmod5b.c: Move to ...
10568         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
10569         * elf/tst-auditmod6a.c: Move to ...
10570         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
10571         * elf/tst-auditmod6b.c: Move to ...
10572         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
10573         * elf/tst-auditmod6c.c: Move to ...
10574         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
10575         * elf/tst-auditmod7a.c: Move to ...
10576         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
10577         * elf/tst-auditmod7b.c: Move to ...
10578         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
10579
10580 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
10581
10582         [BZ #15366]
10583         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
10584         define unconditionally.
10585         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
10586         define unconditionally.
10587         (INT8_C, INT16_C, etc.): Likewise.
10588
10589 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
10590
10591         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
10592         __ehdr_start with hidden visibility.
10593
10594         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
10595
10596 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
10597
10598         * math/libm-test.inc (cos_test): Use accurate hex constants.
10599         (sincost_test): Likewise.
10600
10601 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
10602
10603         * math/libm-test.inc (catan_test): Add more tests.
10604         (catanh_test): Likewise.
10605
10606         * math/s_catanf.c (__catanf): Use suffixed floating-point
10607         constants.
10608         * math/s_catanhf.c (__catanhf): Likewise.
10609         * math/s_catanhl.c (__catanhl): Likewise.
10610         * math/s_catanl.c (__catanl): Likewise.
10611
10612         [BZ #15394]
10613         * math/s_catan.c (__catan): Calculate imaginary part of result
10614         with log1p not log unless computing log of number close to 0.
10615         * math/s_catanf.c (__catanf): Likewise.
10616         * math/s_catanl.c (__catanl): Likewise.
10617         * math/s_catanh.c (__catanh): Calculate real part of result with
10618         log1p not log unless computing log of number close to 0.
10619         * math/s_catanhf.c (__catanhf): Likewise.
10620         * math/s_catanhl.c (__catanhl): Likewise.
10621         * math/libm-test.inc (catan_test): Add more tests.
10622         (catanh_test): Likewise.
10623         * sysdeps/i386/fpu/libm-test-ulps: Update.
10624         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10625
10626 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10627
10628         * benchtests/Makefile: Mention files in which fast and slow
10629         paths of math functions are implemented.
10630
10631 2013-04-23  Roland McGrath  <roland@hack.frob.com>
10632
10633         * sysdeps/posix/timespec_get.c: New file.
10634
10635 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10636
10637         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
10638         POWER.
10639         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
10640         for POWER.
10641         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
10642         powerpc/power5/fpu folders.
10643         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
10644         * benchtests/Makefile: Add modf testcase.
10645         * benchtests/bench-modf.c: New file: Benchmark test for mo
10646
10647 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
10648
10649         [BZ #14888]
10650         * time/Makefile (tests): Add tst-strptime-whitespace.
10651         * time/strptime_l.c (get_number): Use ISSPACE.
10652         (__strptime_internal): Likewise.
10653         * time/tst-strptime-whitespace.c: New test case.
10654
10655 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
10656
10657         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
10658         member.
10659         (_nss_files_init): Set it here.
10660
10661 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
10662
10663         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
10664         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
10665         unsigned.
10666
10667 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
10668
10669         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
10670
10671 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10672
10673         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
10674         size just once.
10675
10676 2013-04-21  David S. Miller  <davem@davemloft.net>
10677
10678         * po/ru.po: Update Russion translation from translation project.
10679
10680 2013-04-17  Adam Conrad  <adconrad@0c3.net>
10681
10682         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
10683         and setfsgid.
10684
10685 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
10686
10687         * configure.in: Remove i386 configure warning. Remove i386 case.
10688         * configure: Regenerate.
10689         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
10690         Add example to error message.
10691         * sysdeps/i386/configure: Regenerate.
10692
10693 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
10694
10695         * benchtests/Makefile (bench): Add cos, tan, slowcos and
10696         slowtan.
10697         * benchtests/cos-inputs: New file.
10698         * benchtests/slowcos-inputs: New file.
10699         * benchtests/slowcos.c: New file.
10700         * benchtests/slowtan-inputs: New file.
10701         * benchtests/slowtan.c: New file.
10702         * benchtests/tan-inputs: New file.
10703
10704 2013-04-16  Roland McGrath  <roland@hack.frob.com>
10705
10706         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
10707         considered kosher.
10708
10709 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10710
10711         * benchtests/Makefile: Include cppflags-iterator.mk to add
10712         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
10713
10714         * Makefile.in (bench-clean): New target.
10715         * benchtests/Makefile (bench-clean): Likewise.
10716
10717 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
10718
10719         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
10720
10721 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
10722
10723         * stdio-common/tstdiomisc.c: Fix coding-style violation.
10724
10725 2013-04-15  Andreas Schwab  <schwab@suse.de>
10726
10727         * nscd/grpcache.c (cache_addgr): Properly check for short write.
10728         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10729         * nscd/pwdcache.c (cache_addpw): Likewise.
10730         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
10731         more than recsize.
10732
10733 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10734
10735         * benchtests/Makefile (bench): Write all output to
10736         bench-out.tmp together.
10737
10738 2013-04-15  Andreas Schwab  <schwab@suse.de>
10739
10740         * nscd/nscd.c (main): Don't fork again after closing files.
10741
10742 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10743
10744         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
10745
10746         * benchtests/Rules (bench-deps): Collect dependencies into a
10747         single variable.  Add Makefile to dependencies.
10748         ($(objpfx)bench-%.c): Depend on bench-deps.
10749
10750 2013-04-12  Roland McGrath  <roland@hack.frob.com>
10751             Xavier Roche  <roche+kml2@exalead.com>
10752
10753         [BZ #15361]
10754         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
10755         just that it's a file descriptor.
10756         * manual/llio.texi (Synchronizing AIO Operations): Update description
10757         for EBADF error from aio_fsync.
10758
10759 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10760
10761         * Rules (bench): Move target definition...
10762         * benchtests/Makefile: ... here.
10763
10764 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
10765
10766         * math/libm-test.inc (cos_test): Fix PI/2 test.
10767         (sincos_test): Likewise.
10768         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
10769         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
10770
10771 2013-04-11  Andreas Schwab  <schwab@suse.de>
10772
10773         [BZ #13988]
10774         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
10775         accept exponent character only when digits were seen.
10776         * stdio-common/Makefile (tests): Add bug26.
10777         * stdio-common/bug26.c: New file.
10778
10779         [BZ #14293]
10780         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
10781         non-freeable.
10782
10783 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10784
10785         * Makeconfig (rtld-prefix): Define built linker prefix.
10786         * Rules (run-bench): Use it.
10787         * math/Makefile (run-regen-ulps): Likewise.
10788
10789         * Rules (bench): Remove eval.
10790
10791 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10792             Roland McGrath  <roland@hack.frob.com>
10793             Ondrej Bilka  <neleai@seznam.cz>
10794
10795         [BZ #15346]
10796         * time/getdate.c: Include ctype.h and alloca.h.
10797         (__getdate_r): Trim leading and trailing spaces of input.
10798         * time/tst-getdate.c (tests): Add tests with leading and
10799         trailing spaces.
10800
10801 2013-04-08  Roland McGrath  <roland@hack.frob.com>
10802
10803         [BZ #14280]
10804         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
10805         when computing value.
10806
10807 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10808
10809         * math/README.libm-test (How can I generate "libm-test-ulps"?):
10810         Use testrun.sh to run libm tests.
10811
10812         [BZ #15309]
10813         * elf/dl-open.c (dl_open_worker): memset all of seen array.
10814
10815 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
10816
10817         [BZ #15264]
10818         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
10819
10820 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10821
10822         * Makefile.in (regen-ulps): New target.
10823         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
10824         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
10825         [ifneq (no,$(PERL)] (regen-ulps): New target.
10826         [ifeq (no,$(PERL)] (regen-ulps): New target.
10827         * math/libm-test.inc (ulps_file_name): Define.
10828         (output_dir): New variable.
10829         (options): Add "output-dir" option.
10830         (parse_opt): Handle 'o' case.
10831         (main): If output_dir is non-NULL use it as a prefix
10832         otherwise use "".
10833         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
10834
10835 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10836
10837         [BZ #10060, #10062]
10838         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
10839         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
10840         fail configure if __sync_val_compare_and_swap is not inlined.
10841         * sysdeps/i386/configure: Regenerate.
10842         * configure.in: Build for i686 when configured for i386.
10843         * configure: Regenerate.
10844         * README: Remove i386 reference.
10845
10846 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10847
10848         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
10849         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10850
10851 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10852
10853         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
10854         (lmsnanval): New variables.
10855         (F): Add conversion tests.
10856         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
10857         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
10858
10859         * stdio-common/tstdiomisc.c (F): Properly collect individual
10860         tests' results.
10861
10862         [BZ #14686, #15336]
10863         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
10864         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
10865         Instead, use input NaN values or generate a qNaN by arithmetic
10866         operation.  Also fix bugs to comply with the standard.
10867         * math/libm-test.inc (remainder_test): Add more tests.
10868
10869         [BZ #15335, #15342]
10870         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
10871         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
10872         input NaN values or generate a qNaN by arithmetic operation.
10873
10874         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
10875         unreachable code.
10876
10877         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
10878         definitions.
10879
10880 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
10881
10882         [BZ #14478]
10883         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
10884         underflowed result.
10885         * math/s_cexpf.c (__cexpf): Likewise.
10886         * math/s_cexpl.c (__cexpl): Likewise.
10887         * math/libm-test.inc (cexp_test): Add more tests.
10888
10889 2013-04-03  Andreas Schwab  <schwab@suse.de>
10890
10891         [BZ #15330]
10892         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
10893         order arrays from heap if bigger than alloca cutoff.
10894
10895 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
10896
10897         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
10898         (SNAN_TESTS_double): Refer to GCC PR56831.
10899         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
10900         GCC PR56828.
10901
10902 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
10903
10904         * Rules (bench): Move bench.out after the run is complete.
10905
10906         * Rules (bench): Echo currently running benchmark.
10907
10908         * benchtests/Makefile (bench): Add atan and slowatan.
10909         * benchtests/atan-inputs: New file.
10910         * benchtests/slowatan-inputs: New file.
10911         * benchtests/slowatan.c: New file.
10912
10913         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
10914         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
10915         its value.
10916
10917         [BZ #15305]
10918         * sysdeps/unix/sysv/linux/kernel-features.h
10919         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
10920         __ASSUME_XFS_RESTRICTED_CHOWN.
10921         * sysdeps/unix/sysv/linux/pathconf.c
10922         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
10923         Save and restore errno.
10924
10925 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
10926
10927         [BZ #15327]
10928         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
10929         arguments using __kernel_casinh.
10930         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
10931         arguments using __kernel_casinhf.
10932         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
10933         arguments using __kernel_casinhl.
10934         * math/libm-test.inc (cacosh_test): Add more tests.
10935         * sysdeps/i386/fpu/libm-test-ulps: Update.
10936         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10937
10938 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10939
10940         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
10941         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
10942
10943         * bench/Makefile (bench): Add sin and slowsin.
10944         * benchtests/sin-inputs: New file.
10945         * benchtests/slowsin-inputs: New file.
10946         * benchtests/slowsin.c: New file.
10947
10948         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
10949         (bench): Add slowexp and slowpow.
10950         (exp-ITER): Increase iterations.
10951         (pow-ITER): Likewise.
10952         * benchtests/exp-inputs: Change input.
10953         * benchtests/pow-inputs: Likewise.
10954         * benchtests/slowexp-inputs: New file.
10955         * benchtests/slowexp.c: New file.
10956         * benchtests/slowpow-inputs: New file.
10957         * benchtests/slowpow.c: New file.
10958
10959 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10960
10961         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
10962         instructions.
10963         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
10964         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
10965         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
10966         * benchtests/Makefile: Add rint benchtest.
10967         * benchtests/rint-inputs: Input for rint benchtest.
10968
10969 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10970
10971         * Versions.def (libm): Add GLIBC_2.18.
10972         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
10973         hidden libm prototypes.
10974         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
10975         * math/Makefile (libm-calls): Add s_issignaling.
10976         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
10977         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
10978         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
10979         declaration.
10980         * math/math.h [__USE_GNU] (issignaling): New macro.
10981         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
10982         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
10983         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
10984         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
10985         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
10986         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
10987         * manual/arith.texi (issignaling): New section.
10988         * manual/libm-err-tab.pl (@all_functions): Update comment.
10989         * math/gen-libm-test.pl (parse_args): Apply special handling for
10990         issignaling.
10991         * math/libm-test.inc (print_float, issignaling_test): New
10992         functions.
10993         (check_float_internal): Add issignaling checks.
10994         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
10995         default definition.
10996         * sysdeps/powerpc/math-tests.h: New file.
10997         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
10998         tests.
10999         * math/test-snan.c (TEST_FUNC): Likewise.
11000
11001 2013-03-30  David S. Miller  <davem@davemloft.net>
11002
11003         * po/de.po: Update from translation team.
11004
11005 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
11006
11007         [BZ #10357]
11008         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11009         imaginary part less than 1.0 and real part less than 0.5
11010         specially.
11011         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11012         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11013         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
11014         (cacos_test): Add more tests.
11015         (casin_test): Likewise.
11016         (casinh_test): Likewise.
11017         * sysdeps/i386/fpu/libm-test-ulps: Update.
11018         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11019
11020 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11021
11022         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
11023         ONE with its value.
11024
11025         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
11026         (__pow_mp): Replace ONE and MONE with their values.
11027         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11028         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
11029         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11030         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
11031         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11032         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11033
11034         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
11035
11036         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
11037         (__pow_mp): Replace ZERO and MZERO with their values.
11038         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11039         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11040         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11041         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
11042         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11043         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
11044         (__sqr): Likewise.
11045
11046         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
11047
11048         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
11049
11050 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11051
11052         * include/stdlib.h [!SHARED] (__call_tls_dtors):
11053         Declare with __attribute__ ((weak)).
11054         * stdlib/exit.c (__libc_atexit) [!SHARED]:
11055         Call __call_tls_dtors only if it's not NULL.
11056
11057 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11058
11059         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
11060         didn't do it already, then set _dl_phdr and _dl_phnum based on the
11061         magic __ehdr_start linker symbol if it's defined.
11062         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
11063         them up here if it was already done.
11064
11065         * elf/dl-support.c (_dl_phdr): Make pointer to const.
11066         (_dl_aux_init): Use const in cast when setting it.
11067         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
11068         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
11069         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
11070
11071         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
11072         Declare them here.
11073         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
11074         * csu/libc-tls.c: Nor here.
11075         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
11076
11077         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
11078         (__libc_message): Never call vsyslog.
11079
11080 2013-03-28  Alan Modra  <amodra@gmail.com>
11081
11082         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
11083         Define as empty.
11084         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
11085         Likewise.
11086
11087 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11088
11089         [BZ #15214]
11090         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
11091         underflow.
11092         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11093
11094 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11095
11096         [BZ #15304]
11097         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
11098         Don't add gid passed as argument.
11099
11100         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
11101
11102 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
11103
11104         [BZ #15307]
11105         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11106         imaginary part between 1.0 and 1.5 and real part less than 0.5
11107         specially.
11108         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11109         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11110         * math/libm-test.inc (cacos_test): Add more tests.
11111         (casin_test): Likewise.
11112         (casinh_test): Likewise.
11113         * sysdeps/i386/fpu/libm-test-ulps: Update.
11114         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11115
11116 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11117
11118         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
11119         constants.
11120         (norm): Likewise.
11121         (denorm): Likewise.
11122         (__dbl_mp): Likewise.
11123         (add_magnitudes): Likewise.
11124         (sub_magnitudes): Likewise.
11125         (__add): Likewise.
11126         (__sub): Likewise.
11127         (__mul): Likewise.
11128         (__sqr): Likewise.
11129         (__inv): Likewise.
11130         (__dvd): Likewise.
11131
11132         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
11133         commented code.
11134         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
11135         (__dubcos): Likewise.
11136         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
11137         (__ieee754_acos): Likewise.
11138         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11139         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
11140         (__exp1): Likewise.
11141         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11142         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11143         (log1): Likewise.
11144         (my_log2): Likewise.
11145         (checkint): Likewise.
11146         * sysdeps/ieee754/dbl-64/e_remainder.c
11147         (__ieee754_remainder): Likewise.
11148         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11149         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11150         (bsloww): Likewise.
11151         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11152
11153         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11154         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
11155         MANTISSA_STORE_T to store computations on mantissa.  Use
11156         macros for rounding and division.
11157         (denorm): Likewise.
11158         (__dbl_mp): Likewise.
11159         (add_magnitudes): Likewise.
11160         (sub_magnitudes): Likewise.
11161         (__mul): Likewise.
11162         (__sqr): Likewise.
11163         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11164         powers of two in terms of TWOPOW macro.
11165         (mp_no): Make type of mantissa as MANTISSA_T.
11166         [!RADIXI]: Define RADIXI.
11167         [!TWO52]: Define TWO52.
11168         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11169
11170 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11171
11172         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
11173         llroundl symbol when building for PPC32.
11174
11175 2013-03-24  Mark H Weaver  <mhw@netris.org>
11176
11177         * manual/arith.texi (Normalization Functions): Fix prototypes for
11178         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
11179
11180 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11181
11182         [BZ #13889]
11183         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
11184         high value to check if expl overflow.
11185         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
11186         to check for underflow and overflow.
11187         * math/libm-test.inc: Add exp test.
11188
11189 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
11190
11191         [BZ #11120]
11192         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
11193         with NOT_IN_libc.
11194
11195 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11196
11197         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
11198         symbol.
11199
11200 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11201
11202         * math/gen-libm-test.pl (parse_args, special_functions): Properly
11203         wrap blocks consisting of several statements.
11204
11205         * sysdeps/generic/math-tests.h: New file.
11206         * sysdeps/i386/fpu/math-tests.h: Likewise.
11207         * math/test-snan.c: Include it.
11208         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
11209
11210 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11211
11212         [BZ #15285]
11213         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
11214         (__ieee754_j0l): Do not improve calculations using cos of twice
11215         input for inputs above LDBL_MAX / 2.0L.
11216         (__ieee754_y0l): Likewise.
11217         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
11218         (__ieee754_j1l): Do not improve calculations using cos of twice
11219         input for inputs above LDBL_MAX / 2.0L.
11220         (__ieee754_y1l): Likewise.
11221         * math/libm-test.inc (j0_test): Add another test.
11222         (j1_test): Likewise.
11223         (y0_test): Likewise.
11224         (y1_test): Likewise.
11225         * sysdeps/i386/fpu/libm-test-ulps: Update.
11226
11227 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11228
11229         * Rules ($(objpfx)bench-%.c): Include code from a C source
11230         file.
11231
11232 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11233
11234         [BZ #15287]
11235         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11236         imaginary part 1.0 and real part less than 0.5 specially.
11237         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11238         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11239         * math/libm-test.inc (cacos_test): Add more tests.
11240         (casin_test): Likewise.
11241         (casinh_test): Likewise.
11242         * sysdeps/i386/fpu/libm-test-ulps: Update.
11243         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11244
11245 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11246
11247         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
11248         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
11249
11250 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
11251
11252         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
11253         * config.make.in (config-cflags-sse4): Remove variable.
11254         (config-cflags-avx): Likewise.
11255         (config-cflags-sse2avx): Likewise.
11256         (config-cflags-novzeroupper): Likewise.
11257         (config-asflags-i686): Likewise.
11258         (have-mfma4): Likewise.
11259         (have-as-vis3): Likewise.
11260         (MIG): Likewise.
11261         * configure.in (MIG): Do not AC_SUBST.
11262         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
11263         (libc_cv_cc_sse4): Do not AC_SUBST.
11264         (libc_cv_cc_avx): Likewise.
11265         (libc_cv_cc_sse2avx): Likewise.
11266         (libc_cv_cc_novzeroupper): Likewise.
11267         (libc_cv_cc_fma4): Likewise.
11268         (libc_cv_as_i686): Likewise.
11269         (libc_cv_sparc_as_vis3): Likewise.
11270         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
11271         LIBC_CONFIG_VAR.
11272         (config-asflags-i686): Likewise.
11273         (config-cflags-avx): Likewise.
11274         (config-cflags-sse2avx): Likewise.
11275         (have-mfma4): Likewise.
11276         (config-cflags-novzeroupper): Likewise.
11277         * sysdeps/mach/configure.in (MIG): Likewise.
11278         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
11279         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
11280         LIBC_CONFIG_VAR.
11281         (config-cflags-avx): Likewise.
11282         (config-cflags-sse2avx): Likewise.
11283         (have-mfma4): Likewise.
11284         (config-cflags-novzeroupper): Likewise.
11285         * configure: Regenerated.
11286         * sysdeps/i386/configure: Likewise.
11287         * sysdeps/mach/configure: Likewise.
11288         * sysdeps/sparc/configure: Likewise.
11289         * sysdeps/x86_64/configure: Likewise.
11290
11291 2013-03-20  Roland McGrath  <roland@hack.frob.com>
11292
11293         [BZ #14812]
11294         * locale/programs/localedef.c (options): Put N_ translation marker
11295         on argument names, not just descriptions.
11296
11297 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11298
11299         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
11300
11301 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
11302
11303         [BZ #14176]
11304         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
11305
11306 2013-03-19  Roland McGrath  <roland@hack.frob.com>
11307
11308         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
11309         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
11310         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
11311         [!BEFORE_ABORT] (before_abort): New function.
11312         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
11313         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
11314         (writev_for_fatal): New function.
11315         (WRITEV_FOR_FATAL): New macro; call that.
11316         (backtrace_and_maps): New function.
11317         (BEFORE_ABORT): New macro; call that.
11318         (struct str_list): Type removed.
11319         (__libc_message, __libc_fatal): Functions removed.
11320         Include <sysdeps/posix/libc_fatal.c> instead.
11321
11322 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
11323
11324         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
11325         constants.
11326         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
11327         double constants.
11328
11329 2013-03-19  Andreas Schwab  <schwab@suse.de>
11330
11331         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
11332         * sysdeps/gnu/configure: Regenerate.
11333
11334         * configure.in: Substitute libc_cv_rtlddir.
11335         * configure: Regenerate.
11336         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
11337         * Makeconfig (rtlddir, inst_rtlddir): New variables.
11338         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
11339         * elf/Makefile (install-others, CFLAGS-interp.c)
11340         (ldso_install, common-ldd-rewrite): Likewise.
11341         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
11342         $(inst_slibdir)/$(rtld-installed-name).
11343         * scripts/rellns-sh: Add -p option.
11344         * Makerules (make-shlib-link): Use rellns-sh to get relative name
11345         for source.
11346
11347 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11348
11349         * manual/nptl.texi: Renamed to ...
11350         * manual/threads.texi: ... this.
11351         * manual/Makefile (chapters): Update.
11352
11353 2013-03-18  Roland McGrath  <roland@hack.frob.com>
11354
11355         [BZ #14812]
11356         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
11357         on argument names, not just descriptions.
11358         * malloc/memusagestat.c (options): Likewise.
11359         * nss/getent.c (options): Likewise.
11360
11361 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
11362
11363         [BZ #14812]
11364         * iconv/iconv_prog.c (options): Put N_ translation marker
11365         on argument names, not just descriptions.
11366         * iconv/iconvconfig.c (options): Likewise.
11367
11368 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
11369
11370         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
11371         implementation which is faster on all x86_64 architectures.
11372         Tested on AMD, Intel Nehalem, SNB, IVB.
11373         * sysdeps/x86_64/strnlen.S: Likewise.
11374
11375         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
11376         Remove all multiarch strlen and strnlen versions.
11377         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
11378         Remove strlen and strnlen related parts.
11379
11380         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
11381         Inline strlen part.
11382         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
11383
11384         * sysdeps/x86_64/multiarch/strlen.S: Remove.
11385         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
11386         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
11387         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
11388         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
11389         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
11390
11391 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
11392
11393         * manual/memory.texi (Malloc Tunable Parameters):
11394         Sort parameters alphabetically. Add comments for missing entries.
11395
11396 2013-03-17  David S. Miller  <davem@davemloft.net>
11397
11398         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11399
11400 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
11401
11402         [BZ #15283]
11403         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
11404         for arguments at most half maximum finite value.
11405         * math/libm-test.inc (j0_test): Add more tests.
11406         (j1_test): Likewise.
11407         (y0_test): Likewise.
11408         (y1_test): Likewise.
11409         * sysdeps/i386/fpu/libm-test-ulps: Update.
11410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11411
11412         [BZ #14155]
11413         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
11414         1 / x and functions P and Q for arguments above 0x1p256L.
11415         (__ieee754_y0l): Likewise.
11416         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
11417         (__ieee754_y1l): Likewise.
11418         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
11419         (j1_test): Likewise.
11420         (y0_test): Likewise.
11421         (y1_test): Likewise.
11422
11423 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
11424
11425         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
11426         variable.
11427
11428 2013-03-15  Roland McGrath  <roland@hack.frob.com>
11429
11430         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
11431         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
11432         zero since it's initialized to EXEC_PAGESIZE.
11433
11434         * sysdeps/unix/sysv/linux/ldsodefs.h
11435         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
11436         * sysdeps/generic/ldsodefs.h: ... here.
11437
11438 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
11439
11440         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
11441
11442         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
11443         math/test-snan.c.
11444         * math/test-snan.c: Renamed from
11445         sysdeps/powerpc/fpu/test-powerpc-snan.c.
11446         * math/Makefile (tests): Add test-snan.
11447         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
11448         test-powerpc-snan.
11449
11450         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
11451         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
11452         functions.
11453         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
11454         __builtin_nan family of functions.
11455         * math/libm-test.inc (initialize): Initialize qnan_value with
11456         __builtin_nan family of functions.
11457         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
11458         Remove variables.
11459         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
11460         Remove functions.
11461         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
11462         storage class.  Initialize qNaN_var and sNaN_var with
11463         __builtin_nan and __builtin_nans families of functions,
11464         respectively.
11465
11466         * math/libm-test.inc (acosh_test): Also test with qNaN input.
11467         (sqrt_test): Remove duplicate test with qNaN input.
11468         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
11469         (round_test, signbit_test, significand_test): Note missing +/-Inf
11470         as well as qNaN tests.
11471
11472         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
11473         qNaN_var.  Fix a few strings, too.
11474         * math/libm-test.inc (nan_value): Rename to qnan_value.
11475         * math/gen-libm-test.pl (%beautify): Adjust to that.
11476         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
11477         * math/test-misc.c (main): Likewise.
11478         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
11479         to __qnan_bytes, and __qnan_union, respectively.
11480         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
11481         Likewise.
11482         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
11483         and lqnanval, respectively.
11484         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
11485         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
11486         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
11487         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
11488
11489         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
11490         * math/test-misc.c (main) [__x86_64__]: Enable test for long
11491         doubles.
11492
11493         * math/test-misc.c (main): Fix copy'n'pastos.
11494         * misc/tst-efgcvt.c (special): Likewise.
11495
11496         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
11497         Remove declarations.
11498
11499 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11500
11501         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
11502         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
11503         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
11504         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
11505
11506 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11507
11508         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
11509         macro to return vdso values correctly in IFUNC implementations.
11510         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
11511         Optimization by using IFUNC.
11512
11513 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11514             Richard Henderson  <rth@redhat.com>
11515             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11516
11517         * Makefile.in (bench): New target.
11518         * NEWS: Mention the benchmark framework.
11519         * Rules (bench): Likewise.
11520         (binaries-bench): Generate binaries for functions to
11521         benchmark.
11522         * benchtests/Makefile: New makefile for benchmark tests.
11523         * benchtests/bench-skeleton.c: New skeleton file for benchmark
11524         programs.
11525         * benchtests/exp-inputs: New input file for EXP function.
11526         * benchtests/pow-inputs: New input file for POW function.
11527         * scripts/bench.pl: New script to generate source files for
11528         benchmark programs.
11529
11530 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11531
11532         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11533         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
11534         computations on mantissa.  Use macros for rounding and
11535         division.
11536         (denorm): Likewise.
11537         (__dbl_mp): Likewise.
11538         (add_magnitudes): Likewise.
11539         (sub_magnitudes): Likewise.
11540         (__mul): Likewise.
11541         (__sqr): Likewise.
11542         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11543         powers of two in terms of TWOPOW macro.
11544         (mp_no): Make type of mantissa as MANTISSA_T.
11545         [!RADIXI]: Define RADIXI.
11546         [!TWO52]: Define TWO52.
11547         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11548
11549         * manual/nptl.texi (cindex): Modify threads to pthreads.
11550
11551 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
11552
11553         * sysdeps/x86_64/preconfigure: Regenerated.
11554
11555 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
11556
11557         [BZ #14155]
11558         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
11559         0x1p28 and above.
11560         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
11561         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
11562         0x1p28 and above.
11563         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
11564         * math/libm-test.inc (j0_test): Do not allow one spurious
11565         underflow exception.
11566         (y1_test): Likewise.
11567
11568 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
11569
11570         * manual/Makefile (chapters): Add nptl.
11571         * manual/debug.texi (Debugging Support): Add link to Threads
11572         chapter.
11573         * manual/nptl.texi: New file.
11574
11575         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
11576
11577 2013-03-14  Petr Baudis  <pasky@ucw.cz>
11578
11579         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
11580         for non-NULL pointer before the memory validity test. Pointed
11581         out by Holger Brunck <holger.brunck@keymile.com>.
11582
11583 2013-03-13  Andreas Schwab  <schwab@suse.de>
11584
11585         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
11586         instead of .os.
11587
11588 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
11589
11590         * timezone/zic.c: Update from tzcode 2013b.
11591
11592 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
11593
11594         * manual/install.texi (Configuring and compiling):
11595         Mention i686 and i586.
11596         * INSTALL: Regenerate.
11597
11598 2013-03-12  Roland McGrath  <roland@hack.frob.com>
11599
11600         * sysdeps/init_array/elf-init.c: New file.
11601         * csu/elf-init.c
11602         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
11603         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
11604
11605         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
11606         __gmon_start__ as global, but as static with a .preinit_array pointer.
11607         * sysdeps/init_array/gmon-start.c: New file.  Use that.
11608         * sysdeps/init_array/crti.S: New file, empty except for comments.
11609         * sysdeps/init_array/crtn.S: Likewise.
11610
11611 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
11612
11613         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
11614         definining bcopy.
11615         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11616         Remove Prefer_SSE_for_memop.
11617         * sysdeps/x86_64/multiarch/init-arch.h: Remove
11618         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
11619         HAS_PREFER_SSE_FOR_MEMOP.
11620         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
11621         memset-x86-64.
11622         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
11623         Remove bzero, memset ifunc support.
11624         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
11625         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
11626         * sysdeps/x86_64/multiarch/memset.S: Likewise.
11627         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
11628
11629 2013-03-11  Andreas Schwab  <schwab@suse.de>
11630
11631         [BZ #15234]
11632         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
11633         by SHLIB_COMPAT.
11634         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
11635         (GLIBC_2.16): Remove pthread_atfork.
11636
11637 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
11638
11639         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
11640         (ptestcases.h): Likewise.
11641
11642 2013-03-08  Roland McGrath  <roland@hack.frob.com>
11643
11644         * Makeconfig ($(common-objpfx)config.status): Depend on
11645         sysdeps/*/preconfigure{,.in} too.
11646
11647 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
11648
11649         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
11650         (__free_hook): Use void * instead of __malloc_ptr_t.
11651         (__malloc_hook): Likewise.
11652         (__realloc_hook): Likewise.
11653         (__memalign_hook): Likewise.
11654         (__after_morecore_hook): Likewise.
11655         * malloc/arena.c (save_malloc_hook): Likewise.
11656         (save_free_hook): Likewise.
11657         * malloc/hooks.c (malloc_hook_ini): Likewise.
11658         (realloc_hook_ini): Likewise.
11659         (memalign_hook_ini): Likewise.
11660         * malloc/malloc.c (malloc_hook_ini): Likewise.
11661         (realloc_hook_ini): Likewise.
11662         (memalign_hook_ini): Likewise.
11663         (__free_hook): Likewise.
11664         (__malloc_hook): Likewise.
11665         (__realloc_hook): Likewise.
11666         (__memalign_hook): Likewise.
11667         (__libc_malloc): Likewise.
11668         (__libc_free): Likewise.
11669         (__libc_realloc): Likewise.
11670         (__libc_memalign): Likewise.
11671         (__libc_valloc): Likewise.
11672         (__libc_pvalloc): Likewise.
11673         (__libc_calloc): Likewise.
11674         (__posix_memalign): Likewise.
11675         * malloc/morecore.c (__sbrk): Likewise.
11676         (__default_morecore): Likewise.
11677
11678         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
11679
11680         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
11681         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
11682         __malloc_ptrdiff_t.
11683
11684         * malloc/malloc.h (__malloc_size_t): Remove macro.
11685         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
11686         __malloc_size_t.
11687         (old_memalign_hook): Likewise.
11688         (old_realloc_hook): Likewise.
11689         (struct hdr): Likewise.
11690         (flood): Likewise.
11691         (mallochook): Likewise.
11692         (memalignhook): Likewise.
11693         (reallochook): Likewise.
11694         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
11695         (tr_old_realloc_hook): Likewise.
11696         (tr_old_memalign_hook): Likewise.
11697         (tr_mallochook): Likewise.
11698         (tr_reallochook): Likewise.
11699         (tr_memalignhook): Likewise.
11700
11701 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11702
11703         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
11704         default_ldbl_pack and using as default implementation.
11705         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
11706         implementation.
11707         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
11708         redundant definition.
11709         (ldbl_insert_mantissa): Likewise.
11710         (ldbl_canonicalize): Likewise.
11711         (ldbl_nearbyint): Likewise.
11712         (ldbl_pack): Rename to ldbl_pack_ppc.
11713         (ldbl_unpack): Rename to ldbl_unpack_ppc.
11714         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
11715         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
11716
11717 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11718
11719         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
11720         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
11721         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
11722         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
11723         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
11724         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
11725         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
11726         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
11727
11728 2013-03-07  Andreas Jaeger  <aj@suse.de>
11729
11730         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11731         bits/mman-linux.h.
11732
11733 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
11734
11735         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
11736         Include mpa.h and declare __MPEXP.
11737         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
11738         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
11739         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
11740         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
11741         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
11742         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
11743         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
11744
11745         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
11746         (__slowpow): Use long double EXPL and LOGL functions to
11747         compute POW.
11748         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
11749         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
11750         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
11751         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
11752         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
11753         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
11754
11755         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
11756         intermediate variable to calculate exponent.
11757         (__sqr): Likewise.
11758         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
11759         Likewise.
11760         (__sqr): Likewise.
11761
11762         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
11763         [!NO__SQR]: Define __sqr.
11764         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
11765         and NO__SQR.  Remove all code except __mul and __sqr.  Include
11766         sysdeps/ieee754/dbl-64/mpa.c.
11767         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11768
11769         [BZ #12723]
11770         * posix/Makefile (tests): Add tst-pathconf.
11771         * posix/tst-pathconf.c: New test case.
11772         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
11773         _PC_PIPE_BUF.
11774         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
11775
11776 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
11777
11778         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
11779
11780 2013-03-06  Andreas Jaeger  <aj@suse.de>
11781
11782         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
11783         definition via __MAP_ANONYMOUS.
11784
11785         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
11786         it's not part of Linux headers.
11787
11788         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
11789         (MAP_HUGE_MASK): Define.
11790
11791         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11792         Define.
11793         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11794         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11795         Define.
11796         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11797         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11798         Define.
11799         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11800         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
11801         Define.
11802         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11803
11804         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
11805         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
11806         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
11807         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
11808         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
11809         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
11810
11811         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
11812         Handle f2fs.
11813
11814         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11815         Handle f2fs and efivarfs.
11816
11817         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
11818         f2fs.
11819
11820         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
11821         (EFIVARFS_MAGIC): Add.
11822         (F2FS_LINK_MAX): Add.
11823
11824 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11825
11826         * stdio-common/vfprintf.c: Replace __builtin_expect with
11827         __glibc_unlikely.
11828
11829 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
11830
11831         [BZ #13550]
11832         * sysdeps/generic/bp-sym.h: Remove file.
11833         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
11834         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
11835         <bp-sym.h> and <bp-asm.h>.
11836         (__longjmp): Don't use BP_SYM.
11837         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
11838         and <bp-asm.h>.
11839         (memcpy): Don't use BP_SYM.
11840         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
11841         <bp-sym.h> and <bp-asm.h>.
11842         (memcpy): Don't use BP_SYM.
11843         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
11844         <bp-asm.h>.
11845         (memcpy): Don't use BP_SYM.
11846         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
11847         <bp-asm.h>.
11848         (memset): Don't use BP_SYM.
11849         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11850         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11851         (__bzero): Don't use BP_SYM.
11852         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11853         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11854         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
11855         <bp-sym.h> and <bp-asm.h>.
11856         (memcmp): Don't use BP_SYM.  Remove comment about bounded
11857         pointers.
11858         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
11859         <bp-sym.h> and <bp-asm.h>.
11860         (memcpy): Don't use BP_SYM.
11861         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
11862         <bp-sym.h> and <bp-asm.h>.
11863         (memset): Don't use BP_SYM.
11864         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11865         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11866         (__bzero): Don't use BP_SYM.
11867         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11868         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11869         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
11870         <bp-sym.h> and <bp-asm.h>.
11871         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11872         pointers.
11873         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
11874         <bp-sym.h> and <bp-asm.h>.
11875         (memcpy): Don't use BP_SYM.
11876         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
11877         <bp-sym.h> and <bp-asm.h>.
11878         (memset): Don't use BP_SYM.
11879         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11880         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11881         (__bzero): Don't use BP_SYM.
11882         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11883         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11884         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
11885         <bp-sym.h> and <bp-asm.h>.
11886         (__memchr): Don't use BP_SYM.
11887         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
11888         <bp-sym.h> and <bp-asm.h>.
11889         (memcmp): Don't use BP_SYM.  Remove comment about bounded
11890         pointers.
11891         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
11892         <bp-sym.h> and <bp-asm.h>.
11893         (memcpy): Don't use BP_SYM.
11894         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
11895         <bp-sym.h> and <bp-asm.h>.
11896         (__mempcpy): Don't use BP_SYM.
11897         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
11898         <bp-sym.h> and <bp-asm.h>.
11899         (__memrchr): Don't use BP_SYM.
11900         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
11901         <bp-sym.h> and <bp-asm.h>.
11902         (memset): Don't use BP_SYM.
11903         (__bzero): Likewise.
11904         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
11905         <bp-sym.h> and <bp-asm.h>.
11906         (__rawmemchr): Don't use BP_SYM.
11907         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
11908         <bp-sym.h> and <bp-asm.h>.
11909         (__STRCMP): Don't use BP_SYM.
11910         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
11911         <bp-sym.h> and <bp-asm.h>.
11912         (strchr): Don't use BP_SYM.
11913         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
11914         <bp-sym.h> and <bp-asm.h>.
11915         (__strchrnul): Don't use BP_SYM.
11916         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
11917         <bp-sym.h> and <bp-asm.h>.
11918         (strlen): Don't use BP_SYM.
11919         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
11920         <bp-sym.h> and <bp-asm.h>.
11921         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11922         pointers.
11923         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
11924         <bp-sym.h> and <bp-asm.h>.
11925         (__strnlen): Don't use BP_SYM.
11926         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
11927         <bp-sym.h> and <bp-asm.h>.
11928         (__GI__setjmp): Don't use BP_SYM.
11929         (_setjmp): Likewise.
11930         (__sigsetjmp): Likewise.
11931         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
11932         (L(start_addresses)): Don't use BP_SYM.
11933         (_start): Likewise.
11934         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
11935         <bp-asm.h>.
11936         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
11937         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
11938         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11939         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11940         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
11941         <bp-asm.h>.
11942         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
11943         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
11944         about bounded pointers.
11945         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
11946         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11947         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
11948         <bp-asm.h>.
11949         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
11950         about bounded pointers.  Remove GKM FIXME comments.
11951         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
11952         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
11953         <bp-asm.h>.
11954         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
11955         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
11956         Remove GKM FIXME comments.
11957         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11958         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11959         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
11960         <bp-asm.h>.
11961         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
11962         about bounded pointers.  Remove GKM FIXME comment.
11963         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
11964         and <bp-asm.h>.
11965         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11966         pointers.
11967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
11968         <bp-sym.h> and <bp-asm.h>.
11969         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
11970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
11971         <bp-sym.h> and <bp-asm.h>.
11972         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
11973         comment.
11974
11975 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11976
11977         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
11978         call free(NULL).
11979
11980 2013-03-05  David S. Miller  <davem@davemloft.net>
11981
11982         * po/es.po: Update from translation team.
11983
11984 2013-03-05  Andreas Jaeger  <aj@suse.de>
11985
11986         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
11987         <bits/mman-linux.h>.
11988         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11989         is fine.
11990         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
11991         <bits/mman-linux.h> to end of file.
11992         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11993         is fine.
11994         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
11995         <bits/mman-linux.h> to end of file.
11996         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11997         is fine.
11998         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
11999         <bits/mman-linux.h> to end of file.
12000
12001         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
12002         (MCL_CURRENT, MCL_FUTURE): Define here.
12003
12004 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12005
12006         [BZ #15232]
12007         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
12008         attribute_hidden.
12009         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
12010
12011 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12012
12013         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
12014         fourth parameter needed for rt_sigprocmask syscall.
12015         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
12016         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
12017         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
12018         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
12019         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
12020         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
12021
12022 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
12023
12024         [BZ #13550]
12025         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
12026         comment about bounded pointers.
12027         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
12028         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
12029
12030 2013-03-04  Andreas Jaeger  <aj@suse.de>
12031
12032         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
12033         common definitions.
12034
12035         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
12036         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
12037         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
12038         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12039         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
12040         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
12041
12042 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12043
12044         [BZ #15055]
12045         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
12046         __ieee754_sqrl instead of __sqrl.
12047
12048 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
12049
12050         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
12051         * sysdeps/powerpc/fpu_control.h: ... here.
12052         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
12053         * sysdeps/powerpc/bits/fenvinline.h: ... here.
12054         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
12055         * sysdeps/powerpc/bits/mathinline.h: ... here.
12056
12057 2013-03-01  Roland McGrath  <roland@hack.frob.com>
12058
12059         * elf/dl-hwcaps.c (_dl_important_hwcaps):
12060         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
12061         to just [NEED_DL_SYSINFO_DSO].
12062         * elf/dl-support.c: Likewise.
12063         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
12064         * elf/rtld.c (dl_main): Likewise.
12065         * elf/setup-vdso.h (setup_vdso): Likewise.
12066         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
12067         * sysdeps/unix/sysv/linux/dl-sysdep.c
12068         (_dl_discover_osversion): Likewise.
12069
12070 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
12071
12072         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
12073         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12074
12075 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12076
12077         * NEWS: Mention libm performance improvements and non-x86 PI
12078         futex support.
12079
12080         * csu/libc-start.c (__pthread_initialize_minimal): Change
12081         function arguments.
12082         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12083
12084 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
12085
12086         [BZ #13550]
12087         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
12088         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
12089         <bp-sym.h> and <bp-asm.h>.
12090         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12091         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
12092         and <bp-asm.h>.
12093         (memcpy): Don't use BP_SYM.
12094         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
12095         <bp-asm.h>.
12096         (__mpn_add_n): Don't use BP_SYM.
12097         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
12098         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
12099         and <bp-asm.h>.
12100         (__mpn_addmul_1): Don't use BP_SYM.
12101         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12102         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
12103         <bp-sym.h>.
12104         (_setjmp): Don't use BP_SYM.
12105         (__novmx_setjmp): Likewise.
12106         (__GI__setjmp): Likewise.
12107         (__vmx_setjmp): Likewise.
12108         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
12109         <bp-sym.h>.
12110         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
12111         (__bzero): Don't use BP_SYM.
12112         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12113         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12114         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
12115         <bp-sym.h> and <bp-asm.h>.
12116         (memcpy): Don't use BP_SYM.
12117         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
12118         <bp-sym.h> and <bp-asm.h>.
12119         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12120         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
12121         <bp-sym.h> and <bp-asm.h>.
12122         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12123         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
12124         <bp-asm.h>.
12125         (__mpn_lshift): Don't use BP_SYM.
12126         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12127         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
12128         <bp-asm.h>.
12129         (memset): Don't use BP_SYM.
12130         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12131         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12132         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
12133         <bp-asm.h>.
12134         (__mpn_mul_1): Don't use BP_SYM.
12135         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12136         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
12137         <bp-sym.h> and <bp-asm.h>.
12138         (memcmp): Don't use BP_SYM.
12139         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
12140         <bp-sym.h> and <bp-asm.h>.
12141         (memcpy): Don't use BP_SYM.
12142         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
12143         <bp-sym.h> and <bp-asm.h>.
12144         (memset): Don't use BP_SYM.
12145         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
12146         <bp-sym.h> and <bp-asm.h>.
12147         (strncmp): Don't use BP_SYM.
12148         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
12149         <bp-sym.h> and <bp-asm.h>.
12150         (memcpy): Don't use BP_SYM.
12151         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
12152         <bp-sym.h> and <bp-asm.h>.
12153         (memset): Don't use BP_SYM.
12154         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
12155         <bp-sym.h> and <bp-asm.h>.
12156         (__memchr): Don't use BP_SYM.
12157         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
12158         <bp-sym.h> and <bp-asm.h>.
12159         (memcmp): Don't use BP_SYM.
12160         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
12161         <bp-sym.h> and <bp-asm.h>.
12162         (memcpy): Don't use BP_SYM.
12163         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
12164         <bp-sym.h> and <bp-asm.h>.
12165         (__mempcpy): Don't use BP_SYM.
12166         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
12167         <bp-sym.h> and <bp-asm.h>.
12168         (__memrchr): Don't use BP_SYM.
12169         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
12170         <bp-sym.h> and <bp-asm.h>.
12171         (memset): Don't use BP_SYM.
12172         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
12173         <bp-sym.h> and <bp-asm.h>.
12174         (__rawmemchr): Don't use BP_SYM.
12175         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
12176         <bp-sym.h> and <bp-asm.h>.
12177         (__STRCMP): Don't use BP_SYM.
12178         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
12179         <bp-sym.h> and <bp-asm.h>.
12180         (strchr): Don't use BP_SYM.
12181         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
12182         <bp-sym.h> and <bp-asm.h>.
12183         (__strchrnul): Don't use BP_SYM.
12184         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
12185         <bp-sym.h> and <bp-asm.h>.
12186         (strlen): Don't use BP_SYM.
12187         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
12188         <bp-sym.h> and <bp-asm.h>.
12189         (strncmp): Don't use BP_SYM.
12190         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
12191         <bp-sym.h> and <bp-asm.h>.
12192         (__strnlen): Don't use BP_SYM.
12193         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
12194         <bp-asm.h>.
12195         (__mpn_rshift): Don't use BP_SYM.
12196         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12197         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
12198         <bp-sym.h> and <bp-asm.h>.
12199         (__sigsetjmp): Don't use BP_SYM.
12200         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
12201         (L(start_addresses)): Don't use BP_SYM.
12202         (_start): Likewise.
12203         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
12204         <bp-asm.h>.
12205         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
12206         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12207         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12208         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
12209         <bp-asm.h>.
12210         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
12211         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12212         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12213         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
12214         <bp-asm.h>.
12215         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12216         comments.
12217         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12218         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
12219         <bp-asm.h>.
12220         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
12221         FIXME comments.
12222         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12223         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12224         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
12225         <bp-asm.h>.
12226         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12227         comment.
12228         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
12229         and <bp-asm.h>.
12230         (strncmp): Don't use BP_SYM,
12231         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
12232         <bp-asm.h>.
12233         (__mpn_sub_n): Don't use BP_SYM.
12234         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12235         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
12236         and <bp-asm.h>.
12237         (__mpn_submul_1): Don't use BP_SYM.
12238         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
12240         <bp-sym.h> and <bp-asm.h>.
12241         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
12243         <bp-sym.h> and <bp-asm.h>.
12244         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12245         comment.
12246
12247 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12248
12249         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
12250         Use ZK to minimize writes to Z.
12251         (sub_magnitudes): Simplify code a bit.
12252         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
12253         Use ZK to minimize writes to Z.
12254         (sub_magnitudes): Simplify code a bit.
12255
12256 2013-02-27  Roland McGrath  <roland@hack.frob.com>
12257
12258         * csu/gmon-start.c: Add special exception to license text.
12259
12260 2013-02-27  Richard Henderson  <rth@redhat.com>
12261
12262         * scripts/config.guess: Update from config.git.
12263         * scripts/config.sub: Likewise.
12264
12265 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
12266
12267         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
12268
12269         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
12270
12271         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
12272
12273         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
12274
12275         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
12276
12277 2013-02-26  Roland McGrath  <roland@hack.frob.com>
12278
12279         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
12280         [$(build-shared = yes].
12281
12282 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12283
12284         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
12285         (__mul): Reduce iterations for calculating mantissa.
12286
12287         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
12288         MPTWO.
12289         (__mpranred): Likewise.
12290
12291         [BZ #15160]
12292         * malloc/memusagestat.c (main): Draw graphs for heap and stack
12293         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
12294
12295 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12296
12297         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
12298         Define __attribute__.
12299
12300 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12301
12302         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
12303         unused.
12304         * posix/regex_internal.h (__attribute): Remove.
12305         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
12306         (re_string_context_at): Likewise.
12307         (bitset_not): Use __attribute__ and mark function as possibly
12308         unused.
12309         (bitset_merge): Likewise.
12310         (bitset_mask): Likewise.
12311         (re_string_char_size_at): Likewise.
12312         (re_string_wchar_at): Likewise.
12313         (re_string_elem_size_at): Likewise.
12314
12315 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12316
12317         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
12318         code.
12319         (cc32): Likewise.
12320
12321         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
12322         (__acr): Likewise.
12323         (__cpy): Likewise.
12324         (norm): Likewise.
12325         (denorm): Likewise.
12326         (__dbl_mp): Likewise.
12327         (add_magnitudes): Likewise.
12328         (sub_magnitudes): Likewise.
12329         (__mul): Likewise.
12330         (__inv): Likewise.
12331
12332         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
12333         style.
12334
12335         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
12336         style.
12337
12338         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
12339         code.
12340
12341         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
12342         up changes with default code.
12343         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
12344         Likewise.
12345
12346 2013-02-24  Allan McRae  <allan@archlinux.org>
12347
12348         * manual/socket.texi (The Internet Namespace): Order menu items
12349         to match that in the file.
12350
12351         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
12352         node listing of the info page menu.
12353
12354 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
12355
12356         [BZ #13550]
12357         * sysdeps/i386/bp-asm.h: Remove file.
12358         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12359         (PARMS): Do not use macros from bp-asm.h.
12360         (S1): Likewise.
12361         (S2): Likewise.
12362         (SIZE): Likewise.
12363         (__mpn_add_n): Do not use BP_SYM
12364         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
12365         "bp-asm.h".
12366         (PARMS): Do not use macros from bp-asm.h.
12367         (S1): Likewise.
12368         (SIZE): Likewise.
12369         (__mpn_addmul_1): Do not use BP_SYM
12370         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
12371         "bp-asm.h".
12372         (PARMS): Do not use macros from bp-asm.h.
12373         (SIGMSK): Likewise.
12374         (_setjmp): Likewise.  Do not use BP_SYM.
12375         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
12376         "bp-asm.h".
12377         (PARMS): Do not use macros from bp-asm.h.
12378         (SIGMSK): Likewise.
12379         (setjmp): Likewise.  Do not use BP_SYM.
12380         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
12381         "bp-asm.h".
12382         (PARMS): Do not use macros from bp-asm.h.
12383         (__frexp): Do not use BP_SYM.
12384         (frexp): Likewise.
12385         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
12386         "bp-asm.h".
12387         (PARMS): Do not use macros from bp-asm.h.
12388         (__frexpf): Do not use BP_SYM.
12389         (frexpf): Likewise.
12390         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
12391         "bp-asm.h".
12392         (PARMS): Do not use macros from bp-asm.h.
12393         (__frexpl): Do not use BP_SYM.
12394         (frexpl): Likewise.
12395         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
12396         "bp-asm.h".
12397         (PARMS): Do not use macros from bp-asm.h.
12398         (__remquo): Do not use BP_SYM.
12399         (remquo): Likewise.
12400         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
12401         "bp-asm.h".
12402         (PARMS): Do not use macros from bp-asm.h.
12403         (__remquof): Do not use BP_SYM.
12404         (remquof): Likewise.
12405         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
12406         "bp-asm.h".
12407         (PARMS): Do not use macros from bp-asm.h.
12408         (__remquol): Do not use BP_SYM.
12409         (remquol): Likewise.
12410         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
12411         "bp-asm.h".
12412         (PARMS): Do not use macros from bp-asm.h.
12413         (DEST): Likewise.
12414         (SRC): Likewise.
12415         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
12416         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
12417         "bp-asm.h".
12418         (PARMS): Do not use macros from bp-asm.h.
12419         (strlen): Do not use BP_SYM.
12420         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
12421         "bp-asm.h".
12422         (PARMS): Do not use macros from bp-asm.h.
12423         (S1): Likewise.
12424         (S2): Likewise.
12425         (SIZE): Likewise.
12426         (__mpn_add_n): Do not use BP_SYM.
12427         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
12428         "bp-asm.h".
12429         (PARMS): Do not use macros from bp-asm.h.
12430         (S1): Likewise.
12431         (SIZE): Likewise.
12432         (__mpn_addmul_1): Do not use BP_SYM.
12433         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
12434         weak_alias.
12435         (bzero): Likewise.
12436         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
12437         "bp-asm.h".
12438         (PARMS): Do not use macros from bp-asm.h.
12439         (S): Likewise.
12440         (SIZE): Likewise.
12441         (__mpn_lshift): Do not use BP_SYM.
12442         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
12443         "bp-asm.h".
12444         (PARMS): Do not use macros from bp-asm.h.
12445         (DEST): Likewise.
12446         (SRC): Likewise.
12447         (LEN): Likewise.
12448         (memcpy): Likewise.  Do not use BP_SYM.
12449         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
12450         libc_hidden_def and weak_alias.
12451         (mempcpy): Do not use BP_SYM in weak_alias.
12452         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
12453         "bp-asm.h".
12454         (PARMS): Do not use macros from bp-asm.h.
12455         (DEST): Likewise.
12456         (LEN): Likewise.
12457         [!BZERO_P] (CHR): Likewise.
12458         (memset): Likewise.  Do not use BP_SYM.
12459         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
12460         "bp-asm.h".
12461         (PARMS): Do not use macros from bp-asm.h.
12462         (S1): Likewise.
12463         (SIZE): Likewise.
12464         (__mpn_mul_1): Do not use BP_SYM.
12465         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
12466         "bp-asm.h".
12467         (PARMS): Do not use macros from bp-asm.h.
12468         (S): Likewise.
12469         (SIZE): Likewise.
12470         (__mpn_rshift): Do not use BP_SYM.
12471         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
12472         "bp-asm.h".
12473         (PARMS): Do not use macros from bp-asm.h.
12474         (STR): Likewise.
12475         (CHR): Likewise.
12476         (strchr): Likewise.  Do not use BP_SYM.
12477         (index): Do not use BP_SYM in weak_alias.
12478         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
12479         "bp-asm.h".
12480         (PARMS): Do not use macros from bp-asm.h.
12481         (DEST): Likewise.
12482         (SRC): Likewise.
12483         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
12484         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
12485         "bp-asm.h".
12486         (PARMS): Do not use macros from bp-asm.h.
12487         (strlen): Do not use BP_SYM.
12488         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
12489         "bp-asm.h".
12490         (PARMS): Do not use macros from bp-asm.h.
12491         (S1): Likewise.
12492         (S2): Likewise.
12493         (SIZE): Likewise.
12494         (__mpn_sub_n): Do not use BP_SYM.
12495         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
12496         "bp-asm.h".
12497         (PARMS): Do not use macros from bp-asm.h.
12498         (S1): Likewise.
12499         (SIZE): Likewise.
12500         (__mpn_submul_1): Do not use BP_SYM.
12501         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
12502         "bp-asm.h".
12503         (PARMS): Do not use macros from bp-asm.h.
12504         (S1): Likewise.
12505         (S2): Likewise.
12506         (SIZE): Likewise.
12507         (__mpn_add_n): Do not use BP_SYM.
12508         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
12509         weak_alias.
12510         (bzero): Likewise.
12511         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
12512         "bp-asm.h".
12513         (PARMS): Do not use macros from bp-asm.h.
12514         (BLK2): Likewise.
12515         (LEN): Likewise.
12516         (memcmp): Do not use BP_SYM.
12517         (bcmp): Do not use BP_SYM in weak_alias.
12518         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
12519         "bp-asm.h".
12520         (PARMS): Do not use macros from bp-asm.h.
12521         (DEST): Likewise.
12522         (SRC): Likewise.
12523         (LEN): Likewise.
12524         (memcpy): Likewise.  Do not use BP_SYM.
12525         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
12526         "bp-asm.h".
12527         (PARMS): Do not use macros from bp-asm.h.
12528         (DEST): Likewise.
12529         (SRC): Likewise.
12530         (LEN): Likewise.
12531         (memmove): Likewise.  Do not use BP_SYM.
12532         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
12533         "bp-asm.h".
12534         (PARMS): Do not use macros from bp-asm.h.
12535         (DEST): Likewise.
12536         (SRC): Likewise.
12537         (LEN): Likewise.
12538         (__mempcpy): Likewise.  Do not use BP_SYM.
12539         (mempcpy): Do not use BP_SYM in weak_alias.
12540         * sysdeps/i386/i686/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/i686/strcmp.S: Do not include "bp-sym.h" and
12548         "bp-asm.h".
12549         (PARMS): Do not use macros from bp-asm.h.
12550         (STR2): Likewise.
12551         (strcmp): Do not use BP_SYM.
12552         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
12553         "bp-asm.h".
12554         (PARMS): Do not use macros from bp-asm.h.
12555         (STR): Likewise.
12556         (DELIM): Likewise.
12557         [USE_AS_STRTOK_R] (SAVE): Likewise.
12558         (FUNCTION): Likewise.  Do not use BP_SYM.
12559         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
12560         aliases.
12561         (strtok_r): Likewise.
12562         (__GI___strtok_r): Likewise.
12563         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12564         (PARMS): Do not use macros from bp-asm.h.
12565         (S): Likewise.
12566         (SIZE): Likewise.
12567         (__mpn_lshift): Do not use BP_SYM.
12568         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12569         (PARMS): Do not use macros from bp-asm.h.
12570         (STR): Likewise.
12571         (CHR): Likewise.
12572         (__memchr): Do not use BP_SYM.
12573         (memchr): Do not use BP_SYM in weak_alias.
12574         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12575         (PARMS): Do not use macros from bp-asm.h.
12576         (BLK2): Likewise.
12577         (LEN): Likewise.
12578         (memcmp): Do not use BP_SYM.
12579         (bcmp): Do not use BP_SYM in weak_alias.
12580         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
12581         (PARMS): Do not use macros from bp-asm.h.
12582         (S1): Likewise.
12583         (SIZE): Likewise.
12584         (__mpn_mul_1): Do not use BP_SYM.
12585         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
12586         "bp-asm.h".
12587         (PARMS): Do not use macros from bp-asm.h.
12588         (STR): Likewise.
12589         (CHR): Likewise.
12590         (__rawmemchr): Do not use BP_SYM.
12591         (rawmemchr): Do not use BP_SYM in weak_alias.
12592         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12593         (PARMS): Do not use macros from bp-asm.h.
12594         (S): Likewise.
12595         (SIZE): Likewise.
12596         (__mpn_rshift): Do not use BP_SYM.
12597         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12598         (PARMS): Do not use macros from bp-asm.h.
12599         (SIGMSK): Likewise.
12600         (__sigsetjmp): Likewise.  Do not use BP_SYM.
12601         * sysdeps/i386/start.S: Do not include "bp-sym.h".
12602         (_start): Do not use BP_SYM.
12603         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
12604         (PARMS): Do not use macros from bp-asm.h.
12605         (DEST): Likewise.
12606         (SRC): Likewise.
12607         (__stpcpy): Likewise.  Do not use BP_SYM.
12608         (stpcpy): Do not use BP_SYM in weak_alias.
12609         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
12610         "bp-asm.h".
12611         (PARMS): Do not use macros from bp-asm.h.
12612         (DEST): Likewise.
12613         (SRC): Likewise.
12614         (LEN): Likewise.
12615         (__stpncpy): Likewise.  Do not use BP_SYM.
12616         (stpncpy): Do not use BP_SYM in weak_alias.
12617         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12618         (PARMS): Do not use macros from bp-asm.h.
12619         (STR): Likewise.
12620         (CHR): Likewise.
12621         (strchr): Likewise.  Do not use BP_SYM.
12622         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
12623         "bp-asm.h".
12624         (PARMS): Do not use macros from bp-asm.h.
12625         (STR): Likewise.
12626         (CHR): Likewise.
12627         (__strchrnul): Likewise.  Do not use BP_SYM.
12628         (strchrnul): Do not use BP_SYM in weak_alias.
12629         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
12630         "bp-asm.h".
12631         (PARMS): Do not use macros from bp-asm.h.
12632         (STOP): Likewise.
12633         (strcspn): Do not use BP_SYM.
12634         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
12635         "bp-asm.h".
12636         (PARMS): Do not use macros from bp-asm.h.
12637         (STR): Likewise.
12638         (STOP): Likewise.
12639         (strpbrk): Likewise.  Do not use BP_SYM.
12640         * sysdeps/i386/strrchr.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         (CHR): Likewise.
12645         (strrchr): Likewise.  Do not use BP_SYM.
12646         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
12647         (PARMS): Do not use macros from bp-asm.h.
12648         (SKIP): Likewise.
12649         (strspn): Do not use BP_SYM.
12650         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
12651         (PARMS): Do not use macros from bp-asm.h.
12652         (STR): Likewise.
12653         (DELIM): Likewise.
12654         (SAVE): Likewise.
12655         (FUNCTION): Likewise.  Do not use BP_SYM.
12656         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
12657         aliases.
12658         (strtok_r): Likewise.
12659         (__GI___strtok_r): Likewise.
12660         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12661         (PARMS): Do not use macros from bp-asm.h.
12662         (S1): Likewise.
12663         (S2): Likewise.
12664         (SIZE): Likewise.
12665         (__mpn_sub_n): Do not use BP_SYM.
12666         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
12667         "bp-asm.h".
12668         (PARMS): Do not use macros from bp-asm.h.
12669         (S1): Likewise.
12670         (SIZE): Likewise.
12671         (__mpn_submul_1): Do not use BP_SYM.
12672         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
12673         <bp-sym.h>.
12674         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
12675         and <bp-asm.h>.
12676         (PARMS): Do not use macros from bp-asm.h.
12677         (FLAGS): Likewise.
12678         (PTID): Likewise.
12679         (TLS): Likewise.
12680         (CTID): Likewise.
12681         (__clone): Do not use BP_SYM.
12682         (clone): Do not use BP_SYM in weak_alias.
12683         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
12684         and <bp-asm.h>.
12685         (PARMS): Do not use macros from bp-asm.h.
12686         (LEN): Likewise.
12687         (__mmap64): Do not use BP_SYM.
12688         (mmap64): Do not use BP_SYM in weak_alias.
12689         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
12690         <bp-sym.h> and <bp-asm.h>.
12691         (PARMS): Do not use macros from bp-asm.h.
12692         (__posix_fadvise64_l64): Do not use BP_SYM.
12693         * sysdeps/unix/sysv/linux/i386/semtimedop.S
12694         (PARMS): Do not use macros from bp-asm.h.
12695         (NSOPS): Likewise.
12696         (semtimedop): Do not use BP_SYM.
12697         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
12698         and <bp-asm.h>.
12699
12700 2013-02-21  Allan McRae  <allan@archlinux.org>
12701
12702         * manual/message.texi (Charset conversion in gettext):
12703         Move @end statement to beginning of line.
12704
12705 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12706
12707         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
12708         static.
12709         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
12710         Likewise.
12711
12712         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
12713         (denorm): Likewise.
12714         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
12715         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
12716
12717 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12718
12719         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
12720         tail-call to the resolved function if pltexit isn't needed.
12721
12722 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12723
12724         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
12725         or Y being zero as being unlikely.
12726         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
12727         Likewise.
12728
12729 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
12730
12731         * manual/nss.texi (System Databases and Name Service Switch):
12732         Remove frobnicate @pxref.
12733
12734 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
12735
12736         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
12737         __attribute__ ((unused)) to __attribute__ ((__unused__)).
12738
12739 2013-02-20  Petr Machata  <pmachata@redhat.com>
12740
12741         * elf/elf.h (R_ARM_TARGET1): New macro.
12742         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
12743         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
12744         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
12745         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
12746         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
12747         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
12748         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
12749         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
12750         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
12751         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
12752         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
12753         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
12754         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
12755         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
12756         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
12757         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
12758         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
12759         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
12760         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
12761         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
12762         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
12763         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
12764         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
12765         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
12766         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
12767         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
12768         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
12769         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
12770         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
12771         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
12772         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
12773         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
12774         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
12775         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
12776         (R_ARM_THM_GOT_BREL12): Likewise.
12777         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
12778         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
12779         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
12780         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
12781         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
12782         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
12783         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
12784         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
12785         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
12786
12787 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
12788
12789         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
12790         __attribute_used__ to __attribute__ ((unused)).
12791
12792 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12793
12794         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
12795         powerpc mpa.c.
12796         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
12797         comment formatting.
12798         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
12799
12800 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
12801
12802         [BZ #13550]
12803         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
12804         Remove macro.
12805         (ENTER): Remove both macro definitions.
12806         (LEAVE): Likewise.
12807         (CHECK_BOUNDS_LOW): Likewise.
12808         (CHECK_BOUNDS_HIGH): Likewise.
12809         (CHECK_BOUNDS_BOTH): Likewise.
12810         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
12811         (RETURN_BOUNDED_POINTER): Likewise.
12812         (RETURN_NULL_BOUNDED_POINTER): Likewise.
12813         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
12814         (POP_ERRNO_LOCATION_RETURN): Likewise.
12815         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
12816         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12817         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
12818         macros.
12819         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12820         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
12821         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
12822         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
12823         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
12824         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
12825         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
12826         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
12827         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
12828         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
12829         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
12830         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
12831         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12832         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
12833         removed macros.
12834         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12835         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
12836         macros.
12837         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12838         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
12839         * sysdeps/i386/i586/memset.S (memset): Likewise.
12840         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
12841         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12842         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
12843         macros.
12844         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12845         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
12846         Change uses of L(2) to L(out).
12847         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
12848         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
12849         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
12850         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12851         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
12852         removed macros.
12853         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12854         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
12855         macros.
12856         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12857         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
12858         (RETURN): Do not use macro LEAVE.
12859         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
12860         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
12861         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
12862         * sysdeps/i386/i686/memset.S (memset): Likewise.
12863         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
12864         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
12865         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12866         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
12867         Likewise.
12868         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12869         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
12870         L(1_2) and L(1_3) into L(1).
12871         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
12872         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
12873         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12874         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
12875         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12876         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
12877         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
12878         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12879         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
12880         macros.
12881         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
12882         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12883         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
12884         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
12885         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
12886         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12887         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
12888         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
12889         * sysdeps/i386/strcspn.S (strcspn): Likewise.
12890         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
12891         * sysdeps/i386/strrchr.S (strrchr): Likewise.
12892         * sysdeps/i386/strspn.S (strspn): Likewise.
12893         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
12894         conditional code.
12895         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12896         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
12897         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
12898         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
12899         L(1_3) into L(1_1).
12900         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
12901         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12902         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
12903         macros.
12904         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12905
12906 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
12907
12908         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
12909         macro.
12910
12911 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
12912
12913         * math/atest-exp.c (exp_mpn): Remove ROUND.
12914         * math/atest-exp2.c (exp_mpn): Likewise.
12915         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
12916
12917         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
12918         * stdlib/tst-tls-atexit-lib.c: Likewise.
12919         * stdlib/tst-tls-atexit.c: Likewise.
12920
12921 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12922
12923         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
12924         and __attribute_alloc_size__.
12925
12926 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12927
12928         * include/programs/xmalloc.h: Change __attribute_alloc_size to
12929         __attribute_alloc_size__.
12930         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
12931         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
12932
12933 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12934
12935         * include/programs/xmalloc.h: New file.
12936         * catgets/gencat.c: Include it.
12937         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
12938         * elf/pldd.c: Likewise.
12939         * iconv/iconv_charmap.c: Likewise.
12940         * iconv/iconvconfig.c: Likewise.
12941         * iconv/strtab.c: Likewise.
12942         * locale/programs/locale.c: Likewise.
12943         * locale/programs/localedef.h: Likewise.
12944         * locale/programs/simple-hash.c: Likewise.
12945         * nscd/nscd.h: Likewise.
12946         * nss/makedb.c: Likewise.
12947         * sysdeps/generic/ldconfig.h: Likewise.
12948
12949 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12950
12951         * Versions.def: Add GLIBC_2.18.
12952         * include/link.h (struct link_map): New member l_tls_dtor_count.
12953         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
12954         (__call_tls_dtors): Likewise.
12955         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
12956         __cxa_thread_atexit_impl.
12957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12958         Likewise.
12959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12960         Likewise.
12961         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
12962         Likewise.
12963         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
12964         Likewise.
12965         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
12966         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
12967         Likewise.
12968         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
12969         Likewise.
12970         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
12971         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
12972         Likewise.
12973         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
12974         (tests): Add test case tst-tls-atexit.
12975         (modules-names): Add shared library for tst-tls-atexit.
12976         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
12977         (GLIBC_PRIVATE): Add __call_tls_dtors.
12978         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
12979         for libstdc++.
12980         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
12981         * stdlib/tst-tls-atexit.c: New test case.
12982         * stdlib/tst-tls-atexit-lib.c: New test case.
12983
12984         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
12985
12986         * elf/Versions (ld): Add _dl_find_dso_for_object.
12987         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
12988         * elf/dl-open.c (_dl_find_dso_for_object): New function.
12989         (dl_open_worker): Use _dl_find_dso_for_object.
12990         * elf/dl-sym.c (do_sym): Likewise.
12991         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
12992
12993 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12994
12995         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
12996         Syntactic changes only.
12997         (_dl_runtime_profile): Do a tail-call to the resolved function.
12998
12999 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
13000
13001         [BZ #13550]
13002         * sysdeps/x86_64/bp-asm.h: Remove file.
13003         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
13004         <bp-sym.h> and <bp-asm.h>.
13005         (__clone): Do not use BP_SYM.
13006         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
13007         <bp-sym.h> and <bp-asm.h>.
13008         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13009         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
13010         "bp-asm.h".
13011         (_setjmp): Do not use BP_SYM.
13012         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
13013         "bp-asm.h".
13014         (setjmp): Do not use BP_SYM.
13015         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
13016         libc_hidden_def.
13017         (mempcpy): Do not use BP_SYM in weak_alias.
13018         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
13019         "bp-asm.h".
13020         (strchr): Do not use BP_SYM.
13021         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
13022         "bp-asm.h".
13023         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
13024         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
13025         (_start): Do not use BP_SYM.
13026         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
13027         "bp-asm.h".
13028         (strcat): Do not use BP_SYM.
13029         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
13030         "bp-asm.h".
13031         (STRCMP): Do not use BP_SYM.
13032         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
13033         "bp-asm.h".
13034         (STRCPY): Do not use BP_SYM.
13035         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
13036         "bp-asm.h".
13037         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
13038         "bp-asm.h".
13039         (FUNCTION): Do not use BP_SYM.
13040         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
13041         weak_alias.
13042         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
13043
13044 2013-02-17  Andreas Jaeger  <aj@suse.de>
13045
13046         * time/Versions: Sort entries.
13047         * string/Versions: Likewise.
13048         * resolv/Versions: Likewise.
13049         * posix/Versions: Likewise.
13050         * iconv/Versions: Likewise.
13051         * elf/Versions: Likewise.
13052         * wcsmbs/Versions: Likewise.
13053
13054 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
13055
13056         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
13057         loop termination condition.
13058
13059         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
13060         variable to calculate EZ.
13061         (__sqr): Likewise.
13062
13063         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
13064         the lower precision input.
13065
13066 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
13067
13068         [BZ #13550]
13069         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
13070         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
13071         (run-via-rtld-prefix): Do not handle %-bp tests.
13072         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
13073         (all-object-suffixes): Remove .ob.
13074         (bppfx): Remove variable.
13075         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
13076         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
13077         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
13078         [$(build-bounded) = yes] (libtype.ob): Likewise.
13079         * Makerules (elide-routines.ob): Remove variable.
13080         (do-tests-clean): Do not handle *-bp.out.
13081         (common-mostlyclean): Do not handle *-bp and *-bp.out.
13082         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
13083         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
13084         (tests): Do not include $(tests-bp.out).
13085         (xtests): Do not include $(xtests-bp.out).
13086         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
13087         [$(build-bounded) = yes] ($(addprefix
13088         $(objpfx),$(binaries-bounded))): Remove rule.
13089         ($(objpfx)%-bp.out): Remove rule.
13090         * config.make.in (build-bounded): Remove variable.
13091         * crypt/Makefile [$(build-bounded) = yes]
13092         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
13093         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
13094         append to variable.
13095         [$(build-bounded) = yes] (install-lib): Likewise.
13096         [$(build-bounded) = yes] (generated): Likewise.
13097         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
13098         Remove rule.
13099         * intl/Makefile [$(build-bounded) = yes]
13100         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
13101         * math/Makefile [$(build-bounded) = yes]
13102         ($(tests:%=$(objpfx)%-bp): Likewise.
13103         * misc/Makefile [$(build-bounded) = yes]
13104         ($(objpfx)tst-tsearch-bp): Likewise.
13105         * nptl/Makeconfig (bounded-thread-library): Remove variable.
13106         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
13107         Remove dependency.
13108         * string/Makefile (o-objects.ob): Remove variable.
13109         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
13110         (CFLAGS-.ob): Remove variable.
13111         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
13112         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
13113         both definitions of variable.
13114         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
13115         (ASFLAGS-.ob): Remove variable.
13116
13117 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
13118
13119         [BZ #13550]
13120         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
13121         Remove __BOUNDED_POINTERS__ from condition.
13122         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
13123         * string/bits/string2.h [!__NO_STRING_INLINES &&
13124         !__BOUNDED_POINTERS__]: Likewise.
13125         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
13126         Likewise.
13127         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
13128         Remove conditional code.
13129         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
13130         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
13131         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
13132         condition.
13133
13134         [BZ #13550]
13135         * csu/libc-start.c: Do not include <bp-sym.h>.
13136         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
13137         * elf/dl-open.c: Do not include <bp-sym.h>.
13138         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
13139         * math/fegetenv.c: Do not include <bp-sym.h>.
13140         (fegetenv): Do not use BP_SYM in versioned symbols.
13141         * nptl/sysdeps/pthread/bits/libc-lockP.h
13142         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
13143         <bp-sym.h>.
13144         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13145         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
13146         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13147         (__pthread_mutex_destroy): Likewise.
13148         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13149         (__pthread_mutex_lock): Likewise.
13150         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13151         (__pthread_mutex_trylock): Likewise.
13152         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13153         (__pthread_mutex_unlock): Likewise.
13154         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13155         (__pthread_mutexattr_init): Likewise.
13156         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13157         (__pthread_mutexattr_destroy): Likewise.
13158         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13159         (__pthread_mutexattr_settype): Likewise.
13160         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13161         (__pthread_rwlock_init): Likewise.
13162         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13163         (__pthread_rwlock_destroy): Likewise.
13164         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13165         (__pthread_rwlock_rdlock): Likewise.
13166         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13167         (__pthread_rwlock_tryrdlock): Likewise.
13168         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13169         (__pthread_rwlock_wrlock): Likewise.
13170         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13171         (__pthread_rwlock_trywrlock): Likewise.
13172         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13173         (__pthread_rwlock_unlock): Likewise.
13174         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13175         (__pthread_key_create): Likewise.
13176         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13177         (__pthread_setspecific): Likewise.
13178         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13179         (__pthread_getspecific): Likewise.
13180         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
13181         Likewise.
13182         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13183         (_pthread_cleanup_push_defer): Likewise.
13184         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13185         (_pthread_cleanup_pop_restore): Likewise.
13186         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13187         (pthread_setcancelstate): Likewise.
13188         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
13189         <bp-sym.h>.
13190         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
13191         (memchr): Do not use BP_SYM in weak_alias.
13192         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
13193         (fegetenv): Do not use BP_SYM in versioned symbols.
13194         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
13195         (fesetenv): Do not use BP_SYM in versioned symbols.
13196         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13197         (feupdateenv): Do not use BP_SYM in versioned symbols.
13198         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13199         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13200         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
13201         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
13202         (open64): Do not use BP_SYM in weak_alias.
13203         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
13204         (fegetenv): Do not use BP_SYM in versioned symbols.
13205         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
13206         (fesetenv): Do not use BP_SYM in versioned symbols.
13207         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13208         (feupdateenv): Do not use BP_SYM in versioned symbols.
13209         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
13210         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
13211         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
13212         (feraiseexcept): Do not use BP_SYM in versioned symbols.
13213         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13214         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13215         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
13216         <bp-sym.h>.
13217         (__libc_start_main): Do not use BP_SYM.
13218
13219 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13220
13221         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
13222         redundant return line.
13223         (norm): Likewise.
13224         (denorm): Likewise.
13225         (dbl_mp): Likewise.
13226         (sub_magnitudes): Likewise.
13227         (__add): Likewise.
13228         (__sub): Likewise.
13229         (__mul): Likewise.
13230         (__inv): Likewise.
13231         (__dvd): Likewise.
13232         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
13233         (norm): Likewise.
13234         (denorm): Likewise.
13235         (dbl_mp): Likewise.
13236         (sub_magnitudes): Likewise.
13237         (__add): Likewise.
13238         (__sub): Likewise.
13239         (__mul): Likewise.
13240         (__inv): Likewise.
13241         (__dvd): Likewise.
13242
13243         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
13244         instead of __mul.
13245         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13246         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
13247         (cc32): Likewise.
13248
13249         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
13250         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
13251         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
13252         of __mul for squares.
13253         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
13254         function
13255         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
13256         Likewise.
13257         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
13258         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13259
13260 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
13261
13262         [BZ #13550]
13263         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
13264         code.
13265         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
13266         prototype or function definition.  Rename ubp_* variables and
13267         parameters.  Remove argv definitions conditional on
13268         [__BOUNDED_POINTERS__].
13269         * debug/backtrace.c (__backtrace): Do not use __unbounded.
13270         * elf/dl-runtime.c (_dl_fixup): Likewise.
13271         * include/set-hooks.h (RUN_HOOK): Likewise.
13272         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
13273         definition.
13274         * string/strcpy.c (strcpy): Do not use __unbounded.
13275         * sysdeps/generic/frame.h (struct layout): Likewise.
13276         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
13277         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
13278         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
13279         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
13280         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
13281         (__backtrace): Likewise.
13282         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
13283         use __ptrvalue.
13284         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
13285         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
13286         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
13287         Likewise.
13288         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
13289         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
13290         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
13291         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13292         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
13293         Do not use __unbounded.
13294         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
13295         Rename __unboundedrlimits parameter to rlimits in prototype.
13296         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
13297         Do not use __unbounded.
13298         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
13299         not use __ptrvalue.
13300         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13301         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
13302         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13303         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
13304         __ptrvalue or __unbounded.
13305         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
13306         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
13307         use __unbounded.
13308         (__new_msgctl): Do not use __ptrvalue.
13309         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
13310         __unbounded.
13311         (__libc_msgrcv): Do not use __ptrvalue.
13312         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
13313         startup_info): Do not use __unbounded.
13314         (__libc_start_main): Likewise.  Rename ubp_* variables and
13315         parameters.  Remove argv definitions conditional on
13316         [__BOUNDED_POINTERS__].
13317         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
13318         __ptrvalue.
13319         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
13320         use __unbounded.
13321         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
13322         or __ptrvalue.
13323         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
13324         use __unbounded.
13325         (__new_shmctl): Do not use __ptrvalue.
13326         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
13327         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
13328         Likewise.
13329         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
13330         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
13331         (__libc_sigaction): Likewise.
13332         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
13333         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
13334         Likewise.
13335         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13336
13337 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
13338
13339         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
13340
13341         * string/mempcpy.c: Implement by calling memcpy.
13342
13343 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13344
13345         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
13346
13347         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
13348         evaluation.
13349
13350         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
13351         values in the mantissa.
13352
13353         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
13354         minimize writes to Z.
13355         (sub_magnitudes): Simplify code a bit.
13356
13357 2013-02-12  Roland McGrath  <roland@hack.frob.com>
13358
13359         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
13360         from the message.  The linker prefixes all warnings with that already.
13361
13362 2013-02-12  Andreas Schwab  <schwab@suse.de>
13363
13364         [BZ #15078]
13365         * posix/regexec.c (extend_buffers): Add parameter min_len.
13366         (check_matching): Pass minimum needed length.
13367         (clean_state_log_if_needed): Likewise.
13368         (get_subexp): Likewise.
13369         * posix/Makefile (tests): Add bug-regex34.
13370         (bug-regex34-ENV): Define.
13371         * posix/bug-regex34.c: New file.
13372
13373         [BZ #11561]
13374         * posix/regcomp.c (parse_bracket_exp): When looking up collating
13375         elements compare against the byte sequence of it, not its name.
13376         * posix/Makefile (tests): Add bug-regex35.
13377         (bug-regex35-ENV): Define.
13378         * posix/bug-regex35.c: New file.
13379
13380 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13381
13382         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
13383         comment.
13384         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
13385         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
13386         (CHECK_EOL): Add undef.
13387
13388 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
13389
13390         * bits/stdlib-bsearch.h: New file.
13391         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
13392         * stdlib/stdlib.h: Likewise.
13393
13394 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13395
13396         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
13397         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
13398         declaration.
13399         * manual/search.texi (Array Search Function): Add missing const in
13400         lfind prototype.
13401         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
13402         declaration to use rlim_t.
13403         (Basic Scheduling Functions): Remove erroneous const from
13404         sched_getparam prototype.  Remove erroneous * from
13405         sched_get_priority_max and sched_get_priority_min prototypes.
13406         (Resource Usage): Fix summary @comment on vtimes to refer to
13407         sys/vtimes.h rather than vtimes.h.
13408         Add missing *s in vtimes prototype.
13409         (Limits on Resources): Fix ulimit prototype to return long int.
13410         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
13411         prototypes to use long int rather than double.
13412         (BSD Random): Fix initstate and setstate to use char *, not void *.
13413         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
13414         prototype to make second argument 'struct aiocb64 *const[]'.
13415         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
13416         (Status of AIO Operations): Remove erroneous const in aio_return and
13417         aio_return64 prototypes.
13418         (Synchronizing I/O): Fix sync prototype to return void.
13419         * manual/startup.texi (Suboptions): Remove an erroneous const in
13420         getsubopt prototype.
13421         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
13422         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
13423         use size_t rather than int.
13424         (Scanning All Users): Likewise for getpwent_r.
13425         (Setting Groups): Add missing const to setgroups prototype.
13426         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
13427         * manual/socket.texi (Host Names): Fix gethostbyaddr and
13428         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
13429         'const void *' rather than 'const char *'.
13430         (Host Address Functions): Likewise for inet_ntop.
13431         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
13432         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
13433         ssize_t for return value.
13434         (Sending Data): Likewise for send, sendto, sendmsg.
13435         (Socket Option Functions): Add a missing const in setsockopt prototype.
13436         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
13437         use wchar_t for the argument.
13438         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
13439         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
13440         take no arguments.
13441         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
13442         double/float/long double for second argument.
13443         Fix return types of significand, significandf, significandl.
13444         * manual/filesys.texi (Setting Permissions): Use mode_t for second
13445         argument in fchmod prototype.
13446         (File Owner): Use uid_t and gid_t in fchown prototype.
13447         (File Times): Add const to utimes, futimes, and lutimes prototypes.
13448         (Making Special Files): Use mode_t and dev_t in mknod prototype.
13449         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
13450         use 'const struct dirent **' as argument types to CMP function pointer
13451         argument.
13452         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
13453         (File Times): Fix summary magic @comment for struct utimbuf and utime
13454         to refer to utime.h, not time.h.
13455         * manual/string.texi (Argz Functions): Add missing const in
13456         argz_extract and argz_next prototypes.
13457         (Finding Tokens in a String): Likewise for basename.
13458         (String/Array Comparison): Fix typo in wcscasecmp prototype.
13459         (Copying and Concatenation): Fix typo in wmemmove prototype.
13460         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
13461         (Signal Stack): Remove erroneous const in sigstack prototype.
13462         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
13463         prototype.
13464         (Simple Calendar Time): Likewise for stime.
13465         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
13466         prototype.
13467         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
13468         say sys/sysctl.h instead.
13469         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
13470         and vsyslog prototypes.
13471
13472 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13473
13474         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
13475         Remove.
13476
13477 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13478
13479         * misc/sys/mman.h: Fix typo in mremap comment.
13480
13481 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13482
13483         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
13484         the '\0' terminator.
13485
13486 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13487
13488         [BZ #13550]
13489         * debug/segfault.c: Don't include <bp-checks.h>.
13490         * sysdeps/generic/bp-checks.h: Remove file.
13491         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
13492         (__GETDENTS): Don't use CHECK_N.
13493         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
13494         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
13495         (__getgroups): Don't use CHECK_N.
13496         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
13497         (setgroups): Don't use CHECK_N.
13498         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
13499         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13500         (__libc_msgrcv): Don't use CHECK_N.
13501         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
13502         (__libc_msgsnd): Don't use CHECK_N.
13503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
13504         <bp-checks.h>.
13505         (__libc_pread): Don't use CHECK_N.
13506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
13507         include <bp-checks.h>.
13508         (__libc_pread64): Don't use CHECK_N.
13509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
13510         include <bp-checks.h>.
13511         (__libc_pwrite): Don't use CHECK_N.
13512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
13513         include <bp-checks.h>.
13514         (__libc_pwrite64): Don't use CHECK_N.
13515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
13516         <bp-checks.h>.
13517         (__libc_pread): Don't use CHECK_N.
13518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
13519         include <bp-checks.h>.
13520         (__libc_pread64): Don't use CHECK_N.
13521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
13522         include <bp-checks.h>.
13523         (__libc_pwrite): Don't use CHECK_N.
13524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
13525         include <bp-checks.h>.
13526         (__libc_pwrite64): Don't use CHECK_N.
13527         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
13528         (do_pread): Don't use CHECK_N.
13529         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
13530         (do_pread64): Don't use CHECK_N.
13531         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
13532         (do_pwrite): Don't use CHECK_N.
13533         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
13534         (do_pwrite64): Don't use CHECK_N.
13535         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
13536         (__libc_readv): Don't use CHECK_N.
13537         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
13538         (semop): Don't use CHECK_N.
13539         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
13540         <bp-checks.h>.
13541         (semtimedop): Don't use CHECK_N.
13542         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
13543         (__libc_pread): Don't use CHECK_N.
13544         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
13545         <bp-checks.h>.
13546         (__libc_pread64): Don't use CHECK_N.
13547         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
13548         <bp-checks.h>.
13549         (__libc_pwrite): Don't use CHECK_N.
13550         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
13551         <bp-checks.h>.
13552         (__libc_pwrite64): Don't use CHECK_N.
13553         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
13554         <bp-checks.h>.
13555         (__libc_msgrcv): Don't use CHECK_N.
13556         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
13557         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
13558         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
13559         (__libc_writev): Don't use CHECK_N.
13560
13561 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13562
13563         * string/strcpy.c: Removed unused variable.
13564
13565         * Makeconfig (+sysdep-includes): Define with := rather than =.
13566         Use an existing include/ subdir of each sysdeps dir before it.
13567
13568 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13569
13570         * nscd/connection.c (register_traced_file): Comment function.
13571         [HAVE_INOTIFY] (union __inev): Define.
13572         [HAVE_INOTIFY] (inotify_check_files): New function.
13573         [HAVE_INOTIFY] (clear_db_cache): Likewise.
13574         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
13575         clear_db_cache.
13576         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
13577
13578 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13579
13580         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
13581         loaded if not already and that a failure is permanent.
13582
13583 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13584
13585         [BZ #15006]
13586         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
13587         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
13588
13589 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13590
13591         [BZ #13550]
13592         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
13593         (CHECK_1_NULL_OK): Likewise.
13594         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
13595         (__fxstat): Do not use CHECK_1.
13596         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
13597         <bp-checks.h>.
13598         (___fxstat64): Do not use CHECK_1.
13599         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
13600         <bp-checks.h>.
13601         (__fxstatat): Do not use CHECK_1.
13602         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
13603         <bp-checks.h>.
13604         (__fxstatat64): Do not use CHECK_1.
13605         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
13606         <bp-checks.h>.
13607         (__fxstat): Do not use CHECK_1.
13608         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
13609         <bp-checks.h>.
13610         (__fxstatat): Do not use CHECK_1.
13611         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13612         <bp-checks.h>.
13613         (__getresgid): Do not use CHECK_1.
13614         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13615         <bp-checks.h>.
13616         (__getresuid): Do not use CHECK_1.
13617         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
13618         <bp-checks.h>.
13619         (__lxstat): Do not use CHECK_1.
13620         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13621         <bp-checks.h>.
13622         (__old_msgctl): Do not use CHECK_1.
13623         (__new_msgctl): Likewise.
13624         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
13625         <bp-checks.h>.
13626         (__new_setrlimit): Do not use CHECK_1.
13627         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13628         <bp-checks.h>.
13629         (__old_shmctl): Do not use CHECK_1.
13630         (__new_shmctl): Likewise.
13631         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
13632         <bp-checks.h>.
13633         (__xstat): Do not use CHECK_1.
13634         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
13635         (__lxstat): Do not use CHECK_1.
13636         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
13637         <bp-checks.h>.
13638         (___lxstat64): Do not use CHECK_1.
13639         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
13640         (__old_msgctl): Do not use CHECK_1.
13641         (__new_msgctl): Likewise.
13642         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
13643         <bp-checks.h>.
13644         (__gettimeofday): Do not use CHECK_1.
13645         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
13646         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
13647         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
13648         <bp-checks.h>.
13649         (__gettimeofday): Do not use CHECK_1.
13650         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
13651         (__old_shmctl): Do not use CHECK_1_NULL_OK.
13652         (__new_shmctl): Do not use CHECK_1.
13653         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
13654         <bp-checks.h>.
13655         (do_sigtimedwait): Do not use CHECK_1.
13656         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
13657         <bp-checks.h>.
13658         (do_sigwaitinfo): Do not use CHECK_1.
13659         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
13660         <bp-checks.h>.
13661         (msgctl): Do not use CHECK_1.
13662         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
13663         <bp-checks.h>.
13664         (shmctl): Do not use CHECK_1.
13665         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
13666         (ustat): Do not use CHECK_1.
13667         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
13668         <bp-checks.h>.
13669         (__fxstat): Do not use CHECK_1.
13670         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
13671         <bp-checks.h>.
13672         (__fxstatat): Do not use CHECK_1.
13673         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
13674         <bp-checks.h>.
13675         (__lxstat): Do not use CHECK_1.
13676         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
13677         <bp-checks.h>.
13678         (__xstat): Do not use CHECK_1.
13679         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
13680         (__xstat): Do not use CHECK_1.
13681         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
13682         (___xstat64): Do not use CHECK_1.
13683
13684         [BZ #13550]
13685         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
13686         definitions.
13687         (CHECK_BOUNDS_HIGH): Likewise.
13688         * string/strcpy.c: Do not include <bp-checks.h>.
13689         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
13690
13691 2013-02-07  Roland McGrath  <roland@hack.frob.com>
13692
13693         * nscd/nscd-client.h (__nscd_drop_map_ref):
13694         Add __attribute__ ((unused)).
13695         * nis/nss-nisplus.h (niserr2nss): Likewise.
13696
13697         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
13698         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
13699
13700         * csu/libc-tls.c (init_static_tls, init_slotinfo):
13701         Remove inline keyword.
13702         * include/rounding-mode.h (round_away): Likewise.
13703         * libio/wfileops.c (adjust_wide_data): Likewise.
13704         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
13705         (__m128i_strloadu_tolower): Likewise.
13706         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
13707         (__m128i_strloadu_tolower): Likewise.
13708         * time/mktime.c (ydhms_diff): Likewise.
13709         * locale/elem-hash.h (elem_hash): Likewise.
13710         * locale/setlocale.c (setdata): Likewise.
13711         * posix/regex_internal.h (re_string_char_size_at): Likewise.
13712         (re_string_wchar_at): Likewise.
13713         (bitset_not, bitset_merge, bitset_mask): Likewise.
13714         [!(__GNUC__ > 3)] (inline): Remove macro.
13715         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
13716         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
13717         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
13718         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
13719         * string/memcmp.c (memcmp_bytes): Likewise.
13720         * locale/programs/locarchive.c (compute_hashval): Likewise.
13721         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
13722         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
13723         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
13724         * nss/getent.c (print_rpc, print_protocols): Likewise.
13725         (print_passwd, print_group, print_aliases): Likewise.
13726         * nis/nss-nisplus.h (niserr2nss): Likewise.
13727         * nscd/connections.c (restart_p): Likewise.
13728         Change return type to bool.
13729
13730 2013-02-05  Roland McGrath  <roland@hack.frob.com>
13731
13732         * Makeconfig (all-Depend-files): Add existing
13733         $(sorted-subdirs:=/Depend) files.
13734         (all-subdirs): Remove nss.
13735         * sysdeps/unix/inet/Subdirs: Add it here instead.
13736         * hesiod/Depend: New file.
13737
13738         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
13739         instead of calling alloca.
13740
13741         * io/lseek.c (__lseek): Rename to __libc_lseek.
13742         Define __lseek as an alias.
13743
13744         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
13745
13746 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
13747
13748         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
13749         else clause and remove check for non-standard endianness.
13750
13751 2013-02-04  David S. Miller  <davem@davemloft.net>
13752
13753         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13754
13755 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
13756
13757         [BZ #13550]
13758         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
13759         (__ubp_memchr): Remove prototype.
13760         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
13761         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
13762         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
13763         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
13764         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
13765         Remove alias.
13766         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
13767         (__ubp_memchr): Likewise.
13768         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
13769         (__ubp_memchr): Likewise.
13770         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
13771         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
13772         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
13773         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
13774         CHECK_STRING.
13775         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
13776         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
13777         (__getcwd): Do not use CHECK_STRING.
13778         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
13779         <bp-checks.h>.
13780         (__real_chown): Do not use CHECK_STRING.
13781         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
13782         <bp-checks.h>.
13783         (fchownat): Do not use CHECK_STRING.
13784         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
13785         CHECK_STRING.
13786         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13787         <bp-checks.h>.
13788         (__lchown): Do not use CHECK_STRING.
13789         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13790         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13791         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13792         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
13793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13794         include <bp-checks.h>.
13795         (truncate64): Do not use CHECK_STRING.
13796         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13797         <bp-checks.h>.
13798         (__real_chown): Do not use CHECK_STRING.
13799         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13800         <bp-checks.h>.
13801         (__lchown): Do not use CHECK_STRING.
13802         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13803         <bp-checks.h>.
13804         (__chown): Do not use CHECK_STRING.
13805         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
13806         <bp-checks.h>.
13807         (truncate64): Do not use CHECK_STRING.
13808         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
13809         Likewise.
13810         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
13811         (__xmknod): Do not use CHECK_STRING.
13812         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
13813         <bp-checks.h>.
13814         (__xmknodat): Do not use CHECK_STRING.
13815         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13816         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
13817
13818 2013-02-04  Andreas Schwab  <schwab@suse.de>
13819
13820         [BZ #14142]
13821         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
13822         * include/netdb.h: Likewise for h_errno.
13823         * elf/tst-stackguard1.c: Include <tls.h>.
13824
13825 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13826
13827         * elf/link.h (struct link_map): Extend the l_addr comment.
13828         * include/link.h (struct link_map): Likewise.
13829
13830 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
13831
13832         [BZ #13550]
13833         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
13834         (BOUNDED_1): Remove macro.
13835         * debug/backtrace.c: Don't include <bp-checks.h>.
13836         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
13837         (__backtrace): Likewise.
13838         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
13839         <bp-checks.h>.
13840         (__backtrace): Don't use BOUNDED_1.
13841         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
13842         <bp-checks.h>.
13843         (__backtrace): Don't use BOUNDED_1.
13844         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
13845         (__backtrace): Don't use BOUNDED_1.
13846         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
13847         (shmat): Don't use BOUNDED_N.
13848
13849 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
13850
13851         [BZ #13550]
13852         * sysdeps/generic/bp-start.h: Remove file.
13853         * csu/libc-start.c: Don't include <bp-start.h>.
13854         (LIBC_START_MAIN): Set up __environ directly instead of using
13855         INIT_ARGV_and_ENVIRON.
13856         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
13857         <bp-start.h>.
13858
13859         [BZ #13550]
13860         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
13861         definitions.
13862         (CHECK_FCNTL): Likewise.
13863         (CHECK_N_PAGES): Likewise.
13864
13865         [BZ #13550]
13866         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
13867         definitions.
13868         (CHECK_SIGSET_NULL_OK): Likewise.
13869         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
13870         <bp-checks.h>.
13871         (sigpending): Don't use CHECK_SIGSET.
13872         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
13873         <bp-checks.h>.
13874         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
13875         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
13876         <bp-checks.h>.
13877         (do_sigsuspend): Don't use CHECK_SIGSET.
13878         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
13879         use CHECK_SIGSET.
13880         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
13881         (do_sigwait): Don't use CHECK_SIGSET.
13882         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
13883         use CHECK_SIGSET.
13884         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
13885         include <bp-checks.h>.
13886         (sigpending): Don't use CHECK_SIGSET.
13887         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
13888         include <bp-checks.h>.
13889         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
13890         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
13891         <bp-checks.h>.
13892         (sigpending): Don't use CHECK_SIGSET.
13893         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
13894         <bp-checks.h>.
13895         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
13896
13897         [BZ #13550]
13898         * sysdeps/generic/bp-semctl.h: Remove file.
13899         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
13900         <bp-checks.h> and <bp-semctl.h>.
13901         (__old_semctl): Don't use CHECK_SEMCTL.
13902         (__new_semctl): Likewise.
13903         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
13904         and <bp-semctl.h>.
13905         (__old_semctl): Don't use CHECK_SEMCTL.
13906         (__new_semctl): Likewise.
13907         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
13908         <bp-checks.h> and <bp-semctl.h>.
13909         (__old_semctl): Don't use CHECK_SEMCTL.
13910         (__new_semctl): Likewise.
13911         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
13912         <bp-checks.h> and <bp-semctl.h>.
13913         (semctl): Don't use CHECK_SEMCTL.
13914
13915         [BZ #13550]
13916         * Makerules (elide-bp-thunks): Remove variable.
13917         (elide-routines.oS): Don't use $(elide-bp-thunks).
13918         (elide-routines.os): Likewise.
13919         (elide-routines.o): Likewise.
13920         (elide-routines.op): Likewise.
13921         (elide-routines.og): Likewise.
13922         (objects): Don't use $(bp-thunks).
13923         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
13924         include.
13925         (common-generated): Do not add s-proto-bp.d.
13926         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
13927         (int): Likewise.
13928         (typ): Likewise.
13929         Do not generate makefile rules for bounded-pointer thunks.
13930         * sysdeps/generic/bp-thunks.h: Remove file.
13931         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
13932         * sysdeps/unix/s-proto-bp.S: Likewise.
13933
13934         [BZ #15062]
13935         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
13936         parts of result separately when argument is not close to line from
13937         -i to i and one part of argument is small.
13938         * math/k_casinhf.c (__kernel_casinhf): Likewise.
13939         * math/k_casinhl.c (__kernel_casinhl): Likewise.
13940         * math/libm-test.inc (cacos_test): Add more tests.
13941         (casin_test): Likewise.
13942         (casinh_test): Likewise.
13943         * sysdeps/i386/fpu/libm-test-ulps: Update.
13944         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13945
13946 2013-01-31  David S. Miller  <davem@davemloft.net>
13947
13948         * po/de.po: Update from translation team.
13949
13950 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
13951
13952         * time/tzfile.c: Include stdint.h for SIZE_MAX.
13953
13954 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
13955
13956         * configure.in (_AC_PROG_CC_C89): New definition.
13957         * configure: Regenerate.
13958
13959         * configure.in (AC_PROG_CPP): New definition.
13960         * configure: Regenerate.
13961
13962 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
13963
13964         * debug/tst-backtrace.h: New file.
13965         * debug/tst-backtrace2.c: Include tst-backtrace.h.
13966         (ret): Remove variable.
13967         (x): Likewise.
13968         (FAIL): Remove macro.
13969         (NO_INLINE): Likewise.
13970         (fn1): Use match function instead of strstr.
13971         * debug/tst-backtrace3.c: Include tst-backtrace.h.
13972         (ret): Remove variable.
13973         (x): Likewise.
13974         (FAIL): Remove macro.
13975         (NO_INLINE): Likewise.
13976         (fn): Use match function instead of strstr.
13977         * debug/tst-backtrace4.c: Include tst-backtrace.h.
13978         (ret): Remove variable.
13979         (x): Likewise.
13980         (FAIL): Remove macro.
13981         (NO_INLINE): Likewise.
13982         (handle_signal): Use match function instead of strstr.
13983         * debug/tst-backtrace5.c: Include tst-backtrace.h.
13984         (ret): Remove variable.
13985         (x): Likewise.
13986         (FAIL): Remove macro.
13987         (NO_INLINE): Likewise.
13988         (handle_signal): Use match function instead of strstr.
13989
13990 2013-01-23  Roland McGrath  <roland@hack.frob.com>
13991
13992         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
13993
13994 2013-01-23  David S. Miller  <davem@davemloft.net>
13995
13996         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
13997         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
13998         argument of CAS if possible.
13999         * sysdeps/sparc/sparc64/bits/atomic.h
14000         (__arch_compare_and_exchange_val_32_acq): Likewise.
14001         (__arch_compare_and_exchange_val_64_acq): Likewise.
14002
14003 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
14004
14005         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
14006         * sysdeps/posix/ulimit.c: ... this.
14007         Include <limits.h>.
14008         * sysdeps/unix/bsd/ulimit.c: Remove file.
14009
14010 2013-01-23  Adam Conrad  <adconrad@0c3.net>
14011
14012         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
14013         (LDFLAGS-tst-array5): Likewise.
14014
14015 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14016
14017         [BZ #15036]
14018         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
14019         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
14020         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
14021         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
14022
14023 2013-01-21  David S. Miller  <davem@davemloft.net>
14024
14025         * sysdeps/sparc/backtrace.c: New file.
14026         * sysdeps/sparc/sparc32/backtrace.h: New file.
14027         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
14028         * sysdeps/sparc/sparc64/backtrace.h: New file.
14029         * sysdeps/sparc/sparc64/backtrace.c: Delete.
14030         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
14031         -funwind-tables.
14032
14033 2013-01-21  Andreas Schwab  <schwab@suse.de>
14034
14035         [BZ #15020]
14036         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
14037         closed its stdout.
14038
14039 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
14040
14041         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
14042         "mpa2.h".
14043         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14044
14045 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
14046             Mark Mitchell  <mark@codesourcery.com>
14047             Tom de Vries  <tom@codesourcery.com>
14048             Paul Pluzhnikov  <ppluzhnikov@google.com>
14049
14050         * debug/tst-backtrace2.c: New file.
14051         * debug/tst-backtrace3.c: Likewise.
14052         * debug/tst-backtrace4.c: Likewise.
14053         * debug/tst-backtrace5.c: Likewise.
14054         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
14055         (CFLAGS-tst-backtrace3.c): Likewise.
14056         (CFLAGS-tst-backtrace4.c): Likewise.
14057         (CFLAGS-tst-backtrace5.c): Likewise.
14058         (LDFLAGS-tst-backtrace2): Likewise.
14059         (LDFLAGS-tst-backtrace3): Likewise.
14060         (LDFLAGS-tst-backtrace4): Likewise.
14061         (LDFLAGS-tst-backtrace5): Likewise.
14062         (tests): Add new tests tst-backtrace2, tst-backtrace3,
14063         tst-backtrace4 and tst-backtrace5.
14064
14065 2013-01-18  Anton Blanchard  <anton@samba.org>
14066             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14067
14068         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
14069         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
14070         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
14071         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
14072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
14073         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
14074         "+r" and remove output regs list as redundant.  Add explicit inline
14075         asm to specify register of return val to work around compiler codegen
14076         bug.  Remove (int) cast on return value.  Add return type parameter to
14077         use in macro so that this macro does not truncate return value for
14078         64-bit values.
14079         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
14080         pass to INTERNAL_VSYSCALL_NCS.
14081         (INLINE_VSYSCALL): Add 'long int' as return type to
14082         INTERNAL_VSYSCALL_NCS macro invocation.
14083         (INTERNAL_VSYSCALL): Add 'long int' as return type to
14084         INTERNAL_VSYSCALL_NCS macro invocation.
14085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14086
14087 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14088
14089         [BZ #14496]
14090         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
14091         Fix application of SIMD FP exception mask.
14092
14093         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
14094         mp_no from a power of two.
14095         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
14096         __mpexp_twomm1.  Use __pow_mp.
14097
14098         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
14099         multiplication.
14100
14101 2013-01-17  David S. Miller  <davem@davemloft.net>
14102
14103         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14104
14105 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14106
14107         [BZ #15023]
14108         * include/complex.h: Condition contents on [!_COMPLEX_H].
14109         (__kernel_casinhf): New prototype.
14110         (__kernel_casinh): Likewise.
14111         (__kernel_casinhl): Likewise.
14112         * math/Makefile (libm_calls): Add k_casinh.
14113         * math/k_casinh.c: New file.
14114         * math/k_casinhf.c: Likewise.
14115         * math/k_casinhl.c: Likewise.
14116         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
14117         finite nonzero arguments.
14118         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
14119         finite nonzero arguments.
14120         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
14121         finite nonzero arguments.
14122         * math/s_casinh.c: Do not include <float.h>.
14123         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
14124         * math/s_casinhf.c: Do not include <float.h>.
14125         (__casinhf): Move code for finite nonzero arguments to
14126         k_casinhf.c.
14127         * math/s_casinhl.c: Do not include <float.h>.
14128         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
14129         redefine.
14130         (__casinhl): Move code for finite nonzero arguments to
14131         k_casinhl.c.
14132         * math/libm-test.inc (cacos_test): Add more tests.
14133         * sysdeps/i386/fpu/libm-test-ulps: Update.
14134         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14135
14136 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
14137
14138         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
14139         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
14140         [!HAVE_MREMAP]: Remove [defined linux] case.
14141         * malloc/arena.c: Do not include <malloc-sysdep.h>.
14142
14143 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
14144
14145         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
14146
14147 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14148
14149         * elf/elf.h (R_386_SIZE32): New relocation.
14150         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
14151         R_386_SIZE32.
14152         (elf_machine_rela): Likewise.
14153         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
14154         R_X86_64_SIZE64 and R_X86_64_SIZE32.
14155
14156 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14157
14158         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
14159         (FP_FAST_FMA): Do not define.
14160         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
14161         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
14162         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
14163         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
14164         !_SOFT_FLOAT]: Likewise.
14165         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
14166         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
14167         value.
14168         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
14169         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
14170         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
14171         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
14172         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
14173         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
14174         file.
14175
14176 2013-01-16  Andreas Schwab  <schwab@suse.de>
14177
14178         [BZ #14327]
14179         * include/stdlib.h (__mktemp): Add declaration.
14180         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
14181         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
14182
14183 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14184
14185         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
14186         definitions.
14187         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
14188         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
14189         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
14190         definitions here.
14191         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
14192         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
14193         definitions.
14194         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
14195         and ONE.
14196         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
14197         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
14198         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
14199         definitions.
14200         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
14201         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
14202         definitions.
14203         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
14204
14205         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
14206
14207 2013-01-15  David S. Miller  <davem@davemloft.net>
14208
14209         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14210         trunc{,f} to libm-sysdep_routes.
14211         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
14213         file.
14214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
14215         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
14216         file.
14217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
14218         file.
14219         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
14220         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
14221         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
14222         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
14223         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
14224         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
14225         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
14226         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
14227
14228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14229         nearbyint{,f} to libm-sysdep_routes.
14230         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
14232         New file.
14233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
14234         file.
14235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
14236         New file.
14237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
14238         file.
14239         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
14240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
14241         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
14242         file.
14243         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
14244         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
14245         file.
14246         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
14247         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
14248         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
14249
14250         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
14251         libc_feholdexcept and libc_fesetenv.
14252
14253 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
14254
14255         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
14256
14257 2013-01-14  David S. Miller  <davem@davemloft.net>
14258
14259         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
14260         (SPARC_ASM_VIS2_IFUNC): Likewise.
14261         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
14262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
14263         use of 'siam' instruction.
14264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
14265         Likewise.
14266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
14267         Likewise.
14268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
14269         Likewise.
14270         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
14271         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
14272         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
14273         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
14274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
14275         file.
14276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
14277         file.
14278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
14279         file.
14280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
14281         file.
14282         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
14283         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
14284         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
14285         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
14286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
14287         new VIS2 routines.
14288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
14289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
14291         Likewise.
14292         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
14293         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
14294         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
14295         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
14296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
14297         routines to libm-sysdep_routines.
14298         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14299
14300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14301         fdim/fdimf to libm-sysdep_routines.
14302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
14303         file.
14304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
14305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
14306         file.
14307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
14308         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
14309         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
14310         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
14311         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
14312         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
14313         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
14314
14315 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14316
14317         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
14318         to optimize copies.
14319
14320         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
14321         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14322         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14323
14324         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
14325         local variable MPTWO.
14326         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
14327         Likewise.
14328
14329 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14330
14331         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
14332         GLOB_NOESCAPE.
14333
14334 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14335
14336         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
14337
14338 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14339
14340         * manual/pattern.texi (glob_t): Document gl_flags.
14341         (glob64_t): Likewise.
14342
14343 2013-01-11  David S. Miller  <davem@davemloft.net>
14344
14345         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
14346         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
14347         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
14348         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
14349         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
14350         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
14351         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
14352         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
14353         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
14354         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
14355         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
14356         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
14357         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
14358
14359         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14360         sparc V9 rather than using V8 code.
14361         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14362         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14363
14364         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
14365         Move to...
14366         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
14367         Here.
14368
14369 2013-01-11  Roland McGrath  <roland@hack.frob.com>
14370
14371         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
14372         not in the main loop.
14373         * configure: Regenerated.
14374
14375 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
14376
14377         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
14378         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
14379         to just #else.
14380         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
14381         [!__GLIBC_HAVE_LONG_LONG] case.
14382         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
14383         condition to just #else.
14384         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
14385         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
14386         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
14387         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
14388         unconditional.
14389         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
14390         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14391         #elif condition to just #else.
14392         * sysdeps/unix/sysv/linux/sys/sysmacros.h
14393         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
14394         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14395         #elif condition to just #else.
14396
14397 2013-01-11  Steve Ellcey  <sellcey@mips.com>
14398
14399         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
14400         (EF_MIPS_ARCH_64): Fix value.
14401         (EF_MIPS_ARCH_32R2): New.
14402         (EF_MIPS_ARCH_64R2): New.
14403
14404 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
14405
14406         * Makeconfig (+link-pie-before-libc): New.
14407         (+link-pie-after-libc): Likewise.
14408         (+link-pie-tests): Likewise.
14409         (+link-pie): Rewritten.
14410         (link-before-libc): Remove $(config-LDFLAGS).
14411         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
14412         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
14413         (config-LDFLAGS): Renamed to ...
14414         (rtld-LDFLAGS): This.
14415         (rtld-tests-LDFLAGS): New macro.
14416         (link-libc-rpath-link): Likewise.
14417         (link-libc-tests-rpath-link): Likewise.
14418         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
14419         (link-libc): Prepand $(link-libc-rpath-link).
14420         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
14421         (test-program-prefix): New macro.
14422         (test-via-rtld-prefix): Likewise.
14423         (test-program-cmd): Likewise.
14424         (host-test-program-cmd): Likewise.
14425         * Makefile ($(common-objpfx)testrun.sh): Replace
14426         $(run-program-prefix) with $(test-program-prefix).
14427         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
14428         $(rtld-LDFLAGS).
14429         ($(common-objpfx)shlib.lds): Likewise.
14430         (build-module-helper): Likewise.
14431         ($(common-objpfx)format.lds): Likewise.
14432         * Rules (binaries-pie-tests): New.
14433         (binaries-pie-notests): Likewise.
14434         (binaries-pie): Rewritten.
14435         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
14436         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
14437         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
14438         (make-test-out): Replace $(host-built-program-cmd) with
14439         $(host-test-program-cmd).
14440         * config.make.in (build-hardcoded-path-in-tests): New variable.
14441         * configure.in (--enable-hardcoded-path-in-tests): New configure
14442         option.
14443         (hardcoded_path_in_tests): New AC_SUBST.
14444         * configure: Regenerated.
14445         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
14446         $(built-program-cmd) with $(test-program-cmd).
14447         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
14448         (test_program_cmd): This.
14449         * elf/Makefile ($(objpfx)order.out): Run test with
14450         $(test-program-prefix).
14451         ($(objpfx)order2.out): Likewise.
14452         ($(objpfx)tst-initorder.out): Likewise.
14453         ($(objpfx)tst-initorder2.out): Likewise.
14454         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
14455         $(test-program-cmd).
14456         ($(objpfx)tst-array1-static.out): Likewise.
14457         ($(objpfx)tst-array2.out): Likewise.
14458         ($(objpfx)tst-array3.out): Likewise.
14459         ($(objpfx)tst-array4.out): Likewise.
14460         ($(objpfx)tst-array5.out): Likewise.
14461         ($(objpfx)tst-array5-static.out): Likewise.
14462         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
14463         $(test-program-cmd).
14464         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
14465         $(run-program-prefix) with $(test-program-prefix).
14466         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
14467         (test_program_prefix): This.
14468         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
14469         $(run-program-prefix) with $(test-program-prefix).
14470         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
14471         (test_program_prefix): This.
14472         * iconvdata/tst-tables.sh: Likewise.
14473         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
14474         $(run-program-prefix) with $(test-program-prefix).
14475         ($(objpfx)tst-translit.out): Likewise.
14476         ($(objpfx)tst-gettext2.out): Likewise.
14477         ($(objpfx)tst-gettext4.out): Likewise.
14478         ($(objpfx)tst-gettext6.out): Likewise.
14479         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
14480         (test_program_prefix): This.
14481         * intl/tst-gettext2.sh: Likewise.
14482         * intl/tst-gettext4.sh  Likewise.
14483         * intl/tst-gettext6.sh: Likewise.
14484         * intl/tst-translit.sh: Likewise.
14485         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
14486         with $(test-program-cmd).
14487         * libio/Makefile ($(objpfx)test-freopen.out): Replace
14488         $(run-program-prefix) with $(test-program-prefix).
14489         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
14490         (test_program_prefix): This.
14491         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
14492         $(run-program-prefix) with $(test-program-prefix).
14493         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
14494         (test_program_prefix): This.
14495         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
14496         * posix/Makefile ($(objpfx)globtest.out): Replace
14497         $(run-via-rtld-prefix) and $(test-wrapper) with
14498         $(test-program-prefix) and $(test-via-rtld-prefix).
14499         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
14500         $(test-program-prefix).
14501         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
14502         $(host-test-program-cmd).
14503         (tst-spawn-ARGS): Likewise.
14504         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
14505         $(test-program-prefix).
14506         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
14507         (test_via_rtld_prefix): This.
14508         (test_wrapper): Renamed to ...
14509         (test_program_prefix): This.
14510         (run_program_prefix): Replaced by test_program_prefix.
14511         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
14512         (test_program_prefix): This.
14513         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
14514         with $(host-test-program-cmd).
14515         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
14516         $(run-program-prefix) with $(test-program-prefix).
14517         ($(objpfx)tst-printf.out): Likewise.
14518         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
14519         $(test-program-cmd).
14520         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
14521         (test_program_prefix): This.
14522         * stdio-common/tst-unbputc.sh: Likewise.
14523         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
14524         $(run-program-prefix) with $(test-program-prefix).
14525         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
14526         (test_program_prefix): This.
14527         * string/Makefile ($(objpfx)tst-svc.out):  Replace
14528         $(built-program-cmd) with $(test-program-cmd).
14529
14530 2013-01-11  Andreas Jaeger  <aj@suse.de>
14531
14532         [BZ #15003]
14533         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
14534         value. Sync with Linux 3.7.
14535
14536 2013-01-10  David S. Miller  <davem@davemloft.net>
14537
14538         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
14539         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14540         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14541
14542 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14543
14544         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
14545         never set.
14546         * configure: Regenerated.
14547
14548 2013-01-10  David S. Miller  <davem@davemloft.net>
14549
14550         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14551         sparc V9 rather than using V8 code.
14552         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14553         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14554
14555 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14556
14557         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
14558         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
14559         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
14560         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
14561         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
14562         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
14563         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
14564         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
14565         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
14566         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
14567         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
14568         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
14569         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
14570         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
14571         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
14572         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
14573         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
14574         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
14575         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
14576         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
14577         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
14578         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
14579         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
14580         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
14581         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
14582         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
14583         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
14584
14585 2013-01-10  David S. Miller  <davem@davemloft.net>
14586
14587         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14588
14589 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14590
14591         * posix/Makefile (tests-static): New variable.
14592         (tests): Add $(tests-static).
14593         (tst-exec-static-ARGS): New variable.
14594         (tst-spawn-static-ARGS): Likewise.
14595         * posix/tst-exec-static.c: New file.
14596         * posix/tst-spawn-static.c: Likewise.
14597         * posix/tst-exec.c: Support run directly.
14598         * posix/tst-spawn.c: Likewise.
14599
14600 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
14601
14602         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
14603         long.
14604         * math/bits/mathcalls.h (llrint): Likewise.
14605         (llround): Likewise.
14606         * stdlib/stdlib.h (struct drand48_data): Likewise.
14607         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
14608         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
14609         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
14610         Likewise.
14611         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
14612         Likewise.
14613         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
14614         (elf_greg_t): Likewise.
14615         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
14616         (__jmp_buf): Likewise.
14617         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
14618         definitions.
14619         (llrint): Likewise, for all definitions.
14620         (llrintl): Likewise.
14621
14622         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
14623         Remove [__GNUC__] condition.
14624         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
14625         condition to just [__USE_ISOC99].
14626         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
14627
14628 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14629
14630         [BZ #14200]
14631         * sysdeps/unix/sysv/linux/x86/bits/environments.h
14632         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
14633         defined.
14634         (_POSIX_V6_ILP32_OFF32): Likewise.
14635         (_XBS5_ILP32_OFF32): Likewise.
14636         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
14637         (__ILP32_OFFBIG_LDFLAGS): Likewise.
14638
14639 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14640
14641         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
14642
14643         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
14644         doubles __mpexp_twomm1.  Adjust usage.
14645         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
14646         Remove.
14647
14648 2013-01-10  Andreas Schwab  <schwab@suse.de>
14649
14650         [BZ #14964]
14651         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
14652         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
14653
14654 2013-01-09  David S. Miller  <davem@davemloft.net>
14655
14656         [BZ #15003]
14657         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
14658         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
14659         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
14660         TCP_FASTOPEN): Define.
14661         (tcp_repair_opt): New structure.
14662         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
14663         enum values.
14664         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
14665         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
14666         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
14667         (tcp_cookie_transactions): New structure.
14668
14669 2013-01-09  Anton Blanchard  <anton@samba.org>
14670
14671         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
14672         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
14673         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
14674         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
14675
14676 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
14677
14678         * include/features.h (__USE_ANSI): Remove.
14679
14680 2013-01-09  Roland McGrath  <roland@hack.frob.com>
14681
14682         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
14683
14684         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
14685
14686 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
14687
14688         * sysdeps/s390/fpu/libm-test-ulps: Update.
14689
14690         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14691
14692         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
14693         (__acr): Likewise.
14694         (__cpy): Likewise.
14695         (norm): Likewise.
14696         (denorm): Likewise.
14697         (__mp_dbl): Likewise.
14698         (__dbl_mp): Likewise.
14699         (add_magnitudes): Likewise.
14700         (sub_magnitudes): Likewise.
14701         (__add): Likewise.
14702         (__sub): Likewise.
14703         (__mul): Likewise.
14704         (__inv): Likewise.
14705         (__dvd): Likewise.
14706         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
14707         (__acr): Likewise.
14708         (__cpy): Likewise.
14709         (norm): Likewise.
14710         (denorm): Likewise.
14711         (__mp_dbl): Likewise.
14712         (__dbl_mp): Likewise.
14713         (add_magnitudes): Likewise.
14714         (sub_magnitudes): Likewise.
14715         (__add): Likewise.
14716         (__sub): Likewise.
14717         (__mul): Likewise.
14718         (__inv): Likewise.
14719         (__dvd): Likewise.
14720         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
14721         (__acr): Likewise.
14722         (__cpy): Likewise.
14723         (norm): Likewise.
14724         (denorm): Likewise.
14725         (__mp_dbl): Likewise.
14726         (__dbl_mp): Likewise.
14727         (add_magnitudes): Likewise.
14728         (sub_magnitudes): Likewise.
14729         (__add): Likewise.
14730         (__sub): Likewise.
14731         (__mul): Likewise.
14732         (__inv): Likewise.
14733         (__dvd): Likewise.
14734
14735 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
14736
14737         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
14738         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
14739         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
14740         2 && __USE_EXTERN_INLINES]: Likewise.
14741
14742 2013-01-08  Andreas Jaeger  <aj@suse.de>
14743
14744         [BZ# 14985]
14745         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
14746         Remove.
14747         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
14748         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
14749
14750 2013-01-07  Anton Blanchard  <anton@samba.org>
14751
14752         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
14753         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
14754         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
14755         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
14756         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14757         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
14758         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
14759         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
14760         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14761         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
14762         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14763         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14764         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
14765         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14766         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
14767         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14768         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14769         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14770         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
14771         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14772         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
14773         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
14774         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14775         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
14776         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
14777         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14778         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14779         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
14780         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
14781         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
14782         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
14783         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14784         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
14785         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
14786         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
14787         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14788         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14789         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
14790         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
14791         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
14792         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
14793         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14794         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
14795
14796 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
14797
14798         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
14799         (__MALLOC_PMT): Likewise.
14800         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
14801         [__GNUC__], only on [_LIBC].
14802         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
14803         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
14804         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
14805         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
14806         forward declaration.
14807         (realloc_hook_ini): Likewise.
14808         (memalign_hook_ini): Likewise.
14809         (__libc_memalign): Do not use __MALLOC_PMT in variable
14810         declaration.
14811         (__libc_valloc): Likewise.
14812         (__libc_pvalloc): Likewise.
14813         (__libc_calloc): Likewise.
14814         (__posix_memalign): Likewise.
14815
14816         [BZ #14996]
14817         * math/s_casinh.c: Include <float.h>.
14818         (__casinh): Do not do computation with squaring and square root
14819         for large arguments.
14820         * math/s_casinhf.c: Include <float.h>.
14821         (__casinhf): Do not do computation with squaring and square root
14822         for large arguments.
14823         * math/s_casinhl.c: Include <float.h>.
14824         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
14825         (__casinhl): Do not do computation with squaring and square root
14826         for large arguments.
14827         * math/libm-test.inc (casin_test): Add more tests.
14828         (casinh_test): Likewise.
14829         * sysdeps/i386/fpu/libm-test-ulps: Update.
14830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14831
14832 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
14833
14834         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
14835         (__x86_64_raw_data_cache_size): Likewise.
14836         (__x86_64_data_cache_size_half): Likewise.
14837         (__x86_64_raw_data_cache_size_half): Likewise.
14838         (__x86_64_shared_cache_size): Likewise.
14839         (__x86_64_raw_shared_cache_size): Likewise.
14840         (__x86_64_shared_cache_size_half): Likewise.
14841         (__x86_64_raw_shared_cache_size_half): Likewise.
14842         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
14843         to ...
14844         (__x86_data_cache_size): This.
14845         (__x86_64_raw_data_cache_size): Renamed to ...
14846         (__x86_raw_data_cache_size): This.
14847         (__x86_64_data_cache_size_half): Renamed to ...
14848         (__x86_data_cache_size_half): This.
14849         (__x86_64_raw_data_cache_size_half): Renamed to ...
14850         (__x86_raw_data_cache_size_half): This.
14851         (__x86_64_shared_cache_size): Renamed to ...
14852         (__x86_shared_cache_size): This.
14853         (__x86_64_raw_shared_cache_size): Renamed to ...
14854         (__x86_raw_shared_cache_size): This.
14855         (__x86_64_shared_cache_size_half): Renamed to ...
14856         (__x86_shared_cache_size_half): This.
14857         (__x86_64_raw_shared_cache_size_half): Renamed to ...
14858         (__x86_raw_shared_cache_size_half): This.
14859         * sysdeps/x86_64/memcpy.S: Updated.
14860         * sysdeps/x86_64/memset.S: Likewise.
14861         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
14862         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14863         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14864
14865 2013-01-04  David S. Miller  <davem@davemloft.net>
14866
14867         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14868
14869 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
14870
14871         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
14872         1 to avoid redefinition warning.
14873         (__USE_GNU): Don't define.
14874         (init_signaling_nan): Protoize.
14875
14876         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14877
14878 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14879
14880         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
14881         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
14882         (__cpymn): Likewise.
14883         (norm): Remove commented code.
14884         (denorm): Likewise.
14885         (__mp_dbl): Likewise.
14886         (__inv): Likewise.
14887         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
14888         (__cpymn): Likewise.
14889         (norm): Remove commented code.
14890         (denorm): Likewise.
14891         (__mp_dbl): Likewise.
14892         (__inv): Likewise.
14893
14894         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
14895         mp_no value for 1.0 and 2.0.
14896         (norm): Use RADIXI instead of radixi.d.
14897         (denorm): Likewise.
14898         (__mul): Use 0.0 instead of zero.d.
14899         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
14900         mp_no value for 1.0 and 2.0.
14901         (norm): Use RADIXI instead of radixi.d.
14902         (denorm): Likewise.
14903         (__mul): Use 0.0 instead of zero.d.
14904
14905 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
14906
14907         [BZ #14994]
14908         * math/s_casinh.c (__casinh): Reduce finite argument to first
14909         quadrant then set signs of results at the end.
14910         * math/s_casinhf.c (__casinhf): Likewise.
14911         * math/s_casinhl.c (__casinhl): Likewise.
14912         * math/libm-test.inc (casin_test): Add more tests.
14913         (casinh_test): Likewise.
14914         * sysdeps/i386/fpu/libm-test-ulps: Update.
14915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14916
14917 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14918
14919         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
14920
14921         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
14922
14923         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
14924         declarations.
14925         (denorm): Likewise.
14926         (__mp_dbl): Likewise.
14927         (__inv): Likewise.
14928
14929         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
14930         and adjust the header comment.
14931
14932         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
14933         variable name from declaration.
14934
14935 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14936
14937         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14938         Initialize COMMON_CPUID_INDEX_7 element.
14939         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
14940         (CPUID_RTM): Likewise.
14941         (HAS_RTM): Likewise.
14942         (COMMON_CPUID_INDEX_7): New enum.
14943
14944 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
14945
14946         [BZ #14981]
14947         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
14948         size is zero, record memory as freed.
14949
14950 2013-01-03  Andreas Jaeger  <aj@suse.de>
14951
14952         * po/ia.po: Add new Interlingua translation.
14953
14954 2012-01-03  Allan McRae  <allan@archlinux.org>
14955
14956         * locale/programs/localedef.c: Fix description of '--posix' flag.
14957
14958 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
14959
14960         * NEWS: Update dates in second copyright notice.
14961         * README: Update copyright dates in example.
14962         * manual/libc.texinfo: Update copyright dates.
14963         * scripts/test-installation.pl: Update copyright date in --version
14964         output.
14965
14966         * hurd/ctty-input.c: Fix copyright notice formatting.
14967         * hurd/ctty-output.c: Likewise.
14968         * hurd/dtable.c: Likewise.
14969         * hurd/hurd-raise.c: Likewise.
14970         * hurd/hurdprio.c: Likewise.
14971         * hurd/msgportdemux.c: Likewise.
14972         * misc/sys/file.h: Likewise.
14973         * misc/sys/ioctl.h: Likewise.
14974         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
14975         * sysdeps/mach/hurd/chdir.c: Likewise.
14976         * sysdeps/mach/hurd/fchdir.c: Likewise.
14977         * sysdeps/mach/hurd/rename.c: Likewise.
14978         * sysdeps/mach/hurd/rmdir.c: Likewise.
14979         * sysdeps/mach/hurd/seekdir.c: Likewise.
14980         * sysdeps/mach/hurd/setsid.c: Likewise.
14981         * sysdeps/posix/wait3.c: Likewise.
14982
14983         * All files with FSF copyright notices: Update copyright dates
14984         using scripts/update-copyrights.
14985         * intl/plural.c: Regenerated.
14986         * locale/programs/charmap-kw.h: Likewise.
14987         * locale/programs/locfile-kw.h: Likewise.
14988
14989 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
14990
14991         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
14992         four values.
14993
14994         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
14995         calculation loop and add branch prediction.
14996
14997         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
14998         check access beyond bounds of m1np.
14999
15000         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15001         MPTWO.
15002         (__inv): Remove local variable MPTWO to use the global
15003         constant.
15004         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
15005         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15006         variable MPTWO.
15007         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
15008         MP3HALFS static const.
15009
15010 2013-01-01  David S. Miller  <davem@davemloft.net>
15011
15012         * po/ca.po: Update from translation team.
15013
15014 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
15015
15016         * scripts/update-copyrights: New file.
15017         * Makeconfig: Reformat copyright notice.
15018         * ctype/ctype.h: Likewise.
15019         * debug/swprintf_chk.c: Likewise.
15020         * elf/dl-cache.c: Likewise.
15021         * elf/dl-debug.c: Likewise.
15022         * elf/dl-object.c: Likewise.
15023         * grp/initgroups.c: Likewise.
15024         * hurd/Makefile: Likewise.
15025         * hurd/hurd/signal.h: Likewise.
15026         * hurd/hurdfault.c: Likewise.
15027         * hurd/hurdioctl.c: Likewise.
15028         * hurd/hurdlookup.c: Likewise.
15029         * hurd/intr-msg.c: Likewise.
15030         * iconv/gconv_open.c: Likewise.
15031         * libio/swprintf.c: Likewise.
15032         * locale/lc-ctype.c: Likewise.
15033         * locale/nl_langinfo.c: Likewise.
15034         * mach/Machrules: Likewise.
15035         * mach/Makefile: Likewise.
15036         * malloc/obstack.h: Likewise.
15037         * manual/Makefile: Likewise.
15038         * manual/tsort.awk: Likewise.
15039         * misc/bits/stab.def: Likewise.
15040         * nis/nis_print_group_entry.c: Likewise.
15041         * nis/nis_table.c: Likewise.
15042         * nis/nss_compat/compat-pwd.c: Likewise.
15043         * nis/nss_compat/compat-spwd.c: Likewise.
15044         * po/Makefile: Likewise.
15045         * posix/fnmatch.c: Likewise.
15046         * posix/regex.h: Likewise.
15047         * resolv/Makefile: Likewise.
15048         * resolv/nss_dns/dns-network.c: Likewise.
15049         * resolv/res_hconf.c: Likewise.
15050         * scripts/gen-sorted.awk: Likewise.
15051         * soft-fp/soft-fp.h: Likewise.
15052         * stdio-common/printf.h: Likewise.
15053         * stdlib/monetary.h: Likewise.
15054         * stdlib/random.c: Likewise.
15055         * stdlib/random_r.c: Likewise.
15056         * sysdeps/generic/Makefile: Likewise.
15057         * sysdeps/gnu/Makefile: Likewise.
15058         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15059         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15060         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15061         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15062         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15063         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15064         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15065         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15066         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15067         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15068         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15069         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15070         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15071         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15072         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15073         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15074         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15075         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15076         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15077         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15078         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15079         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15080         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15081         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
15082         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
15083         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15084         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
15085         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
15086         * sysdeps/mach/hurd/errnos.awk: Likewise.
15087         * sysdeps/mach/hurd/fork.c: Likewise.
15088         * sysdeps/mach/hurd/getcwd.c: Likewise.
15089         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
15090         * sysdeps/mach/hurd/mmap.c: Likewise.
15091         * sysdeps/mach/hurd/utimes.c: Likewise.
15092         * sysdeps/mach/hurd/xmknod.c: Likewise.
15093         * sysdeps/posix/profil.c: Likewise.
15094         * sysdeps/posix/readdir_r.c: Likewise.
15095         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15096         * sysdeps/powerpc/bits/setjmp.h: Likewise.
15097         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
15098         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
15099         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
15100         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
15101         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15102         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15103         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
15104         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
15105         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15106         * sysdeps/pthread/lio_listio.c: Likewise.
15107         * sysdeps/sparc/dl-procinfo.h: Likewise.
15108         * sysdeps/unix/i386/sysdep.S: Likewise.
15109         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
15110         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
15111         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
15112         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
15113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15114         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
15115         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
15116         * sysdeps/unix/sysv/linux/speed.c: Likewise.
15117         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
15118         * sysdeps/wordsize-32/divdi3.c: Likewise.
15119         * time/sys/time.h: Likewise.
15120         * wcsmbs/Makefile: Likewise.
15121
15122 2013-01-01  David S. Miller  <davem@davemloft.net>
15123
15124         * po/fr.po: Update from translation team.
15125
15126         * catgets/gencat.c: Update copyright year.
15127         * csu/version.c: Likewise.
15128         * debug/catchsegv.sh: Likewise.
15129         * debug/pcprofiledump.c: Likewise.
15130         * debug/xtrace.sh: Likewise.
15131         * elf/ldconfig.c: Likewise.
15132         * elf/ldd.bash.in: Likewise.
15133         * elf/pldd.c: Likewise.
15134         * elf/sotruss.ksh: Likewise.
15135         * elf/sprof.c: Likewise.
15136         * iconv/iconv_prog.c: Likewise.
15137         * iconv/iconvconfig.c: Likewise.
15138         * locale/programs/locale.c: Likewise.
15139         * locale/programs/localedef.c: Likewise.
15140         * login/programs/pt_chown.c: Likewise.
15141         * malloc/memusage.sh: Likewise.
15142         * malloc/memusagestat.c: Likewise.
15143         * malloc/mtrace.pl: Likewise.
15144         * nscd/nscd.c: Likewise.
15145         * nss/getent.c: Likewise.
15146         * nss/makedb.c: Likewise.
15147         * posix/getconf.c: Likewise.
15148
15149 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
15150
15151         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
15152         numbers.
15153
15154 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
15155
15156         * math/bits/mathcalls.h (modf): Use __nonnull.
15157
15158 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15159
15160         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
15161         (split): Use macro CN instead of the bare value.
15162         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
15163         could be used.
15164         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
15165         instead of the bare value.
15166         (power1): Likewise.
15167
15168 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15169
15170         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
15171         __ATAN_TWOM.
15172         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15173
15174         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
15175         their values.
15176         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
15177         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
15178         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
15179         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
15180
15181 2012-12-28  Andreas Jaeger  <aj@suse.de>
15182
15183         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
15184         values are from Linux 3.7.
15185
15186         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
15187         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
15188
15189 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15190
15191         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
15192         TRUE case.
15193
15194         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
15195         (norm): Likewise.
15196         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
15197         variables with preprocessor constants.
15198         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15199         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15200         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15201
15202 2012-12-27  Bruno Haible  <bruno@clisp.org>
15203
15204         [BZ #14317]
15205         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
15206         only if needed.
15207
15208 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15209
15210         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
15211         and use variable directly.
15212         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
15213
15214         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15215         MPONE.
15216         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
15217         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15218         variable MPONE.
15219         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
15220         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
15221         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
15222         include directive.  Remove local variable MPONE.
15223         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
15224         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
15225         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15226
15227 2012-12-25  David S. Miller  <davem@davemloft.net>
15228
15229         * version.h (RELEASE): Set to "development".
15230         (VERSION): Set to "2.17.90".
15231         * NEWS: Add 2.18 section.
15232
15233 2012-12-21  David S. Miller  <davem@davemloft.net>
15234
15235         * po/hr.po: Update from translation team.
15236
15237 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15238
15239         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
15240
15241 2012-12-19  Steve Ellcey  <sellcey@mips.com>
15242
15243         * NEWS:  Mention new memcpy for MIPS.
15244
15245 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15246
15247         * manual/contrib.texi (Contributors): Spelling correction.
15248
15249 2012-12-15  David S. Miller  <davem@davemloft.net>
15250
15251         * po/ru.po: Update from translation team.
15252
15253 2012-12-13  David S. Miller  <davem@davemloft.net>
15254
15255         * NEWS: Mention IFUNC testsuite enhancements.
15256
15257         * po/pl.po: Update from translation team.
15258         * po/bg.po: Likewise.
15259
15260         * manual/contrib.texi (Contributors): Update entries for Hongjiu
15261         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
15262
15263 2012-12-11  David S. Miller  <davem@davemloft.net>
15264
15265         * po/sv.po: Update from translation team.
15266
15267         * po/vi.po: Update from translation team.
15268
15269         * po/cs.po: Update from translation team.
15270
15271         * po/de.po: Update from translation team.
15272         * po/eo.po: Likewise.
15273         * po/nl.po: Likewise.
15274
15275 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15276
15277         [BZ #14246]
15278         * manual/argp.texi (Argp Helper Functions): Move node to follow
15279         Argp Parsing State.
15280
15281         [BZ #14872]
15282         * manual/conf.texi (Limits on File System Capacity): Mention if
15283         terminating null is included in the max size.
15284
15285 2012-12-10  Andreas Jaeger  <aj@suse.de>
15286
15287         * po/cs.po: Update from translation team.
15288
15289 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
15290
15291         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
15292         void pointer and cast to uintptr_t.
15293         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
15294         path.
15295         * sysdeps/s390/s390-64/memcpy.S: Likewise.
15296         * sysdeps/s390/s390-64/memset.S: Likewise.
15297
15298 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
15299
15300         [BZ #14833]
15301         * menual/message.texi (Message Translation): Fix typos.
15302         (Helper programs for gettext): Likewise.
15303
15304 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
15305
15306         [BZ #14898]
15307         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
15308         Change to -1.
15309
15310 2012-12-07  David S. Miller  <davem@davemloft.net>
15311
15312         * po/libc.pot: Update.
15313
15314 2012-12-07  Richard Henderson  <rth@redhat.com>
15315
15316         [BZ #10114]
15317         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
15318         normal/normal case to before the switch.
15319         (_FP_DIV): Likewise.
15320
15321 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
15322             Mike Frysinger  <vapier@gentoo.org>
15323
15324         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
15325         check for __NR_fadvise64_64.
15326
15327 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
15328
15329         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
15330         0, not just to plain "0" as a statement.
15331         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
15332         with cw.
15333
15334 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
15335
15336         * NEWS: Use sourceware.org in Bugzilla URL.
15337
15338 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
15339
15340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
15341         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15342
15343         * stdio-common/tst-put-error.c (do_test): Add newline to the
15344         padded test to ensure flush.
15345
15346 2012-12-05  Jeff Law  <law@redhat.com>
15347
15348         * sunrpc/etc.rpc (fedfs_admin): Add entry.
15349
15350 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
15351
15352         * README: Don't refer to ports add-on as distributed separately.
15353         Mention AArch64 in list of systems supported in the ports add-on.
15354
15355         * LICENSES: Add more non-FSF copyright and license notices.
15356
15357         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
15358         ((unused)).
15359
15360         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
15361
15362         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
15363         10000 as width of padded output.
15364
15365 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15366
15367         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
15368
15369         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
15370         variable LX with __attribute__ ((unused)).
15371         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
15372         Likewise.
15373         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
15374         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15375         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
15376         with __attribute__ ((unused)).
15377
15378 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
15379
15380         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
15381
15382 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15383
15384         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
15385         (CFLAGS-nldbl-acos.c): New variable.
15386         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
15387         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
15388         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
15389         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
15390         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
15391         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
15392         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
15393         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
15394         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
15395         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
15396         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
15397         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
15398         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
15399         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
15400         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
15401         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
15402         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
15403         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
15404         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
15405         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
15406         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
15407         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
15408         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
15409         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
15410         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
15411         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
15412         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
15413         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
15414         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
15415         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
15416         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
15417         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
15418         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
15419         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
15420         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
15421         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
15422         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
15423         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
15424         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
15425         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
15426         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
15427         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
15428         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
15429         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
15430         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
15431         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
15432         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
15433         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
15434         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
15435         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
15436         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
15437         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
15438         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
15439         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
15440         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
15441         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
15442         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
15443         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
15444         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
15445         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
15446         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
15447         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
15448         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
15449         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
15450         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
15451         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
15452         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
15453         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
15454         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
15455         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
15456         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
15457         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
15458         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
15459         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
15460         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
15461         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
15462         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
15463         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
15464         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
15465         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
15466         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
15467         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
15468         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
15469         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
15470         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
15471         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
15472         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
15473         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
15474         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
15475         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
15476         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
15477         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
15478         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
15479         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
15480         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
15481         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
15482         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
15483
15484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
15485         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15486
15487         [BZ #14914]
15488         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
15489         whole low double instead of just low 47 bits when splitting values
15490         into two parts.
15491
15492 2012-12-03  Allan McRae  <allan@archlinux.org>
15493
15494         * manual/stdio.texi (Predefined Printf Handlers): Remove
15495         @hsep and @vsep usage.
15496
15497 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
15498
15499         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
15500         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
15501
15502 2012-12-03  Jeff Law  <law@redhat.com>
15503
15504         * time/sys/time.h (settimeofday): Do not mark TV argument
15505         as __nonnull.
15506
15507 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
15508
15509         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
15510         when currently writing and seek to current position when not.
15511         * libio/Makefile (tests): Remove bug-fclose1.
15512         * libio/bug-fclose1.c: Delete.
15513
15514 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
15515
15516         * manual/arith.texi (feenableexcept): Fix typo.
15517         (fedisableexcept): Likewise.
15518
15519 2012-11-30  Roland McGrath  <roland@hack.frob.com>
15520
15521         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
15522         second, differently-typed declaration, rather than a cast.
15523
15524 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15525
15526         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
15527         * include/rpc/svc.h: ... here.
15528
15529 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
15530
15531         [BZ #13013]
15532         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
15533         depending n and resplen2 to catch cases where answer
15534         equals answerp2.
15535
15536 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
15537
15538         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
15539         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
15540
15541 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
15542
15543         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
15544
15545 2012-11-29  Roland McGrath  <roland@hack.frob.com>
15546
15547         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
15548
15549 2012-11-28  Jeff Law  <law@redhat.com>
15550
15551         [BZ #13761]
15552         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
15553         dataset_temporary.  Track alloca usage into alloca_used.
15554         If dataset is large allocate and release it via malloc/free.
15555
15556 2012-06-04  Florian Weimer  <fweimer@redhat.com>
15557
15558         [BZ #14197]
15559         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
15560
15561 2012-11-28  David S. Miller  <davem@davemloft.net>
15562
15563         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15564
15565 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15566
15567         [BZ #14803]
15568         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
15569         of pi/2 rounded to nearest to 64 bits.
15570         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
15571         nearest to 64 bits.
15572         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
15573         bits.
15574
15575 2012-11-28  Jeff Law <law@redhat.com>
15576             Martin Osvald <mosvald@redhat.com>
15577
15578         [BZ #14889]
15579         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
15580         * sunrpc/svc.c: Include time.h.
15581         (__svc_accept_failed): New function.
15582         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
15583         any reason other than EINTR, call __svc_accept_failed.
15584         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
15585         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
15586
15587 2012-11-28  Andreas Schwab  <schwab@suse.de>
15588
15589         * scripts/abilist.awk: Also handle indirect functions in .opd
15590         section.
15591
15592 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15593
15594         [BZ #13881]
15595         * sysdeps/x86/fpu/powl_helper.c: New file.
15596         * sysdeps/x86/fpu/Makefile: Likewise.
15597         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
15598         (p3): New object.
15599         (__ieee754_powl): Use __powl_helper for finite arguments except
15600         integer exponents below 8.
15601         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
15602         (p3): New object.
15603         (__ieee754_powl): Use __powl_helper for finite arguments except
15604         integer exponents below 8.
15605         * math/libm-test.inc (pow_test): Add more tests and enable some
15606         previously disabled tests.
15607         * sysdeps/i386/fpu/libm-test-ulps: Update.
15608         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15609
15610 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15611             Carlos O'Donell  <carlos_odonell@mentor.com>
15612
15613         * nss/makedb.c (is_prime): Assert that input is odd and greater
15614         than 4.  Note that fact in a comment too.
15615         (next_prime): Add 4 to input.
15616
15617 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15618
15619         [BZ #11741]
15620         * libio/Makefile (tests): Add test case tst-fwrite-error.
15621         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
15622         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
15623         * libio/tst-fwrite-error.c: New test case.
15624
15625 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
15626
15627         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
15628         before casting to void *.
15629         * include/libc-internal.h (__pointer_type): New macro.
15630         (__integer_if_pointer_type_sub): Likewise.
15631         (__integer_if_pointer_type): Likewise.
15632         (cast_to_integer): Likewise.
15633         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
15634         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
15635         before casting to atomic64_t.
15636         (atomic_exchange_acq): Likewise.
15637         (__arch_exchange_and_add_body): Likewise.
15638         (__arch_add_body): Likewise.
15639         (atomic_add_negative): Likewise.
15640         (atomic_add_zero): Likewise.
15641
15642 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
15643
15644         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
15645         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
15646         (add_fdes): Likewise.
15647         (linear_search_fdes): Likewise.
15648         (binary_search_unencoded_fdes): Likewise.
15649
15650 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
15651
15652         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
15653
15654 2012-11-24  Adam Conrad  <adconrad@0c3.net>
15655
15656         * configure.in: Autodetect C++ header directories.
15657         * configure: Regenerated.
15658
15659 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
15660
15661         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
15662
15663 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
15664
15665         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15666
15667 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
15668
15669         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
15670         LDBL_MANT_DIG == 106]: Disable some tests.
15671         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15672         Likewise.
15673         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15674         Likewise.
15675
15676         [BZ #14871]
15677         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
15678         input for small inputs.  Return +/- pi/2 for large inputs.
15679         * math/libm-test.inc (atan_test): Add more tests.
15680
15681         * sysdeps/generic/unwind-dw2-fde-glibc.c
15682         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
15683         __attribute__ ((unused)).
15684
15685         [BZ #14645]
15686         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
15687         x * y if x and y are nonzero and z is zero.
15688
15689         [BZ #14811]
15690         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
15691         nonzero exponents with absolute value below 0x1p-117 to +/-
15692         0x1p-117.
15693
15694         [BZ #14869]
15695         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
15696         up arguments below 2**-450, not just those below 2**-500.
15697         * math/libm-test.inc (hypot_test): Add another test.
15698
15699         [BZ #14868]
15700         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
15701         Return a+b for ratio over 2**120, not 2**60.
15702         * math/libm-test.inc (hypot_test): Add another test.
15703
15704         * math/libm-test.inc (clog_test): Use
15705         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
15706         (clog10_test): Likewise.
15707
15708         [BZ #6778]
15709         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
15710
15711 2012-11-22  Andreas Schwab  <schwab@suse.de>
15712
15713         * sysdeps/i386/fpu/libm-test-ulps: Update.
15714
15715 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
15716
15717         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
15718         printf output with newline.
15719
15720 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
15721
15722         [BZ #14865]
15723         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
15724         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
15725         -z nodlopen, -z initfirst and -z execstack support.
15726         * configure: Regenerated.
15727
15728         * elf/elf.h (DF_1_NODIRECT): New macro.
15729         (DF_1_IGNMULDEF): Likewise.
15730         (DF_1_NOKSYMS): Likewise.
15731         (DF_1_NOHDR): Likewise.
15732         (DF_1_EDITED): Likewise.
15733         (DF_1_NORELOC): Likewise.
15734         (DF_1_SYMINTPOSE): Likewise.
15735         (DF_1_GLOBAUDIT): Likewise.
15736         (DF_1_SINGLETON): Likewise.
15737         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
15738         DT_1_SUPPORTED_MASK bits.
15739         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
15740
15741 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
15742
15743         * sysdeps/unix/make-syscalls.sh: Document prefixes.
15744
15745 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
15746
15747         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
15748         macro.
15749
15750         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
15751         (sendmmsg): Move declarations...
15752         * socket/sys/socket.h: ... here.
15753         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
15754         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
15755         include it from...
15756         * socket/recvmmsg.c: ... this new file.
15757         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
15758         (sendmmsg): Rename to __sendmmsg, create weak alias and make
15759         definition of __sendmmsg hidden.
15760         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
15761         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
15762         Move ENOSYS stub into and include it from...
15763         * socket/sendmmsg.c: ... this new file.
15764         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
15765         (sysdep_routines): Move recvmmsg and sendmmsg...
15766         * socket/Makefile (routines): ... here.
15767         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
15768         (GLIBC_PRIVATE): Add __sendmmsg.
15769         * include/sys/socket.h (__sendmmsg): Add declarations.
15770         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
15771         sendmmsg.
15772
15773 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
15774
15775         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
15776         variable I1 with __attribute__ ((unused)).
15777         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
15778
15779 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
15780
15781         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
15782         DUMMY variables with __attribute__ ((unused)).
15783
15784         * bits/byteswap.h: Include <bits/types.h>.
15785         (__bswap_64): Use __uint64_t instead of unsigned long long int.
15786
15787 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
15788
15789         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
15790         string_t.  Do not manually set errno.
15791         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
15792         length with __strnlen.  Make sure to both set errno and return it on
15793         failure.
15794
15795 2012-11-19  David S. Miller  <davem@davemloft.net>
15796
15797         With help from Joseph Myers.
15798         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
15799         very large arguments properly.
15800         * math/libm-test.inc (atan_test): New tests.
15801         (atan2_test): New tests.
15802         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15803         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15804
15805 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
15806
15807         [BZ #14856]
15808         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
15809         Define to 3.
15810
15811         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
15812         [POSIX] (EADDRNOTAVAIL): Likewise.
15813         [POSIX] (EAFNOSUPPORT): Likewise.
15814         [POSIX] (EALREADY): Likewise.
15815         [POSIX] (ECONNABORTED): Likewise.
15816         [POSIX] (ECONNREFUSED): Likewise.
15817         [POSIX] (ECONNRESET): Likewise.
15818         [POSIX] (EDESTADDRREQ): Likewise.
15819         [POSIX] (EDQUOT): Likewise.
15820         [POSIX] (EHOSTUNREACH): Likewise.
15821         [POSIX] (EIDRM): Likewise.
15822         [POSIX] (EISCONN): Likewise.
15823         [POSIX] (ELOOP): Likewise.
15824         [POSIX] (EMULTIHOP): Likewise.
15825         [POSIX] (ENETDOWN): Likewise.
15826         [POSIX] (ENETUNREACH): Likewise.
15827         [POSIX] (ENOBUFS): Likewise.
15828         [POSIX] (ENODATA): Likewise.
15829         [POSIX] (ENOLINK): Likewise.
15830         [POSIX] (ENOMSG): Likewise.
15831         [POSIX] (ENOPROTOOPT): Likewise.
15832         [POSIX] (ENOSR): Likewise.
15833         [POSIX] (ENOSTR): Likewise.
15834         [POSIX] (ENOTCONN): Likewise.
15835         [POSIX] (ENOTSOCK): Likewise.
15836         [POSIX] (EOPNOTSUPP): Likewise.
15837         [POSIX] (EOVERFLOW): Likewise.
15838         [POSIX] (EPROTO): Likewise.
15839         [POSIX] (EPROTONOSUPPORT): Likewise.
15840         [POSIX] (EPROTOTYPE): Likewise.
15841         [POSIX] (ESTALE): Likewise.
15842         [POSIX] (ETIME): Likewise.
15843         [POSIX] (ETXTBSY): Likewise.
15844         [POSIX] (EWOULDBLOCK): Likewise.
15845         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
15846         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
15847         [POSIX] (SEEK_CUR): Likewise.
15848         [POSIX] (SEEK_END): Likewise.
15849         [POSIX || UNIX98] (mode_t): Do not require.
15850         [POSIX] (off_t): Likewise.
15851         [POSIX] (pid_t): Likewise.
15852         [POSIX] (sys/stat.h): Do not allow header.
15853         [POSIX] (unistd.h): Likewise.
15854         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
15855         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
15856         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
15857         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
15858         require.
15859         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
15860         sigevent): Specify elements.
15861         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
15862         entry.
15863         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
15864         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
15865
15866         * conform/data/cpio.h-data [POSIX]: Disable whole file.
15867         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
15868         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
15869         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
15870         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
15871         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
15872         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
15873         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
15874         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
15875         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
15876         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
15877         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
15878         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
15879         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
15880         Likewise.
15881         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
15882         Likewise.
15883         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
15884         Likewise.
15885         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
15886         Likewise.
15887         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
15888         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
15889         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
15890         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
15891         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
15892         Specify lower bound on value.
15893         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
15894         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
15895         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
15896         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
15897         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
15898         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
15899         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
15900         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
15901         value.
15902         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
15903         as optional.
15904         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
15905         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
15906         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
15907         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
15908         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
15909         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
15910         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
15911         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
15912         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
15913         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
15914         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
15915         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
15916         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
15917         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
15918         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
15919         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
15920         entry.
15921         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
15922         optional.
15923         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
15924         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
15925         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
15926         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
15927         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
15928         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
15929         Likewise.
15930         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
15931         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
15932         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
15933         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
15934         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
15935         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
15936         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
15937         as optional.
15938         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
15939         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
15940         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
15941         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
15942         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
15943         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
15944         specify as optional.
15945         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
15946         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
15947         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
15948         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
15949         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
15950         [XPG3] (NL_LANGMAX): Likewise.
15951         [POSIX || XPG3] (NL_MSGMAX): Likewise.
15952         [POSIX || XPG3] (NL_NMAX): Likewise.
15953         [POSIX || XPG3] (NL_SETMAX): Likewise.
15954         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
15955         [XPG3] (NZERO): Likewise.
15956         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
15957         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
15958         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
15959         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
15960         (REG_ERANGE): Expect.
15961         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
15962         optional-constant.
15963         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
15964         Use (void) in prototype.
15965         [POSIX] (*_t): Allow.
15966         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
15967         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
15968         (WRDE_BADVAL): Expect.
15969
15970         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
15971         expect.
15972         [XPG3 || XPG4] (O_RSYNC): Likewise.
15973         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
15974         Likewise.
15975         [XPG3 || XPG4] (pthread_sigmask): Likewise.
15976         [XPG3 || XPG4] (sigqueue): Likewise.
15977         [XPG3 || XPG4] (sigtimedwait): Likewise.
15978         [XPG3 || XPG4] (sigwaitinfo): Likewise.
15979         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
15980         [XPG3 || XPG4] (vsnprintf): Likewise.
15981         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
15982         Likewise.
15983         [XPG3 || XPG4] (blksize_t): Likewise.
15984         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
15985         Likewise.
15986         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
15987         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
15988         [XPG3 || XPG4] (struct itimerspec): Likewise.
15989         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
15990         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
15991         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
15992         [XPG3 || XPG4] (clockid_t): Likewise.
15993         [XPG3 || XPG4] (timer_t): Likewise.
15994         [XPG3 || XPG4] (clock_getres): Likewise.
15995         [XPG3 || XPG4] (clock_gettime): Likewise.
15996         [XPG3 || XPG4] (clock_settime): Likewise.
15997         [XPG3 || XPG4] (nanosleep): Likewise.
15998         [XPG3 || XPG4] (timer_create): Likewise.
15999         [XPG3 || XPG4] (timer_delete): Likewise.
16000         [XPG3 || XPG4] (timer_gettime): Likewise.
16001         [XPG3 || XPG4] (timer_getoverrun): Likewise.
16002         [XPG3 || XPG4] (timer_settime): Likewise.
16003         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
16004         [XPG3 || XPG4] (getlogin_r): Likewise.
16005         [XPG3 || XPG4] (pread): Likewise.
16006         [XPG3 || XPG4] (pthread_atfork): Likewise.
16007         [XPG3 || XPG4] (pwrite): Likewise.
16008
16009         [BZ #14835]
16010         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
16011         <bits/siginfo.h>.
16012
16013 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
16014
16015         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
16016         finalizing MALLSTREAM.
16017
16018         * sysdeps/mach/hurd/syncfs.c: New file.
16019
16020 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
16021
16022         [BZ #14719]
16023         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
16024         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
16025         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
16026         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
16027         (_nss_dns_gethostbyname4_r): Likewise.
16028         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
16029         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
16030
16031 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
16032
16033         [BZ #13763]
16034         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
16035
16036 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
16037
16038         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
16039         * elf/cache.c (print_entry): Print ",AArch64" for
16040         FLAG_AARCH64_LIB64
16041
16042         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
16043         * elf/cache.c (print_entry): Print ",hard-float" for
16044         FLAG_ARM_LIBHF.
16045
16046 2012-11-18  David S. Miller  <davem@davemloft.net>
16047
16048         With help from Joseph Myers.
16049         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
16050         cutoff to 2**-13.
16051         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
16052         cutoff to 2**-25.
16053         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
16054         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
16055         small.
16056         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
16057         * math/libm-test.inc (y0_test): New tests.
16058         (y1_test): New tests.
16059         * sysdeps/i386/fpu/libm-test-ulps: Update.
16060         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16061         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16062
16063 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
16064
16065         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
16066         64-bit targets.
16067         * configure: Regenerated.
16068
16069 2012-11-17  David S. Miller  <davem@davemloft.net>
16070
16071         [BZ #14811]
16072         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
16073         nonzero exponents with absolute value below 0x1p-128 to +/-
16074         0x1p-128.
16075
16076 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
16077
16078         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
16079
16080         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
16081
16082         * posix/getconf-speclist.c: New file.
16083         * posix/posix-envs.def: Likewise.
16084         * posix/confstr.c (START_ENV_GROUP): New macro.
16085         (END_ENV_GROUP): Likewise.
16086         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16087         (KNOWN_PRESENT_ENV_STRING): Likewise.
16088         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16089         (UNKNOWN_ENVIRONMENT): Likewise.
16090         (confstr): Include posix-envs.def instead of handling
16091         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
16092         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
16093         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
16094         (END_ENV_GROUP): Likewise.
16095         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16096         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16097         (UNKNOWN_ENVIRONMENT): Likewise.
16098         (__sysconf): Include posix-envs.def instead of handling associated
16099         cases directly here.
16100         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
16101         preprocessing getconf-speclist.c rather than running getconf or
16102         generating empty file.
16103
16104 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
16105
16106         * scripts/check-local-headers.sh: Ignore 'mach' headers.
16107
16108 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
16109
16110         [BZ #14672]
16111         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
16112
16113 2012-11-16  David S. Miller  <davem@davemloft.net>
16114
16115         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
16116         smaller than LDBL_EPSILON/2.0L, just return xm1.
16117
16118 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
16119
16120         * elf/tst-array1.c (init): Set constructor priority to 1000.
16121         (fini): Set destructor priority to 1000.
16122         * elf/tst-array2dep.c: Likewise.
16123
16124 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16125
16126         [BZ #11741]
16127         * libio/fileops.c (_IO_new_file_write): Correctly return error.
16128         (_IO_new_file_xsputn): Also return EOF if none of the input
16129         data was written when overflow failed.
16130         * libio/iopadn.c (_IO_padn): Likewise.
16131         * libio/iowpadn.c (_IO_wpadn): Likewise.
16132         * stdio-common/tst-put-error.c: Add copyright notice.
16133         (do_test): Add case for printing padded string.
16134         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
16135         _IO_padn returned error.
16136         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
16137         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
16138         return EOF.
16139
16140 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16141
16142         * libio/libioP.h: Add comment note that the references to C++
16143         bits are now obsolete.
16144
16145 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16146
16147         * math/libm-test.inc (check_complex): Use asprintf.
16148
16149 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
16150
16151         * debug/pcprofiledump.c (print_version): Update copyright year.
16152         * malloc/memusagestat.c (print_version): Likewise.
16153
16154 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
16155
16156         [BZ #14831]
16157         * elf/Makefile (tests): Add tst-audit8.
16158         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
16159         ($(objpfx)tst-audit8.out): New target.
16160         (tst-audit8-ENV): New variable.
16161         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
16162         audit if l_reloc_result is NULL.
16163         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
16164         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
16165         * elf/tst-audit8.c: New file.
16166
16167 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16168
16169         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
16170         * misc/Makefile (CFLAGS-select.c): Define.
16171         * posix/Makefile (CFLAGS-pause.c): Define.
16172
16173 2012-11-13  David S. Miller  <davem@davemloft.net>
16174
16175         * crypt/Makefile: Move test targets after toplevel Rules
16176         inclusion.  Grab any necessary sysdep routines when linking.
16177         * crypt/md5.c (md5_process_block): Remove define, we will always
16178         name it __md5_process_block.
16179         (md5_finish_ctx): Update md5_process_block call.
16180         (md5_stream): Likewise.
16181         (md5_process_bytes): Likewise.
16182         (md5_process_block): Rename to __md5_process_block and move to ...
16183         * crypt/md5-block.c: ... here.
16184         * crypt/sha256.c (sha256_process_block): Move to ...
16185         * crypt/sha256-block.c: ... here.
16186         * crypt/sha512.c (sha512_process_block): Move to ...
16187         * crypt/sha512-block.c: ... here.
16188         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
16189         path.
16190         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
16191         * sysdeps/sparc/sparc64/multiarch/Makefile
16192         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
16193         crypt subdir.
16194         (localedef-aux): Add md5 crypto assembler when in locale subdir.
16195         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
16196         multiarch changes.
16197         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
16198         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
16199         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
16200         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
16201         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
16202         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
16203         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
16204         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
16205         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
16206         file.
16207         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
16208         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
16209         file.
16210         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
16211
16212 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
16213
16214         * timezone/tzselect.ksh: Update from tzcode git revision
16215         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
16216         * timezone/zdump.c: Likewise.
16217         * timezone/zic.c: Likewise.
16218         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
16219         in TZVERSION setting, not $(PKGVERSION).
16220         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
16221         REPORT_BUGS_TO settings.
16222
16223         [BZ #14838]
16224         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
16225         macro.
16226
16227 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16228
16229         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
16230         detection to immediately after _FP_ROUND().
16231         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
16232         bits are 0.
16233
16234 2012-11-11  David S. Miller  <davem@davemloft.net>
16235
16236         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
16237         inttypes.h
16238         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
16239         __close rather than their public counterparts.
16240
16241 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
16242
16243         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
16244         file.
16245         [UNIX98] (sem_timedwait): Do not expect.
16246         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
16247         [XPG4 || UNIX98] (sockatmark): Do not expect.
16248         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
16249         (clock_getcpuclockid): Do not expect.
16250         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
16251         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
16252         Do not expect.
16253         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
16254         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
16255         [UNIX98] (vwscanf): Likewise.
16256         [UNIX98] (vswscanf): Likewise.
16257
16258 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
16259
16260         * timezone/version.h: Remove file.
16261         * timezone/README: Do not refer to version.h.
16262         * timezone/Makefile ($(objpfx)zic.o): New dependency on
16263         $(objpfx)version.h.
16264         ($(objpfx)zdump.o): Likewise.
16265         ($(objpfx)version.h): New target.
16266
16267         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
16268         2012i.
16269         * timezone/README: Don't mention modification to tzselect.ksh.
16270         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
16271         work on unmodified tzselect.ksh.  Substitute version numbers in
16272         tzselect.ksh.
16273
16274         * Makefile (format-me): Remove.
16275         (INSTALL): Adjust indentation.  Use commands directly instead of
16276         using $(format-me).
16277
16278         * aclocal.m4 (ACX_PKGVERSION): New macro.
16279         (ACX_BUGURL): Likewise.
16280         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
16281         (PKGVERSION): New AC_DEFINE_UNQUOTED.
16282         (REPORT_BUGS_TO): Likewise.
16283         * configure: Regenerated.
16284         * config.h.in (PKGVERSION): New macro.
16285         (REPORT_BUGS_TO): Likewise.
16286         * config.make.in (PKGVERSION): New variable.
16287         (PKGVERSION_TEXI): Likewise.
16288         (REPORT_BUGS_TO): Likewise.
16289         (REPORT_BUGS_TEXI): Likewise.
16290         * Makefile (format-me): Use -I$(common-objpfx)manual.
16291         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
16292         ($(common-objpfx)manual/%): New target.
16293         (manual/%): Remove target.
16294         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
16295         (print_version): Use PKGVERSION.
16296         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
16297         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
16298         and REPORT_BUGS_TO.
16299         ($(objpfx)xtrace): Likewise.
16300         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
16301         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
16302         (print_version): Use PKGVERSION.
16303         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
16304         (do_version): Use PKGVERSION.
16305         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
16306         REPORT_BUGS_TO.
16307         (common-ldd-rewrite): Likewise.
16308         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
16309         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
16310         (print_version): Use PKGVERSION.
16311         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
16312         * elf/pldd.c (argp_program_bug_address): Remove variable.
16313         (more_help): New function.
16314         (argp): Use more_help.
16315         (print_version): Use PKGVERSION.
16316         * elf/sln.c (main): Use PKGVERSION.
16317         (usage): Use REPORT_BUGS_TO.
16318         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
16319         (top level): Use PKGVERSION.
16320         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
16321         (print_version): Use PKGVERSION.
16322         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
16323         (print_version): Use PKGVERSION.
16324         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
16325         (print_version): Use PKGVERSION.
16326         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
16327         (print_version): Use PKGVERSION.
16328         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
16329         (print_version): Use PKGVERSION.
16330         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
16331         (print_version): Use PKGVERSION.
16332         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
16333         and BUGURL.
16334         ($(objpfx)memusage): Likewise.
16335         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
16336         (do_version): Use PKGVERSION.
16337         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
16338         (print_version): Use PKGVERSION.
16339         * malloc/mtrace.pl ($PACKAGE): Remove variable.
16340         ($PKGVERSION): New variable.
16341         ($REPORT_BUGS_TO): Likewise.
16342         (usage): Use $REPORT_BUGS_TO.
16343         (top level): Use $PKGVERSION.
16344         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
16345         ($(objpfx)pkgvers.texi): New rule.
16346         ($(objpfx)stamp-pkgvers): Likewise.
16347         * manual/install.texi: Include pkgvers.texi.
16348         (--with-pkgversion): Document new configure option.
16349         (--with-bugurl): Likewise.
16350         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
16351         than necessarily for this particular distribution.  Use
16352         REPORT_BUGS_TO for where to report bugs.
16353         * INSTALL: Regenerated.
16354         * manual/libc.texinfo: Include pkgvers.texi.
16355         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
16356         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
16357         (print_version): Use PKGVERSION.
16358         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
16359         (print_version): Use PKGVERSION.
16360         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
16361         (print_version): Use PKGVERSION.
16362         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
16363         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
16364         macro.
16365         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
16366         (print_version): Use PKGVERSION.
16367         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
16368         (print_version): Use PKGVERSION.
16369         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
16370         and PKGVERSION.
16371
16372         * timezone/checktab.awk: Update from tzcode 2012i.
16373         * timezone/ialloc.c: Likewise.
16374         * timezone/private.h: Likewise.
16375         * timezone/scheck.c: Likewise.
16376         * timezone/tzfile.h: Likewise.
16377         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
16378         (TZVERSION): Hardcode tzcode version number.
16379         * timezone/zdump.c: Update from tzcode 2012i.
16380         * timezone/zic.c: Likewise.
16381         * timezone/version.h: New file.
16382         * timezone/README: Describe version.h.  Update upstream location.
16383
16384         [BZ #14824]
16385         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
16386         (mktemp): Enable declaration.
16387         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
16388         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
16389         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
16390         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
16391         Likewise.
16392         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
16393         Likewise.
16394         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
16395         Likewise.
16396         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
16397         Likewise.
16398         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
16399         Likewise.
16400         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
16401         Likewise.
16402
16403         [BZ #14821]
16404         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
16405         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
16406         for copies of such integer values.
16407         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16408         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16409
16410 2012-11-09  Andreas Jaeger  <aj@suse.de>
16411
16412         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
16413         definitions and declarations that are provided by
16414         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
16415
16416 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16417
16418         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
16419         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
16420         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
16421         definition.
16422
16423 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16424
16425         * elf/elf.h: Update comment before AArch64 relocations.
16426
16427 2012-11-07  David S. Miller  <davem@davemloft.net>
16428
16429         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
16430         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16431         (__start_context): Declare.
16432         (__makecontext_ret): Delete.
16433         (__makecontext): Hook up __start_context instead of
16434         __makecontext_ret.
16435         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
16436         (sysdep_routines): Add __start_context when in stdlib.
16437
16438 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16439
16440         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
16441         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
16442         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
16443         hardcoded "nm".
16444         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
16445         (READELF): New variable.  Use it instead of hardcoded "readelf".
16446
16447 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16448
16449         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
16450         * sysdeps/x86/Makefile: Here.
16451         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
16452         * sysdeps/x86/tst-xmmymm.sh: This.
16453
16454 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16455
16456         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
16457         expectations.
16458         [UNIX98] (pthread_barrier_t): Do not expect.
16459         [UNIX98] (pthread_barrierattr_t): Likewise.
16460         [UNIX98] (pthread_spinlock_t): Likewise.
16461         [UNIX98] (pthread_barrier_destroy): Likewise.
16462         [UNIX98] (pthread_barrier_init): Likewise.
16463         [UNIX98] (pthread_barrier_wait): Likewise.
16464         [UNIX98] (pthread_barrierattr_destroy): Likewise.
16465         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
16466         [UNIX98] (pthread_barrierattr_init): Likewise.
16467         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
16468         [UNIX98] (pthread_getcpuclockid): Likewise.
16469         [UNIX98] (pthread_mutex_timedlock): Likewise.
16470         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
16471         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
16472         [UNIX98] (pthread_sigmask): Likewise.
16473         [UNIX98] (pthread_spin_destroy): Likewise.
16474         [UNIX98] (pthread_spin_init): Likewise.
16475         [UNIX98] (pthread_spin_lock): Likewise.
16476         [UNIX98] (pthread_spin_trylock): Likewise.
16477         [UNIX98] (pthread_spin_unlock): Likewise.
16478         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
16479         Do not expect.
16480         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
16481         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
16482         [XPG3 || XPG4] (pthread_cond_t): Likewise.
16483         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
16484         [XPG3 || XPG4] (pthread_key_t): Likewise.
16485         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
16486         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
16487         [XPG3 || XPG4] (pthread_once_t): Likewise.
16488         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
16489         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
16490         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
16491         [XPG3 || XPG4] (pthread_t): Likewise.
16492
16493         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
16494         not expect.
16495         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
16496
16497         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
16498         Change function return type to int.
16499
16500         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
16501         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
16502         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
16503         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
16504         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
16505         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
16506         [!POSIX] (posix_madvise): Likewise.
16507         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
16508         && !UNIX98].
16509         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
16510         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
16511         (mode_t): Likewise.
16512         (posix_mem_offset): Likewise.
16513         (posix_typed_mem_get_info): Likewise.
16514         (posix_typed_mem_open): Likewise.
16515
16516         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
16517         Change condition to [XOPEN2K8].
16518
16519         * conform/conformtest.pl: Preprocess allow-header data with -x c
16520         instead of from stdin.
16521         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
16522         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
16523         [C99-based standards] (cerfc): Likewise.
16524         [C99-based standards] (cexp2): Likewise.
16525         [C99-based standards] (cexpm1): Likewise.
16526         [C99-based standards] (clog10): Likewise.
16527         [C99-based standards] (clog1p): Likewise.
16528         [C99-based standards] (clog2): Likewise.
16529         [C99-based standards] (clgamma): Likewise.
16530         [C99-based standards] (ctgamma): Likewise.
16531         [C99-based standards] (cerff): Likewise.
16532         [C99-based standards] (cerfcf): Likewise.
16533         [C99-based standards] (cexp2f): Likewise.
16534         [C99-based standards] (cexpm1f): Likewise.
16535         [C99-based standards] (clog10f): Likewise.
16536         [C99-based standards] (clog1pf): Likewise.
16537         [C99-based standards] (clog2f): Likewise.
16538         [C99-based standards] (clgammaf): Likewise.
16539         [C99-based standards] (ctgammaf): Likewise.
16540         [C99-based standards] (cerfl): Likewise.
16541         [C99-based standards] (cerfcl): Likewise.
16542         [C99-based standards] (cexp2l): Likewise.
16543         [C99-based standards] (cexpm1l): Likewise.
16544         [C99-based standards] (clog10l): Likewise.
16545         [C99-based standards] (clog1pl): Likewise.
16546         [C99-based standards] (clog2l): Likewise.
16547         [C99-based standards] (clgammal): Likewise.
16548         [C99-based standards] (ctgammal): Likewise.
16549         * conform/data/inttypes.h-data [C99-based standards]: Include
16550         stdint.h-data.  Remove all expectations for stdint.h contents.
16551         [C99-based standards] (PRI*): Do not allow.
16552         [C99-based standards] (SCN*): Likewise.
16553         [C99-based standards] (*_t): Likewise.
16554         [C99-based-standards] (PRId8): Expect macro.
16555         [C99-based-standards] (PRIi8): Likewise.
16556         [C99-based-standards] (PRIo8): Likewise.
16557         [C99-based-standards] (PRIu8): Likewise.
16558         [C99-based-standards] (PRIx8): Likewise.
16559         [C99-based-standards] (PRIX8): Likewise.
16560         [C99-based-standards] (SCNd8): Likewise.
16561         [C99-based-standards] (SCNi8): Likewise.
16562         [C99-based-standards] (SCNo8): Likewise.
16563         [C99-based-standards] (SCNu8): Likewise.
16564         [C99-based-standards] (SCNx8): Likewise.
16565         [C99-based-standards] (PRIdLEAST8): Likewise.
16566         [C99-based-standards] (PRIiLEAST8): Likewise.
16567         [C99-based-standards] (PRIoLEAST8): Likewise.
16568         [C99-based-standards] (PRIuLEAST8): Likewise.
16569         [C99-based-standards] (PRIxLEAST8): Likewise.
16570         [C99-based-standards] (PRIXLEAST8): Likewise.
16571         [C99-based-standards] (SCNdLEAST8): Likewise.
16572         [C99-based-standards] (SCNiLEAST8): Likewise.
16573         [C99-based-standards] (SCNoLEAST8): Likewise.
16574         [C99-based-standards] (SCNuLEAST8): Likewise.
16575         [C99-based-standards] (SCNxLEAST8): Likewise.
16576         [C99-based-standards] (PRIdFAST8): Likewise.
16577         [C99-based-standards] (PRIiFAST8): Likewise.
16578         [C99-based-standards] (PRIoFAST8): Likewise.
16579         [C99-based-standards] (PRIuFAST8): Likewise.
16580         [C99-based-standards] (PRIxFAST8): Likewise.
16581         [C99-based-standards] (PRIXFAST8): Likewise.
16582         [C99-based-standards] (SCNdFAST8): Likewise.
16583         [C99-based-standards] (SCNiFAST8): Likewise.
16584         [C99-based-standards] (SCNoFAST8): Likewise.
16585         [C99-based-standards] (SCNuFAST8): Likewise.
16586         [C99-based-standards] (SCNxFAST8): Likewise.
16587         [C99-based-standards] (PRId16): Likewise.
16588         [C99-based-standards] (PRIi16): Likewise.
16589         [C99-based-standards] (PRIo16): Likewise.
16590         [C99-based-standards] (PRIu16): Likewise.
16591         [C99-based-standards] (PRIx16): Likewise.
16592         [C99-based-standards] (PRIX16): Likewise.
16593         [C99-based-standards] (SCNd16): Likewise.
16594         [C99-based-standards] (SCNi16): Likewise.
16595         [C99-based-standards] (SCNo16): Likewise.
16596         [C99-based-standards] (SCNu16): Likewise.
16597         [C99-based-standards] (SCNx16): Likewise.
16598         [C99-based-standards] (PRIdLEAST16): Likewise.
16599         [C99-based-standards] (PRIiLEAST16): Likewise.
16600         [C99-based-standards] (PRIoLEAST16): Likewise.
16601         [C99-based-standards] (PRIuLEAST16): Likewise.
16602         [C99-based-standards] (PRIxLEAST16): Likewise.
16603         [C99-based-standards] (PRIXLEAST16): Likewise.
16604         [C99-based-standards] (SCNdLEAST16): Likewise.
16605         [C99-based-standards] (SCNiLEAST16): Likewise.
16606         [C99-based-standards] (SCNoLEAST16): Likewise.
16607         [C99-based-standards] (SCNuLEAST16): Likewise.
16608         [C99-based-standards] (SCNxLEAST16): Likewise.
16609         [C99-based-standards] (PRIdFAST16): Likewise.
16610         [C99-based-standards] (PRIiFAST16): Likewise.
16611         [C99-based-standards] (PRIoFAST16): Likewise.
16612         [C99-based-standards] (PRIuFAST16): Likewise.
16613         [C99-based-standards] (PRIxFAST16): Likewise.
16614         [C99-based-standards] (PRIXFAST16): Likewise.
16615         [C99-based-standards] (SCNdFAST16): Likewise.
16616         [C99-based-standards] (SCNiFAST16): Likewise.
16617         [C99-based-standards] (SCNoFAST16): Likewise.
16618         [C99-based-standards] (SCNuFAST16): Likewise.
16619         [C99-based-standards] (SCNxFAST16): Likewise.
16620         [C99-based-standards] (PRId32): Likewise.
16621         [C99-based-standards] (PRIi32): Likewise.
16622         [C99-based-standards] (PRIo32): Likewise.
16623         [C99-based-standards] (PRIu32): Likewise.
16624         [C99-based-standards] (PRIx32): Likewise.
16625         [C99-based-standards] (PRIX32): Likewise.
16626         [C99-based-standards] (SCNd32): Likewise.
16627         [C99-based-standards] (SCNi32): Likewise.
16628         [C99-based-standards] (SCNo32): Likewise.
16629         [C99-based-standards] (SCNu32): Likewise.
16630         [C99-based-standards] (SCNx32): Likewise.
16631         [C99-based-standards] (PRIdLEAST32): Likewise.
16632         [C99-based-standards] (PRIiLEAST32): Likewise.
16633         [C99-based-standards] (PRIoLEAST32): Likewise.
16634         [C99-based-standards] (PRIuLEAST32): Likewise.
16635         [C99-based-standards] (PRIxLEAST32): Likewise.
16636         [C99-based-standards] (PRIXLEAST32): Likewise.
16637         [C99-based-standards] (SCNdLEAST32): Likewise.
16638         [C99-based-standards] (SCNiLEAST32): Likewise.
16639         [C99-based-standards] (SCNoLEAST32): Likewise.
16640         [C99-based-standards] (SCNuLEAST32): Likewise.
16641         [C99-based-standards] (SCNxLEAST32): Likewise.
16642         [C99-based-standards] (PRIdFAST32): Likewise.
16643         [C99-based-standards] (PRIiFAST32): Likewise.
16644         [C99-based-standards] (PRIoFAST32): Likewise.
16645         [C99-based-standards] (PRIuFAST32): Likewise.
16646         [C99-based-standards] (PRIxFAST32): Likewise.
16647         [C99-based-standards] (PRIXFAST32): Likewise.
16648         [C99-based-standards] (SCNdFAST32): Likewise.
16649         [C99-based-standards] (SCNiFAST32): Likewise.
16650         [C99-based-standards] (SCNoFAST32): Likewise.
16651         [C99-based-standards] (SCNuFAST32): Likewise.
16652         [C99-based-standards] (SCNxFAST32): Likewise.
16653         [C99-based-standards] (PRId64): Likewise.
16654         [C99-based-standards] (PRIi64): Likewise.
16655         [C99-based-standards] (PRIo64): Likewise.
16656         [C99-based-standards] (PRIu64): Likewise.
16657         [C99-based-standards] (PRIx64): Likewise.
16658         [C99-based-standards] (PRIX64): Likewise.
16659         [C99-based-standards] (SCNd64): Likewise.
16660         [C99-based-standards] (SCNi64): Likewise.
16661         [C99-based-standards] (SCNo64): Likewise.
16662         [C99-based-standards] (SCNu64): Likewise.
16663         [C99-based-standards] (SCNx64): Likewise.
16664         [C99-based-standards] (PRIdLEAST64): Likewise.
16665         [C99-based-standards] (PRIiLEAST64): Likewise.
16666         [C99-based-standards] (PRIoLEAST64): Likewise.
16667         [C99-based-standards] (PRIuLEAST64): Likewise.
16668         [C99-based-standards] (PRIxLEAST64): Likewise.
16669         [C99-based-standards] (PRIXLEAST64): Likewise.
16670         [C99-based-standards] (SCNdLEAST64): Likewise.
16671         [C99-based-standards] (SCNiLEAST64): Likewise.
16672         [C99-based-standards] (SCNoLEAST64): Likewise.
16673         [C99-based-standards] (SCNuLEAST64): Likewise.
16674         [C99-based-standards] (SCNxLEAST64): Likewise.
16675         [C99-based-standards] (PRIdFAST64): Likewise.
16676         [C99-based-standards] (PRIiFAST64): Likewise.
16677         [C99-based-standards] (PRIoFAST64): Likewise.
16678         [C99-based-standards] (PRIuFAST64): Likewise.
16679         [C99-based-standards] (PRIxFAST64): Likewise.
16680         [C99-based-standards] (PRIXFAST64): Likewise.
16681         [C99-based-standards] (SCNdFAST64): Likewise.
16682         [C99-based-standards] (SCNiFAST64): Likewise.
16683         [C99-based-standards] (SCNoFAST64): Likewise.
16684         [C99-based-standards] (SCNuFAST64): Likewise.
16685         [C99-based-standards] (SCNxFAST64): Likewise.
16686         [C99-based-standards] (PRIdMAX): Likewise.
16687         [C99-based-standards] (PRIiMAX): Likewise.
16688         [C99-based-standards] (PRIoMAX): Likewise.
16689         [C99-based-standards] (PRIuMAX): Likewise.
16690         [C99-based-standards] (PRIxMAX): Likewise.
16691         [C99-based-standards] (PRIXMAX): Likewise.
16692         [C99-based-standards] (SCNdMAX): Likewise.
16693         [C99-based-standards] (SCNiMAX): Likewise.
16694         [C99-based-standards] (SCNoMAX): Likewise.
16695         [C99-based-standards] (SCNuMAX): Likewise.
16696         [C99-based-standards] (SCNxMAX): Likewise.
16697         [C99-based-standards] (PRIdPTR): Likewise.
16698         [C99-based-standards] (PRIiPTR): Likewise.
16699         [C99-based-standards] (PRIoPTR): Likewise.
16700         [C99-based-standards] (PRIuPTR): Likewise.
16701         [C99-based-standards] (PRIxPTR): Likewise.
16702         [C99-based-standards] (PRIXPTR): Likewise.
16703         [C99-based-standards] (SCNdPTR): Likewise.
16704         [C99-based-standards] (SCNiPTR): Likewise.
16705         [C99-based-standards] (SCNoPTR): Likewise.
16706         [C99-based-standards] (SCNuPTR): Likewise.
16707         [C99-based-standards] (SCNxPTR): Likewise.
16708         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
16709         allow.
16710         * conform/data/stdint.h-data: Update comments to clarify
16711         requirements.
16712         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
16713         type.
16714         [C99-based standards] (INT8_MAX): Likewise.
16715         [C99-based standards] (INT16_MIN): Likewise.
16716         [C99-based standards] (INT16_MAX): Likewise.
16717         [C99-based standards] (INT32_MIN): Likewise.
16718         [C99-based standards] (INT32_MAX): Likewise.
16719         [C99-based standards] (INT64_MIN): Likewise.
16720         [C99-based standards] (INT64_MAX): Likewise.
16721         [C99-based standards] (UINT8_MAX): Likewise.
16722         [C99-based standards] (UINT16_MAX): Likewise.
16723         [C99-based standards] (UINT32_MAX): Likewise.
16724         [C99-based standards] (UINT64_MAX): Likewise.
16725         [C99-based standards] (INT_LEAST8_MIN): Likewise.
16726         [C99-based standards] (INT_LEAST8_MAX): Likewise.
16727         [C99-based standards] (INT_LEAST16_MIN): Likewise.
16728         [C99-based standards] (INT_LEAST16_MAX): Likewise.
16729         [C99-based standards] (INT_LEAST32_MIN): Likewise.
16730         [C99-based standards] (INT_LEAST32_MAX): Likewise.
16731         [C99-based standards] (INT_LEAST64_MIN): Likewise.
16732         [C99-based standards] (INT_LEAST64_MAX): Likewise.
16733         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
16734         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
16735         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
16736         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
16737         [C99-based standards] (INT_FAST8_MIN): Likewise.
16738         [C99-based standards] (INT_FAST8_MAX): Likewise.
16739         [C99-based standards] (INT_FAST16_MIN): Likewise.
16740         [C99-based standards] (INT_FAST16_MAX): Likewise.
16741         [C99-based standards] (INT_FAST32_MIN): Likewise.
16742         [C99-based standards] (INT_FAST32_MAX): Likewise.
16743         [C99-based standards] (INT_FAST64_MIN): Likewise.
16744         [C99-based standards] (INT_FAST64_MAX): Likewise.
16745         [C99-based standards] (UINT_FAST8_MAX): Likewise.
16746         [C99-based standards] (UINT_FAST16_MAX): Likewise.
16747         [C99-based standards] (UINT_FAST32_MAX): Likewise.
16748         [C99-based standards] (UINT_FAST64_MAX): Likewise.
16749         [C99-based standards] (INTPTR_MIN): Likewise.
16750         [C99-based standards] (INTPTR_MAX): Likewise.
16751         [C99-based standards] (UINTPTR_MAX): Likewise.
16752         [C99-based standards] (INTMAX_MIN): Likewise.
16753         [C99-based standards] (INTMAX_MAX): Likewise.
16754         [C99-based standards] (UINTMAX_MAX): Likewise.
16755         [C99-based standards] (PTRDIFF_MIN): Likewise.
16756         [C99-based standards] (PTRDIFF_MAX): Likewise.
16757         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
16758         [C99-based standards] (SIZE_MAX): Likewise.
16759         [C99-based standards] (WCHAR_MAX): Likewise.
16760         [C99-based standards] (WINT_MAX): Likewise.
16761         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
16762         constraint on value.
16763         [C99-based standards] (WCHAR_MIN): Likewise.
16764         [C99-based standards] (WINT_MIN): Likewise.
16765         [C99-based standards] (*_t): Allow.
16766         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
16767         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
16768         Include math.h-data and complex.h-data.  Remove all expectations
16769         of math.h and complex.h contents.
16770         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
16771         at end of line.
16772         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
16773         (struct tm): Expect tag.
16774         [C99-based-standards] (wcstof): Expect function.
16775         [C99-based-standards] (wcstold): Likewise.
16776         [C99-based-standards] (wcstoll): Likewise.
16777         [C99-based-standards] (wcstoull): Likewise.
16778         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
16779         macro-int-constant.  Specify type.
16780         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
16781         constraint on value.
16782         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
16783         Specify type.
16784         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
16785         Specify value.
16786         [ISO C standards]: Do not allow headers.
16787         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
16788         wcs[abcdefghijklmnopqrstuvwxyz]*.
16789         [ISO C standards] (*_t): Do not allow.
16790         * conform/data/wctype.h-data [C99-based standards] (iswblank):
16791         Expect function.
16792         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
16793         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
16794         Specify type.
16795         [ISO C standards]: Do not allow headers.
16796         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
16797         is[abcdefghijklmnopqrstuvwxyz]*.
16798         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
16799         to[abcdefghijklmnopqrstuvwxyz]*.
16800         [ISO C standards] (*_t): Do not allow.
16801         * conform/data/stdalign.h-data: New file.
16802         * conform/data/stdbool.h-data: Likewise.
16803         * conform/data/stdnoreturn.h-data: Likewise.
16804
16805 2012-11-07  Roland McGrath  <roland@hack.frob.com>
16806
16807         [BZ #14815]
16808         * manual/filesys.texi (Directory Entries): Typo fix.
16809         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
16810
16811 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16812
16813         * elf/elf.h (EM_AARCH64): New macro.
16814         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
16815         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
16816         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
16817         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
16818         (R_AARCH64_TLSDESC): Likewise.
16819         (NT_ARM_TLS): Likewise.
16820         (NT_ARM_HW_BREAK): Likewise.
16821         (NT_ARM_HW_WATCH): Likewise.
16822
16823 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16824
16825         [BZ #14811]
16826         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
16827         (__ieee754_powl): Saturate nonzero exponents with absolute value
16828         below 0x1p-79 to +/- 0x1p-79.
16829         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
16830         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
16831         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
16832         nonzero exponents with absolute value below 0x1p-32 to +/-
16833         0x1p-32.
16834         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
16835         (__ieee754_powl): Saturate nonzero exponents with absolute value
16836         below 0x1p-79 to +/- 0x1p-79.
16837         * math/libm-test.inc (pow_test): Add more tests.
16838
16839 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16840
16841         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
16842         _dl_s390_cap_flags with kernel. Increase string length.
16843         (_dl_s390_platforms): Add z196 and zEC12.
16844
16845 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16846
16847         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
16848         Change XOPEN21K to XOPEN2K.
16849
16850 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
16851
16852         * string/memmove.c: Use memcpy when possible.
16853
16854 2012-11-06  Andreas Jaeger  <aj@suse.de>
16855
16856         * po/eo.po: Update from translation team.
16857
16858 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
16859
16860         [BZ #14793]
16861         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
16862         exponent and small x and y exponents, scale x or y up.  Increase
16863         by 2 the exponent used in scaling up.
16864         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16865         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16866         * math/libm-test.inc (fma_test): Add more tests.
16867         (fma_test_towardzero): Likewise.
16868         (fma_test_downward): Likewise.
16869         (fma_test_upward): Likewise.
16870
16871 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
16872
16873         [BZ #14805]
16874         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
16875         fenv_t *.
16876
16877         [BZ #14801]
16878         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
16879         namespace for names of struct fields.
16880         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
16881         fenv_t fields.
16882         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
16883         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
16884
16885 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16886
16887         [BZ #3665]
16888         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
16889
16890 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
16891
16892         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
16893         PTR_DEMANGLE.
16894
16895         [BZ #5246]
16896         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
16897         PTR_DEMANGLE.
16898
16899 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
16900
16901         [BZ #14797]
16902         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
16903         definitely overflow as x * y not x * y + z.
16904         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16905         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16906         * math/libm-test.inc (fma_test): Add more tests.
16907         (fma_test_towardzero): Likewise.
16908         (fma_test_downward): Likewise.
16909         (fma_test_upward): Likewise.
16910
16911 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
16912
16913         [BZ #157]
16914
16915         * include/stub-tag.h: Remove file.
16916         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
16917         '#include' of it.
16918         * manual/maint.texi (Porting): Don't reference it.
16919         * Makerules ($(objpfx)stubs): Likewise.
16920         * dirent/closedir.c: Don't include <stub-tag.h>.
16921         * dirent/dirfd.c: Likewise.
16922         * dirent/fdopendir.c: Likewise.
16923         * dirent/getdents.c: Likewise.
16924         * dirent/getdents64.c: Likewise.
16925         * dirent/opendir.c: Likewise.
16926         * dirent/readdir.c: Likewise.
16927         * dirent/readdir64.c: Likewise.
16928         * dirent/readdir64_r.c: Likewise.
16929         * dirent/readdir_r.c: Likewise.
16930         * dirent/rewinddir.c: Likewise.
16931         * dirent/seekdir.c: Likewise.
16932         * dirent/telldir.c: Likewise.
16933         * gmon/profil.c: Likewise.
16934         * grp/setgroups.c: Likewise.
16935         * inet/if_index.c: Likewise.
16936         * io/access.c: Likewise.
16937         * io/chdir.c: Likewise.
16938         * io/chmod.c: Likewise.
16939         * io/chown.c: Likewise.
16940         * io/close.c: Likewise.
16941         * io/dup.c: Likewise.
16942         * io/dup2.c: Likewise.
16943         * io/dup3.c: Likewise.
16944         * io/euidaccess.c: Likewise.
16945         * io/faccessat.c: Likewise.
16946         * io/fchdir.c: Likewise.
16947         * io/fchmod.c: Likewise.
16948         * io/fchmodat.c: Likewise.
16949         * io/fchown.c: Likewise.
16950         * io/fchownat.c: Likewise.
16951         * io/fcntl.c: Likewise.
16952         * io/flock.c: Likewise.
16953         * io/fstatfs.c: Likewise.
16954         * io/fstatfs64.c: Likewise.
16955         * io/fstatvfs.c: Likewise.
16956         * io/fstatvfs64.c: Likewise.
16957         * io/futimens.c: Likewise.
16958         * io/fxstat.c: Likewise.
16959         * io/fxstat64.c: Likewise.
16960         * io/fxstatat.c: Likewise.
16961         * io/fxstatat64.c: Likewise.
16962         * io/getcwd.c: Likewise.
16963         * io/isatty.c: Likewise.
16964         * io/lchmod.c: Likewise.
16965         * io/lchown.c: Likewise.
16966         * io/link.c: Likewise.
16967         * io/linkat.c: Likewise.
16968         * io/lseek.c: Likewise.
16969         * io/lseek64.c: Likewise.
16970         * io/lxstat64.c: Likewise.
16971         * io/mkdir.c: Likewise.
16972         * io/mkdirat.c: Likewise.
16973         * io/mkfifo.c: Likewise.
16974         * io/mkfifoat.c: Likewise.
16975         * io/open.c: Likewise.
16976         * io/open64.c: Likewise.
16977         * io/openat.c: Likewise.
16978         * io/openat64.c: Likewise.
16979         * io/pipe.c: Likewise.
16980         * io/pipe2.c: Likewise.
16981         * io/poll.c: Likewise.
16982         * io/posix_fadvise.c: Likewise.
16983         * io/posix_fadvise64.c: Likewise.
16984         * io/posix_fallocate.c: Likewise.
16985         * io/posix_fallocate64.c: Likewise.
16986         * io/read.c: Likewise.
16987         * io/readlink.c: Likewise.
16988         * io/readlinkat.c: Likewise.
16989         * io/rmdir.c: Likewise.
16990         * io/sendfile.c: Likewise.
16991         * io/sendfile64.c: Likewise.
16992         * io/statfs.c: Likewise.
16993         * io/statfs64.c: Likewise.
16994         * io/statvfs.c: Likewise.
16995         * io/statvfs64.c: Likewise.
16996         * io/symlink.c: Likewise.
16997         * io/symlinkat.c: Likewise.
16998         * io/ttyname.c: Likewise.
16999         * io/ttyname_r.c: Likewise.
17000         * io/umask.c: Likewise.
17001         * io/unlink.c: Likewise.
17002         * io/unlinkat.c: Likewise.
17003         * io/utime.c: Likewise.
17004         * io/utimensat.c: Likewise.
17005         * io/write.c: Likewise.
17006         * io/xmknod.c: Likewise.
17007         * io/xmknodat.c: Likewise.
17008         * io/xstat.c: Likewise.
17009         * io/xstat64.c: Likewise.
17010         * login/getpt.c: Likewise.
17011         * login/grantpt.c: Likewise.
17012         * login/unlockpt.c: Likewise.
17013         * math/e_acoshl.c: Likewise.
17014         * math/e_acosl.c: Likewise.
17015         * math/e_asinl.c: Likewise.
17016         * math/e_atan2l.c: Likewise.
17017         * math/e_atanhl.c: Likewise.
17018         * math/e_coshl.c: Likewise.
17019         * math/e_expl.c: Likewise.
17020         * math/e_fmodl.c: Likewise.
17021         * math/e_gammal_r.c: Likewise.
17022         * math/e_hypotl.c: Likewise.
17023         * math/e_j0l.c: Likewise.
17024         * math/e_j1l.c: Likewise.
17025         * math/e_jnl.c: Likewise.
17026         * math/e_lgammal_r.c: Likewise.
17027         * math/e_log10l.c: Likewise.
17028         * math/e_log2l.c: Likewise.
17029         * math/e_logl.c: Likewise.
17030         * math/e_powl.c: Likewise.
17031         * math/e_rem_pio2l.c: Likewise.
17032         * math/e_sinhl.c: Likewise.
17033         * math/e_sqrtl.c: Likewise.
17034         * math/fclrexcpt.c: Likewise.
17035         * math/fedisblxcpt.c: Likewise.
17036         * math/feenablxcpt.c: Likewise.
17037         * math/fegetenv.c: Likewise.
17038         * math/fegetexcept.c: Likewise.
17039         * math/fegetround.c: Likewise.
17040         * math/feholdexcpt.c: Likewise.
17041         * math/fesetenv.c: Likewise.
17042         * math/fesetround.c: Likewise.
17043         * math/feupdateenv.c: Likewise.
17044         * math/fgetexcptflg.c: Likewise.
17045         * math/fraiseexcpt.c: Likewise.
17046         * math/fsetexcptflg.c: Likewise.
17047         * math/ftestexcept.c: Likewise.
17048         * math/k_cosl.c: Likewise.
17049         * math/k_rem_pio2l.c: Likewise.
17050         * math/k_sinl.c: Likewise.
17051         * math/k_tanl.c: Likewise.
17052         * math/s_asinhl.c: Likewise.
17053         * math/s_atanl.c: Likewise.
17054         * math/s_cbrtl.c: Likewise.
17055         * math/s_erfl.c: Likewise.
17056         * math/s_expm1l.c: Likewise.
17057         * math/s_log1pl.c: Likewise.
17058         * math/s_tanhl.c: Likewise.
17059         * misc/acct.c: Likewise.
17060         * misc/brk.c: Likewise.
17061         * misc/chflags.c: Likewise.
17062         * misc/chroot.c: Likewise.
17063         * misc/fchflags.c: Likewise.
17064         * misc/fgetxattr.c: Likewise.
17065         * misc/flistxattr.c: Likewise.
17066         * misc/fremovexattr.c: Likewise.
17067         * misc/fsetxattr.c: Likewise.
17068         * misc/fsync.c: Likewise.
17069         * misc/ftruncate.c: Likewise.
17070         * misc/futimes.c: Likewise.
17071         * misc/futimesat.c: Likewise.
17072         * misc/getdomain.c: Likewise.
17073         * misc/getdtsz.c: Likewise.
17074         * misc/gethostid.c: Likewise.
17075         * misc/gethostname.c: Likewise.
17076         * misc/getloadavg.c: Likewise.
17077         * misc/getpagesize.c: Likewise.
17078         * misc/getsysstats.c: Likewise.
17079         * misc/getxattr.c: Likewise.
17080         * misc/gtty.c: Likewise.
17081         * misc/ioctl.c: Likewise.
17082         * misc/lgetxattr.c: Likewise.
17083         * misc/listxattr.c: Likewise.
17084         * misc/llistxattr.c: Likewise.
17085         * misc/lremovexattr.c: Likewise.
17086         * misc/lsetxattr.c: Likewise.
17087         * misc/lutimes.c: Likewise.
17088         * misc/madvise.c: Likewise.
17089         * misc/mincore.c: Likewise.
17090         * misc/mlock.c: Likewise.
17091         * misc/mlockall.c: Likewise.
17092         * misc/mmap.c: Likewise.
17093         * misc/mprotect.c: Likewise.
17094         * misc/msync.c: Likewise.
17095         * misc/munlock.c: Likewise.
17096         * misc/munlockall.c: Likewise.
17097         * misc/munmap.c: Likewise.
17098         * misc/preadv.c: Likewise.
17099         * misc/preadv64.c: Likewise.
17100         * misc/ptrace.c: Likewise.
17101         * misc/pwritev.c: Likewise.
17102         * misc/pwritev64.c: Likewise.
17103         * misc/readv.c: Likewise.
17104         * misc/reboot.c: Likewise.
17105         * misc/remap_file_pages.c: Likewise.
17106         * misc/removexattr.c: Likewise.
17107         * misc/revoke.c: Likewise.
17108         * misc/select.c: Likewise.
17109         * misc/setdomain.c: Likewise.
17110         * misc/setegid.c: Likewise.
17111         * misc/seteuid.c: Likewise.
17112         * misc/sethostid.c: Likewise.
17113         * misc/sethostname.c: Likewise.
17114         * misc/setregid.c: Likewise.
17115         * misc/setreuid.c: Likewise.
17116         * misc/setxattr.c: Likewise.
17117         * misc/sstk.c: Likewise.
17118         * misc/stty.c: Likewise.
17119         * misc/swapoff.c: Likewise.
17120         * misc/swapon.c: Likewise.
17121         * misc/sync.c: Likewise.
17122         * misc/syncfs.c: Likewise.
17123         * misc/syscall.c: Likewise.
17124         * misc/truncate.c: Likewise.
17125         * misc/ualarm.c: Likewise.
17126         * misc/usleep.c: Likewise.
17127         * misc/ustat.c: Likewise.
17128         * misc/utimes.c: Likewise.
17129         * misc/vhangup.c: Likewise.
17130         * misc/writev.c: Likewise.
17131         * posix/_exit.c: Likewise.
17132         * posix/alarm.c: Likewise.
17133         * posix/execve.c: Likewise.
17134         * posix/fexecve.c: Likewise.
17135         * posix/fork.c: Likewise.
17136         * posix/fpathconf.c: Likewise.
17137         * posix/getaddrinfo.c: Likewise.
17138         * posix/getegid.c: Likewise.
17139         * posix/geteuid.c: Likewise.
17140         * posix/getgid.c: Likewise.
17141         * posix/getgroups.c: Likewise.
17142         * posix/getlogin.c: Likewise.
17143         * posix/getlogin_r.c: Likewise.
17144         * posix/getpgid.c: Likewise.
17145         * posix/getpid.c: Likewise.
17146         * posix/getppid.c: Likewise.
17147         * posix/getresgid.c: Likewise.
17148         * posix/getresuid.c: Likewise.
17149         * posix/getsid.c: Likewise.
17150         * posix/getuid.c: Likewise.
17151         * posix/glob64.c: Likewise.
17152         * posix/nanosleep.c: Likewise.
17153         * posix/pathconf.c: Likewise.
17154         * posix/pause.c: Likewise.
17155         * posix/posix_madvise.c: Likewise.
17156         * posix/pread.c: Likewise.
17157         * posix/pread64.c: Likewise.
17158         * posix/pwrite.c: Likewise.
17159         * posix/pwrite64.c: Likewise.
17160         * posix/sched_getaffinity.c: Likewise.
17161         * posix/sched_getp.c: Likewise.
17162         * posix/sched_gets.c: Likewise.
17163         * posix/sched_primax.c: Likewise.
17164         * posix/sched_primin.c: Likewise.
17165         * posix/sched_rr_gi.c: Likewise.
17166         * posix/sched_setaffinity.c: Likewise.
17167         * posix/sched_setp.c: Likewise.
17168         * posix/sched_sets.c: Likewise.
17169         * posix/sched_yield.c: Likewise.
17170         * posix/setgid.c: Likewise.
17171         * posix/setlogin.c: Likewise.
17172         * posix/setpgid.c: Likewise.
17173         * posix/setresgid.c: Likewise.
17174         * posix/setresuid.c: Likewise.
17175         * posix/setsid.c: Likewise.
17176         * posix/setuid.c: Likewise.
17177         * posix/sleep.c: Likewise.
17178         * posix/spawni.c: Likewise.
17179         * posix/sysconf.c: Likewise.
17180         * posix/times.c: Likewise.
17181         * posix/wait.c: Likewise.
17182         * posix/wait3.c: Likewise.
17183         * posix/wait4.c: Likewise.
17184         * posix/waitpid.c: Likewise.
17185         * resolv/gai_sigqueue.c: Likewise.
17186         * resource/getpriority.c: Likewise.
17187         * resource/getrlimit.c: Likewise.
17188         * resource/getrusage.c: Likewise.
17189         * resource/nice.c: Likewise.
17190         * resource/setpriority.c: Likewise.
17191         * resource/setrlimit.c: Likewise.
17192         * resource/ulimit.c: Likewise.
17193         * rt/aio_cancel.c: Likewise.
17194         * rt/aio_fsync.c: Likewise.
17195         * rt/aio_read.c: Likewise.
17196         * rt/aio_sigqueue.c: Likewise.
17197         * rt/aio_suspend.c: Likewise.
17198         * rt/aio_write.c: Likewise.
17199         * rt/clock_getres.c: Likewise.
17200         * rt/clock_gettime.c: Likewise.
17201         * rt/clock_nanosleep.c: Likewise.
17202         * rt/clock_settime.c: Likewise.
17203         * rt/lio_listio.c: Likewise.
17204         * rt/mq_close.c: Likewise.
17205         * rt/mq_getattr.c: Likewise.
17206         * rt/mq_notify.c: Likewise.
17207         * rt/mq_open.c: Likewise.
17208         * rt/mq_receive.c: Likewise.
17209         * rt/mq_send.c: Likewise.
17210         * rt/mq_setattr.c: Likewise.
17211         * rt/mq_timedreceive.c: Likewise.
17212         * rt/mq_timedsend.c: Likewise.
17213         * rt/mq_unlink.c: Likewise.
17214         * rt/shm_open.c: Likewise.
17215         * rt/shm_unlink.c: Likewise.
17216         * rt/timer_create.c: Likewise.
17217         * rt/timer_delete.c: Likewise.
17218         * rt/timer_getoverr.c: Likewise.
17219         * rt/timer_gettime.c: Likewise.
17220         * rt/timer_settime.c: Likewise.
17221         * setjmp/__longjmp.c: Likewise.
17222         * setjmp/setjmp.c: Likewise.
17223         * signal/kill.c: Likewise.
17224         * signal/killpg.c: Likewise.
17225         * signal/raise.c: Likewise.
17226         * signal/sigaction.c: Likewise.
17227         * signal/sigaltstack.c: Likewise.
17228         * signal/sigblock.c: Likewise.
17229         * signal/sigignore.c: Likewise.
17230         * signal/sigintr.c: Likewise.
17231         * signal/signal.c: Likewise.
17232         * signal/sigpause.c: Likewise.
17233         * signal/sigpending.c: Likewise.
17234         * signal/sigqueue.c: Likewise.
17235         * signal/sigreturn.c: Likewise.
17236         * signal/sigset.c: Likewise.
17237         * signal/sigsetmask.c: Likewise.
17238         * signal/sigstack.c: Likewise.
17239         * signal/sigsuspend.c: Likewise.
17240         * signal/sigtimedwait.c: Likewise.
17241         * signal/sigvec.c: Likewise.
17242         * signal/sigwait.c: Likewise.
17243         * signal/sigwaitinfo.c: Likewise.
17244         * signal/sysv_signal.c: Likewise.
17245         * socket/accept.c: Likewise.
17246         * socket/accept4.c: Likewise.
17247         * socket/bind.c: Likewise.
17248         * socket/connect.c: Likewise.
17249         * socket/getpeername.c: Likewise.
17250         * socket/getsockname.c: Likewise.
17251         * socket/getsockopt.c: Likewise.
17252         * socket/isfdtype.c: Likewise.
17253         * socket/listen.c: Likewise.
17254         * socket/recv.c: Likewise.
17255         * socket/recvfrom.c: Likewise.
17256         * socket/recvmsg.c: Likewise.
17257         * socket/send.c: Likewise.
17258         * socket/sendmsg.c: Likewise.
17259         * socket/sendto.c: Likewise.
17260         * socket/setsockopt.c: Likewise.
17261         * socket/shutdown.c: Likewise.
17262         * socket/sockatmark.c: Likewise.
17263         * socket/socket.c: Likewise.
17264         * socket/socketpair.c: Likewise.
17265         * stdio-common/ctermid.c: Likewise.
17266         * stdio-common/cuserid.c: Likewise.
17267         * stdio-common/remove.c: Likewise.
17268         * stdio-common/rename.c: Likewise.
17269         * stdio-common/renameat.c: Likewise.
17270         * stdio-common/tempname.c: Likewise.
17271         * stdlib/getcontext.c: Likewise.
17272         * stdlib/makecontext.c: Likewise.
17273         * stdlib/setcontext.c: Likewise.
17274         * stdlib/swapcontext.c: Likewise.
17275         * stdlib/system.c: Likewise.
17276         * streams/fattach.c: Likewise.
17277         * streams/fdetach.c: Likewise.
17278         * streams/getmsg.c: Likewise.
17279         * streams/getpmsg.c: Likewise.
17280         * streams/putmsg.c: Likewise.
17281         * streams/putpmsg.c: Likewise.
17282         * sysdeps/unix/bsd/getpt.c: Likewise.
17283         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
17284         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
17285         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
17286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17287         Likewise.
17288         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
17289         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17290         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
17291         * sysvipc/msgctl.c: Likewise.
17292         * sysvipc/msgget.c: Likewise.
17293         * sysvipc/msgrcv.c: Likewise.
17294         * sysvipc/msgsnd.c: Likewise.
17295         * sysvipc/semctl.c: Likewise.
17296         * sysvipc/semget.c: Likewise.
17297         * sysvipc/semop.c: Likewise.
17298         * sysvipc/semtimedop.c: Likewise.
17299         * sysvipc/shmat.c: Likewise.
17300         * sysvipc/shmctl.c: Likewise.
17301         * sysvipc/shmdt.c: Likewise.
17302         * sysvipc/shmget.c: Likewise.
17303         * termios/tcdrain.c: Likewise.
17304         * termios/tcflow.c: Likewise.
17305         * termios/tcflush.c: Likewise.
17306         * termios/tcgetattr.c: Likewise.
17307         * termios/tcgetpgrp.c: Likewise.
17308         * termios/tcsendbrk.c: Likewise.
17309         * termios/tcsetattr.c: Likewise.
17310         * termios/tcsetpgrp.c: Likewise.
17311         * time/adjtime.c: Likewise.
17312         * time/clock.c: Likewise.
17313         * time/getitimer.c: Likewise.
17314         * time/gettimeofday.c: Likewise.
17315         * time/setitimer.c: Likewise.
17316         * time/settimeofday.c: Likewise.
17317         * time/stime.c: Likewise.
17318         * time/time.c: Likewise.
17319
17320 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
17321
17322         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
17323         /usr/old/bin.
17324
17325         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
17326         instead of spaces.
17327         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
17328
17329 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
17330
17331         [BZ #14796]
17332         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
17333         FE_TONEAREST before applying Dekker multiplication and Knuth
17334         addition.  Clear inexact exceptions and check for exact zero
17335         results afterwards.
17336         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17337         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17338         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17339         * math/libm-test.inc (fma_test): Add more tests.
17340         (fma_test_towardzero): Likewise.
17341         (fma_test_downward): Likewise.
17342         (fma_test_upward): Likewise.
17343         * sysdeps/generic/math_private.h (default_libc_fesetround): New
17344         function.
17345         (libc_fesetround): New macro.
17346         (libc_fesetroundf): Likewise.
17347         (libc_fesetroundl): Likewise.
17348         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
17349         function.
17350         (libc_fesetround_387): Likewise.
17351         (libc_fesetroundf): New macro.
17352         (libc_fesetround): Likewise.
17353         (libc_fesetroundl): Likewise.
17354         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
17355         function.
17356         (libc_fesetroundf): New macro.
17357         (libc_fesetround): Likewise.
17358         (libc_fesetroundl): Likewise.
17359         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
17360         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
17361         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
17362         libm_hidden_ver.
17363         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
17364         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
17365         libm_hidden_def.
17366         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
17367         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
17368         libm_hidden_ver.
17369         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
17370         libm_hidden_def.
17371
17372         [BZ #3439]
17373         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
17374         integer constant usable in #if and use that to give value to enum
17375         constant.
17376         (FE_DIVBYZERO): Likewise.
17377         (FE_UNDERFLOW): Likewise.
17378         (FE_OVERFLOW): Likewise.
17379         (FE_INVALID): Likewise.
17380         (FE_INVALID_SNAN): Likewise.
17381         (FE_INVALID_ISI): Likewise.
17382         (FE_INVALID_IDI): Likewise.
17383         (FE_INVALID_ZDZ): Likewise.
17384         (FE_INVALID_IMZ): Likewise.
17385         (FE_INVALID_COMPARE): Likewise.
17386         (FE_INVALID_SOFTWARE): Likewise.
17387         (FE_INVALID_SQRT): Likewise.
17388         (FE_INVALID_INTEGER_CONVERSION): Likewise.
17389         (FE_TONEAREST): Likewise.
17390         (FE_TOWARDZERO): Likewise.
17391         (FE_UPWARD): Likewise.
17392         (FE_DOWNWARD): Likewise.
17393         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
17394         (FE_DIVBYZERO): Likewise.
17395         (FE_OVERFLOW): Likewise.
17396         (FE_UNDERFLOW): Likewise.
17397         (FE_INEXACT): Likewise.
17398         (FE_TONEAREST): Likewise.
17399         (FE_DOWNWARD): Likewise.
17400         (FE_UPWARD): Likewise.
17401         (FE_TOWARDZERO): Likewise.
17402         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
17403         (FE_UNDERFLOW): Likewise.
17404         (FE_OVERFLOW): Likewise.
17405         (FE_DIVBYZERO): Likewise.
17406         (FE_INVALID): Likewise.
17407         (FE_TONEAREST): Likewise.
17408         (FE_TOWARDZERO): Likewise.
17409         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
17410         (FE_OVERFLOW): Likewise.
17411         (FE_UNDERFLOW): Likewise.
17412         (FE_DIVBYZERO): Likewise.
17413         (FE_INEXACT): Likewise.
17414         (FE_TONEAREST): Likewise.
17415         (FE_TOWARDZERO): Likewise.
17416         (FE_UPWARD): Likewise.
17417         (FE_DOWNWARD): Likewise.
17418         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
17419         (FE_DIVBYZERO): Likewise.
17420         (FE_OVERFLOW): Likewise.
17421         (FE_UNDERFLOW): Likewise.
17422         (FE_INEXACT): Likewise.
17423         (FE_TONEAREST): Likewise.
17424         (FE_DOWNWARD): Likewise.
17425         (FE_UPWARD): Likewise.
17426         (FE_TOWARDZERO): Likewise.
17427
17428 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
17429
17430         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
17431
17432 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
17433
17434         * scripts/cross-test-ssh.sh (command): Use newlines to separate
17435         commands.  Quote $PWD.
17436         (blacklist_exports): Don't use remove_newlines.  Replace "declare
17437         -x" by "export".
17438         (remove_newlines): Remove.
17439
17440 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
17441
17442         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
17443         * stdlib/stdlib.h (atof): Moved to ...
17444         * include/bits/stdlib-float.h: Here.  New file.
17445         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
17446         * stdlib/bits/stdlib-float.h: New file.
17447         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
17448         -mno-sse -mno-mmx.
17449         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
17450         <xmmintrin.h>.
17451
17452 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17453
17454         * conform/conformtest.pl (@headers): Add fenv.h.
17455         * conform/data/fenv.h-data: New file.
17456         * include/fenv.h [_ISOMAC]: Disable all contents of file except
17457         include of <math/fenv.h>.
17458
17459         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
17460         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
17461         && !UNIX98].  Enables tests for XOPEN2K8.
17462         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
17463         POSIX2008]: Likewise.
17464
17465         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
17466         (struct rusage): Do not expect type or its members.
17467
17468         [BZ #3439]
17469         * math/math.h (FP_NAN): Define macro to integer constant usable in
17470         #if and use that to give value to enum constant.
17471         (FP_INFINITE): Likewise.
17472         (FP_ZERO): Likewise.
17473         (FP_SUBNORMAL): Likewise.
17474         (FP_NORMAL): Likewise.
17475
17476 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
17477
17478         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
17479         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
17480         arguments.
17481
17482 2012-11-02  Roland McGrath  <roland@hack.frob.com>
17483
17484         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
17485         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
17486         autoconf-time if not.
17487         * configure.in: Remove AC_PREREQ.
17488
17489 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17490
17491         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
17492         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
17493         of the internal implementation.
17494
17495 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17496
17497         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
17498         except include of <misc/sys/syslog.h>.
17499
17500 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17501
17502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
17503         function returns with a NULL context exit with zero.
17504
17505 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17506
17507         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
17508
17509 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
17510
17511         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
17512         (run_program_cmd): This.
17513         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
17514         (tst_langinfo): New variable.  Use it.
17515
17516 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
17517
17518         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
17519         floating point opcodes.
17520
17521 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17522
17523         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
17524         variable.
17525
17526         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
17527
17528         * sysdeps/mach/hurd/powerpc: Remove directory.
17529         * sysdeps/mach/powerpc: Likewise.
17530
17531 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17532
17533         * scripts/check-local-headers.sh: Ignore c++ headers.
17534
17535 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17536
17537         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
17538         __libc_cleanup_region_start argument.
17539
17540 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
17541
17542         [BZ #14784]
17543         [BZ #14785]
17544         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
17545         x * y using scaling, not as x * y + z.
17546         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17547         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17548         * math/libm-test.inc (fma_test): Add more tests.
17549         (fma_test_towardzero): Likewise.
17550         (fma_test_downward): Likewise.
17551         (fma_test_upward): Likewise.
17552
17553 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17554
17555         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
17556
17557 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17558
17559         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
17560         New variable.
17561
17562 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
17563
17564         * rt/tst-shm.c (worker): Correct checking for mmap failure.
17565
17566 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17567
17568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17569         Fix sort order.
17570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17571         Likewise.
17572
17573 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17574
17575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17576         Fix the order of the list for glibc 2.17.
17577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17578         Likewise.
17579
17580 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17581
17582         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17583
17584 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17585
17586         [BZ #14610]
17587         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
17588         for low part of x being zero before using __atanl (y).
17589         * math/libm-test.inc (atan2_test): Add another test.
17590
17591         * manual/install.texi (Configuring and compiling): Document
17592         general use of test-wrapper and test-wrapper-env.
17593         * INSTALL: Regenerated.
17594
17595         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
17596         (__fma): Do not extract and scale down low bits on after-rounding
17597         systems when result rounded to normal precision would have normal
17598         exponent.
17599         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
17600         (__fmal): Do not extract and scale down low bits on after-rounding
17601         systems when result rounded to normal precision would have normal
17602         exponent.
17603         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
17604         (__fmal): Do not extract and scale down low bits on after-rounding
17605         systems when result rounded to normal precision would have normal
17606         exponent.
17607         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
17608         macro.
17609         (fma_test): Add more tests.
17610         (fma_test_towardzero): Likewise.
17611         (fma_test_downward): Likewise.
17612         (fma_test_upward): Likewise.
17613
17614 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
17615
17616         * sysdeps/i386/tininess.h: Renamed to ...
17617         * sysdeps/x86/tininess.h: This.
17618         * sysdeps/x86_64/tininess.h: Removed.
17619
17620 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17621
17622         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
17623         input.  Use $(build-program-cmd).
17624         ($(objpfx)tst-array1-static.out): Likewise.
17625         ($(objpfx)tst-array2.out): Likewise.
17626         ($(objpfx)tst-array3.out): Likewise.
17627         ($(objpfx)tst-array4.out): Likewise.
17628         ($(objpfx)tst-array5.out): Likewise.
17629         ($(objpfx)tst-array5-static.out): Likewise.
17630
17631 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
17632
17633         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
17634         if defined.
17635
17636         * nss/nsswitch.h (nss_interface_function): Provide new
17637         macro for use with NSS functions.
17638         * grp/initgroups.c: Use new macro.
17639         * nss/getXXbyYY.c: Likewise.
17640         * nss/getXXbyYY_r.c: Likewise.
17641         * nss/getXXent.c: Likewise.
17642         * nss/getXXent_r.c: Likewise.
17643         * sysdeps/posix/getaddrinfo.c: Likewise.
17644
17645 2012-10-30  Andreas Jaeger  <aj@suse.de>
17646
17647         * po/ru.po: Update Russion translation from translation project.
17648
17649 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17650
17651         [BZ #14152]
17652         [BZ #14783]
17653         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
17654         result and shift together with sticky bit instead of replicating
17655         round-to-nearest rounding.
17656         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17657         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17658         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
17659         missing underflow exceptions.
17660         (fma_test_towardzero): Add more tests.
17661         (fma_test_downward): Likewise.
17662         (fma_test_upward): Likewise.
17663
17664         [BZ #14047]
17665         * sysdeps/generic/tininess.h: New file.
17666         * sysdeps/i386/tininess.h: Likewise.
17667         * sysdeps/sh/tininess.h: Likewise.
17668         * sysdeps/x86_64/tininess.h: Likewise.
17669         * stdlib/tst-strtod-underflow.c: Likewise.
17670         * stdlib/tst-tininess.c: Likewise.
17671         * stdlib/strtod_l.c: Include <tininess.h>.
17672         (round_and_return): Do not set errno for exact underflow cases.
17673         Force an underflow exception when setting errno for underflow.
17674         Determine underflow based on rounding to normal precision if
17675         TININESS_AFTER_ROUNDING.
17676         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
17677         ERANGE for exact underflow cases.
17678         * stdlib/Makefile (tests): Add tst-tininess and
17679         tst-strtod-underflow.
17680         ($(objpfx)tst-tininess): Use $(link-libm).
17681         ($(objpfx)tst-strtod-underflow): Likewise.
17682
17683 2012-10-30  Andreas Jaeger  <aj@suse.de>
17684
17685         [BZ#14767]
17686         * elf/Makefile (tests): Remove conditional for have-initfini-array
17687         since this is now always required and the variable does not exist
17688         anymore.
17689         (tests-static): Likewise.
17690         (modules-names): Likewise.
17691
17692         * po/eo.po: Add Esperanto translation from translation project.
17693
17694         * elf/tst-array1.c (fini_array): Make writeable so that it can be
17695         merged with constructor/destructor.
17696         (init_array): Likewise.
17697         * elf/tst-array2dep.c (fini_array): Likewise.
17698         (init_array): Likewise.
17699
17700 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
17701
17702         * manual/message.texi: Delete @cartouche tags.
17703
17704 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
17705
17706         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
17707         EOPNOTSUPP.
17708         * sysdeps/mach/hurd/fsync.c: Likewise.
17709
17710         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
17711         [_POSIX_REALTIME_SIGNALS]: Change condition to
17712         [_POSIX_REALTIME_SIGNALS > 0].
17713
17714 2012-10-27  Andreas Jaeger  <aj@suse.de>
17715
17716         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
17717         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
17718         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
17719         [__WORDSIZE != 64]: Likewise.
17720
17721 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
17722
17723         *  iconvdata/tst-table.sh: Remove ${SHELL}.
17724         *  iconvdata/tst-tables.sh: Likewise.
17725
17726 2012-10-25  David S. Miller  <davem@davemloft.net>
17727
17728         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17729         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
17730         of strtoull.
17731
17732         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
17733         ifunc-impl-list.c
17734         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17735         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
17736         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
17737         file.
17738
17739 2012-10-25  Roland McGrath  <roland@hack.frob.com>
17740
17741         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17742         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
17743         __getdirentries.
17744
17745 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
17746             Jim Blandy  <jimb@codesourcery.com>
17747
17748         * scripts/cross-test-ssh.sh: New file.
17749         * manual/install.texi (Configuring and compiling): Document use of
17750         cross-test-ssh.sh.
17751         * INSTALL: Regenerated.
17752
17753 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
17754
17755         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
17756         EOPNOTSUPP.
17757
17758 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
17759
17760         * Makeconfig (run-program-prefix): Fix comment.
17761
17762 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
17763             Jim Blandy  <jimb@codesourcery.com>
17764
17765         * Makeconfig (test-wrapper): New variable,
17766         (test-wrapper-env): Likewise.
17767         [$(cross-compiling) = yes && $(test-wrapper) != ""]
17768         (run-built-tests): Define to yes.
17769         (run-program-prefix): Use $(test-wrapper).
17770         (built-program-cmd): Likewise.
17771         * Rules (make-test-out): Use $(test-wrapper-env) and
17772         $(host-built-program-cmd).
17773         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
17774         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
17775         tst-pathopt.sh.
17776         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
17777         $(test-wrapper-env) to tst-rtld-load-self.sh.
17778         ($(objpfx)order2.out): Use $(test-wrapper).
17779         ($(objpfx)tst-initorder.out): Likewise.
17780         ($(objpfx)tst-initorder2.out): Likewise.
17781         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
17782         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
17783         (test_wrapper_env): New variable.  Use it to run ld.so.
17784         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
17785         Use it to run ld.so.
17786         (test_wrapper_env): Likewise.
17787         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
17788         $(test-wrapper) to run-iconv-test.sh.
17789         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
17790         (ICONV): Use $test_wrapper.
17791         * posix/Makefile ($(objpfx)globtest.out): Pass
17792         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
17793         globtest.sh, not $(run-program-prefix).
17794         * posix/globtest.sh (run_via_rtld_prefix): New variable.
17795         (test_wrapper): Likewise.
17796         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
17797         set together with run_via_rtld_prefix.
17798         (run_program_prefix): Define in terms of test_wrapper and
17799         run_via_rtld_prefix.
17800
17801 2012-10-24  Roland McGrath  <roland@hack.frob.com>
17802
17803         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
17804         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
17805         Targets removed.
17806
17807         [BZ #14743]
17808         * include/time.h: Remove librt_hidden_proto (clock_gettime).
17809         Declare __clock_getres, __clock_gettime, __clock_settime,
17810         __clock_nanosleep, and __clock_getcpuclockid.
17811         * rt/clock_gettime.c: Define __clock_gettime as an alias.
17812         Remove librt_hidden_def (clock_gettime).
17813         * sysdeps/unix/clock_gettime.c: Likewise.
17814         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
17815         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
17816         * rt/clock_getres.c: Define __clock_getres as an alias.
17817         * sysdeps/posix/clock_getres.c: Likewise.
17818         * rt/clock_settime.c: Define __clock_settime as an alias.
17819         * sysdeps/unix/clock_settime.c: Likewise.
17820         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
17821         * sysdeps/unix/clock_nanosleep.c: Likewise.
17822         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
17823         * rt/clock-compat.c: New file.
17824         * rt/Makefile (librt-routines): Add clock-compat and move
17825         $(clock-routines) to ...
17826         (routines): ... here, new variable.
17827         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
17828         Don't add get_clockfreq here.
17829         * rt/Versions (libc: GLIBC_2.17): New version set.
17830         Add clock_* symbols here.
17831         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
17832         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
17833         (GLIBC_2.17): Add clock_* symbols.
17834         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
17835         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
17836         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
17837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17838         Likewise.
17839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17840         Likewise.
17841         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
17842         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
17843         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
17844         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
17845         * NEWS: Mention the move.
17846
17847         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
17848         Use __open, __read, __close rather than their public counterparts.
17849         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17850         (__get_clockfreq_via_cpuinfo): Likewise.
17851         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
17852         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
17853
17854         * config.h.in (HAVE_IFUNC): New #undef.
17855         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
17856         was successful.
17857         * configure: Regenerated.
17858
17859 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
17860
17861         * configure.in: Move READELF check to start of file.
17862         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
17863         libc_cv_asm_gnu_indirect_function in the process.
17864         * configure: Regenerated.
17865
17866 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
17867
17868         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
17869         send the output to /dev/null.
17870         (libc_cv_cc_with_libunwind): Likewise.
17871         (libc_cv_as_noexecstack): Likewise.
17872         * configure: Regenerate.
17873
17874 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
17875
17876         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
17877
17878         * posix/globtest.sh (TMPDIR): Do not set.
17879         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
17880         (testout): Likewise.
17881
17882 2012-10-24  Andreas Jaeger  <aj@suse.de>
17883
17884         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
17885         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
17886         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
17887         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
17888         posix_fadvise64, posix_fallocate64.
17889
17890         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
17891         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
17892         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
17893         Likewise.
17894         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
17895         Likewise.
17896         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
17897
17898         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
17899         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
17900         <bits/fcntl-linux.h>.
17901         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
17902
17903         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
17904         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
17905         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
17906         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
17907         [__WORDSIZE != 64]: Likewise.
17908
17909 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
17910
17911         * Makeconfig (run-built-tests): New variable.
17912         * Rules [$(cross-compiling) = yes]: Change condition to
17913         [$(run-built-tests) = no].
17914         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
17915         to [$(run-built-tests) = yes].
17916         * elf/Makefile [$(cross-compiling) = no]: Likewise
17917         * grp/Makefile [$(cross-compiling) = no]: Likewise.
17918         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
17919         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
17920         * intl/Makefile [$(cross-compiling) = no]: Likewise.
17921         * io/Makefile [$(cross-compiling) = no]: Likewise.
17922         * libio/Makefile [$(cross-compiling) = no]: Likewise.
17923         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
17924         * misc/Makefile [$(cross-compiling) = no]: Likewise.
17925         * posix/Makefile [$(cross-compiling) = no]: Likewise.
17926         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
17927         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
17928         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
17929         * string/Makefile [$(cross-compiling) = no]: Likewise.
17930
17931         * posix/Makefile ($(objpfx)globtest.out): Pass
17932         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
17933         $(rtld-installed-name).
17934         * posix/globtest.sh (elf_objpfx): Remove variable.
17935         (rtld_installed_name): Likewise.
17936         (library_path): Likewise.
17937         (run_program_prefix): New variable.  Use for running globtest
17938         binary.
17939
17940 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
17941             Joseph Myers  <joseph@codesourcery.com>
17942
17943         * Makeconfig (host-built-program-cmd): New variable.
17944         * elf/Makefile (tst-stackguard1-ARGS): Use
17945         $(host-built-program-cmd).
17946         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
17947         (tst-spawn-ARGS): Likewise.
17948         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
17949
17950 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
17951             Jim Blandy  <jimb@codesourcery.com>
17952
17953         * Makeconfig (run-via-rtld-prefix): New variable.
17954         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
17955         (built-program-cmd): Likewise.
17956
17957 2012-10-22  Andreas Jaeger  <aj@suse.de>
17958
17959         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
17960         __O_RSYNC if it exists, otherwise to O_SYNC.
17961
17962 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
17963             Joseph Myers  <joseph@codesourcery.com>
17964
17965         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
17966         /dev/null.
17967         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
17968         from /dev/null
17969         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
17970         /dev/null.
17971
17972 2012-10-22  Andreas Jaeger  <aj@suse.de>
17973
17974         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
17975         Define always.
17976         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
17977
17978         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17979         bits/fcntl-linux.h.
17980
17981         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
17982         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
17983
17984         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
17985         to __O_LARGEFILE.
17986         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
17987         to __O_LARGEFILE.
17988
17989 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
17990             Joseph Myers  <joseph@codesourcery.com>
17991
17992         * config.make.in (NM): New variable.
17993
17994 2012-10-21  Andreas Jaeger  <aj@suse.de>
17995
17996         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
17997         definitions and declarations that are provided by
17998         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
17999
18000 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18001
18002         [BZ #14683]
18003         * elf/Makefile (tests-static): Add tst-leaks1-static.
18004         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
18005         ($(objpfx)tst-leaks1-static): New rule.
18006         ($(objpfx)tst-leaks1-static-mem): Likewise.
18007         (tst-leaks1-static-ENV): New macro.
18008         * elf/dl-open.c (dl_open_worker): Check the main application
18009         only if SHARED is defined.
18010         * elf/tst-leaks1-static.c: New file.
18011
18012 2012-10-20  Andreas Jaeger  <aj@suse.de>
18013
18014         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
18015         generic values for Linux.
18016         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
18017         and declarations that are provided by <bits/fcntl-linux.h> and
18018         include <bits/fcntl-linux.h>.
18019         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18020         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18021
18022 2012-10-20  Roland McGrath  <roland@hack.frob.com>
18023
18024         * io/fcntl.h: Move include of <bits/types.h> to the top and
18025         include it unconditionally.
18026
18027 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18028
18029         * wcsmbs/Makefile (tests-ifunc): New variable.
18030         (tests): Add $(tests-ifunc).
18031         * wcsmbs/test-wcschr-ifunc.c: New file.
18032         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
18033         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
18034         * wcsmbs/test-wcslen-ifunc.c: Likewise.
18035         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
18036         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
18037
18038         * string/Makefile (tests-ifunc): New variable.
18039         (tests): Add $(tests-ifunc).
18040         * string/test-memccpy.c (TEST_NAME): New macro.
18041         * string/test-memchr.c (TEST_NAME): Likewise.
18042         * string/test-memcmp.c (TEST_NAME): Likewise.
18043         * string/test-memcpy.c (TEST_NAME): Likewise.
18044         * string/test-memmem.c (TEST_NAME): Likewise.
18045         * string/test-memmove.c (TEST_NAME): Likewise.
18046         * string/test-memset.c (TEST_NAME): Likewise.
18047         * string/test-rawmemchr.c (TEST_NAME): Likewise.
18048         * string/test-stpcpy.c (TEST_NAME): Likewise.
18049         * string/test-stpncpy.c (TEST_NAME): Likewise.
18050         * string/test-strcasecmp.c (TEST_NAME): Likewise.
18051         * string/test-strcasestr.c (TEST_NAME): Likewise.
18052         * string/test-strcat.c (TEST_NAME): Likewise.
18053         * string/test-strchr.c (TEST_NAME): Likewise.
18054         * string/test-strcmp.c(TEST_NAME): Likewise.
18055         * string/test-strcpy.c (TEST_NAME): Likewise.
18056         * string/test-strcspn.c (TEST_NAME): Likewise.
18057         * string/test-strlen.c (TEST_NAME): Likewise.
18058         * string/test-strncasecmp.c (TEST_NAME): Likewise.
18059         * string/test-strncmp.c (TEST_NAME): Likewise.
18060         * string/test-strncpy.c (TEST_NAME): Likewise.
18061         * string/test-strnlen.c (TEST_NAME): Likewise.
18062         * string/test-strpbrk.c (TEST_NAME): Likewise.
18063         * string/test-strrchr.c (TEST_NAME): Likewise.
18064         * string/test-strspn.c (TEST_NAME): Likewise.
18065         * string/test-strstr.c (TEST_NAME): Likewise.
18066         * string/test-bcopy-ifunc.c: New file.
18067         * string/test-bzero-ifunc.c: Likewise.
18068         * string/test-memccpy-ifunc.c: Likewise.
18069         * string/test-memchr-ifunc.c: Likewise.
18070         * string/test-memcmp-ifunc.c: Likewise.
18071         * string/test-memcpy-ifunc.c: Likewise.
18072         * string/test-memmem-ifunc.c: Likewise.
18073         * string/test-memmove-ifunc.c: Likewise.
18074         * string/test-mempcpy-ifunc.c: Likewise.
18075         * string/test-memset-ifunc.c: Likewise.
18076         * string/test-rawmemchr-ifunc.c: Likewise.
18077         * string/test-stpcpy-ifunc.c: Likewise.
18078         * string/test-stpncpy-ifunc.c: Likewise.
18079         * string/test-strcasecmp-ifunc.c: Likewise.
18080         * string/test-strcasestr-ifunc.c: Likewise.
18081         * string/test-strcat-ifunc.c: Likewise.
18082         * string/test-strchr-ifunc.c: Likewise.
18083         * string/test-strchrnul-ifunc.c: Likewise.
18084         * string/test-strcmp-ifunc.c: Likewise.
18085         * string/test-strcpy-ifunc.c: Likewise.
18086         * string/test-strcspn-ifunc.c: Likewise.
18087         * string/test-strlen-ifunc.c: Likewise.
18088         * string/test-strncasecmp-ifunc.c: Likewise.
18089         * string/test-strncat-ifunc.c: Likewise.
18090         * string/test-strncmp-ifunc.c: Likewise.
18091         * string/test-strncpy-ifunc.c: Likewise.
18092         * string/test-strnlen-ifunc.c: Likewise.
18093         * string/test-strpbrk-ifunc.c: Likewise.
18094         * string/test-strrchr-ifunc.c: Likewise.
18095         * string/test-strspn-ifunc.c: Likewise.
18096         * string/test-strstr-ifunc.c: Likewise.
18097
18098         * debug/Makefile (tests-ifunc): New variable.
18099         (tests): Add $(tests-ifunc).
18100         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
18101         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
18102         * debug/test-stpcpy_chk-ifunc.c: New file.
18103         * debug/test-strcpy_chk-ifunc.c: Likewise.
18104
18105 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
18106
18107         [BZ #13601]
18108         * elf/dl-load.c (open_verify): Retry read if the entire ELF
18109         header is not read in.
18110
18111 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
18112
18113         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
18114         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
18115         directly.  Pass built executable to script as
18116         $(built-program-cmd).
18117         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
18118         $testprogram without using LD_LIBRARY_PATH and $ldso.
18119
18120         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
18121         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
18122         $(rtld-installed-name).
18123         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
18124         (rtld_installed_name): Likewise.
18125         (library_path): Likewise.
18126         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
18127         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
18128         $(run-program-prefix) to tst-tables.sh.
18129         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
18130         it to run tst-table-from and tst-table-to.
18131         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
18132         Pass it to tst-table.sh.
18133         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
18134         $(run-program-prefix) to tst-gettext.sh.
18135         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
18136         tst-translit.sh.
18137         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
18138         tst-gettext2.sh.
18139         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
18140         to run tst-gettext.
18141         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
18142         to run tst-gettext2.
18143         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
18144         to run tst-translit.
18145         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
18146         $(run-program-prefix) to tst-mtrace.sh.
18147         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
18148         to run tst-mtrace.
18149         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
18150         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
18151         $(rtld-installed-name).
18152         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
18153         (rtld_installed_name): Likewise.
18154         (run_program_prefix): New variable.  Use it to run wordexp-test.
18155
18156         * Makeconfig (ARCH): Remove all definitions.
18157         (machine): Likewise.
18158         [ARCH]: Remove conditional code.
18159         [!objdir]: Give error.
18160         [!objdir] (objpfx): Remove.
18161         [!objdir] (common-objpfx): Likewise.
18162         [!objdir] (common-objdir): Likewise.
18163         * configure.in (config_makefile): Remove.  Hardcode Makefile in
18164         AC_CONFIG_FILES call.
18165         * configure: Regenerated.
18166
18167         [BZ #13888]
18168         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
18169         or TMPDIR.
18170         (testout): Likewise.
18171
18172         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
18173         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
18174         $(rtld-installed-name).
18175         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
18176         (rtld_installed_name): Likwise.
18177         (runit): Remove function.
18178         (run_getconf): New variable,  Use it for running getconf binary.
18179
18180 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
18181
18182         [BZ #14716]
18183         * string/test-memmem.c (check_result): New function.
18184         (do_one_test): Use it.
18185         (check1): New function.
18186         (test_main): Use it.
18187
18188 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
18189
18190         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
18191
18192 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
18193
18194         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
18195         (_G_LSEEK64): Likewise.
18196         (_G_MMAP64): Likewise.
18197         (_G_FSTAT64): Likewise.
18198         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
18199         (_G_LSEEK64): Likewise.
18200         (_G_MMAP64): Likewise.
18201         (_G_FSTAT64): Likewise.
18202         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
18203         unconditional.  Call __mmap64 directly.
18204         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
18205         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
18206         __lseek64 directly.
18207         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
18208         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
18209         __mmap64 directly.
18210         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
18211         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18212         __lseek64 directly.
18213         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
18214         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18215         __lseek64 directly.
18216         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
18217         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
18218         __lseek64 directly.
18219         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
18220         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
18221         __fxstat64 directly.
18222         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
18223         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
18224         unconditional.
18225         (freopen64) [!_G_OPEN64]: Remove conditional code.
18226         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
18227         unconditional.
18228         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
18229         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
18230         unconditional.
18231         (ftello64) [!_G_LSEEK64]: Remove conditional code.
18232         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
18233         unconditional.
18234         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18235         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
18236         unconditional.
18237         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
18238         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
18239         unconditional.
18240         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18241         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
18242         unconditional.
18243         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18244         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
18245         unconditional.
18246         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18247
18248 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18249
18250         [BZ #12140]
18251         * manual/memory.texi (Malloc Tunable Parameters): Add note
18252         about free list pointers overwriting some perturb bytes.
18253         Wording suggested by Roland McGrath.
18254
18255 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
18256
18257         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
18258         (lgamma_test): Likewise.
18259         (tgamma_test): Likewise.
18260
18261 2012-10-16  Florian Weimer  <fweimer@redhat.com>
18262
18263         [BZ #14700]
18264         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
18265         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
18266
18267 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
18268
18269         * NEWS: Mention BZ #14716.
18270         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
18271         when removing AVAILABLE1_USES_J macro.
18272
18273 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
18274
18275         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
18276         (__bswap_64): __uint64_t for unsigned 64-bit int.
18277
18278 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
18279
18280         * include/string.h (memmem): Declare libc hidden alias.
18281         * string/memmem.c (memmem): Define libc hidden alias.
18282         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
18283         __read, __close instead of open, read, close.
18284
18285 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
18286
18287         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
18288         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
18289         global and hidden.
18290         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
18291         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
18292         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
18293         Likewise.
18294         (__rawmemchr_sse2): Likewise.
18295         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
18296         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
18297         (__strchr_sse2): Likewise.
18298         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
18299         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
18300         (__strcasecmp_sse2): Likewise.
18301         (__strncasecmp_sse2): Likewise.
18302         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
18303         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
18304         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
18305         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
18306         (__strrchr_sse2): Likewise.
18307         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
18308         ifunc-impl-list.c.
18309         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
18310         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
18311         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
18312         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18313         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
18314         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
18315         * sysdeps/x86_64/multiarch/memset.S: Likewise.
18316         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
18317         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
18318         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
18319         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
18320         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
18321         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
18322         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
18323         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
18324         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
18325         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
18326         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
18327         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
18328         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
18329         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
18330         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
18331         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
18332         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
18333         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
18334         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18335         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18336         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
18337         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
18338         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
18339
18340         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
18341         global and hidden.
18342         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
18343         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
18344         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
18345         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
18346         Likewise.
18347         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
18348         Likewise.
18349         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
18350         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
18351         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
18352         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
18353         ifunc-impl-list.c.
18354         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18355         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18356         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18357         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18358         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18359         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18360         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18361         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18362         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18363         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18364         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18365         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18366         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18367         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
18368         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
18369         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18370         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
18371         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
18372         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18373         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
18374         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18375         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18376         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18377         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18378         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18379         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
18380         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
18381         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
18382         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
18383         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18384         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
18385         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18386         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18387         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
18388         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18389         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18390         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18391         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18392         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18393         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18394         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
18395
18396         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
18397         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
18398         * include/ifunc-impl-list.h: New file.
18399         * misc/ifunc-impl-list.c: Likewise.
18400         * misc/Makefile (routines): Add ifunc-impl-list.
18401         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
18402         * string/test-string.h: Include <ifunc-impl-list.h>.
18403         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
18404         impl_array): New variables.
18405         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
18406         are defined.
18407         (test_init): Call __libc_ifunc_impl_list to initialize
18408         func_list if TEST_IFUNC and TEST_NAME are defined.
18409
18410         * string/Makefile (strop-tests): Add bcopy and bzero.
18411         * string/test-bcopy.c: New file.
18412         * string/test-bzero.c: Likewise.
18413         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
18414         defined.
18415         * string/test-memset.c: Support bzero test if TEST_BZERO is
18416         defined.
18417         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
18418         __libc_memmove.
18419         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
18420         __libc_memset.
18421         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
18422         of memset.
18423
18424 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
18425
18426         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
18427         * configure: Regenerated.
18428
18429         * Makeconfig (+link-static-before-libc): Don't include
18430         $(link-static-libc).
18431
18432         * libio/libio.h (_IO_pos_t): Remove.
18433
18434 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18435
18436         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
18437         McGrath.
18438
18439 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18440
18441         * crypt/crypt-entry.c: Include fips-private.h.
18442         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
18443         * crypt/md5c-test.c (main): Tolerate disabled MD5.
18444         * sysdeps/unix/sysv/linux/fips-private.h: New file.
18445         * sysdeps/generic/fips-private.h: New file, dummy fallback.
18446
18447 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18448
18449         * crypt/crypt-private.h: Include stdbool.h.
18450         (_ufc_setup_salt_r): Return bool.
18451         * crypt/crypt-entry.c: Include errno.h.
18452         (__crypt_r): Return NULL with EINVAL for bad salt.
18453         * crypt/crypt_util.c (bad_for_salt): New.
18454         (_ufc_setup_salt_r): Check that salt is long enough and within
18455         the specified alphabet.
18456         * crypt/badsalttest.c: New file.
18457         * crypt/Makefile (tests): Add it.
18458         ($(objpfx)badsalttest): New.
18459
18460 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
18461
18462         * NEWS: Add entry for BZ #14602.
18463
18464 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18465
18466         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
18467         type-generic.
18468         * math/libm-test.inc: Update comment listing what functions and
18469         macros are tested.
18470         (isgreater_test): New function.
18471         (isgreaterequal_test): Likewise.
18472         (isless_test): Likewise.
18473         (islessequal_test): Likewise.
18474         (islessgreater_test): Likewise.
18475         (isunordered_test): Likewise.
18476         (main): Call the new functions.
18477
18478 2012-10-09  Roland McGrath  <roland@hack.frob.com>
18479
18480         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
18481         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
18482         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
18483         * sysdeps/i386/configure: Regenerated.
18484         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
18485         * sysdeps/mach/configure: Regenerated.
18486         * sysdeps/mach/hurd/configure: Regenerated.
18487         * sysdeps/powerpc/configure: Regenerated.
18488         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18489         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18490         * sysdeps/s390/s390-32/configure: Regenerated.
18491         * sysdeps/s390/s390-64/configure: Regenerated.
18492         * sysdeps/sh/configure: Regenerated.
18493         * sysdeps/sparc/configure: Regenerated.
18494         * sysdeps/unix/sysv/linux/configure: Regenerated.
18495         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
18496         * sysdeps/x86_64/configure: Regenerated.
18497
18498         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
18499         defined.  Don't check if MAP is NULL.
18500
18501 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18502
18503         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
18504         (_G_stat64): Likewise.
18505         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
18506         (_G_stat64): Likewise.
18507         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
18508         instead of struct _G_stat64.
18509         * libio/fileops.c (mmap_remap_check): Likewise.
18510         (decide_maybe_mmap): Likewise.
18511         (_IO_new_file_seekoff): Likewise.
18512         (_IO_file_stat): Likewise.
18513         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
18514         _G_off64_t.
18515         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
18516         instead of struct _G_stat64.
18517         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18518
18519 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18520
18521         [BZ #14602]
18522         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18523         Replace with ...
18524         (CHECK_EOL): New macro.
18525         (two_way_short_needle): Check beginning of haystack for EOL.  Use
18526         CHECK_EOL.
18527         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18528         Replace with CHECK_EOL.
18529         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18530         Replace with CHECK_EOL.
18531
18532 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
18533
18534         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
18535         type-generic.
18536         * math/libm-test.inc: Update comment listing what functions and
18537         macros are tested.
18538         (finite_test): New function.
18539         (isinf_test): Likewise.
18540         (isnan_test): Likewise.
18541         (fpclassify_test): Test subnormal input.
18542         (isfinite_test): Likewise.
18543         (isnormal_test): Likewise.
18544         (main): Call the new functions.
18545
18546 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
18547
18548         [BZ #14660]
18549         * Makerules (%.dynsym): Force C locale when running
18550         $(OBJDUMP) --dynamic-syms.
18551
18552 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
18553
18554         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
18555         <stdint.h>.
18556
18557 2012-10-06  David S. Miller  <davem@davemloft.net>
18558
18559         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
18560         upper 32-bits of the length value in %o2 since we use branch-on-register
18561         tests which consider the entire 64-bit register.
18562
18563 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
18564
18565         * string/test-strstr.c (check2): Add a test for page boundary.
18566
18567 2012-10-05  David S. Miller  <davem@davemloft.net>
18568
18569         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
18570         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
18571         file.
18572         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18573         sysdep_routines.
18574         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18575         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
18576         and bzero when HWCAP_SPARC_CRYPTO is present.
18577
18578 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
18579
18580         [BZ #14602]
18581         * string/test-strstr.c (check2): New function.
18582         (test_main): Call check2.
18583
18584         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
18585         and bug-strchr1.
18586         * string/bug-strcasestr1.c (do_test): Moved to ...
18587         * string/test-strcasestr.c (check1): Here.  New function.
18588         (do_one_test): Break out result checking code into ...
18589         (check_result): This.  New function.
18590         (do_one_test): Call check_result.
18591         (test_main): Call check1.
18592         * string/bug-strchr1.c (do_test): Moved to ...
18593         * string/test-strchr.c (check1): Here.  New function.
18594         (do_one_test): Break out result checking code into ...
18595         (check_result): This.  New function.
18596         (do_one_test): Call check_result.
18597         (test_main): Call check1.
18598         * string/bug-strstr1.c (main): Moved to ...
18599         * string/test-strstr.c (check1): Here.  New function.
18600         (do_one_test): Break out result checking code into ...
18601         (check_result): This.  New function.
18602         (do_one_test): Call check_result.
18603         (test_main): Call check1.
18604         * string/bug-strcasestr1.c: Removed.
18605         * string/bug-strchr1.c: Likewise.
18606         * string/bug-strstr1.c: Likewise.
18607
18608         * elf/Makefile (dl-routines): Add hwcaps.
18609         * elf/dl-support.c (_dl_important_hwcaps): Removed.
18610         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
18611         (_dl_important_hwcaps): Moved to ...
18612         * elf/dl-hwcaps.c: Here.  New file.
18613         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
18614
18615         [BZ #14557]
18616         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
18617         if IS_IN_rtld isn't defined.
18618
18619         * elf/dl-support.c (_dl_sysinfo_map): New.
18620         Include "get-dynamic-info.h" and "setup-vdso.h".
18621         (_dl_non_dynamic_init): Call setup_vdso.
18622         * elf/dynamic-link.h: Don't include <assert.h>.
18623         (elf_get_dynamic_info): Moved to ...
18624         * elf/get-dynamic-info.h: Here.  New file.
18625         * elf/dynamic-link.h: Include "get-dynamic-info.h".
18626         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
18627         * elf/setup-vdso.h: Here.  New file.
18628         * elf/rtld.c: Include "setup-vdso.h".
18629         (dl_main): Call setup_vdso.
18630
18631 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
18632
18633         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
18634         creal in comment listing functions tested.  List finite, isinf,
18635         isnan, isless, islessequal, isgreater, isgreaterequal,
18636         islessgreater, isunordered, lgamma_r and pow10 as functions and
18637         macros not tested.  Mention which functions not tested are aliases
18638         for other functions.  Fix typo.  Note that signs of NaNs are not
18639         tested.
18640
18641         * scripts/config.guess: Update from config.git.
18642         * scripts/config.sub: Likewise.
18643
18644 2012-10-04  Roland McGrath  <roland@hack.frob.com>
18645
18646         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
18647         * misc/madvise.c (madvise): Renamed to __madvise.
18648         Make madvise a weak alias.
18649         * include/sys/mman.h: Declare __madvise.
18650         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
18651         * sysdeps/unix/syscalls.list
18652         (madvise): Make __madvise the strong name, and madvise a weak alias.
18653         * sysdeps/unix/sysv/linux/syscalls.list
18654         (madvise, mmap): Remove redundant entries.
18655         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
18656         * malloc/malloc.c (mtrim): Likewise.
18657         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
18658
18659 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18660
18661         * sysdeps/mach/hurd/dl-cache.c: File removed.
18662         * config.h.in (USE_LDCONFIG): New #undef.
18663         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
18664         * configure: Regenerated.
18665         * elf/Makefile (dl-routines): Add dl-cache only under
18666         [$(use-ldconfig) = yes].
18667         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
18668         cache on [USE_LDCONFIG].
18669         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
18670         [USE_LDCONFIG].
18671         * elf/rtld.c (dl_main): Likewise.
18672
18673 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
18674
18675         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
18676         _SC_LEVEL4_CACHE_LINESIZE.
18677
18678 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18679
18680         * sysdeps/unix/bsd/confstr.h: File removed.
18681
18682 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
18683
18684         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
18685         sys/sdt-config.h.
18686
18687 2012-10-02  Roland McGrath  <roland@hack.frob.com>
18688
18689         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
18690         Make 'mapoff' field ElfW(Off) rather than off_t.
18691
18692 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
18693
18694         * nscd/Makefile: Remove nscd-cflags and all its users.
18695         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
18696         (CFLAGS-nonlib): Add compiler flags for nscd modules.
18697
18698         [BZ #10631]
18699         * malloc.c (malloc_printerr): Clarify error message.
18700
18701 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
18702
18703         [BZ #14648]
18704         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18705         Set bit_FMA_Usable if FMA is supported.
18706         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
18707         macro.
18708         (bit_FMA4_Usable): Updated.
18709         (index_FMA_Usable): New macro.
18710         (CPUID_FMA): Likewise
18711         (HAS_FMA): Defined with bit_FMA_Usable.
18712
18713 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18714
18715         * bits/types.h (__swblk_t): Type removed.
18716         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
18717         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
18718         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18719         (__SWBLK_T_TYPE): Likewise.
18720         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
18721         (__SWBLK_T_TYPE): Likewise.
18722         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18723         (__SWBLK_T_TYPE): Likewise.
18724         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18725         (__SWBLK_T_TYPE): Likewise.
18726
18727 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
18728             Honza Horak <hhorak@redhat.com>
18729
18730         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
18731         (xdr_mapname): Use YPMAXMAP as maxsize.
18732         (xdr_peername): Use YPMAXPEER as maxsize.
18733         (xdr_keydat): Use YPAXRECORD as maxsize.
18734         (xdr_valdat): Use YPMAXRECORD as maxsize.
18735
18736 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18737
18738         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
18739
18740         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
18741         * csu/init-first.c: ... here.
18742         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
18743         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18744         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
18745         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
18746         * sysdeps/i386/init-first.c: File removed.
18747         * sysdeps/sh/init-first.c: File removed.
18748
18749 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
18750
18751         [BZ #14645]
18752         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
18753         if x * y might underflow to zero and z is zero.
18754         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
18755         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18756         * math/libm-test.inc (min_subnorm_value): New variable.
18757         (fma_test): Add more tests.
18758         (fma_test_towardzero): Likewise.
18759         (fma_test_downward): Likewise
18760         (fma_test_upward): Likewise.
18761         (initialize): Set min_subnorm_value.
18762
18763 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
18764
18765         [BZ #14638]
18766         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
18767         0 + 0.
18768         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
18769         mode for addition resulting in exact zero.
18770         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
18771         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
18772         exact 0 + 0.
18773         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
18774         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18775         * math/libm-test.inc (fma_test): Add more tests.
18776         (fma_test_towardzero): New function.
18777         (fma_test_downward): Likewise.
18778         (fma_test_upward): Likewise.
18779         (main): Call the new functions.
18780
18781 2012-09-28  David S. Miller  <davem@davemloft.net>
18782
18783         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
18784
18785 2012-09-28  Roland McGrath  <roland@hack.frob.com>
18786
18787         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
18788         instead of SIGALRM.
18789
18790         * sysdeps/gnu/_G_config.h: Moved to ...
18791         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
18792         * sysdeps/mach/hurd/_G_config.h: Moved to ...
18793         * sysdeps/generic/_G_config.h: ... here.
18794
18795         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
18796
18797         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
18798
18799         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
18800         Conditionalize target on [libnss_test1.so-version].
18801
18802         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
18803
18804         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
18805         (elfobjdir): Move out of conditionals.
18806
18807         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
18808         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
18809         (__nss_lookup_function): Conditionalize label remove_from_tree on
18810         [!DO_STATIC_NSS || SHARED], matching its only use.
18811
18812 2012-09-28  David S. Miller  <davem@davemloft.net>
18813
18814         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
18815         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
18816         file.
18817         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18818         sysdep_routines.
18819         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18820         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
18821         when HWCAP_SPARC_CRYPTO is present.
18822
18823 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18824
18825         * io/tst-mknodat.c: Create a FIFO instead of a socket.
18826
18827 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
18828
18829         [BZ #6530]
18830         * stdio-common/vfprintf.c (process_string_arg): Revert
18831         2000-07-22 change.
18832
18833 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
18834
18835         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
18836         for testcase.
18837         * stdio-common/tst-sprintf.c: Include <locale.h>
18838         (main): Test sprintf's handling of incomplete multibyte
18839         characters.
18840
18841 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
18842
18843         * elf/dl-runtime.c (VERSYMIDX): Removed.
18844         * elf/dl-version.c (VERSYMIDX): Likewise.
18845         * elf/do-rel.h (VERSYMIDX): Likewise.
18846         (VALIDX): Likewise.
18847         * elf/dynamic-link.h (VERSYMIDX): Likewise.
18848         * elf/rtld.c (VALIDX): Likewise.
18849         (ADDRIDX): Likewise.
18850         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
18851         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
18852         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
18853         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
18854         (VALIDX): Likewise.
18855         (ADDRIDX): Likewise.
18856
18857 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18858
18859         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
18860
18861 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
18862
18863         [BZ #11438]
18864         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
18865         to global scope.
18866         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
18867         addresses are in the same scope as 192.0.2/24.
18868         * posix/gai.conf: Document new scope table defaults.
18869
18870 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18871
18872         [BZ #5298]
18873         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
18874         for ftell.  Compute offsets from write pointers instead.
18875         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18876
18877 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18878
18879         [BZ #14543]
18880         * libio/Makefile (tests): New test case tst-fseek.
18881         * libio/tst-fseek.c: New test case to verify that fseek/ftell
18882         combination works in wide mode.
18883         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
18884         state when the external buffer state changes.
18885
18886 2012-09-27  David S. Miller  <davem@davemloft.net>
18887
18888         [BZ #14376]
18889         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
18890         pass reloc->r_addend in as the 'high' argument to
18891         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
18892
18893         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18894
18895 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18896
18897         * rt/tst-aio2.c: Include <pthread.h>.
18898         * rt/tst-aio3.c: Likewise.
18899
18900 2012-09-27  Steve Ellcey  <sellcey@mips.com>
18901
18902         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
18903
18904 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
18905
18906         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
18907         contents on [SHARED].
18908
18909 2012-09-26  Marek Polacek  <polacek@redhat.com>
18910
18911         [BZ #14530]
18912         [BZ #13741]
18913         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
18914         for C++ and GCC <4.3 as well as for non GCC compilers.
18915
18916 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
18917
18918         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18919
18920 2012-09-25  Roland McGrath  <roland@hack.frob.com>
18921
18922         * Makefile.in (all, install): Declare with .PHONY.
18923         Reported by Michael Hope <michael.hope@linaro.org>.
18924
18925 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18926
18927         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
18928         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
18929         system header.
18930         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
18931         Likewise.
18932         (sydep_routines): Add the new and the internal functions.
18933         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
18934         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
18935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
18936         (GLIBC_2.17): Add the new function.
18937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
18938         (GLIBC_2.17): Likewise.
18939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
18940         (GLIBC_2.17): Likewise.
18941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
18942         (GLIBC_2.17): Likewise.
18943         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
18944
18945 2012-09-25  Alan Modra  <amodra@gmail.com>
18946
18947         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
18948         Add release barrier before setting once_control to say
18949         initialisation is done.  Add hints on lwarx.  Use macro in
18950         place of isync.
18951         (clear_once_control): Add release barrier.
18952
18953 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
18954
18955         [BZ #13629]
18956         * math/s_clog.c (__clog): Handle more values close to |z| = 1
18957         specially.
18958         * math/s_clog10.c (__clog10): Likewise.
18959         * math/s_clog10f.c (__clog10f): Likewise.
18960         * math/s_clog10l.c (__clog10l): Likewise.
18961         * math/s_clogf.c (__clogf): Likewise.
18962         * math/s_clogl.c (__clogl): Likewise.
18963         * math/Makefile (libm-calls): Add x2y2m1.
18964         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
18965         (__x2y2m1): Likewise.
18966         (__x2y2m1l): Likewise.
18967         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
18968         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
18969         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
18970         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
18971         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
18972         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
18973         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
18974         * sysdeps/i386/fpu/libm-test-ulps: Update.
18975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18976
18977         [BZ #14621]
18978         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
18979         int as type of variable DEPTH.
18980         (glob): Use size_t instead of int as type of variables NEWCOUNT
18981         and OLD_PATHC.
18982
18983 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18984
18985         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
18986         Add s_sincosf-sse2.
18987         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
18988         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
18989         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
18990         macros for using routine as __sincosf_ia32.
18991         Use macro for function declaration and weak_alias.
18992         * sysdeps/i386/fpu/libm-test-ulps: Update.
18993
18994         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
18995         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18996
18997         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
18998         subnormal argument.
18999         * math/s_cexpf.c (__cexpf): Likewise.
19000         * math/s_csinf.c (__csinf): Likewise.
19001         * math/s_csinhf.c (__csinhf): Likewise.
19002         * math/s_ctanf.c (__ctanf): Likewise.
19003         * math/s_ctanhf.c (__ctanhf): Likewise.
19004         * math/s_ccosh.c (__ccoshf): Likewise.
19005         * math/s_cexp.c (__cexpl): Likewise.
19006         * math/s_csin.c (__csin): Likewise.
19007         * math/s_csinh.c (__csinh): Likewise.
19008         * math/s_ctan.c (__ctan): Likewise.
19009         * math/s_ctanh.c (ctanh): Likewise.
19010         * math/s_ccoshl.c (__ccoshl): Likewise.
19011         * math/s_cexpl.c (__cexpl): Likewise.
19012         * math/s_csinl.c (__csinl): Likewise.
19013         * math/s_csinhl.c (__csinhl): Likewise.
19014         * math/s_ctanl.c (__ctanl): Likewise.
19015         * math/s_ctanhl.c (__ctanhl): Likewise.
19016
19017 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19018
19019         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
19020         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
19021         (_IO_off_t): Define to __off_t, not _G_off_t.
19022         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
19023         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
19024         (_IO_wint_t): Define to wint_t, not _G_wint_t.
19025         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
19026         type of __dummy and __dummy2 fields.
19027         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
19028         (_G_ssize_t): Likewise.
19029         (_G_off_t): Likewise.
19030         (_G_pid_t): Likewise.
19031         (_G_uid_t): Likewise.
19032         (_G_wchar_t): Likewise.
19033         (_G_wint_t): Likewise.
19034         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
19035         (_G_ssize_t): Likewise.
19036         (_G_off_t): Likewise.
19037         (_G_pid_t): Likewise.
19038         (_G_uid_t): Likewise.
19039         (_G_wchar_t): Likewise.
19040         (_G_wint_t): Likewise.
19041         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
19042         (_G_ssize_t): Likewise.
19043         (_G_off_t): Likewise.
19044         (_G_pid_t): Likewise.
19045         (_G_uid_t): Likewise.
19046         (_G_wchar_t): Likewise.
19047         (_G_wint_t): Likewise.
19048
19049 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19050
19051         * malloc/arena.c: Include malloc-sysdep.h.
19052         (shrink_heap): Use check_may_shrink_heap to decide if madvise
19053         is sufficient to shrink the heap or an unmap is needed.
19054         * sysdeps/generic/malloc-sysdep.h: New file.  Define
19055         new function check_may_shrink_heap.
19056         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
19057         new function check_may_shrink_heap.
19058
19059 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19060
19061         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
19062         comments.
19063
19064 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
19065
19066         * catgets/test-gencat.sh: Add "set -e".
19067         * elf/tst-pathopt.sh: Likewise.
19068         * grp/tst_fgetgrent.sh: Likewise.
19069         * iconvdata/run-iconv-test.sh: Likewise.
19070         * intl/tst-gettext.sh: Likewise.
19071         * intl/tst-gettext2.sh: Likewise.
19072         * intl/tst-gettext4.sh: Likewise.
19073         * intl/tst-gettext6.sh: Likewise.
19074         * intl/tst-translit.sh: Likewise.
19075         * io/ftwtest-sh: Likewise.
19076         * libio/test-freopen.sh: Likewise.
19077         * malloc/tst-mtrace.sh: Likewise.
19078         * posix/globtest.sh: Likewise.
19079         * posix/tst-getconf.sh: Likewise.
19080         * posix/wordexp-tst.sh: Likewise.
19081         * stdio-common/tst-printf.sh: Likewise.
19082         * stdio-common/tst-unbputc.sh: Likewise.
19083         * stdlib/tst-fmtmsg.sh: Likewise.
19084         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19085         * catgets/Makefile: Do not specify -e option when running
19086         testsuite shell scripts.
19087         * elf/Makefile: Likewise.
19088         * grp/Makefile: Likewise.
19089         * iconvdata/Makefile: Likewise.
19090         * intl/Makefile: Likewise.
19091         * io/Makefile: Likewise.
19092         * libio/Makefile: Likewise.
19093         * malloc/Makefile: Likewise.
19094         * posix/Makefile: Likewise.
19095         * stdio-common/Makefile: Likewise.
19096         * stdlib/Makefile: Likewise.
19097         * sysdeps/x86_64/Makefile: Likewise.
19098
19099         * io/ftwtest-sh: Add copyright header.
19100         * posix/globtest.sh: Likewise.
19101         * posix/tst-getconf.sh: Likewise.
19102         * posix/wordexp-tst.sh: Likewise.
19103         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19104
19105 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
19106
19107         [BZ #13679]
19108         * Makeconfig (+link): Defined as $(+link-static) if
19109         $(build-shared) isn't yes.
19110         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
19111         isn't yes.
19112         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
19113
19114         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
19115
19116         [BZ #14562]
19117         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
19118         new chunk size with MALLOC_ALIGN_MASK.
19119
19120 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
19121
19122         [BZ #5044]
19123         * stdio-common/printf_fphex.c: Include <stdbool.h> and
19124         <rounding-mode.h>.
19125         (__printf_fphex): Determine rounding using get_rounding_mode and
19126         round_away.
19127         * stdio-common/tst-printf-round.c (struct hex_test): New
19128         structure.
19129         (hex_tests): New variable.
19130         (test_hex_in_one_mode): New function.
19131         (do_test): Also run tests for hex float output.
19132
19133 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
19134
19135         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19136         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19137         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
19138         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19139         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19140         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
19141         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19142         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19143
19144 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
19145
19146         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
19147         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
19148         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
19149         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
19150
19151 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
19152
19153         [BZ #14579]
19154         * elf/rtld.c (dl_main): Limit the check for self loading to normal
19155         mode only.
19156         * elf/tst-rtld-load-self.sh: New test.
19157         * elf/Makefile: Run it.
19158
19159 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
19160
19161         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
19162         (tst-writev-ENV): Remove.
19163         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
19164
19165 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
19166
19167         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
19168
19169 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
19170
19171         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
19172         unconditional.
19173         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
19174         Likewise.
19175         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
19176         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
19177         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
19178         Likewise.
19179
19180 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
19181
19182         [BZ #14587]
19183         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
19184         * config.make.in (have-cpp-asm-debuginfo): Removed.
19185         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
19186         * configure: Regenerated.
19187
19188 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
19189
19190         [BZ #5044]
19191         * stdio-common/printf_fp.c: Include <stdbool.h> and
19192         <rounding-mode.h>.
19193         (___printf_fp): Determine rounding using get_rounding_mode and
19194         round_away.
19195         * stdio-common/tst-printf-round.c: New file.
19196         * stdio-common/Makefile (tests): Add tst-printf-round.
19197         (link-libm): New variable.
19198         ($(objpfx)tst-printf-round): Depend in $(link-libm).
19199
19200 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
19201
19202         [BZ #14576]
19203         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
19204         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
19205         Likewise.
19206         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
19207         Likewise.
19208
19209 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
19210
19211         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
19212         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19213         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19214         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19215
19216 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
19217
19218         [BZ #14518]
19219         * include/rounding-mode.h: New file.
19220         * sysdeps/generic/get-rounding-mode.h: Likewise.
19221         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
19222         * stdlib/strtod_l.c: Include <rounding-mode.h>.
19223         (MAX_VALUE): New macro.
19224         (MIN_VALUE): Likewise.
19225         (overflow_value): New function.
19226         (underflow_value): Likewise.
19227         (round_and_return): Use overflow_value and underflow_value to
19228         determine return values in overflow and underflow cases.  Use
19229         round_away to determine rounding depending on rounding mode.
19230         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
19231         determine return values in overflow and underflow cases.
19232         * stdlib/tst-strtod-round.c: Include <fenv.h>.
19233         (struct test_results): New structure.
19234         (struct test): Use struct test_results to store expected results
19235         for all rounding modes.
19236         (TEST): Include expected results for all rounding modes.
19237         (test_in_one_mode): New function.
19238         (do_test): Use test_in_one_mode to compute and check results.
19239         Check results for all rounding modes.
19240         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
19241         $(link-libm).
19242
19243 2012-12-09  Allan McRae  <allan@archlinux.org>
19244
19245         * sysdeps/i386/fpu/libm-test-ulps: Update
19246
19247 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
19248
19249         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
19250         (_G_int32_t): Likewise.
19251         (_G_uint16_t): Likewise.
19252         (_G_uint32_t): Likewise.
19253         (_G_HAVE_BOOL): Likewise.
19254         (_G_HAVE_ATEXIT): Likewise.
19255         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19256         (_G_HAVE_IO_FILE_OPEN): Likewise.
19257         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
19258         (_G_int32_t): Likewise.
19259         (_G_uint16_t): Likewise.
19260         (_G_uint32_t): Likewise.
19261         (_G_HAVE_BOOL): Likewise.
19262         (_G_HAVE_ATEXIT): Likewise.
19263         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19264         (_G_HAVE_IO_FILE_OPEN): Likewise.
19265         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
19266         (_G_int32_t): Likewise.
19267         (_G_uint16_t): Likewise.
19268         (_G_uint32_t): Likewise.
19269         (_G_HAVE_BOOL): Likewise.
19270         (_G_HAVE_ATEXIT): Likewise.
19271         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19272         (_G_HAVE_IO_FILE_OPEN): Likewise.
19273
19274 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
19275
19276         * csu/libc-tls.c: Update copyright years.
19277
19278 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
19279
19280         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
19281         [!_G_USING_THUNKS]: Remove conditional code.
19282         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
19283         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
19284
19285         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
19286         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
19287         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19288         (_G_VTABLE_LABEL_PREFIX): Likewise.
19289         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19290         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19291         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19292         (_G_VTABLE_LABEL_PREFIX): Likewise.
19293         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19294         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19295         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19296         (_G_VTABLE_LABEL_PREFIX): Likewise.
19297         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19298
19299 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
19300
19301         * libio/Makefile: Include ../Makeconfig before tests.
19302         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
19303         only if $(build-shared) is yes.
19304
19305         * iconv/gconv_db.c: Update copyright years.
19306
19307 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19308
19309         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
19310         unwind info if defined PIC. Fix special cases description.
19311         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
19312
19313         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
19314         DP_HI_MASK entry.
19315         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
19316
19317 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
19318
19319         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
19320
19321         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
19322         is NULL.
19323
19324         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
19325         (LDLIBS-tst-chk4): This.
19326         (LDFLAGS-tst-chk5): Renamed to ...
19327         (LDLIBS-tst-chk5): This.
19328         (LDFLAGS-tst-chk6): Renamed to ...
19329         (LDLIBS-tst-chk6): This.
19330         (LDFLAGS-tst-lfschk4): Renamed to ...
19331         (LDLIBS-tst-lfschk4): This.
19332         (LDFLAGS-tst-lfschk5): Renamed to ...
19333         (LDLIBS-tst-lfschk5): This.
19334         (LDFLAGS-tst-lfschk6): Renamed to ...
19335         (LDLIBS-tst-lfschk6): This.
19336
19337         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
19338         on $(common-objpfx)soversions.mk.
19339
19340 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
19341
19342         [BZ #10014]
19343         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
19344         example host name.
19345
19346 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
19347
19348         * malloc/arena.c (arena_get_retry): New function that gets
19349         another arena for the caller to try its request on.
19350         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
19351         current arena cannot fulfill the request.
19352         (__libc_memalign): Likewise.
19353         (__libc_memalign): Likewise.
19354         (__libc_pvalloc): Likewise.
19355         (__libc_calloc): Likewise.
19356
19357 2012-09-05  John Tobey  <john.tobey@gmail.com>
19358
19359         [BZ #13542]
19360         * manual/arith.texi (Operations on Complex): Fix description
19361         of carg branch cut.
19362
19363 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19364
19365         [BZ #10014]
19366         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
19367         host name.
19368
19369         [BZ #10038]
19370         * manual/memory.texi (Memory): Make order of menu items match
19371         order of sections.
19372
19373 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19374
19375         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
19376         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
19377         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
19378
19379 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19380
19381         * csu/libc-tls.c (static_dtv): Renamed to ...
19382         (_dl_static_dtv): This.  Make it global.
19383         (_dl_initial_dtv): Removed.
19384         (__libc_setup_tls): Updated.
19385         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
19386         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
19387         DL_INITIAL_DTV.
19388
19389 2012-09-06  Petr Machata  <pmachata@redhat.com>
19390
19391         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
19392         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
19393         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
19394         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
19395
19396 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19397
19398         [BZ #14545]
19399         * csu/libc-tls.c (_dl_initial_dtv): New variable.
19400         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
19401         freeing dtv[-1].
19402
19403 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19404
19405         [BZ #14544]
19406         * Makeconfig (link-static-before-libc): Replace $(+prector)
19407         with $(+prectorT).
19408         (link-static-after-libc): Replace $(+postctor) with
19409         $(+postctorT).
19410         (link-bounded): Replace $(+prector)/$(+postctor) with
19411         $(+prectorT)/$(+postctorT).
19412         (+prectorT): New macro.
19413         (+postctorT): Likewise.
19414
19415 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19416
19417         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
19418         (round_str): Handle values above the maximum for IBM long double
19419         as inexact.
19420         * stdlib/tst-strtod-round.c (tests): Regenerated.
19421
19422 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19423
19424         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
19425         assembler flag.
19426         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
19427         zarch_nohighgprs around the zarch optimized routines.
19428         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
19429         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
19430         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
19431         for zarch.
19432
19433 2012-09-05  David S. Miller  <davem@davemloft.net>
19434
19435         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19436
19437         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
19438         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
19439         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
19440         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
19441         entries.
19442
19443 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19444
19445         * malloc/arena.c: Fold copyright years.
19446         * malloc/mcheck.c, malloc/memusage.c: Likewise.
19447
19448 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19449
19450         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
19451
19452 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19453
19454         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
19455
19456 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19457
19458         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
19459         change internal state upon failure.
19460
19461 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19462
19463         * malloc/mcheck.c (mcheck_check_all): Fix typo.
19464         * malloc/memusage.c (mmap): Likewise.
19465         (mmap64, mremap): Likewise.  Adjust name in comment.
19466
19467 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19468
19469         * libio/fileops.c: Fix typos in comments.
19470         * libio/oldfileops.c: Likewise.
19471         * libio/wfileops.c: Likewise.
19472
19473 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19474
19475         [BZ #1349]
19476         * malloc/Makefile (tests): Add tst-malloc-usable test case.
19477         (tst-malloc-usable-ENV): Set environment for test case.
19478         * malloc/hooks.c (malloc_check_get_size): New function to get
19479         requested size.
19480         * malloc/malloc.c (musable): Use malloc_check_get_size.
19481         * malloc/tst-malloc-usable.c: New test case.
19482
19483 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19484
19485         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
19486
19487 2012-09-05  Allan McRae  <allan@archlinux.org>
19488
19489         [BZ #13966]
19490         * configure.in (CXX_SYSINCLUDES): Use compiler output to
19491         determine header location.
19492         * configure: Regenerated.
19493
19494 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19495
19496         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
19497         float format.
19498         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
19499         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
19500         format.
19501         (test): Regenerate.
19502
19503 2012-09-04  David S. Miller  <davem@davemloft.net>
19504
19505         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
19506         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
19507         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
19508
19509 2012-09-04  Florian Weimer  <fweimer@redhat.com>
19510
19511         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
19512         failures.
19513
19514         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
19515
19516 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
19517
19518         [BZ #9914]
19519         * libio/iogetdelim.c: Include <limits.h>.
19520         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
19521         + len + 1 would overflow.
19522
19523 2012-09-03  Andreas Jaeger  <aj@suse.de>
19524
19525         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19526         * sysdeps/i386/fpu/libm-test-ulps: Update.
19527
19528 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19529
19530         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19531         Add s_sinf-sse2, s_conf-sse2.
19532
19533         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
19534         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
19535         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
19536         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
19537
19538         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
19539         for using routine as __sinf_ia32.
19540         Use macro for function declaration and weak_alias.
19541         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
19542         for using routine as __cosf_ia32.
19543         Use macro for function declaration and weak_alias.
19544
19545         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
19546         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
19547
19548         * sysdeps/x86_64/fpu/s_sinf.S: New file.
19549         * sysdeps/x86_64/fpu/s_cosf.S: New file.
19550         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19551
19552         * math/libm-test.inc (cos_test): Add more test cases.
19553         (sin_test): Likewise.
19554         (sincos_test): Likewise.
19555
19556 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19557
19558         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
19559         (IFUNC_RESOLVE): Make pointers to the specialized implementations
19560         hidden.
19561         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
19562
19563 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
19564
19565         [BZ #14538]
19566         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
19567         first element of the GOT.
19568         (elf_machine_load_address): Return the difference between
19569         the runtime address of _DYNAMIC and elf_machine_dynamic ().
19570
19571 2012-09-01  Allan McRae  <allan@archlinux.org>
19572
19573         [BZ #13412]
19574         * configure.in (AWK): Require gawk version 3.0 or later.
19575         * configure: Regenerated.
19576
19577 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
19578
19579         * sysdeps/unix/sysv/linux/kernel-features.h
19580         (__ASSUME_POSIX_CPU_TIMERS): Remove.
19581         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19582         [__NR_clock_getres]: Make code unconditional.
19583         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
19584         (clock_getcpuclockid): Remove code left unreachable by removal of
19585         conditionals.
19586         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
19587         code unconditional.
19588         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19589         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19590         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
19591         Make code unconditional.
19592         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19593         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19594         * sysdeps/unix/sysv/linux/clock_settime.c
19595         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
19596         conditional code.
19597         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
19598         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19599
19600 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
19601
19602         [BZ #14476]
19603         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
19604         scripts/test-installation.pl.
19605
19606         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
19607         and $ld_so_version if it is set.
19608
19609 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19610
19611         [BZ #14516]
19612         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
19613         failure if reading from procfs failed.
19614         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
19615
19616 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19617
19618         * sysdeps/unix/sysv/linux/kernel-features.h
19619         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
19620         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19621         Remove conditional code.
19622         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19623         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
19624         Remove conditional code.
19625         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19626         * sysdeps/unix/sysv/linux/i386/fxstat.c
19627         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19628         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19629         * sysdeps/unix/sysv/linux/i386/fxstatat.c
19630         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19631         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19632         * sysdeps/unix/sysv/linux/i386/lxstat.c
19633         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19634         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19635         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
19636         Remove conditional code.
19637         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19638         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19639         Remove conditional code.
19640         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19641         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
19642         <kernel-features.h>.
19643         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
19644         Remove.
19645         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
19646         Remove conditional code.
19647         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19648         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
19649         Remove conditional.
19650
19651 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
19652
19653         [BZ #5400]
19654         * NEWS: Add fixed bug number.
19655
19656 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19657
19658         [BZ #14519]
19659         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
19660         underflowing exponent in case of negative sign.
19661         * stdlib/tst-strtod-round-data: Add more tests.
19662         * stdlib/tst-strtod-round.c (tests): Regenerated.
19663
19664         [BZ #3479]
19665         * stdlib/strtod_l.c (NDIG): Remove.
19666         (HEXNDIG): Likewise.
19667         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
19668         smallest representable value.
19669         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
19670         lie within an exact representation of 1/2 ulp of the result.
19671         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
19672         unconditionally.
19673         (TENS_P9_IDX): Define unconditionally.
19674         (TENS_P9_SIZE): Likewise.
19675         (TENS_P10_IDX): Likewise.
19676         (TENS_P10_SIZE): Likewise.
19677         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
19678         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
19679         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
19680         entries for 10^2^13 and 10^2^14.
19681         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
19682         (TENS_P13_IDX): Define.
19683         (TENS_P13_SIZE): Likewise.
19684         (TENS_P14_IDX): Likewise.
19685         (TENS_P14_SIZE): Likewise.
19686         (_fpioconst_pow10): Change array size to
19687         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
19688         unconditional.
19689         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
19690         1024]: Add entries for 10^2^13 and 10^2^14.
19691         [LAST_POW10 > _LAST_POW10]: Remove #error.
19692         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
19693         (_fpioconst_pow10): Change array size to
19694         FPIOCONST_POW10_ARRAY_SIZE.
19695         * stdlib/gen-fpioconst.c: New file.
19696         * stdlib/gen-tst-strtod-round.c: Likewise.
19697         * stdlib/tst-strtod-round-data: Likewise.
19698         * stdlib/tst-strtod-round.c: Likewise.
19699         * stdlib/Makefile (tests): Add tst-strtod-round.
19700
19701         [BZ #14459]
19702         * stdlib/strtod_l.c: Include <stdint.h>.
19703         (NDEBUG): Do not define.
19704         (round_and_return): Change EXPONENT parameter to type intmax_t.
19705         Rearrange calculations to avoid internal overflow possibilities.
19706         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
19707         Rearrange calculations to avoid internal overflow possibilities.
19708         Assert that number fits inside MPNSIZE limbs.
19709         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
19710         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
19711         calculations and add assertions to avoid internal overflow
19712         possibilities.  Add casts to avoid signed/unsigned operations.
19713         * stdlib/tst-strtod-overflow.c: New file.
19714         * stdlib/Makefile (tests): Add tst-strtod-overflow.
19715
19716 2012-08-25  Marek Polacek  <polacek@redhat.com>
19717
19718         * time/time.h: Fix some typos in comments.
19719
19720 2012-08-23  Roland McGrath  <roland@hack.frob.com>
19721
19722         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
19723         * posix/tst-rfc3484-2.c: Likewise.
19724         * posix/tst-rfc3484-3.c: Likewise.
19725
19726 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
19727
19728         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
19729         (EF_ARM_ABI_FLOAT_HARD): Likewise.
19730
19731 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
19732
19733         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
19734         #include of fxstatat64.c.
19735
19736 2012-08-22  Roland McGrath  <roland@hack.frob.com>
19737
19738         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
19739         * shadow/getspent_r.c: Likewise.
19740         * shadow/getspnam.c: Likewise.
19741         * shadow/getspnam_r.c: Likewise.
19742         * gshadow/getsgent.c: Likewise.
19743         * gshadow/getsgent_r.c: Likewise.
19744         * gshadow/getsgnam.c: Likewise.
19745         * gshadow/getsgnam_r.c: Likewise.
19746         * inet/getnetbyad.c: Likewise.
19747         * inet/getnetbyad_r.c: Likewise.
19748         * inet/getnetbynm.c: Likewise.
19749         * inet/getnetbynm_r.c: Likewise.
19750         * inet/getnetent.c: Likewise.
19751         * inet/getnetent_r.c: Likewise.
19752         * inet/getproto.c: Likewise.
19753         * inet/getproto_r.c: Likewise.
19754         * inet/getprtent.c: Likewise.
19755         * inet/getprtent_r.c: Likewise.
19756         * inet/getprtname.c: Likewise.
19757         * inet/getprtname_r.c: Likewise.
19758         * inet/getrpcbyname.c: Likewise.
19759         * inet/getrpcbyname_r.c: Likewise.
19760         * inet/getrpcbynumber.c: Likewise.
19761         * inet/getrpcbynumber_r.c: Likewise.
19762         * inet/getrpcent.c: Likewise.
19763         * inet/getrpcent_r.c: Likewise.
19764         * inet/getaliasent.c: Likewise.
19765         * inet/getaliasent_r.c: Likewise.
19766         * inet/getaliasname.c: Likewise.
19767         * inet/getaliasname_r.c: Likewise.
19768         * nscd/getgrgid_r.c: Likewise.
19769         * nscd/getgrnam_r.c: Likewise.
19770         * nscd/gethstbyad_r.c: Likewise.
19771         * nscd/gethstbynm3_r.c: Likewise.
19772         * nscd/getpwnam_r.c: Likewise.
19773         * nscd/getpwuid_r.c: Likewise.
19774         * nscd/getsrvbynm_r.c: Likewise.
19775         * nscd/getsrvbypt_r.c: Likewise.
19776         * nscd/gai.c: Likewise.
19777
19778         * configure.in (build_nscd): New substituted variable, set
19779         by --disable-build-nscd and defaults to $use_nscd.
19780         * configure: Regenerated.
19781         * config.make.in (build-nscd): New substituted variable.
19782         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
19783         Change conditional to require [$(build-nscd) = yes] as well.
19784         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
19785
19786         [BZ# 13696]
19787         * configure.in (use_nscd): New substituted variable, set by
19788         --disable-nscd.  If enabled, define USE_NSCD.
19789         * configure: Regenerated.
19790         * config.h.in: Add USE_NSCD.
19791         * config.make.in (use-nscd): New substituted variable.
19792         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19793         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
19794         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
19795         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
19796         (CFLAGS-getgrnam_r.c): Likewise.
19797         (CFLAGS-initgroups.c): Likewise.
19798         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
19799         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
19800         Variables removed.
19801         * inet/getnetgrent_r.c
19802         (nscd_setnetgrent): New function, broken out of ...
19803         (setnetgrent): ... here.  Call it.
19804         (innetgr): Conditionalize nscd bits on [USE_NSCD].
19805         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
19806         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
19807         * nscd/Makefile (routines, aux): Move definitions after include of
19808         Makeconfig.  Conditionalize on [$(use-nscd) != no].
19809         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
19810         Conditionalize on [USE_NSCD].
19811         (is_nscd, nscd_init_cb): Likewise.
19812         (nss_load_library): Conditionalize init callback on [USE_NSCD].
19813         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
19814         * nss/nss_db/db-init.c: Likewise.
19815         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
19816         [USE_NSCD].
19817         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
19818         (make_request): Use it.
19819         (cache_valid_p): New function.
19820         (__check_pf): Use it.
19821         * NEWS: Add item for --disable-nscd.
19822
19823 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
19824
19825         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
19826         to support sed >= 4.2.1-20-ga9bf076.
19827         * configure: Regenerated.
19828
19829 2012-08-22  Roland McGrath  <roland@hack.frob.com>
19830
19831         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
19832         Conditionalize whole body on [IREL].
19833
19834 2012-08-22  Jeff Law <law@redhat.com>
19835
19836         [BZ #14505]
19837         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
19838         if the family is PF_UNSPEC.
19839
19840 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
19841
19842         * Makerules (lib-version): Rename from V.
19843         (install-lib-nosubdir): Change V to lib-version.
19844
19845 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
19846
19847         [BZ #14252]
19848         * powerpc32/power6/wcschr.c: New file.
19849         * powerpc32/power6/wcscpy.c: New file.
19850         * powerpc32/power6/wcsrchr.c: New file.
19851         * powerpc64/power6/wcschr.c: New file.
19852         * powerpc64/power6/wcscpy.c: New file.
19853         * powerpc64/power6/wcsrchr.c: New file.
19854
19855 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
19856
19857         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
19858         (two_way_short_needle): Use it.
19859         * string/strstr.c (AVAILABLE1_USES_J): Define.
19860         * string/strcasestr.c: Likewise.
19861
19862         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
19863         array references.
19864         * string/strcasestr.c (TOLOWER): Make side-effect safe.
19865
19866         [BZ #11607]
19867         * NEWS: Add an entry.
19868         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
19869         define their defaults.
19870         (two_way_short_needle): Detect end-of-string on-the-fly.
19871         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
19872         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
19873         * string/bug-strcasestr1.c: New test.
19874         * string/Makefile: Run it.
19875
19876 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
19877
19878         [BZ #11607]
19879         * string/str-two-way.h (two_way_short_needle): Optimize matching of
19880         the first character.
19881
19882 2012-08-21  Roland McGrath  <roland@hack.frob.com>
19883
19884         * csu/elf-init.c (__libc_csu_irel): Function removed.
19885         * csu/libc-start.c (apply_irel): New function.
19886         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
19887
19888 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
19889
19890         * sysdeps/unix/sysv/linux/kernel-features.h
19891         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
19892         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
19893         <kernel-features.h>.
19894         [__NR_fadvise64_64]: Make code unconditional.
19895         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
19896         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
19897         !__NR_fadvise64_64)]: Likewise.
19898         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
19899         !__NR_fadvise64_64))]: Likewise.
19900         [__NR_fadvise64]: Make code unconditional.
19901         [!__NR_fadvise64]: Remove conditional code.
19902         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
19903         <kernel-features.h>.
19904         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19905         unconditional.
19906         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19907         conditional code.
19908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
19909         not include <kernel-features.h>.
19910         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19911         unconditional.
19912         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19913         conditional code.
19914         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
19915         include <kernel-features.h>.
19916         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19917         unconditional.
19918         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19919         conditional code.
19920
19921 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
19922
19923         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
19924         slight instruction rearrangements per scrollpipe analysis.
19925         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
19926
19927 2012-08-20  Roland McGrath  <roland@hack.frob.com>
19928
19929         * manual/syslog.texi (syslog; vsyslog, closelog):
19930         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
19931         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
19932
19933         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
19934         DSOCAPS to match condition on defining it.
19935
19936 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
19937
19938         * sysdeps/unix/sysv/linux/kernel-features.h
19939         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
19940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
19941         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19942         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
19944         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19945         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
19947         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19948         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19949
19950         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
19951         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
19952
19953         * sysdeps/unix/sysv/linux/kernel-features.h
19954         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
19955         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
19956         unconditional.
19957         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19958         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
19959         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
19960         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19961         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
19962         Make code unconditional.
19963         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19964         (__mmap64) [!__NR_mmap2]: Likewise.
19965         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
19966         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
19967         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19968         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
19969         [__NR_mmap2]: Make code unconditional.
19970         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19971         (__mmap64) [!__NR_mmap2]: Likewise.
19972
19973 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19974
19975         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
19976
19977 2012-08-18  Andreas Jaeger  <aj@suse.de>
19978
19979         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
19980
19981 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
19982
19983         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
19984         * include/unistd.h (__have_sock_cloexec): Likewise.
19985         (__have_pipe2): Likewise.
19986         (__have_dup3): Likewise.
19987
19988 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
19989
19990         [BZ #9685]
19991         * include/unistd.h (__have_pipe2): Change define into an extern int.
19992         (__have_dup3): Likewise.
19993         * socket/have_sock_cloexec.c: Include fcntl.h.
19994         (__have_pipe2): New variable.
19995         (__have_dup3): Likewise.
19996
19997 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
19998
19999         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
20000
20001 2012-08-17  Marek Polacek  <polacek@redhat.com>
20002
20003         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
20004         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
20005
20006 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20007
20008         * configure.in: Add AC_SUBST for sysheaders.
20009         * configure: Regenerated.
20010         * config.make.in (sysheaders): New substituted variable.
20011
20012         * sysdeps/unix/mkfifo.c: Moved ...
20013         * sysdeps/posix/mkfifo.c: ... here.
20014         * sysdeps/unix/mkfifoat.c: Moved ...
20015         * sysdeps/posix/mkfifoat.c: ... here.
20016
20017         * sysdeps/unix/utime.c: Moved ...
20018         * sysdeps/posix/utime.c: ... here.
20019
20020         * sysdeps/unix/time.c: Moved ...
20021         * sysdeps/posix/time.c: ... here.
20022         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
20023         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
20024
20025         * sysdeps/unix/nice.c: Moved ...
20026         * sysdeps/posix/nice.c: ... here.
20027
20028         * sysdeps/unix/alarm.c: Moved ...
20029         * sysdeps/posix/alarm.c: ... here.
20030
20031         * intl/Makefile ($(codeset_mo)): Depend on the input file.
20032
20033 2012-08-17  Jeff Law <law@redhat.com>
20034
20035         * intl/Makefile (codeset_mo): New variable.
20036         ($(codeset_mo)): New target.
20037         (tst-codeset.out): Depend on that.  Remove explicit rule.
20038         (tst-gettext3.out, tst-gettext5.out): Likewise.
20039         (LOCPATH-ENV, tst-codeset-ENV): New variables.
20040         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
20041         * intl/tst-codeset.sh: Remove.
20042         * intl/tst-gettext3.sh: Likewise.
20043         * intl/tst-gettext5.sh: Likewise.
20044
20045 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20046
20047         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
20048         * sysdeps/unix/syscalls.list: ... here.
20049
20050         * sysdeps/posix/getaddrinfo.c
20051         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
20052         (gaiconf_init, gaiconf_reload): Use them.
20053         [!_STATBUF_ST_NSEC]
20054         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
20055         Define using time_t rather than struct timespec.
20056
20057         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
20058         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
20059         Macros removed.
20060         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
20061         [!NO_THREADS].
20062         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
20063         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
20064         Likewise.
20065
20066         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
20067         __libc_cleanup_push argument.
20068
20069         * bits/param.h: New file.
20070         * misc/sys/param.h: New file.
20071         * include/sys/param.h: New file.
20072         * misc/Makefile (headers): Add bits/param.h.
20073         * sysdeps/generic/sys/param.h: File removed.
20074         * sysdeps/unix/sysv/linux/bits/param.h: New file.
20075         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
20076         * sysdeps/mach/hurd/bits/param.h: New file.
20077         * sysdeps/mach/hurd/sys/param.h: File removed.
20078
20079         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
20080         last change.
20081
20082         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
20083         [_IO_MTSAFE_IO].
20084         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
20085         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
20086         New macros.
20087
20088         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
20089         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
20090         rather than -D_IO_MTSAFE_IO conditionally.
20091         * stdio-common/Makefile (CPPFLAGS): Likewise.
20092         * wcsmbs/Makefile (CPPFLAGS): Likewise.
20093         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
20094         Use $(libio-mtsafe).
20095         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
20096         of -D_IO_MTSAFE_IO.
20097         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
20098         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
20099         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
20100         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
20101         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
20102         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
20103         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
20104         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
20105         (CFLAGS-fread_u_chk.c): Likewise.
20106         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
20107         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
20108         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
20109         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
20110         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
20111         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
20112         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
20113         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
20114         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
20115
20116         * libio/Makefile: Test [$(libc-reentrant) = yes]
20117         instead of [$(filter %REENTRANT, $(defines)) nonempty].
20118
20119         * Makeconfig
20120         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
20121         * sysdeps/pthread/configure: File removed.
20122         * sysdeps/pthread/Makeconfig: New file.
20123         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
20124         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
20125
20126 2012-08-16  Gary Benson  <gbenson@redhat.com>
20127
20128         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
20129         unmapping the first object in a namespace.
20130
20131 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20132
20133         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
20134         (__internal_setnetgrent): ... this.  Add internal_function to
20135         definition.  Add libc_hidden_def.
20136         (setnetgrent): Update caller.
20137         (internal_endnetgrent): Renamed to ...
20138         (__internal_endnetgrent): ... this.  Add internal_function to
20139         definition.  Add libc_hidden_def.
20140         (endnetgrent): Update caller.
20141         (internal_getnetgrent_r): Renamed to ...
20142         (__internal_getnetgrent_r): ... this.  Add internal_function to
20143         definition.  Add libc_hidden_def.
20144         (__getnetgrent_r): Update caller.
20145         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
20146
20147 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20148
20149         * stdlib/longlong.h: Update from GCC.
20150
20151 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20152
20153         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
20154         on _QL, which is set by umul_ppmm but never used.
20155         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
20156         variables, which are set by GMP macros but never used.
20157         * stdio-common/_itowa.c (_itowa): Likewise.
20158         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
20159         * stdlib/mod_1.c (mpn_mod_1): Likewise.
20160
20161 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
20162
20163         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
20164         struct La_sh_regs is not constant.
20165         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
20166         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
20167         and struct La_sparc64_regs are not constant.
20168
20169 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20170
20171         * sysdeps/unix/sysv/linux/kernel-features.h
20172         (__ASSUME_POSIX_TIMERS): Remove.
20173         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
20174         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20175         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
20176         Make code unconditional.
20177         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20178         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
20179         Make code unconditional.
20180         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20181         * sysdeps/unix/sysv/linux/clock_nanosleep.c
20182         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
20183         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20184         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
20185         Make code unconditional.
20186         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20187         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
20188         (__libc_missing_posix_timers): Remove.
20189
20190 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20191
20192         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
20193         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
20194
20195         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
20196
20197         * elf/dl-sym.c: Include <stdlib.h>.
20198
20199         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
20200         constants, which avoids warnings in 32-bit builds.
20201
20202         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
20203         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
20204
20205         * misc/lseek.c: File moved to ...
20206         * io/lseek.c: ... here.
20207
20208         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
20209
20210         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
20211         shifting LEN more than 31 bits at once.
20212
20213 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20214
20215         [BZ #14195]
20216         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
20217         segmentation fault for a case of two empty input strings.
20218         * string/test-strncasecmp.c (check1): Renamed to...
20219         (bz12205): ...this.
20220         (bz14195): Add new testcase for two empty input strings and N > 0.
20221         (test_main): Call new testcase, adapt for renamed function.
20222
20223 2012-08-15  Andreas Jaeger  <aj@suse.de>
20224
20225         [BZ #14090]
20226         * crypt/md5test2.c: New test, based on test supplied by Serge
20227         Belyshev <belyshev@depni.sinp.msu.ru>.
20228         * crypt/Makefile (xtests): Add md5test-giant..
20229         * crypt/Makefile ($(objpfx)md5test-giant): Add.
20230
20231 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20232
20233         [BZ #14090]
20234         * crypt/md5.c (md5_process_block): Don't assume the buffer
20235         length is less than 2**32.
20236         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
20237         length is less than 2**64.
20238
20239 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20240
20241         * string/str-two-way.h: Include <sys/param.h>.
20242         (MAX): Macro removed.
20243
20244         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
20245         Move #define and #undef of memmove to just before and after
20246         including <string.h>.
20247
20248         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
20249         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
20250         and after including <string.h>.  Move declarations of
20251         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
20252         to before #include "string/memmove.c".
20253
20254         * include/dirent.h: Declare __getdirentries.
20255
20256         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
20257         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
20258
20259 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
20260
20261         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
20262         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
20263         * sysdeps/i386/configure: Regenerated.
20264         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
20265         STABS_CURRENT_FILE, and STABS_FUN.
20266         (END): Remove call to STABS_FUN_END.
20267         (STABS_CURRENT_FILE1): Delete.
20268         (STABS_CURRENT_FILE): Likewise.
20269         (STABS_FUN): Likewise.
20270         (STABS_FUN_END): Likewise.
20271         (STABS_FUN2): Likewise.
20272         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
20273         * sysdeps/x86_64/configure: Regenerated.
20274
20275 2012-08-14  Roland McGrath  <roland@hack.frob.com>
20276
20277         * elf/dl-open.c: Include <atomic.h>.
20278         * elf/dl-lookup.c: Likewise.
20279
20280 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
20281
20282         * sysdeps/unix/sysv/linux/kernel-features.h
20283         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
20284         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
20285         unconditionally.
20286         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
20287         unconditionally.
20288         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
20289         condition on __ASSUME_CLONE_THREAD_FLAGS.
20290
20291 2012-08-14  Andreas Jaeger  <aj@suse.de>
20292
20293         * sysdeps/i386/fpu/libm-test-ulps: Update.
20294
20295 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
20296
20297         * include/atomic.h (atomic_exchange_and_add): Split into ...
20298         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
20299         New atomic macros.
20300
20301 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
20302
20303         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20304
20305 2012-08-13  Jeff Law <law@redhat.com>
20306
20307         * manual/stdio.texi (snprintf): Clarify handling of the trailing
20308         null byte in the output string.
20309
20310 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
20311
20312         * sysdeps/unix/sysv/linux/kernel-features.h
20313         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
20314         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
20315         (__ASSUME_ARG_MAX_STACK_BASED): Define.
20316         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
20317         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
20318         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
20319         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
20320
20321 2012-08-09  Jeff Law <law@redhat.com>
20322
20323         [BZ #13939]
20324         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
20325         When avoid_arena is set, don't retry in the that arena.  Pick the
20326         next one, whatever it might be.
20327         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
20328         (arena_lock): Pass in new parameter to arena_get2.
20329         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
20330         arena_get2.
20331         (__libc_malloc): Unify retrying after main arena failure with
20332         __libc_memalign version.
20333         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
20334
20335 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20336
20337         [BZ #14166]
20338         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
20339         to __redirect_strstr.
20340         (__strstr_sse42): Use typeof __redirect_strstr.
20341         (__strstr_ia32): Likewise.
20342         (__libc_strstr): New prototype.
20343         (strstr): Renamed to ...
20344         (__libc_strstr): This.
20345         (strstr): New strong alias of __libc_strstr.
20346         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
20347         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
20348         __redirect_time.
20349         Include <time.h>.
20350         (__libc_time): New prototype.
20351         (time_ifunc): Replace time with __libc_time.
20352         (time): New strong alias and hidden definition of __libc_time.
20353         (__GI_time): Remove strong alias.
20354         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
20355         Include <stddef.h>.
20356         (memmove): Redefined to __redirect_memmove.
20357         (__memmove_sse2): Use typeof __redirect_memmove.
20358         (__memmove_ssse3): Likewise.
20359         (__memmove_ssse3_back): Likewise.
20360         (__libc_memmove): New prototype.
20361         (memmove): Renamed to ...
20362         (__libc_memmove): This.
20363         (memmove): New strong alias of __libc_memmove.
20364
20365 2012-08-08  Mark Salter  <msalter@redhat.com>
20366
20367         * elf/elf.h
20368         (R_MN10300_TLS_GD): Define.
20369         (R_MN10300_TLS_LD): Likewise.
20370         (R_MN10300_TLS_LDO): Likewise.
20371         (R_MN10300_TLS_GOTIE): Likewise.
20372         (R_MN10300_TLS_IE): Likewise.
20373         (R_MN10300_TLS_LE): Likewise.
20374         (R_MN10300_TLS_DTPMOD): Likewise.
20375         (R_MN10300_TLS_DTPOFF): Likewise.
20376         (R_MN10300_TLS_TPOFF): Likewise.
20377         (R_MN10300_SYM_DIFF): Likewise.
20378         (R_MN10300_ALIGN): Likewise.
20379         (R_MN10300_NUM): Update.
20380
20381 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
20382
20383         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
20384         Remove.
20385
20386 2012-08-08  Roland McGrath  <roland@hack.frob.com>
20387
20388         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
20389
20390         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
20391         sysdeps/unix -> sysdeps/posix move.
20392         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
20393
20394 2012-08-07      Allan McRae     <allan@archlinux.org>
20395
20396         [BZ #14303]
20397         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
20398         (SUNOS_CPP): Likewise.
20399         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
20400         not found.
20401         (open_input): Call CPP using execvp.
20402
20403 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20404
20405         * sysdeps/unix/sysv/linux/kernel-features.h
20406         (__ASSUME_PROT_GROWSUPDOWN): Remove.
20407         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20408         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20409         (__ASSUME_WAITID_SYSCALL): Likewise.
20410         * sysdeps/unix/sysv/linux/dl-execstack.c
20411         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
20412         code unconditional.
20413         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
20414         conditional code.
20415         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
20416         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
20417         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
20418         code.
20419         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
20420         unconditional.
20421         [__ASSUME_WAITID_SYSCALL]: Likewise.
20422         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
20423
20424 2012-08-07  Roland McGrath  <roland@hack.frob.com>
20425
20426         * sysdeps/unix/closedir.c: Renamed to ...
20427         * sysdeps/posix/closedir.c: ... here.
20428         * sysdeps/unix/dirfd.c: Renamed to ...
20429         * sysdeps/posix/dirfd.c: ... here.
20430         * sysdeps/unix/dirstream.h: Renamed to ...
20431         * sysdeps/posix/dirstream.h: ... here.
20432         * sysdeps/unix/fdopendir.c: Renamed to ...
20433         * sysdeps/posix/fdopendir.c: ... here.
20434         * sysdeps/unix/opendir.c: Renamed to ...
20435         * sysdeps/posix/opendir.c: ... here.
20436         * sysdeps/unix/readdir.c: Renamed to ...
20437         * sysdeps/posix/readdir.c: ... here.
20438         * sysdeps/unix/readdir_r.c: Renamed to ...
20439         * sysdeps/posix/readdir_r.c: ... here.
20440         * sysdeps/unix/rewinddir.c: Renamed to ...
20441         * sysdeps/posix/rewinddir.c: ... here.
20442         * sysdeps/unix/seekdir.c: Renamed to ...
20443         * sysdeps/posix/seekdir.c: ... here.
20444         * sysdeps/unix/telldir.c: Renamed to ...
20445         * sysdeps/posix/telldir.c: ... here.
20446         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
20447         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
20448         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
20449         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
20450
20451         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
20452         * bits/fcntl.h: ... here.
20453
20454         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
20455         not 0.
20456         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
20457         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
20458         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
20459         (struct flock): Move l_start, l_len to the beginning.
20460         Use __pid_t for l_pid.
20461         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
20462         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
20463         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
20464         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
20465         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
20466         [__USE_LARGEFILE64] (struct flock64): New type.
20467         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
20468
20469         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
20470         * bits/dirent.h: ... here.
20471
20472         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
20473         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
20474
20475 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20476
20477         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20478         Change from 2.6.0 to 2.6.16.
20479         * sysdeps/unix/sysv/linux/configure: Regenerated.
20480         * sysdeps/unix/sysv/linux/kernel-features.h
20481         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
20482         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
20483         version.
20484         (__ASSUME_UTIMES): Likewise.
20485         (__ASSUME_CLONE_STOPPED): Remove.
20486         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
20487         architectures, not kernel version.
20488         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
20489         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20490         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20491         (__ASSUME_WAITID_SYSCALL): Likewise.
20492         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
20493         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
20494         * README: State 2.6.16 as minimum Linux kernel version.  Do not
20495         refer to older versions.
20496
20497 2012-08-06  Roland McGrath  <roland@hack.frob.com>
20498
20499         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
20500         Define alphasort64 as an alias.
20501         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
20502         Define versionsort64 as an alias.
20503         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
20504         Define scandir64 as an alias.
20505         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
20506         Define scandirat64 as an alias.
20507         * dirent/alphasort64.c (alphasort64):
20508         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
20509         * dirent/versionsort64.c: Likewise.
20510         * dirent/scandir64.c: Likewise.
20511         * dirent/scandirat64.c: Likewise.
20512         * sysdeps/wordsize-64/alphasort.c: File removed.
20513         * sysdeps/wordsize-64/alphasort64.c: File removed.
20514         * sysdeps/wordsize-64/scandir.c: File removed.
20515         * sysdeps/wordsize-64/scandir64.c: File removed.
20516         * sysdeps/wordsize-64/scandirat.c: File removed.
20517         * sysdeps/wordsize-64/scandirat64.c: File removed.
20518         * sysdeps/wordsize-64/versionsort.c: File removed.
20519         * sysdeps/wordsize-64/versionsort64.c: File removed.
20520         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
20521         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
20522         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
20523         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
20524         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
20525         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
20526         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
20527         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
20528
20529         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
20530         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20531         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
20532         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20533         [defined __arch64__ || defined __sparcv9]
20534         (__INO_T_MATCHES_INO64_T): New macro.
20535         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20536         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
20537         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
20538         * sysdeps/unix/sysv/linux/bits/dirent.h
20539         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
20540         (_DIRENT_MATCHES_DIRENT64): New macro.
20541
20542         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
20543         Define lockf64 as an alias.
20544         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
20545         Define fseeko64 as an alias.
20546         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
20547         Define ftello64 as an alias.
20548         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
20549         Define _IO_fgetpos64 and fgetpos64 as aliases.
20550         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
20551         Define _IO_fsetpos64 and fsetpos64 as aliases.
20552         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
20553         Conditionalize body on this.
20554         * libio/fseeko64.c: Likewise.
20555         * libio/ftello64.c: Likewise.
20556         * libio/iofgetpos64.c: Likewise.
20557         * libio/iofsetpos64.c: Likewise.
20558         * sysdeps/wordsize-64/lockf.c: File removed.
20559         * sysdeps/wordsize-64/lockf64.c: File removed.
20560         * sysdeps/wordsize-64/fseeko.c: File removed.
20561         * sysdeps/wordsize-64/fseeko64.c: File removed.
20562         * sysdeps/wordsize-64/ftello.c: File removed.
20563         * sysdeps/wordsize-64/ftello64.c: File removed.
20564         * sysdeps/wordsize-64/iofgetpos.c: File removed.
20565         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
20566         * sysdeps/wordsize-64/iofsetpos.c: File removed.
20567         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
20568         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
20569         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
20570         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
20571         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
20572         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
20573         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
20574         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
20575         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
20576         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
20577         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
20578
20579         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20580         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20581         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
20582         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20583         [defined __arch64__ || defined __sparcv9]
20584         (__OFF_T_MATCHES_OFF64_T): New macro.
20585         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20586         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20587         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20588         (__OFF_T_MATCHES_OFF64_T): New macro.
20589
20590 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20591
20592         * stdlib/secure-getenv.c (__secure_getenv): Replace
20593         GLIBC_2_16 with GLIBC_2_17.
20594
20595 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20596
20597         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
20598         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
20599
20600 2012-08-03  David S. Miller  <davem@davemloft.net>
20601
20602         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20603
20604 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20605
20606         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
20607         Remove.
20608         (__ASSUME_CORRECT_SI_PID): Likewise.
20609         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
20610         (__ASSUME_TMPFS_NAME): Likewise.
20611         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
20612         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
20613         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
20614         (HAVE_AUX_SECURE): Make definition unconditional.
20615         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
20616         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
20617
20618 2012-08-03  Roland McGrath  <roland@hack.frob.com>
20619
20620         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
20621         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
20622         * sysdeps/mach/hurd/eloop-threshold.h: New file.
20623         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20624         __eloop_threshold instead of SYMLOOP_MAX.
20625
20626         * sysdeps/generic/eloop-threshold.h: New file.
20627         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
20628         of MAXSYMLINKS.
20629         * elf/chroot_canon.c (chroot_canon): Likewise.
20630
20631 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20632
20633         [BZ #13717]
20634         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20635         Change to 2.6.0 everywhere.
20636         * sysdeps/unix/sysv/linux/configure: Regenerated.
20637         * sysdeps/unix/sysv/linux/kernel-features.h
20638         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
20639         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
20640         kernel versions.
20641         (__ASSUME_POSIX_TIMERS): Define unconditionally.
20642         (__ASSUME_FUTEX_REQUEUE): Remove.
20643         (__ASSUME_STATFS64): Define unconditionally.
20644         (__ASSUME_AT_SECURE): Likewise.
20645         (__ASSUME_CORRECT_SI_PID): Likewise.
20646         (__ASSUME_TGKILL): Define without depending on kernel version for
20647         i386.
20648         (__ASSUME_UTIMES): Likewise.
20649         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
20650         kernel version.
20651         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
20652         (__ASSUME_TMPFS_NAME): Likewise.
20653         * README: Update reference to Linux kernel versions.
20654
20655 2012-08-02  Marek Polacek  <polacek@redhat.com>
20656
20657         [BZ# 14150]
20658         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
20659         libc_cv_asm_type_prefix with %.
20660         * configure: Regenerated.
20661         * include/libc-symbols.h: Remove comment about
20662         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20663         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
20664         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
20665         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
20666         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
20667         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20668         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
20669         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
20670         * elf/tst-unique2mod1.c: Likewise.
20671         * elf/tst-unique1mod2.c: Likewise.
20672         * elf/tst-unique1mod1.c: Likewise.
20673         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
20674         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
20675         Replace ASM_TYPE_DIRECTIVE with .type.
20676         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20677         * sysdeps/i386/sysdep.h: Likewise.
20678         * sysdeps/x86_64/sysdep.h: Likewise.
20679         * sysdeps/sh/sysdep.h: Likewise.
20680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20681         Do not define ASM_TYPE_DIRECTIVE.
20682         * sysdeps/powerpc/sysdep.h: Likewise.
20683         * sysdeps/powerpc/powerpc32/sysdep.h:
20684         Replace ASM_TYPE_DIRECTIVE with .type.
20685         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
20686         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
20687         * sysdeps/i386/fpu/e_powf.S: Likewise.
20688         * sysdeps/i386/fpu/e_expl.S: Likewise.
20689         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20690         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20691         * sysdeps/i386/fpu/e_pow.S: Likewise.
20692         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
20693         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20694         * sysdeps/i386/fpu/s_expm1.S: Likewise.
20695         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
20696         * sysdeps/i386/fpu/e_log2.S: Likewise.
20697         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20698         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20699         * sysdeps/i386/fpu/e_powl.S: Likewise.
20700         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20701         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
20702         * sysdeps/i386/fpu/e_logl.S: Likewise.
20703         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
20704         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
20705         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
20706         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20707         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20708         * sysdeps/i386/fpu/e_log.S: Likewise.
20709         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20710         * sysdeps/i386/fpu/e_logf.S: Likewise.
20711         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20712         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20713         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20714         * sysdeps/i386/fpu/e_log10.S: Likewise.
20715         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20716         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20717         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20718         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20719         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20720         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
20721         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
20722         * sysdeps/i386/i686/strtok.S: Likewise.
20723         * sysdeps/i386/i386-mcount.S: Likewise.
20724         * sysdeps/i386/strtok.S: Likewise.
20725         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
20726         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20727         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20728         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20729         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
20730         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20731         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
20732         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
20733         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20734         * sysdeps/x86_64/_mcount.S: Likewise.
20735         * sysdeps/x86_64/strtok.S: Likewise.
20736         * sysdeps/sh/_mcount.S: Likewise.
20737
20738 2012-08-01  Roland McGrath  <roland@hack.frob.com>
20739
20740         * libio/iofopen.c: Include <fcntl.h>.
20741         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
20742         (_IO_fopen64, fopen64): Define as aliases.
20743         * libio/iofopen64.c: Include <fcntl.h>.
20744         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
20745         Conditionalize body on this.
20746         * sysdeps/wordsize-64/iofopen.c: File removed.
20747         * sysdeps/wordsize-64/iofopen64.c: File removed.
20748
20749 2012-08-01  Marek Polacek  <polacek@redhat.com>
20750
20751         * libc/Makeconfig: Use elf in place of binfmt-subdir.
20752         Use dlfcn directly instead of a variable.
20753         (binfmt-subdir): Do not define.
20754         (dlfcn): Likewise.
20755
20756 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
20757
20758         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
20759         Remove all definitions.
20760         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
20761         <kernel-features.h>.
20762         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
20763         (miss_F_GETOWN_EX): Remove all definitions.
20764         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
20765         macro definition.
20766         [!__ASSUME_FCNTL64]: Remove conditional code.
20767         [__ASSUME_FCNTL64]: Make code unconditional.
20768         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
20769         <kernel-features.h>.
20770         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
20771         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
20772         (lockf64) [__NR_fcntl64]: Make code unconditional.
20773         (lockf64) [__ASSUME_FCNTL64]: Likewise.
20774
20775         * sysdeps/unix/sysv/linux/kernel-features.h
20776         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
20777         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
20778         Make code unconditional.
20779         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20780         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
20782         [__NR_vfork]: Make code unconditional.
20783         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20784         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
20786         [__NR_vfork]: Make code unconditional.
20787         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20788         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20789
20790 2012-08-01  Roland McGrath  <roland@hack.frob.com>
20791
20792         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
20793         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
20794
20795         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20796         Define mkstemp64 as an alias.
20797         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20798         Define mkstemps64 as an alias.
20799         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20800         Define mkostemp64 as an alias.
20801         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20802         Define mkostemps64 as an alias.
20803         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
20804         Conditionalize body on this.
20805         * misc/mkostemp64.c: Likewise.
20806         * misc/mkostemps64.c: Likewise.
20807         * misc/mkstemps64.c: Likewise.
20808         * sysdeps/wordsize-64/mkstemp64.c: File removed.
20809         * sysdeps/wordsize-64/mkostemp64.c: File removed.
20810         * sysdeps/wordsize-64/mkostemp.c: File removed.
20811         * sysdeps/wordsize-64/mkstemp.c: File removed.
20812         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
20813         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
20814         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
20815         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
20816
20817         [BZ #14138]
20818         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
20819         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
20820         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
20821         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
20822
20823         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
20824         compat_symbol macros from <shlib-compat.h> rather than the underlying
20825         default_symbol_version and symbol_version macros, so that DEFAULT
20826         lines in shlib-versions are respected.
20827         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
20828
20829 2012-08-01  Florian Weimer  <fweimer@redhat.com>
20830
20831         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
20832         Declare with warn_unused_result.
20833         (setgid, setregid, setegid, setresgid): Likewise.
20834         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
20835         Likewise.
20836         * WUR-REPORT: Remove set*id functions.
20837
20838 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
20839
20840         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
20841
20842 2012-07-31  Roland McGrath  <roland@hack.frob.com>
20843
20844         [BZ #10191]
20845         * include/sys/socket.h (__libc_accept, __libc_accept4):
20846         Add attribute_hidden.
20847         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
20848
20849         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
20850         use of PTR_MANGLE.
20851         * inet/getnetgrent_r.c (setup): Likewise.
20852
20853         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
20854
20855 2012-07-31  David S. Miller  <davem@davemloft.net>
20856
20857         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20858
20859 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
20860
20861         [BZ #13629]
20862         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
20863         value between 1.0 and 2.0 and smaller part has absolute value less
20864         than 1.0.
20865         * math/s_clog10.c (__clog10): Likewise.
20866         * math/s_clog10f.c (__clog10f): Likewise.
20867         * math/s_clog10l.c (__clog10l): Likewise.
20868         * math/s_clogf.c (__clogf): Likewise.
20869         * math/s_clogl.c (__clogl): Likewise.
20870         * math/libm-test.inc (clog_test): Add more tests.
20871         (clog10_test): Likewise.
20872         * sysdeps/i386/fpu/libm-test-ulps: Update.
20873         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20874
20875 2012-07-31  Florian Weimer  <fweimer@redhat.com>
20876
20877         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
20878         Exit with zero in case no suitable GID is found, and write a
20879         message to standard error.
20880
20881 2012-07-30  Roland McGrath  <roland@hack.frob.com>
20882
20883         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
20884         rather than to 1.
20885         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
20886         (MAXPATHLEN): Removed.
20887         (NOGROUP, NODEV): New macros.
20888         (setbit, clrbit, isset, isclr): New macros.
20889         (howmany, roundup, powerof2): New macros.
20890         (DEV_BSIZE): New macro.
20891
20892         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
20893         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
20894
20895         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
20896         definition on [!__NO_LONG_DOUBLE_MATH].
20897
20898         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
20899         PTR_MANGLE and PTR_DEMANGLE.
20900
20901         * socket/accept4.c (accept4): Rename to __libc_accept4.
20902         Define accept4 as a weak alias.
20903
20904         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
20905         on [_DIRENT_HAVE_D_TYPE].
20906         * io/ftw.c (ftw_dir): Likewise.
20907
20908         * io/xmknod.c (__xmknod): Don't check PATH for being null.
20909
20910         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
20911
20912         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
20913         Use the BSD numbers rather than the arbitrary ones we had.
20914         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
20915         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
20916         (SIGXCPU, SIGXFSZ): New macros.
20917         (_NSIG): Now 32.
20918
20919         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
20920         initializer on [_LIBC_REENTRANT].
20921
20922         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
20923         definitions inside [_POSIX_MAPPED_FILES].
20924
20925         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
20926
20927         * dirent/opendir.c: Include <fcntl.h>.
20928
20929         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
20930         (__libc_getspecific): Likewise.
20931         (__libc_key_create): Likewise.
20932
20933         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
20934         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
20935         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
20936         (tmpfile64): Define as alias.
20937         * sysdeps/wordsize-64/tmpfile.c: File removed.
20938         * sysdeps/wordsize-64/tmpfile64.c: File removed.
20939         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
20940         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
20941
20942         * stdio-common/vfscanf.c: Include <stdbool.h>.
20943         * nss/makedb.c: Likewise.
20944         * stdio-common/_i18n_number.h: Likewise.
20945         * argp/argp-help.c: Likewise.
20946         * posix/wordexp.c: Likewise.
20947         * sysdeps/posix/spawni.c: Likewise.
20948         * nss/nss_files/files-initgroups.c: Likewise.
20949         * stdio-common/reg-modifier.c: Include <stdlib.h>.
20950         * nss/nss_files/files-initgroups.c: Likewise.
20951         * nss/nss_db/db-netgrp.c: Likewise.
20952         * nss/nss_db/db-initgroups.c: Likewise.
20953         * io/fchmodat.c: Include <sys/stat.h>.
20954
20955         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
20956         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
20957
20958         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
20959         [HAVE_MMAP].
20960
20961         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
20962         Add multiple inclusion protection.
20963
20964 2012-07-27  David S. Miller  <davem@davemloft.net>
20965
20966         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20967
20968 2012-07-27  Gary Benson  <gbenson@redhat.com>
20969
20970         [BZ #14298]
20971         * elf/rtld.c: Include <stap-probe.h>.
20972         (dl_main): Added static probes "init_start" and "init_complete".
20973         * elf/dl-load.c: Include <stap-probe.h>.
20974         (lose): Take new parameter "nsid".
20975         Added static probe "map_failed".
20976         (_dl_map_object_from_fd): Pass namespace id to lose.
20977         Added static probe "map_start".
20978         (open_verify): Pass namespace id to lose.
20979         * elf/dl-open.c: Include <stap-probe.h>.
20980         (dl_open_worker) Added static probes "map_complete", "reloc_start"
20981         and "reloc_complete".
20982         * elf/dl-close.c: Include <stap-probe.h>.
20983         (_dl_close_worker): Added static probes "unmap_start" and
20984         "unmap_complete".
20985         * elf/rtld-debugger-interface.txt: New file documenting the above.
20986
20987 2012-07-26  Roland McGrath  <roland@hack.frob.com>
20988
20989         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
20990         rather than a string variable.
20991         * sunrpc/rpc_main.c (h_output): Likewise.
20992         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
20993
20994 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
20995
20996         * inet/check_native.c: New file.
20997
20998 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
20999
21000         [BZ #13629]
21001         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
21002         if larger part has absolute value 1.0.
21003         * math/s_clog10.c (__clog10): Likewise.
21004         * math/s_clog10f.c (__clog10f): Likewise.
21005         * math/s_clog10l.c (__clog10l): Likewise.
21006         * math/s_clogf.c (__clogf): Likewise.
21007         * math/s_clogl.c (__clogl): Likewise.
21008         * math/libm-test.inc (clog_test): Add more tests.
21009         (clog10_test): Likewise.
21010         * sysdeps/i386/fpu/libm-test-ulps: Update.
21011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21012
21013         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
21014         (pltexit): Likewise.
21015         (La_regs): Likewise.
21016         (La_retval): Likewise.
21017         (int_retval): Likewise.
21018         Update #error for removed macros to refer only to definitions in
21019         tst-audit.h.
21020         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
21021         macro.
21022         (pltexit): Likewise.
21023         (La_regs): Likewise.
21024         (La_retval): Likewise.
21025         (int_retval): Likewise.
21026         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
21027         macro.
21028         (pltexit): Likewise.
21029         (La_regs): Likewise.
21030         (La_retval): Likewise.
21031         (int_retval): Likewise.
21032         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
21033         macro.
21034         (pltexit): Likewise.
21035         (La_regs): Likewise.
21036         (La_retval): Likewise.
21037         (int_retval): Likewise.
21038         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
21039         macro.
21040         (pltexit): Likewise.
21041         (La_regs): Likewise.
21042         (La_retval): Likewise.
21043         (int_retval): Likewise.
21044         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
21045         macro.
21046         (pltexit): Likewise.
21047         (La_regs): Likewise.
21048         (La_retval): Likewise.
21049         (int_retval): Likewise.
21050         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
21051         macro.
21052         (pltexit): Likewise.
21053         (La_regs): Likewise.
21054         (La_retval): Likewise.
21055         (int_retval): Likewise.
21056         * sysdeps/generic/tst-audit.h: Update comment to refer only to
21057         macro definitions in tst-audit.h.
21058         * sysdeps/i386/tst-audit.h: New file.
21059         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
21060         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
21061         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
21062         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
21063         * sysdeps/sh/tst-audit.h: Likewise.
21064         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
21065         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
21066         * sysdeps/x86_64/tst-audit.h: Likewise.
21067
21068 2012-07-26  Andreas Jaeger  <aj@suse.de>
21069
21070         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
21071         ptrace.
21072
21073         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
21074         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
21075         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
21076         PTRACE_O_MASK.
21077         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
21078         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
21079         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
21080
21081         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
21082         value.
21083
21084         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
21085         _sigsys.
21086         (si_call_addr, si_syscall, si_arch): Define new macro.
21087         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
21088         _sigsys.
21089         (si_call_addr, si_syscall, si_arch): Define new marcro.
21090         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
21091         _sigsys.
21092         (si_call_addr, si_syscall, si_arch): Define new macro.
21093         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
21094         _sigsys.
21095         (si_call_addr, si_syscall, si_arch): Define new macro.
21096
21097 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21098
21099         [BZ #13717]
21100         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21101         Change to 2.4.21 where previously 2.4.1.
21102         * sysdeps/unix/sysv/linux/configure: Regenerated.
21103         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
21104         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
21105         Linux kernel version.
21106         (__ASSUME_STD_AUXV): Remove.
21107         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
21108         kernel version.
21109         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
21110         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
21111         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
21112         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
21113         (__ASSUME_NETLINK_SUPPORT): Likewise.
21114         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
21115         (__no_netlink_support): Remove conditional definition.
21116         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
21117         Remove.
21118         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21119         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
21120         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
21121         (if_nameindex_ioctl): Remove.
21122         (if_nameindex_netlink): Do not handle __no_netlink_support.
21123         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21124         code.
21125         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
21126         Remove conditional code.
21127         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21128         code.
21129         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
21130         unconditional.
21131         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21132         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
21133         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
21134         Remove.
21135         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
21136         [!__ASSUME_STD_AUXV]: Remove conditional code.
21137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
21138         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
21139         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
21140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
21141         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
21142         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21143         code.
21144         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
21146         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
21147         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21148         conditional code.
21149         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
21151         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21152         code.
21153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
21154         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21155         conditional code.
21156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
21157         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21158         code unconditional.
21159         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21160         conditional code.
21161         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21162         unconditional.
21163         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21164         conditional code.
21165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21166         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21167         unconditional.
21168         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21169         conditional code.
21170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
21171         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21172         code unconditional.
21173         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21174         conditional code.
21175         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21176         unconditional.
21177         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21178         conditional code.
21179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
21180         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21181         code unconditional.
21182         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21183         conditional code.
21184         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21185         unconditional.
21186         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21187         conditional code.
21188
21189 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
21190
21191         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
21192         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
21193         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
21194         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
21195         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
21196         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
21197         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
21198         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
21199         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
21200         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
21201         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
21202         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
21203         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
21204         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
21205         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
21206         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
21207         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
21208         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
21209         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
21210         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
21211         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
21212         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
21213         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
21214
21215 2012-07-25  Florian Weimer  <fweimer@redhat.com>
21216
21217         * Versions.def: Add GLIBC_2.17.
21218         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
21219         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
21220         Introduce __libc_secure_getenv.
21221         * stdlib/Versions (2.17): Add secure_getenv
21222         (GLIBC_PRIVATE): Add __libc_secure_getenv.
21223         * stdlib/secure-getenv.c: Rename __secure_getenv to
21224         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
21225         symbol __secure_getenv for GLIBC_2.0.
21226         * stdlib/tst-secure-getenv.c: New.
21227         * stdlib/Makefile (tests): Add testcase.
21228         * manual/startup.texi (Environment Access): Document
21229         secure_getenv.
21230         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
21231         __libc_secure_getenv.
21232         * inet/ruserpass.c (ruserpass): Likewise.
21233         * malloc/mtrace.c (mtrace): Likewise.
21234         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
21235         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
21236         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
21237         * sysdeps/posix/tempname.c: Likewise.  Evaluate
21238         HAVE_SECURE_GETENV.
21239         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
21240         __secure_getenv to __libc_secure_getenv.
21241         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
21242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21243         Likewise.
21244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21245         Likewise.
21246         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
21247         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
21248         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21249         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
21250         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
21251         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21252         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
21253
21254 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21255
21256         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
21257         (struct La_i86_retval): Likewise.
21258         (struct La_x86_64_regs): Likewise.
21259         (struct La_x86_64_retval): Likewise.
21260         (struct La_x32_regs): Likewise.
21261         (struct La_x32_retval): Likewise.
21262         (struct La_ppc32_regs): Likewise.
21263         (struct La_ppc32_retval): Likewise.
21264         (struct La_ppc64_regs): Likewise.
21265         (struct La_ppc64_retval): Likewise.
21266         (struct La_sh_regs): Likewise.
21267         (struct La_sh_retval): Likewise.
21268         (struct La_s390_32_regs): Likewise.
21269         (struct La_s390_32_retval): Likewise.
21270         (struct La_s390_64_regs): Likewise.
21271         (struct La_s390_64_retval): Likewise.
21272         (struct La_sparc32_regs): Likewise.
21273         (struct La_sparc32_retval): Likewise.
21274         (struct La_sparc64_regs): Likewise.
21275         (struct La_sparc64_retval): Likewise.
21276         (struct audit_ifaces): Remove architecture-specific pltenter and
21277         pltexit members.
21278         * sysdeps/i386/ldsodefs.h: New file.
21279         * sysdeps/powerpc/ldsodefs.h: Likewise.
21280         * sysdeps/s390/ldsodefs.h: Likewise.
21281         * sysdeps/sh/ldsodefs.h: Likewise.
21282         * sysdeps/sparc/ldsodefs.h: Likewise.
21283         * sysdeps/x86_64/ldsodefs.h: Likewise.
21284
21285 2012-07-25  Marek Polacek  <polacek@redhat.com>
21286
21287         [BZ #6808]
21288         * math/libm-test.inc (yn_test): Add another test.
21289         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
21290         to ERANGE when the result is +-Inf.
21291         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
21292         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
21293         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
21294         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
21295
21296 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
21297
21298         * conform/data/time.h-data (NULL): Use macro-constant.  Require
21299         equal to 0.
21300         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
21301         clock_t.
21302         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
21303
21304 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
21305
21306         * configure.in <sysdeps resolving>: Correct printing
21307         Implies_before.
21308         * configure: Regenerate.
21309
21310 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
21311
21312         * math/w_ilogb.c: Include <limits.h>.
21313         * math/w_ilogbl.c: Likewise.
21314
21315 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21316
21317         * manual/lang.texi (__va_copy): Document primarily as ISO C99
21318         va_copy.  Document allowing for unavailable va_copy only as
21319         pre-C99 compatibility.
21320         * manual/string.texi (Copying and Concatenation): Use va_copy
21321         instead of __va_copy in concat example.
21322
21323 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
21324
21325         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
21326         (__sendto): Use create_address_port.  Initialize APORT and deallocate
21327         it if not null.
21328
21329         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
21330         with O_NOLINK passed to __file_name_lookup.
21331
21332         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
21333         with O_NOLINK passed to __file_name_lookup.
21334
21335         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
21336         negative N or less than NGIDS.
21337
21338         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
21339         type to string_t.  Set ERANGE as errno and return it if NAME is not big
21340         enough.  Use memcpy instead of strncpy.
21341
21342 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21343
21344         * elf/Makefile (check-data): Remove.
21345         (localplt.data): New vpath directive.
21346         ($(objpfx)check-localplt.out): Use localplt.data from vpath
21347         instead of $(check-data).
21348         * scripts/data/localplt-generic.data: Move to ...
21349         * sysdeps/generic/localplt.data: ... here.
21350         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
21351         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
21352         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
21353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
21354         ... here.
21355         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
21356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
21357         ... here.
21358         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
21359         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
21360         ... here.
21361         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
21362         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
21363         ... here.
21364         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
21365         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
21366         ... here.
21367         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
21368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
21369         ... here.
21370
21371 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21372
21373         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
21374         PPC32 and PPC64 files.
21375         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
21376         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
21377
21378 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21379
21380         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
21381         __makecontext_ret to ...
21382         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21383         ... here and call exit if uc_link is NULL.  New file.
21384         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
21385         __makecontext_ret.S.
21386         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
21387         __makecontext_ret to ...
21388         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21389         ... here and call exit if uc_link is NULL.  New file.
21390         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
21391         __makecontext_ret.S.
21392
21393 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21394
21395         * elf/elf.h (R_390_IRELATIVE): New definition.
21396         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
21397         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
21398         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
21399         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
21400         (elf_machine_lazy_rel): Likewise.
21401         * sysdeps/s390/dl-irel.h: New file.
21402         * sysdeps/s390/s390-64/memcpy.S: New asm code.
21403         * sysdeps/s390/s390-64/memset.S: New asm code.
21404         * sysdeps/s390/s390-64/memcmp.S: New asm code.
21405         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
21406         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
21407         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
21408         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
21409         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
21410         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
21411         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
21412         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
21413         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
21414         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
21415         * sysdeps/s390/s390-32/memcpy.S: New asm code.
21416         * sysdeps/s390/s390-32/memset.S: New asm code.
21417         * sysdeps/s390/s390-32/memcmp.S: New asm code.
21418
21419 2012-07-17  Marek Polacek  <polacek@redhat.com>
21420
21421         [BZ #14349]
21422         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
21423         * sysdeps/s390/s390-64/configure.in: Likewise.
21424         * sysdeps/sparc/configure.in: Likewise.
21425         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
21426         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
21427         * sysdeps/i386/configure.in: Likewise.
21428         * sysdeps/x86_64/configure.in: Likewise.
21429         * sysdeps/sh/configure.in: Likewise.
21430         * sysdeps/s390/s390-32/configure: Regenerated.
21431         * sysdeps/s390/s390-64/configure: Likewise.
21432         * sysdeps/x86_64/configure: Likewise.
21433         * sysdeps/sh/configure: Likewise.
21434         * sysdeps/powerpc/powerpc64/configure: Likewise.
21435         * sysdeps/powerpc/powerpc32/configure: Likewise.
21436         * sysdeps/sparc/configure: Likwise.
21437         * sysdeps/i386/configure: Likewise.
21438
21439         * elf/dl-open.c: Comment fixes.
21440
21441 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
21442
21443         * Makefile [CXX] (check-data): Remove.
21444         [CXX] (c++-types.data): New vpath directive.
21445         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
21446         vpath.  Do not allow for C++ type data being missing.
21447         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
21448         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
21449         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
21450         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
21451         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
21452         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
21453         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
21454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
21455         ... here.
21456         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
21457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
21458         ... here.
21459         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
21460         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
21461         ... here.
21462         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
21463         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
21464         ... here.
21465         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
21466         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
21467         ... here.
21468         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
21469         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
21470         ... here.
21471         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
21472         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
21473         ... here.
21474         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
21475         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
21476
21477         * elf/tls-macros.h (TLS_LE): Move architecture-specific
21478         definitions to architecture-specific files.
21479         (TLS_IE): Likewise.
21480         (TLS_LD): Likewise.
21481         (TLS_GD): Likewise.
21482         * sysdeps/i386/tls-macros.h: New file.
21483         * sysdeps/powerpc/tls-macros.h: Likewise.
21484         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
21485         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
21486         * sysdeps/sh/tls-macros.h: Likewise.
21487         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
21488         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
21489         * sysdeps/x86_64/tls-macros.h: Likewise.
21490
21491 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21492
21493         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
21494         zero value for regular exit case.
21495
21496         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
21497         (__start_context): Preserve zero value for regular exit case.
21498
21499 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21500             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21501
21502         * manual/setjmp.texi (setcontext): Clarify normal process
21503         termination when uc_link is the null pointer.
21504         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
21505         exit call.
21506
21507 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
21508
21509         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
21510         preprocessor.  Test for each exception mask separately.
21511
21512 2012-07-16  Andreas Jaeger  <aj@suse.de>
21513
21514         * po/ru.po: Update from translation team.
21515
21516 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
21517
21518         * conform/data/string.h-data (NULL): Use macro-constant.  Require
21519         equal to 0.
21520         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
21521         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
21522         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
21523         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
21524         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21525
21526 2012-07-13  Andreas Jaeger  <aj@suse.de>
21527
21528         * po/fr.po: Update from translation team.
21529
21530 2012-07-12  Marek Polacek  <polacek@redhat.com>
21531
21532         [BZ #14173]
21533         * math/libm-test.inc (yn_test): Add test for BZ #14173.
21534         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
21535         loop condition.
21536
21537 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
21538
21539         [BZ #13717]
21540         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21541         Change to 2.4.1 where previously 2.4.0.
21542         * sysdeps/unix/sysv/linux/configure: Regenerated.
21543         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
21544         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
21545         version.
21546         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
21547         (__ASSUME_AT_CLKTCK): Remove.
21548         (__ASSUME_AT_PAGESIZE): Likewise.
21549         (__ASSUME_AT_XID): Likewise.
21550         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
21551         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
21552         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
21553         unconditionally.
21554         (HAVE_AUX_PAGESIZE): Likewise.
21555         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
21556         [__ASSUME_AT_CLKTCK]: Make code unconditional.
21557         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
21558
21559 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
21560
21561         [BZ #14307]
21562         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
21563         the temporary buffer used to invoke __gethostbyname2_r,
21564         __gethostbyaddr_r and gethostbyname4_r to make room for struct
21565         host_data / struct gaih_addrtuple.
21566         * resolv/nss_dns/dns-host.c (global scope): Move definition of
21567         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
21568         header file nss/nsswitch.h.
21569         * nss/nsswitch.h (global scope): Add definition of implementation
21570         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
21571         resolv/nss_dns/dns-host.c).
21572
21573 2012-07-11  Andreas Jaeger  <aj@suse.de>
21574
21575         * po/fr.po: Update from translation team.
21576
21577         * po/sv.po: Update from translation team
21578         * po/fr.po: Another update from translation team.
21579
21580 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21581
21582         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
21583         for subnormals or multiply small sinh result by itself.
21584         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
21585         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21586
21587 2012-07-11  David S. Miller  <davem@davemloft.net>
21588
21589         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21590
21591 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
21592
21593         [BZ #14347]
21594         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
21595         (INTERNAL_MARK): Shift it here.
21596
21597 2012-07-10  Marek Polacek  <polacek@redhat.com>
21598
21599         [BZ #14151]
21600         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
21601         libc_cv_asm_global_directive with .globl.
21602         * configure: Regenerated.
21603         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
21604         with .globl.
21605         * sysdeps/i386/configure: Regenerated.
21606         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
21607         with .globl.
21608         * sysdeps/x86_64/configure: Regenerated.
21609         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
21610         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
21611         * elf/tst-unique2mod2.c: Likewise.
21612         * elf/tst-unique2mod1.c: Likewise.
21613         * elf/tst-unique1mod2.c: Likewise.
21614         * elf/tst-unique1mod1.c: Likewise.
21615         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21616         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
21617         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21618         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
21619         * sysdeps/mach/sysdep.h: Likewise.
21620         * sysdeps/i386/sysdep.h: Likewise.
21621         * sysdeps/i386/i386-mcount.S: Likewise.
21622         * sysdeps/x86_64/_mcount.S: Likewise.
21623         * sysdeps/x86_64/sysdep.h: Likewise.
21624         * sysdeps/sh/_mcount.S: Likewise.
21625         * sysdeps/sh/sysdep.h: Likewise.
21626         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
21627         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
21628         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
21629         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21630         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
21631         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
21632         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
21633         * locale/localeinfo.h: Likewise.
21634         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
21635         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
21636
21637 2012-07-09  Roland McGrath  <roland@hack.frob.com>
21638
21639         [BZ #14336]
21640         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
21641         system".
21642         * manual/message.texi (The Uniforum approach): Likewise.
21643         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
21644         (glibc iconv Implementation): Likewise.
21645
21646 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
21647
21648         [BZ #14337]
21649         * math/s_clog.c (__clog): Avoid scaling a value down where that
21650         could result in underflow.
21651         * math/s_clog10.c (__clog10): Likewise.
21652         * math/s_clog10f.c (__clog10f): Likewise.
21653         * math/s_clog10l.c (__clog10l): Likewise.
21654         * math/s_clogf.c (__clogf): Likewise.
21655         * math/s_clogl.c (__clogl): Likewise.
21656         * math/libm-test.inc (clog_test): Add more tests.
21657         (clog10_test): Likewise.
21658         * sysdeps/i386/fpu/libm-test-ulps: Update.
21659         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21660
21661 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
21662
21663         [BZ #14283]
21664         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
21665         by 7 not 8 to examine high bit of fractional part.
21666
21667         [BZ #14042]
21668         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
21669         for call to __mcount_internal.
21670         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
21671         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
21672         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
21673
21674 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
21675
21676         [BZ #14154]
21677         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
21678         approximation for values within 0x1p-13f of an odd multiple of
21679         pi/4.
21680         * math/libm-test.inc (tan_test): Do not allow spurious underflow
21681         exception.  Add more tests.
21682         * sysdeps/i386/fpu/libm-test-ulps: Update.
21683
21684         [BZ #6778]
21685         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
21686         inputs and return -1 for them.  Do not check for +Inf in case not
21687         reachable for +Inf.
21688         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
21689         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
21690         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21691         and return -1 for them.  Do not check for +Inf in case not
21692         reachable for +Inf.
21693         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
21694         define.
21695         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21696         and return -1 for them.  Do not check for +Inf in case not
21697         reachable for +Inf.
21698         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
21699         spurious underflow.
21700         * sysdeps/i386/fpu/libm-test-ulps: Update.
21701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21702
21703 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
21704
21705         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
21706
21707 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
21708
21709         [BZ #14157]
21710         [BZ #14331]
21711         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
21712         could result in spurious underflow.  Scale down values above
21713         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
21714         * math/s_csqrtf.c (__csqrtf): Likewise.
21715         * math/s_csqrtl.c (__csqrtl): Likewise.
21716         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
21717         spurious underflow.
21718         * sysdeps/i386/fpu/libm-test-ulps: Update.
21719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21720
21721 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
21722
21723         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
21724         xopen-msg.sed.
21725         * catgets/xopen-msg.awk: New file.
21726         * catgets/xopen-msg.sed: Removed.
21727
21728         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
21729         po2text.sed.
21730         * intl/po2test.awk: New file.
21731         * intl/po2test.sed: Removed.
21732
21733 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
21734
21735         [BZ #14328]
21736         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
21737         or multiply small sinh result by itself.
21738         * math/s_ctanf.c (__ctanf): Likewise.
21739         * math/s_ctanh.c (__ctanh): Likewise.
21740         * math/s_ctanhf.c (__ctanhf): Likewise.
21741         * math/s_ctanhl.c (__ctanhl): Likewise.
21742         * math/s_ctanl.c (__ctanl): Likewise.
21743         * math/libm-test.inc (ctan_test_tonearest): New function.
21744         (ctan_test_towardzero): Likewise.
21745         (ctan_test_downward): Likewise.
21746         (ctan_test_upward): Likewise.
21747         (ctanh_test_tonearest): Likewise.
21748         (ctanh_test_towardzero): Likewise.
21749         (ctanh_test_downward): Likewise.
21750         (ctanh_test_upward): Likewise.
21751         (main): Call these new functions.
21752         * sysdeps/i386/fpu/libm-test-ulps: Update.
21753         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21754
21755 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
21756
21757         * .gitignore: Delete /ports entry.
21758
21759 2012-07-03  Andreas Jaeger  <aj@suse.de>
21760
21761         * po/bg.po: Update from translation team.
21762         * po/cs.po: Likewise.
21763         * po/de.po: Likewise.
21764         * po/hr.po: Likewise.
21765         * po/nl.pl: Likewise.
21766         * po/pl.po: Likewise.
21767         * po/vi.po: Likewise.
21768
21769 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
21770
21771         * Makeconfig [!+link] (+link-before-libc): New variable.
21772         [!+link] (+link-after-libc): Likewise.
21773         [!+link] (+link-tests): Likewise.
21774         [!+link] (+link): Define in terms of $(+link-before-libc) and
21775         $(+link-after-libc).
21776         [!+link-static] (+link-static-before-libc): New variable.
21777         [!+link-static] (+link-static-after-libc): Likewise.
21778         [!+link-static] (+link-static-tests): Likewise.
21779         [!+link-static] (+link-static): Define in terms of
21780         $(+link-static-before-libc) and $(+link-static-after-libc).
21781         [build-shared] (link-libc-before-gnulib): New variable.
21782         [build-shared] (link-libc-tests): Likewise.
21783         [build-shared] (link-libc): Define in terms of
21784         $(link-libc-before-gnulib).
21785         [!build-shared] (link-libc-tests): New variable.
21786         (link-libc-static-tests): New variable.
21787         [!gnulib] (gnulib-arch): New variable.
21788         [!gnulib] (gnulib-tests): Likewise.
21789         [!gnulib] (static-gnulib-arch): Likewise.
21790         [!gnulib] (static-gnulib-tests): Likewise.
21791         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
21792         Define with "=" instead of ":=".
21793         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
21794         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
21795         * Rules (binaries-all-notests): New variable.
21796         (binaries-all-tests): Likewise.
21797         (binaries-static-notests): Likewise.
21798         (binaries-static-tests): Likewise.
21799         (binaries-all): Define using $(binaries-all-notests) and
21800         $(binaries-all-tests).
21801         (binaries-static): Define using $(binaries-static-notests) and
21802         $(binaries-static-tests).
21803         (binaries-shared-tests): New variable.
21804         (binaries-shared-notests): Likewise.
21805         (binaries-shared): Remove variable.
21806         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
21807         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
21808         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
21809         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
21810         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
21811         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
21812         * elf/Makefile (sln-modules): New variable.
21813         (extra-objs): Add $(sln-modules:=.o).
21814         (ldconfig-modules): Add static-stubs.
21815         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
21816         * elf/static-stubs.c: New file.
21817
21818         [BZ #14283]
21819         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
21820         by 7 not 8 to examine high bit of fractional part.  Use volatile
21821         variables when splitting into final array of floats if
21822         __FLT_EVAL_METHOD__ != 0.
21823         * math/libm-test.inc (cos_test): Add another test.
21824         (sin_test): Likewise.
21825         * sysdeps/i386/fpu/libm-test-ulps: Update.
21826
21827         [BZ #14273]
21828         * math/libm-test.inc (cosh_test): Add more tests.
21829
21830         * version.h (RELEASE): Set to "development".
21831         (VERSION): Set to "2.16.90".
21832
21833 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
21834
21835         * NEWS: Update copyright. Remove last-updated date.
21836         Mention math library bug fixes and timezone data changes.
21837         * README: Mention GNU/Hurd, x32, and HPPA support status.
21838
21839 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
21840
21841         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
21842
21843 2012-06-27  Andreas Jaeger  <aj@suse.de>
21844
21845         * manual/contrib.texi (Contributors): Add Samuel Thibault.
21846
21847 2012-06-25  Andreas Jaeger  <aj@suse.de>
21848
21849         * sysdeps/s390/fpu/libm-test-ulps: Update.
21850
21851 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
21852             Thomas Schwinge  <thomas@codesourcery.com>
21853
21854         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
21855         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
21856         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
21857         fanotify_mark.
21858
21859 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
21860
21861         * sysdeps/mach/start.c: Remove file.
21862         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
21863         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
21864         * sysdeps/sh/init-first.c: Likewise.
21865
21866         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
21867         registers for frame unwinding purposes, add CFI directives.
21868         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
21869         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
21870         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
21871         Likewise.
21872
21873         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
21874         __fortify_fail returning.
21875         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
21876
21877         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
21878         sysdeps/sh/____longjmp_chk.S.
21879         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
21880         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
21881         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
21882         (gen-as-const-headers): Append sigaltstack-offsets.sym.
21883
21884         * sysdeps/sh/abort-instr.h: New file.
21885         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
21886         process in case exit returns.
21887
21888         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
21889         initialize the GOT register before use.
21890
21891         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
21892         calculation of ARGC > 4.
21893
21894         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
21895         meaningful names to some local labels.
21896
21897 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21898             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21899
21900         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
21901         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
21902         (__arch_compare_and_exchange_val_16_acq): Likewise.
21903         (__arch_compare_and_exchange_val_32_acq): Likewise.
21904         (atomic_exchange_and_add): Fix gUSA sequence.
21905         (atomic_add): Likewise.
21906         (atomic_add_negative): Likewise.
21907         (atomic_add_zero): Likewise.
21908         (atomic_bit_test_set): Likewise.
21909
21910 2012-06-22  Andreas Schwab  <schwab@redhat.com>
21911
21912         [BZ #13579]
21913         * include/link.h (struct link_map): Add l_free_initfini.
21914         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
21915         l_initfini.
21916         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
21917         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
21918         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
21919         set.
21920
21921 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
21922
21923         * configure.in: Use AC_LANG_SOURCE.
21924         * configure: Regenerate.
21925
21926 2012-06-22  Roland McGrath  <roland@hack.frob.com>
21927
21928         * configure.in (libc_cv_localstatedir): New substituted variable.
21929         * configure: Regenerated.
21930         * config.make.in (localstatedir): New variable, substituted from
21931         libc_cv_localstatedir.
21932         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
21933         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
21934         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
21935         * sysdeps/gnu/configure: Regenerated.
21936
21937 2012-06-21  Jeff Law  <law@redhat.com>
21938
21939         [BZ #14277]
21940         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
21941         free.  Simplify list management for _LIBC case.
21942
21943 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
21944
21945         [BZ #14273]
21946         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
21947         Clear sign bit of 64-bit integer value before comparing against
21948         overflow value.
21949
21950         * sysdeps/mach/configure: Regenerated.
21951
21952 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
21953
21954         [BZ #14278]
21955         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
21956
21957 2012-06-21  Jeff Law  <law@redhat.com>
21958
21959         [BZ #13882]
21960         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
21961         uint16_t for elements in the "seen" array to avoid char overflows.
21962         * elf/dl-fini.c (_dl_sort_fini): Likewise.
21963         * elf/dl-open.c (dl_open_worker): Likewise.
21964
21965 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
21966
21967         * scripts/list-sources.sh: Scan PORTS for translations.
21968         * po/libc.pot: Regenerated.
21969
21970 2012-06-21  Andreas Jaeger  <aj@suse.de>
21971
21972         [BZ #12194]
21973         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
21974         warning.
21975         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
21976         * bits/byteswap-16.h (__bswap_16): Likewise.
21977         * bits/byteswap.h (__bswap_constant_16): Likewise.
21978
21979 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
21980
21981         [BZ #14117]
21982         * sysdeps/i386/fpu_control.h: Removed.
21983         * sysdeps/x86_64/fpu_control.h: Moved to ...
21984         * sysdeps/x86/fpu_control.h: Here.
21985
21986         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
21987         (_FPU_SETCW): Likewise.
21988
21989 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
21990
21991         [BZ #14117]
21992         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
21993         * sysdeps/x86/fpu/bits/mathinline.h: This.
21994         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
21995
21996         [BZ #14050]
21997         [BZ #14117]
21998         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
21999         functions if __x86_64__ is defined.
22000
22001 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
22002
22003         * string/endian.h: Add !__ASSEMBLER__ condition for including
22004         conversion interfaces.
22005
22006 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
22007
22008         [BZ #14241]
22009         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
22010         of ABS(x) in calculating zero to negative powers other than odd
22011         integers.
22012         * math/libm-test.inc (pow_test): Add more tests.
22013
22014 2012-06-15  Andreas Jaeger  <aj@suse.de>
22015
22016         * manual/contrib.texi (Contributors): Update entry of Liubov
22017         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
22018         Machado Filho.
22019
22020 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
22021
22022         * string/string.h: Add __wur to GNU version of strerror_r.
22023
22024 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
22025
22026         [BZ #14229]
22027         * string/Makefile (tests): Add tst-strtok_r.
22028         * string/tst-strtok_r.c: New file.
22029         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
22030         RAX_LP/RDX_LP on SAVE_PTR.
22031
22032 2012-06-14  Roland McGrath  <roland@hack.frob.com>
22033
22034         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
22035
22036 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
22037
22038         * libm_test.inc (csqrt_test): Allow more spurious underflow
22039         exceptions.
22040         (j0_test): Likewise.
22041         (j1_test): Likewise.
22042         (y0_test): Likewise.
22043         (y1_test): Likewise.
22044
22045 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
22046
22047         * po/Makefile (libc.pot): Use UTF-8 charset.
22048
22049 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
22050
22051         [BZ #14210]
22052         Suppress sign-conversion warning from FD_SET.
22053         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
22054         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
22055         not unsigned long int.
22056         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
22057
22058 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
22059
22060         [BZ #14050]
22061         [BZ #14117]
22062         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
22063         __extern_always_inline instead of __extern_inline.
22064         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
22065         (__signbit): Likewise.
22066         (__signbitl): Support C++ namespace.
22067         (lrintf): New inline function.
22068         (lrint): Likewise.
22069         (llrintf): Likewise.
22070         (llrint): Likewise.
22071         (fmaxf): Likewise.
22072         (fmax): Likewise.
22073         (fminf): Likewise.
22074         (fmin): Likewise.
22075         (rint): Likewise.
22076         (rintf): Likewise.
22077         (ceil): Likewise.
22078         (ceilf): Likewise.
22079         (floor): Likewise.
22080         (floorf): Likewise.
22081         (nearbyint): Likewise.
22082         (nearbyintf): Likewise.
22083
22084 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
22085
22086         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
22087         non-default versions.
22088
22089 2012-06-11  Roland McGrath  <roland@hack.frob.com>
22090
22091         [BZ #14218]
22092         * manual/argp.texi (Argp): Reword argp_parse description slightly.
22093
22094 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
22095
22096         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
22097         (FE_UPWARD, FE_DOWNWARD): Don't define.
22098         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
22099         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22100
22101         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
22102         reading it.
22103         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22104         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22105
22106 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22107
22108         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22109         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
22110         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
22111         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
22112
22113 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
22114
22115         [BZ #14117]
22116         * sysdeps/i386/fpu/bits/fenv.h: Removed.
22117         * sysdeps/i386/fpu/Implies: New file.
22118         * sysdeps/x86_64/fpu/Implies: Likewise.
22119         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
22120         * sysdeps/x86/fpu/bits/fenv.h: This.
22121
22122         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
22123         __SSE_MATH__.
22124
22125 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
22126
22127         [BZ #14134]
22128         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
22129         character 0xffff that matches the last element of the
22130         conversion table.
22131
22132 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22133
22134         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
22135         fmodl commit.
22136
22137 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22138
22139         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
22140         values higher than 25.6283.
22141
22142 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22143
22144         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
22145         subnormal exponent extraction and add some __builtin_expect.
22146         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
22147         Fix for subnormal mantissa calculation.
22148
22149 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
22150
22151         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
22152         cpu2 is -1 and errno is not ENOSYS.
22153
22154 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
22155
22156         [BZ #14117]
22157         * sysdeps/i386/i486/bits/string.h: Renamed to ...
22158         * sysdeps/x86/bits/string.h: This.
22159         * sysdeps/x86_64/bits/string.h: Removed.
22160
22161         * sysdeps/i386/i486/bits/string.h: Define inline functions only
22162         if not compiling for x86-64, but compiling for >= i486.
22163
22164         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
22165         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
22166
22167         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
22168         New macro from Linux kernel 3.4.0.
22169         (FP_XSTATE_MAGIC2): Likewise.
22170         (FP_XSTATE_MAGIC2_SIZE): Likewise.
22171         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
22172         (struct _fpx_sw_bytes): New struct.
22173         (struct _xsave_hdr): Likewise.
22174         (struct _ymmh_state): Likewise.
22175         (struct _xstate): Likewise.
22176
22177         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
22178         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
22179         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
22180         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
22181         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
22182         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
22183
22184         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
22185         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
22186         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
22187         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
22188         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
22189         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
22190
22191 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22192
22193         [BZ #13743]
22194         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
22195         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
22196         (sysdep_headers): Include sys/platform/ppc.h.
22197         * sysdeps/powerpc/test-gettimebase.c: Test for
22198         __ppc_get_timebase() to catch future ISA opcode/insn changes.
22199         * manual/Makefile (appendices): Include platform.texi.
22200         * manual/contrib.texi (Contributors): Update @node pointers.
22201         * manual/maint.texi (Maintenance): Likewise.
22202         (Platform): New node.
22203         * manual/platform.texi: New file.  Document the new features.
22204
22205 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22206             Jakub Jelinek  <jakub@redhat.com>
22207
22208         [BZ #14188]
22209         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
22210         where __builtin_expect is unavailable.
22211
22212 2012-06-03  David S. Miller  <davem@davemloft.net>
22213
22214         * stdlib/longlong.h: Updated from GCC.
22215
22216 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
22217
22218         [BZ #14042]
22219         * sysdeps/powerpc/powerpc32/mcount.c: New file.
22220         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
22221         __mcount_internal.
22222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
22223         (GLIBC_2.16): Likewise.
22224
22225 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22226
22227         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
22228
22229 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22230
22231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
22232         (default-abi): New variable.
22233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
22234         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
22235         variable.
22236         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
22237         Likewise.
22238         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
22239         Likewise.
22240         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
22241         Likewise.
22242
22243         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
22244         definition.  Document in comment.
22245
22246 2012-06-01  David S. Miller  <davem@davemloft.net>
22247
22248         * stdlib/longlong.h: Updated from GCC.
22249
22250 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22251
22252         [BZ #14117]
22253         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
22254         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
22255         sys/debugreg.h sys/io.h here.
22256         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
22257         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
22258         sys/io.h.
22259         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
22260         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
22261         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
22262         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
22263         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
22264         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
22265
22266         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
22267         Define only if __x86_64__ is defined.
22268
22269 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22270
22271         [BZ #14048]
22272         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
22273         Use int64_t for variable i.
22274         * math/libm-test.inc (fmod_test): Add more tests.
22275
22276         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
22277         z computation is not scheduled after fetestexcept.
22278         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
22279         Use math_force_eval instead of asm to ensure calculation scheduled
22280         before exception test.
22281         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
22282         Ensure a1 + u.d computation is not scheduled after fetestexcept.
22283
22284 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
22285
22286         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
22287         computation is not scheduled after fetestexcept.
22288
22289 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22290
22291         [BZ #14117]
22292         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
22293         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
22294
22295 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22296
22297         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
22298         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
22299
22300 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22301
22302         [BZ #14117]
22303         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
22304         <bits/wordsize.h>.
22305         (__WCHAR_MIN): Support __WORDSIZE == 64.
22306         (__WCHAR_MAX): Likewise.
22307
22308         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
22309         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
22310
22311         [BZ #14183]
22312         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
22313         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
22314
22315         [BZ #14117]
22316         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
22317         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
22318
22319         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
22320         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
22321
22322         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
22323         Defined to 1 if __x86_64__ isn't defined.
22324         (_STAT_VER_LINUX_OLD): New.
22325         (st_atime): Remove duplicate.
22326         (st_mtime): Likewise.
22327         (st_ctime): Likewise.
22328
22329 2012-05-31  David S. Miller  <davem@davemloft.net>
22330
22331         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
22332         entries.
22333
22334 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
22335
22336         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
22337         gen-libm-test.pl.
22338
22339         [BZ #14132]
22340         * elf/dl-reloc.c: Include <_itoa.h>.
22341         (_dl_reloc_bad_type): Remove use of INTUSE.
22342         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
22343         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
22344         * stdio-common/psiginfo.c (psiginfo): Likewise.
22345         * stdio-common/psignal.c (psignal): Likewise.
22346         * string/strsignal.c (strsignal): Likewise.
22347         * include/signal.h (_sys_siglist): Declare hidden proto.
22348         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
22349         INTVARDEF with libc_hidden_data_def.
22350         * stdio-common/itoa-udigits.c: Likewise.
22351         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
22352         (_itoa_lower_digits_internal): Remove declaration.
22353         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
22354         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
22355         (_sys_sigabbrev_internal): Remove aliases.
22356         (_sys_siglist): Define hidden alias.
22357
22358 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
22359
22360         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22361         bits/sysctl.h.
22362
22363 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22364
22365         [BZ #14117]
22366         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
22367         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
22368
22369         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
22370         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
22371         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
22372         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
22373         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
22374         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
22375
22376         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
22377         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
22378         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
22379
22380         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
22381         with __addr.
22382         (insw): Likewise.
22383         (insl): Likewise.
22384         (outsb): Likewise.
22385         (outsw): Likewise.
22386         (outsl): Likewise.
22387
22388         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
22389         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
22390         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
22391
22392         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
22393         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
22394         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
22395         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
22396         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
22397         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
22398
22399         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
22400         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
22401
22402         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
22403         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
22404
22405         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
22406         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
22407         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
22408
22409         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
22410         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
22411         to ...
22412         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
22413
22414         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
22415         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
22416         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
22417
22418         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
22419         for x86-64.
22420         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
22421
22422 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
22423
22424         * math/math.h (M_El): Use two more decimal places.
22425         (M_LOG2El): Likewise.
22426         (M_LOG10El): Likewise.
22427         (M_LN2l): Likewise.
22428         (M_LN10l): Likewise.
22429         (M_PIl): Likewise.
22430         (M_PI_2l): Likewise.
22431         (M_PI_4l): Likewise.
22432         (M_1_PIl): Likewise.
22433         (M_2_PIl): Likewise.
22434         (M_2_SQRTPIl): Likewise.
22435         (M_SQRT2l): Likewise.
22436         (M_SQRT1_2l): Likewise.
22437
22438 2012-05-31  David S. Miller  <davem@davemloft.net>
22439
22440         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
22441         values between float registers.
22442         * sysdeps/sparc/sparc64/memset.S: Likewise.
22443         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
22444
22445 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
22446
22447         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
22448         -D_FORTIFY_SOURCE=1.
22449         (CPPFLAGS-tst-longjmp_chk.c): Define.
22450         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
22451         (CPPFLAGS-tst-longjmp_chk2.c): Define.
22452         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
22453         CFLAGS-tst-wchar-h.c.
22454
22455 2012-05-31  Marek Polacek  <polacek@redhat.com>
22456
22457         [BZ #14132]
22458         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
22459         __endmntent_internal): Remove declaration.
22460         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
22461         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
22462         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
22463
22464 2012-05-30  David S. Miller  <davem@davemloft.net>
22465
22466         * sysdeps/sparc/sparc32/soft-fp/q_util.c
22467         (___Q_simulate_exceptions): Use real FP ops rather than writing
22468         into the %fsr.
22469         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
22470         Likewise.
22471
22472 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22473
22474         [BZ #14117]
22475         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
22476         * sysdeps/x86/bits/xtitypes.h: This.
22477
22478         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
22479         * sysdeps/x86/bits/wordsize.h: This.
22480
22481         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
22482         * sysdeps/x86/bits/huge_vall.h: This.
22483
22484         * sysdeps/i386/bits/select.h: Removed.
22485         * sysdeps/x86_64/bits/select.h: Renamed to ...
22486         * sysdeps/x86/bits/select.h: This.
22487
22488         * sysdeps/i386/bits/setjmp.h: Removed.
22489         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
22490         * sysdeps/x86/bits/setjmp.h: This.
22491
22492         * sysdeps/i386/bits/mathdef.h: Removed.
22493         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
22494         * sysdeps/x86/bits/mathdef.h: This.
22495
22496 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
22497
22498         [BZ #14132]
22499         * include/sys/socket.h (__connect_internal)
22500         (__libc_sa_len_internal): Remove declaration.
22501         (__connect, __libc_sa_len): Declare hidden_proto.
22502         (SA_LEN): Remove use of INTUSE.
22503         * socket/connect.c: Add libc_hidden_def.
22504         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
22505         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
22506         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
22507         alias.
22508         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
22509         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
22510         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
22511         of adding _internal alias.
22512
22513 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22514
22515         [BZ #14117]
22516         * sysdeps/i386/bits/link.h: Removed.
22517         * sysdeps/i386/bits/linkmap.h: Likewise.
22518         * sysdeps/x86_64/bits/link.h: Renamed to ...
22519         * sysdeps/x86/bits/link.h: This.
22520         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
22521         * sysdeps/x86/bits/linkmap.h: This.
22522
22523         * sysdeps/i386/bits/endian.h: Removed.
22524         * sysdeps/x86_64/bits/endian.h: Renamed to ...
22525         * sysdeps/x86/bits/endian.h: This.
22526
22527         * sysdeps/i386/bits/byteswap.h: Removed.
22528         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22529         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
22530         * sysdeps/x86/bits/byteswap.h: This.
22531         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
22532         * sysdeps/x86/bits/byteswap-16.h: This.
22533         * sysdeps/i386/Implies: Add x86.
22534         * sysdeps/x86_64/Implies: Likewise.
22535
22536 2012-05-30  David S. Miller  <davem@davemloft.net>
22537
22538         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
22539         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
22540         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
22541         (FP_TRAPPING_EXCEPTIONS): Define.
22542         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
22543         (FP_TRAPPING_EXCEPTIONS): Define.
22544         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
22545         subnormals only when inexact has been signalled or underflow
22546         exceptions are enabled.
22547         (_FP_PACK_CANONICAL): Likewise.
22548
22549 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22550
22551         [BZ #14183]
22552         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
22553         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
22554
22555 2012-05-30  Richard Henderson  <rth@twiddle.net>
22556
22557         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
22558         with #ifndef NOT_IN_libc.
22559
22560         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
22561         marked to avoid plt entry.
22562
22563 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22564
22565         [BZ #14112]
22566         * Makeconfig (default-abi): New macro.
22567         (abi-includes): Likewise.
22568         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
22569         $(abi-$(default-abi)-lib-soname) for soname if defined.
22570         ($(common-objpfx)gnu/lib-names.stmp): Generate from
22571         abi-variants.
22572         * Makefile (installed-stubs): Likewise.
22573         * include/stubs-biarch.h: Removed.
22574         * scripts/lib-names.awk: Only handle one library at a time.
22575         * scripts/soversions.awk: Remove WORDSIZE support.
22576         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
22577         entries.
22578         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
22579         Removed.
22580         (syscall-list-default-condition): Likewise.
22581         (syscall-list-default-condition): Likewise.
22582         (syscall-list-includes): Likewise.
22583         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
22584         syscall-list-* with abi-*.  Handle undefined abi-variants.
22585         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
22586         * sysdeps/unix/sysv/linux/i386/Implies: New file.
22587         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
22588         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
22589         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
22590         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
22591         Removed.
22592         (syscall-list-32-options): Likewise.
22593         (syscall-list-32-condition): Likewise.
22594         (syscall-list-64-options): Likewise.
22595         (syscall-list-64-condition): Likewise.
22596         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
22597         macro.
22598         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
22599         Renamed to ...
22600         (abi-*): This.
22601         (abi-64-ld-soname): New macro.
22602         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
22603         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
22604         Renamed to ...
22605         (abi-*): This.
22606         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
22607         * sysdeps/x86_64/x32/shlib-versions: Likewise.
22608
22609 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
22610
22611         * sysdeps/unix/sysv/linux/kernel-features.h
22612         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
22613         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
22614         include <kernel-features.h>.
22615         [!__NR_ftruncate64]: Remove conditional code.
22616         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22617         [__NR_ftruncate64]: Make code unconditional.
22618         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22619         * sysdeps/unix/sysv/linux/truncate64.c: Do not
22620         include <kernel-features.h>.
22621         [!__NR_ftruncate64]: Remove conditional code.
22622         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22623         [__NR_ftruncate64]: Make code unconditional.
22624         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
22626         include <kernel-features.h>.
22627         [!__NR_ftruncate64]: Remove conditional code.
22628         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22629         [__NR_ftruncate64]: Make code unconditional.
22630         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22632         include <kernel-features.h>.
22633         [!__NR_ftruncate64]: Remove conditional code.
22634         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22635         [__NR_ftruncate64]: Make code unconditional.
22636         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22637
22638         * configure.in (libc_cv_fpie): Weaken to a compile test using
22639         LIBC_TRY_CC_OPTION.
22640         * configure: Regenerated.
22641
22642 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22643
22644         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
22645         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
22646         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
22647         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22648         Refreshed.
22649         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
22650         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
22651         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
22652         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
22653         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
22654         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22655         Refreshed.
22656
22657 2012-05-27  David S. Miller  <davem@davemloft.net>
22658
22659         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
22660         (___Q_zero): New.
22661         (__Q_simulate_exceptions): Return void.  Change to simulate
22662         exceptions by writing into the %fsr.
22663         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
22664         (__Qp_handle_exceptions): Likewise.
22665         (numbers): Delete.
22666         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
22667         __Qp_handle_exceptions.
22668         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
22669         __Qp_handle_exceptions.
22670         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22671         as unused and give dummy FP_RND_NEAREST initializer.
22672         (FP_INHIBIT_RESULTS): Define.
22673         (___Q_simulate_exceptions): Update declaration.
22674         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
22675         formatting.
22676         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22677         as unused and give dummy FP_RND_NEAREST initializer.
22678         (__Qp_handle_exceptions): Update declaration.
22679         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
22680         formatting.
22681
22682 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
22683
22684         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
22685         the temporary FPU control word.
22686         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
22687         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
22688         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22689         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22690         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22691         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22692         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22693         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22694         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22695         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
22696         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22697
22698 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22699
22700         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
22701         fields.
22702
22703 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
22704
22705         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
22706         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
22707         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
22708         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
22709         Likewise.
22710         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
22711         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
22712         Likewise.
22713
22714 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
22715
22716         * po/h.po: Update from translation team.
22717
22718 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
22719
22720         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
22721
22722         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
22723         handling of denormals.
22724         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
22725         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
22726         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
22727         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
22728         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
22729         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
22730         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
22731         Likewise.
22732
22733 2012-05-26  Marek Polacek  <polacek@redhat.com>
22734
22735         [BZ #14152]
22736         * math/libm-test.inc (fma_test): Don't always expect underflow
22737         exception.
22738
22739 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22740
22741         [BZ #12416]
22742         * elf/tst-execstack.c: Include stackinfo.h.
22743         (do_test): Adjust test case to ensure that pthread_getattr_np
22744         behaviour remains the same after marking stack executable.
22745
22746 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
22747
22748         * sysdeps/unix/sysv/linux/kernel-features.h
22749         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
22750         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
22751         kernel-features.h.
22752         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
22753         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
22754         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
22755         kernel-features.h.
22756         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
22757         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
22758
22759 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
22760
22761         * configure.in: Define the default includes to being none.
22762         * configure: Regenerated.
22763
22764 2012-05-25  Roland McGrath  <roland@hack.frob.com>
22765
22766         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
22767         * sysdeps/x86_64/setjmp.S: Likewise.
22768         * sysdeps/i386/bsd-setjmp.S: Likewise.
22769         * sysdeps/i386/bsd-_setjmp.S: Likewise.
22770         * sysdeps/i386/setjmp.S: Likewise.
22771         * sysdeps/i386/__longjmp.S: Likewise.
22772         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
22773         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
22774
22775         * include/stap-probe.h: New file.
22776         * configure.in: Handle --enable-systemtap.
22777         * configure: Regenerated.
22778         * config.h.in (USE_STAP_PROBE): New #undef.
22779         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
22780         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
22781         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
22782
22783 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
22784
22785         [BZ #13717]
22786         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
22787         to 2.4.0 where earlier.
22788         * sysdeps/unix/sysv/linux/configure: Regenerated.
22789         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22790         <kernel-features.h>.
22791         [__ASSUME_32BITUIDS]: Make code unconditional.
22792         [!__ASSUME_32BITUIDS]: Remove conditional code.
22793         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
22794         <kernel-features.h>.
22795         [__ASSUME_32BITUIDS]: Make code unconditional.
22796         [!__ASSUME_32BITUIDS]: Remove conditional code.
22797         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
22798         [__ASSUME_32BITUIDS]: Make code unconditional.
22799         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
22800         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
22801         <kernel-features.h>.
22802         [__ASSUME_32BITUIDS]: Make code unconditional.
22803         [!__ASSUME_32BITUIDS]: Remove conditional code.
22804         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
22805         <kernel-features.h>.
22806         [__ASSUME_32BITUIDS]: Make code unconditional.
22807         [!__ASSUME_32BITUIDS]: Remove conditional code.
22808         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
22809         <kernel-features.h>.
22810         [__ASSUME_32BITUIDS]: Make code unconditional.
22811         [!__ASSUME_32BITUIDS]: Remove conditional code.
22812         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
22813         <kernel-features.h>.
22814         [__ASSUME_32BITUIDS]: Make code unconditional.
22815         [!__ASSUME_32BITUIDS]: Remove conditional code.
22816         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22817         <kernel-features.h>.
22818         [__ASSUME_32BITUIDS]: Make code unconditional.
22819         [!__ASSUME_32BITUIDS]: Remove conditional code.
22820         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22821         <kernel-features.h>.
22822         [__ASSUME_32BITUIDS]: Make code unconditional.
22823         [!__ASSUME_32BITUIDS]: Remove conditional code.
22824         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
22825         <kernel-features.h>.
22826         [__ASSUME_32BITUIDS]: Make code unconditional.
22827         [!__ASSUME_32BITUIDS]: Remove conditional code.
22828         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22829         <kernel-features.h>.
22830         [__ASSUME_32BITUIDS]: Make code unconditional.
22831         [!__ASSUME_32BITUIDS]: Remove conditional code.
22832         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22833         <kernel-features.h>.
22834         [__ASSUME_32BITUIDS]: Make code unconditional.
22835         [!__ASSUME_32BITUIDS]: Remove conditional code.
22836         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
22837         <kernel-features.h>.
22838         [__ASSUME_32BITUIDS]: Make code unconditional.
22839         [!__ASSUME_32BITUIDS]: Remove conditional code.
22840         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
22841         <kernel-features.h>.
22842         [__NR_setresgid] (__setresgid): Do not declare.
22843         [__ASSUME_32BITUIDS]: Make code unconditional.
22844         [!__ASSUME_32BITUIDS]: Remove conditional code.
22845         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
22846         <kernel-features.h>.
22847         [__NR_setresuid] (__setresuid): Do not declare.
22848         [__ASSUME_32BITUIDS]: Make code unconditional.
22849         [!__ASSUME_32BITUIDS]: Remove conditional code.
22850         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
22851         <kernel-features.h>.
22852         [__ASSUME_32BITUIDS]: Make code unconditional.
22853         [!__ASSUME_32BITUIDS]: Remove conditional code.
22854         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
22855         <kernel-features.h>.
22856         [__ASSUME_32BITUIDS]: Make code unconditional.
22857         [!__ASSUME_32BITUIDS]: Remove conditional code.
22858         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
22859         <kernel-features.h>.
22860         [__ASSUME_32BITUIDS]: Make code unconditional.
22861         [!__ASSUME_32BITUIDS]: Remove conditional code.
22862         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
22863         <kernel-features.h>.
22864         [__ASSUME_32BITUIDS]: Make code unconditional.
22865         [!__ASSUME_32BITUIDS]: Remove conditional code.
22866         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
22867         <kernel-features.h>.
22868         [__ASSUME_32BITUIDS]: Make code unconditional.
22869         [!__ASSUME_32BITUIDS]: Remove conditional code.
22870         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
22871         <kernel-features.h>.
22872         [__ASSUME_32BITUIDS]: Make code unconditional.
22873         [!__ASSUME_32BITUIDS]: Remove conditional code.
22874         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
22875         <kernel-features.h>.
22876         [__ASSUME_32BITUIDS]: Make code unconditional.
22877         [!__ASSUME_32BITUIDS]: Remove conditional code.
22878         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
22879         <kernel-features.h>.
22880         [__ASSUME_32BITUIDS]: Make code unconditional.
22881         [!__ASSUME_32BITUIDS]: Remove conditional code.
22882         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
22883         <kernel-features.h>.
22884         [__ASSUME_32BITUIDS]: Make code unconditional.
22885         [!__ASSUME_32BITUIDS]: Remove conditional code.
22886         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
22887         <kernel-features.h>.
22888         [__ASSUME_32BITUIDS]: Make code unconditional.
22889         [!__ASSUME_32BITUIDS]: Remove conditional code.
22890         * sysdeps/unix/sysv/linux/kernel-features.h
22891         (__ASSUME_SETRESUID_SYSCALL): Remove.
22892         (__ASSUME_SETRESGID_SYSCALL): Likewise.
22893         (__ASSUME_32BITUIDS): Likewise.
22894         (__ASSUME_LDT_WORKS): Likewise.
22895         (__ASSUME_O_DIRECTORY): Likewise.
22896         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
22897         architecture but not kernel version.
22898         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
22899         (__ASSUME_MMAP2_SYSCALL): Likewise.
22900         (__ASSUME_STAT64_SYSCALL): Likewise.
22901         (__ASSUME_IPC64): Likewise.
22902         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
22903         <kernel-features.h>.
22904         [__ASSUME_32BITUIDS]: Make code unconditional.
22905         [!__ASSUME_32BITUIDS]: Remove conditional code.
22906         * sysdeps/unix/sysv/linux/opendir.c: Do not include
22907         <kernel-features.h>.
22908         [__ASSUME_O_DIRECTORY]: Make code unconditional.
22909         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
22910         132096]: Remove conditional code.
22911         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
22912         * sysdeps/unix/sysv/linux/s390/s390-32/chown.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/s390/s390-32/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/setegid.c: Do not include
22921         <kernel-features.h>.
22922         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
22923         unconditional.
22924         (__setresgid): Do not declare.
22925         [__ASSUME_32BITUIDS]: Make code unconditional.
22926         [!__ASSUME_32BITUIDS]: Remove conditional code.
22927         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
22928         <kernel-features.h>.
22929         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
22930         unconditional.
22931         (__setresuid): Do not declare.
22932         [__ASSUME_32BITUIDS]: Make code unconditional.
22933         [!__ASSUME_32BITUIDS]: Remove conditional code.
22934         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22935         <kernel-features.h>.
22936         [__ASSUME_32BITUIDS]: Make code unconditional.
22937         [!__ASSUME_32BITUIDS]: Remove conditional code.
22938         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
22939         <kernel-features.h>.
22940         [__ASSUME_32BITUIDS]: Make code unconditional.
22941         [!__ASSUME_32BITUIDS]: Remove conditional code.
22942
22943 2012-05-25  Richard Henderson  <rth@twiddle.net>
22944
22945         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
22946         dl_hwcap to ifunc resolver.
22947         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
22948         elf_ifunc_invoke.
22949         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
22950         dl_hwcap to ifunc resolver.
22951         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
22952
22953 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22954
22955         [BZ #14153]
22956         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
22957         for |x| <= 2**-26, not 2**-57.
22958         * math/libm-test.inc (acos_test): Do not allow spurious underflow
22959         exception.
22960
22961 2012-05-24  Jeff Law  <law@redhat.com>
22962
22963         * stdio-common/Makefile (tests): Add bug25.
22964         * stdio-common/bug25.c: New test.
22965
22966 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
22967
22968         [BZ #13576]
22969         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
22970         multiple of MALLOC_ALIGNMENT in size.
22971         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
22972
22973 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22974
22975         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
22976         Require >= 256.
22977         (FILENAME_MAX): Use macro-int-constant.
22978         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
22979         (_IOFBF): Use macro-int-constant.
22980         (_IOLBF): Likewise.
22981         (_IONBF): Likewise.
22982         (SEEK_CUR): Likewise.
22983         (SEEK_END): Likewise.
22984         (SEEK_SET): Likewise.
22985         (TMP_MAX): Likewise.
22986         (EOF): Use macro-int-constant.  Require < 0.
22987         (NULL): Use macro-constant.  Require == 0.
22988         (stdin): Require type to be FILE *.
22989         (stdout): Likewise.
22990         (stderr): Likewise.
22991         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
22992         macro-int-constant.
22993         (EXIT_SUCCESS): Likewise.
22994         (NULL): Use macro-constant.  Require == 0.
22995         (RAND_MAX): Use macro-int-constant.
22996         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
22997         [C99-based standards] (strtof): Require function.
22998         [C99-based standards] (strtold): Likewise.
22999         [C99-based standards] (strtoll): Likewise.
23000         [C99-based standards] (strtoull): Likewise.
23001         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
23002         [ISO || ISO99 || ISO11] (limits.h): Likewise.
23003         [ISO || ISO99 || ISO11] (math.h): Likewise.
23004         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
23005         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
23006         [ISO || ISO99 || ISO11] (*_t): Do not allow.
23007
23008 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
23009
23010         [BZ #14132]
23011         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
23012         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
23013         * intl/dgettext.c (DCGETTEXT): Likewise.
23014         * intl/gettext.c (DCGETTEXT): Likewise.
23015         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
23016         * posix/regex_internal.h (gettext): Likewise.
23017         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
23018         Remove declaration.
23019         * include/argz.h (__argz_count_internal)
23020         (__argz_stringify_internal): Remove declaration.
23021         (__argz_count, __argz_stringify): Declare hidden proto.
23022         * intl/dcgettext.c: Remove use of INTDEF.
23023         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
23024         * string/argz-stringify.c: Likewise.
23025         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23026         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23027         Declare hidden proto.
23028         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23029         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23030         Declare hidden proto.
23031         * include/stdio.h (__asprintf_internal): Don't declare.
23032         (__asprintf): Don't define as macro.  Declare hidden proto.
23033         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
23034         (__fsetlocking): Declare hidden proto.
23035         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
23036         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
23037         hidden proto.
23038         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
23039         (_IO_setlinebuf): Remove use of INTUSE.
23040         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
23041         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
23042         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
23043         Remove declaration.
23044         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
23045         (_IO_do_flush): Remove use of INTUSE.
23046         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
23047         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
23048         (_IO_adjust_column, _IO_least_wmarker)
23049         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
23050         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
23051         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
23052         (_IO_default_doallocate, _IO_wdefault_doallocate)
23053         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
23054         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
23055         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
23056         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
23057         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
23058         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
23059         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
23060         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
23061         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
23062         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
23063         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
23064         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
23065         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
23066         proto.
23067         (_IO_flush_all_internal, _IO_adjust_column_internal)
23068         (_IO_default_uflow_internal, _IO_default_finish_internal)
23069         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
23070         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
23071         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
23072         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
23073         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
23074         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
23075         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
23076         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
23077         (_IO_file_close_internal, _IO_file_close_it_internal)
23078         (_IO_file_underflow_internal, _IO_file_overflow_internal)
23079         (_IO_file_init_internal, _IO_file_attach_internal)
23080         (_IO_file_fopen_internal, _IO_file_read_internal)
23081         (_IO_file_sync_internal, _IO_file_seek_internal)
23082         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
23083         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
23084         (_IO_str_underflow_internal, _IO_str_overflow_internal)
23085         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
23086         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
23087         (_IO_list_all_internal, _IO_link_in_internal)
23088         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
23089         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
23090         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
23091         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
23092         (_IO_do_write_internal, _IO_padn_internal)
23093         (_IO_getline_info_internal, _IO_getline_internal)
23094         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
23095         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
23096         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
23097         (_IO_vfscanf_internal, _IO_vfprintf_internal)
23098         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
23099         (_IO_init_internal, _IO_un_link_internal): Don't declare.
23100         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
23101         with libc_hidden_ver, remove use of INTUSE.
23102         * libio/genops.c: Likewise.
23103         * libio/freopen.c: Likewise.
23104         * libio/freopen64.c: Likewise.
23105         * libio/iofclose.c: Likewise.
23106         * libio/iofdopen.c: Likewise.
23107         * libio/iofflush.c: Likewise.
23108         * libio/iofflush_u.c: Likewise.
23109         * libio/iofgets.c: Likewise.
23110         * libio/iofgets_u.c: Likewise.
23111         * libio/iofopen.c: Likewise.
23112         * libio/iofopncook.c: Likewise.
23113         * libio/iofread.c: Likewise.
23114         * libio/iofread_u.c: Likewise.
23115         * libio/ioftell.c: Likewise.
23116         * libio/iofwrite.c: Likewise.
23117         * libio/iogetline.c: Likewise.
23118         * libio/iogets.c: Likewise.
23119         * libio/iogetwline.c: Likewise.
23120         * libio/iopadn.c: Likewise.
23121         * libio/iopopen.c: Likewise.
23122         * libio/ioseekoff.c: Likewise.
23123         * libio/ioseekpos.c: Likewise.
23124         * libio/iosetbuffer.c: Likewise.
23125         * libio/iosetvbuf.c: Likewise.
23126         * libio/ioungetc.c: Likewise.
23127         * libio/ioungetwc.c: Likewise.
23128         * libio/iovdprintf.c: Likewise.
23129         * libio/iovsprintf.c: Likewise.
23130         * libio/iovsscanf.c: Likewise.
23131         * libio/memstream.c: Likewise.
23132         * libio/obprintf.c: Likewise.
23133         * libio/oldfileops.c: Likewise.
23134         * libio/oldiofclose.c: Likewise.
23135         * libio/oldiofdopen.c: Likewise.
23136         * libio/oldiofopen.c: Likewise.
23137         * libio/oldiopopen.c: Likewise.
23138         * libio/oldstdfiles.c: Likewise.
23139         * libio/putc.c: Likewise.
23140         * libio/setbuf.c: Likewise.
23141         * libio/setlinebuf.c: Likewise.
23142         * libio/stdfiles.c: Likewise.
23143         * libio/strops.c: Likewise.
23144         * libio/vasprintf.c: Likewise.
23145         * libio/vscanf.c: Likewise.
23146         * libio/vsnprintf.c: Likewise.
23147         * libio/vswprintf.c: Likewise.
23148         * libio/wfiledoalloc.c: Likewise.
23149         * libio/wfileops.c: Likewise.
23150         * libio/wgenops.c: Likewise.
23151         * libio/wmemstream.c: Likewise.
23152         * libio/wstrops.c: Likewise.
23153         * libio/__fpurge.c: Likewise.
23154         * libio/__fsetlocking.c: Likewise.
23155         * assert/assert.c: Likewise.
23156         * debug/fgets_chk.c: Likewise.
23157         * debug/fgets_u_chk.c: Likewise.
23158         * debug/fread_chk.c: Likewise.
23159         * debug/fread_u_chk.c: Likewise.
23160         * debug/gets_chk.c: Likewise.
23161         * debug/obprintf_chk.c: Likewise.
23162         * debug/vasprintf_chk.c: Likewise.
23163         * debug/vdprintf_chk.c: Likewise.
23164         * debug/vsnprintf_chk.c: Likewise.
23165         * debug/vsprintf_chk.c: Likewise.
23166         * malloc/mtrace.c: Likewise.
23167         * misc/error.c: Likewise.
23168         * misc/syslog.c: Likewise.
23169         * stdio-common/asprintf.c: Likewise.
23170         * stdio-common/fxprintf.c: Likewise.
23171         * stdio-common/getw.c: Likewise.
23172         * stdio-common/isoc99_fscanf.c: Likewise.
23173         * stdio-common/isoc99_scanf.c: Likewise.
23174         * stdio-common/isoc99_vfscanf.c: Likewise.
23175         * stdio-common/isoc99_vscanf.c: Likewise.
23176         * stdio-common/isoc99_vsscanf.c: Likewise.
23177         * stdio-common/printf-prs.c: Likewise.
23178         * stdio-common/printf_fp.c: Likewise.
23179         * stdio-common/printf_fphex.c: Likewise.
23180         * stdio-common/printf_size.c: Likewise.
23181         * stdio-common/putw.c: Likewise.
23182         * stdio-common/scanf.c: Likewise.
23183         * stdio-common/sprintf.c: Likewise.
23184         * stdio-common/tmpfile.c: Likewise.
23185         * stdio-common/vfprintf.c: Likewise.
23186         * stdio-common/vfscanf.c: Likewise.
23187         * stdlib/strfmon_l.c: Likewise.
23188         * sunrpc/openchild.c: Likewise.
23189         * sunrpc/xdr_stdio.c: Likewise.
23190         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
23191         * sysdeps/mach/hurd/tmpfile.c: Likewise.
23192
23193 2012-05-24  Roland McGrath  <roland@hack.frob.com>
23194
23195         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23196
23197         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
23198         in the third column, to generate for the shared library an IFUNC
23199         that uses _dl_vdso_vsym.
23200         * Makerules (COMPILE.c, compile-stdin.c): New variables.
23201         * Makeconfig (object-suffixes-noshared): New variable.
23202
23203         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
23204         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
23205         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
23206         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
23207
23208         [BZ #14132]
23209         * include/sys/time.h (__gettimeofday): Remove macro.
23210         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
23211         * time/gettimeofday.c (__gettimeofday): Remove #undef.
23212         Remove INTDEF.
23213         (__gettimeofday): Add libc_hidden_def.
23214         (gettimeofday): Add libc_hidden_weak.
23215         * sysdeps/mach/gettimeofday.c: Likewise.
23216         * sysdeps/posix/gettimeofday.c: Likewise.
23217         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
23218         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23219         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
23220         (__gettimeofday_internal): Remove strong_alias.
23221         (__gettimeofday): Add libc_hidden_def.
23222         (gettimeofday): Add libc_hidden_weak.
23223         * sysdeps/unix/syscalls.list (gettimeofday):
23224         Remove __gettimeofday_internal alias.
23225
23226 2012-05-24  Daniel Jacobowitz  <drow@false.org>
23227             H.J. Lu  <hongjiu.lu@intel.com>
23228
23229         [BZ #12495]
23230         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
23231         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
23232         (largebin_index_32_big): New.
23233         (largebin_index): Use it for 16-byte alignment.
23234         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
23235         correction with front_misalign.
23236
23237 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23238
23239         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
23240         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
23241         Likewise.
23242         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
23243         Likewise.
23244         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
23245         Likewise.
23246         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
23247         Likewise.
23248         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
23249         Likewise.
23250         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
23251         Likewise.
23252         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
23253         Likewise.
23254         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
23255         Likewise.
23256         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
23257         Likewise.
23258         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
23259         Likewise.
23260         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
23261         Likewise.
23262         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
23263         Likewise.
23264
23265         * scripts/data/c++-types-x32-linux-gnu.data: New file.
23266         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
23267
23268 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23269
23270         [BZ #10846]
23271         [BZ #14036]
23272         * math/libm-test.inc (exp_test): Add test from bug 14036.
23273         (pow_test): Add test from bug 10846.
23274
23275         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
23276         and other flags.
23277         (special_function): Do not include flags in test name.
23278         (parse_args): Likewise.
23279         * sysdeps/i386/fpu/libm-test-ulps: Update.
23280         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
23281         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
23282         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
23283         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23284
23285         * math/gen-libm-test.pl (%beautify): Add entries for underflow
23286         exceptions.
23287         * math/libm-test.inc ("Philosophy"): Update comment about
23288         exception testing.
23289         (UNDERFLOW_EXCEPTION): New macro.
23290         (UNDERFLOW_EXCEPTION_OK): Likewise.
23291         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
23292         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
23293         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
23294         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
23295         (INVALID_EXCEPTION_OK): Update value.
23296         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
23297         (OVERFLOW_EXCEPTION_OK): Likewise.
23298         (IGNORE_ZERO_INF_SIGN): Likewise.
23299         (test_exceptions): Handle underflow exceptions.
23300         (acos_test): Update for underflow exception expectations.
23301         (cexp_test): Likewise.
23302         (clog_test): Likewise.
23303         (clog10_test): Likewise.
23304         (csqrt_test): Likewise.
23305         (ctan_test): Likewise.
23306         (ctanh_test): Likewise.
23307         (exp_test): Likewise.
23308         (exp10_test): Likewise.
23309         (exp2_test): Likewise.
23310         (expm1_test): Likewise.
23311         (fma_test): Likewise.
23312         (j0_test): Likewise.
23313         (jn_test): Likewise.
23314         (nexttoward_test): Likewise.
23315         (pow_test): Likewise.
23316         (scalbn_test): Likewise.
23317         (scalbln_test): Likewise.
23318         (tan_test): Likewise.
23319         (y1_test): Likewise.
23320         * sysdeps/i386/fpu/libm-test-ulps: Update.
23321         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23322
23323 2012-05-23  David S. Miller  <davem@davemloft.net>
23324
23325         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
23326         (__libc_sigaction): Remove unused local variables.
23327
23328 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23329
23330         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
23331
23332 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23333
23334         mktime: avoid signed integer overflow
23335         * time/mktime.c (__mktime_internal): Do not mishandle the case
23336         where diff == INT_MIN.
23337
23338         mktime: simplify computation of average
23339         * time/mktime.c (ranged_convert): Use new time_t_avg function
23340         instead of rolling our own (probably-slower) code.
23341
23342         mktime: do not assume signed right shift propagates sign bit
23343         * time/mktime.c (isdst_differ): New static function.
23344         (__mktime_internal): No need to normalize tm_isdst now.
23345         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
23346         tm_isdst values.
23347
23348         mktime: merge another wrapv change from gnulib
23349         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
23350         from some compilers.
23351
23352         mktime: remove incorrect attempt at unusual arithmetics
23353         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
23354         The code didn't really work on such machines anyway.
23355         (TYPE_MINIMUM): Assume two's complement.
23356         (twos_complement_arithmetic): Verify that long_int and time_t
23357         are two's complement (or unsigned, in the latter case).
23358
23359         mktime: check signed shifts on long_int and time_t, too
23360         * time/mktime.c (SHR): Check that shifts work as desired
23361         on the types long_int and time_t too, as SHR is used on
23362         such types.
23363
23364         mktime: do not assume 'long' is wide enough
23365         * time/mktime.c (verify): Move decl up.
23366         (long_int): New type.
23367         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
23368         to remove assumption in the code that 'long' is wide enough to
23369         store year values.  This assumption is not true on x32 and on
23370         some non-glibc platforms.
23371
23372         mktime: merge wrapv change from gnulib
23373         * time/mktime.c (WRAPV): New macro.
23374         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
23375         (guess_time_tm, __mktime_internal): Do not assume that signed
23376         integer overflow wraps around; modern compilers generate code
23377         where this assumption is no longer valid.
23378
23379 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23380
23381         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23382         Replace "jmp L(pseudo_end)" with "ret".
23383         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
23384         Likewise.
23385
23386 2012-05-23  Andreas Jaeger  <aj@suse.de>
23387
23388         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
23389         * sysdeps/unix/sysv/linux/poll.c: Remove file.
23390
23391 2012-05-23  Andreas Jaeger  <aj@suse.de>
23392             Maximilian Attems  <max@stro.at>
23393
23394         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
23395         New macros.
23396
23397 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23398
23399         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
23400         code so that pseudo_end is just ret and the stack pointer is
23401         correct also for static library in error case.
23402
23403 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
23404
23405         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
23406         move to syscalls.list.
23407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
23408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
23409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
23410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
23411
23412         * manual/install.texi (Running make install): Do not mention Linux
23413         kernel version for which pt_chown is not needed.
23414         (Linux): Do not mention problems with nscd with 2.0 kernels.
23415         * INSTALL: Regenerated.
23416
23417 2012-05-23  Andreas Jaeger  <aj@suse.de>
23418
23419         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
23420         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
23421         macro.
23422         * sysdeps/unix/sysv/linux/s390/bits/mman.h
23423         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23424         * sysdeps/unix/sysv/linux/sh/bits/mman.h
23425         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23426         * sysdeps/unix/sysv/linux/i386/bits/mman.h
23427         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23428         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
23429         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23430         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
23431         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23432         * sysdeps/unix/sysv/linux/bits/in.h
23433         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
23434
23435 2012-05-22  Roland McGrath  <roland@hack.frob.com>
23436
23437         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
23438         (PREPARE_VERSION): Just use assert instead, it will be elided
23439         under [NDEBUG] anyway.
23440
23441 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23442
23443         * sysdeps/unix/sysv/linux/Makefile: Include
23444         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
23445         (sysdep_routines): Remove sysctl.
23446         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
23447         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
23448         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
23449         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
23450         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
23451
23452 2012-05-22  Andreas Jaeger  <aj@suse.de>
23453
23454         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
23455         that pseudo_end is just ret and the stack pointer is correct also
23456         for static library in error case.
23457
23458 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
23459
23460         [BZ #14122]
23461         * nss/nsswitch.c (defconfig_entries): New variable.
23462         (__nss_database_lookup): Don't leak defconfig entries.
23463         (nss_parse_service_list): Don't leak on error paths.
23464         (free_database_entries): New function.
23465         (free_defconfig): New function.
23466         (free_mem): Move common code to free_database_entries.
23467
23468 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23469
23470         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
23471         Add arch_prctl.
23472         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
23473
23474         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
23475         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
23476         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
23477         New macro.
23478         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
23479         (INTERNAL_SYSCALL_TYPES): Likewise.
23480         (LOAD_ARGS_TYPES_[1-6]): Likewise.
23481         (LOAD_REGS_TYPES_[1-6]): Likewise.
23482         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
23483         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
23484
23485 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23486
23487         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
23488         copysignl for GLIBC_2_0.
23489         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
23490         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
23491         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
23492         logbl for GLIBC_2_0.
23493         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23494         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23495
23496 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23497
23498         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
23499         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23500
23501         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23502         Use "neg %eax".
23503
23504         * time/mktime.c: Update copyright years.
23505
23506 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23507
23508         mktime: merge comment-quoting-style change from gnulib
23509         * time/mktime.c: Quote 'like this' in comments.
23510         The GNU coding standards suggest that we no longer quote `like this',
23511         as "`" and "'" are typically rendered asymmetrically nowadays.
23512         The typical gnulib style is to quote 'like this' when quoting
23513         code, and "like this" when quoting English.
23514
23515         * time/mktime.c (compile-command): Add "-I.".
23516
23517         mktime: merge mktime-internal.h change from gnulib
23518         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
23519
23520         mktime: merge time_r change from gnulib
23521         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
23522
23523         mktime: merge DEBUG change from gnulib
23524         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
23525         case system <time.h> has a #define.
23526
23527         mktime: merge <sys/types.h> change from gnulib
23528         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
23529         since <time.t> is now guaranteed to define time_t.
23530
23531         mktime: merge HAVE_CONFIG_H change from gnulib
23532         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
23533
23534 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23535
23536         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23537         Use "neg %eax".
23538
23539         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
23540         __rlim_t cast.
23541         (struct rusage): Use anonymous union to pad each field to
23542         __syscall_slong_t.
23543
23544 2012-05-21  David S. Miller  <davem@davemloft.net>
23545
23546         * Makefules (o-iterator): Remove .s cases.
23547         (compile-command.s): Delete.
23548         (COMPILE.s): Delete.
23549         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
23550
23551 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
23552
23553         * configure.in (libc_cv_predef_stack_protector): Only consider
23554         "foobar" and "__stack_chk_fail" lines in libc_undefs.
23555         * configure: Regenerated.
23556
23557 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23558
23559         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23560         New macro.  Use R*LP on int and pointer.
23561         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
23562         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
23563         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
23564         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
23565
23566         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
23567         [__WORDSIZE_TIME64_COMPAT32] instead of
23568         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
23569         (struct utmp): Likewise.
23570         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
23571         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
23572         Renamed to ...
23573         (__WORDSIZE_TIME64_COMPAT32): This.
23574         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
23575         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
23576         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
23577         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
23578         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
23579         (__WORDSIZE_TIME64_COMPAT32): New macro.
23580
23581 2012-05-21  Andreas Jaeger  <aj@suse.de>
23582
23583         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
23584         only if [SHARED]. Add prototype for __wcschr_ia32.
23585
23586 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23587
23588         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
23589         of %rbp unmolested in the jmp_buf while mangling the low bits.
23590         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
23591         unmolested high bits of %rbp while demangling the low bits.
23592         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23593
23594 2012-05-21  Andreas Jaeger  <aj@suse.de>
23595
23596         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
23597         * sunrpc/svc_simple.c: Use it for registerrpc.
23598         * sunrpc/xcrypt.c: Use it for passwd2des.
23599
23600         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
23601
23602 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23603
23604         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
23605         Don't define if [__SYSCALL_WORDSIZE != 32].
23606         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
23607         New macro.
23608
23609 2012-05-21  Bruno Haible  <bruno@clisp.org>
23610             Andreas Jaeger  <aj@suse.de>
23611
23612         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
23613         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
23614         inptr and inend for must_buffer_ch.
23615         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
23616         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
23617         * stdio-common/Makefile (tests): Remove bug15.
23618         (bug15-ENV): Remove macro.
23619         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
23620         anymore.
23621
23622 2012-05-19  Andreas Jaeger  <aj@suse.de>
23623             Roland McGrath  <roland@hack.frob.com>
23624
23625         * manual/contrib.texi: Completely rewritten. It contains now an
23626         alphabetical list of contributors and their contributions.
23627
23628 2012-05-21  Richard Henderson  <rth@twiddle.net>
23629
23630         * misc/getauxval.c (__getauxval): Use unsigned long int.
23631         * misc/sys/auxv.h: Include <sys/cdefs.h>.
23632         (getauxval): Use unsigned long int.
23633
23634 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23635
23636         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23637
23638 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23639
23640         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
23641         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
23642         __alignof__ (long double).
23643
23644 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23645
23646         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23647
23648 2012-05-20  Richard Henderson  <rth@twiddle.net>
23649
23650         * misc/getauxval.c: New file.
23651         * misc/sys/auxv.h: New file.
23652         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
23653         (routines): Add getauxval.
23654         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
23655         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
23656         * elf/dl-sysdep.c (_dl_auxv): Remove.
23657         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
23658         * elf/dl-support.c (_dl_auxv): New variable.
23659         (_dl_aux_init): Initialize it.
23660         * manual/startup.texi (Auxiliary Vector): New node.
23661         * sysdeps/generic/bits/hwcap.h: New file.
23662         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
23663         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
23664         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
23665         * sysdeps/sparc/sysdep.h: ... here.  Include it.
23666         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
23667         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
23668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23669         Update.
23670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
23671         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
23672         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
23673         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
23674         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23675         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23676         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
23677         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
23678
23679 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23680
23681         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23682
23683 2012-05-19  David S. Miller  <davem@davemloft.net>
23684
23685         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23686
23687 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23688
23689         [BZ #14123]
23690         * math/s_ccosh.c: Include <float.h>
23691         (__ccosh): Avoid internal overflow calculating sinh and cosh
23692         values before multiplying by sin and cos values.
23693         * math/s_ccoshf.c: Likewise.
23694         * math/s_ccoshl.c: Likewise.
23695         * math/s_csin.c: Likewise.
23696         * math/s_csinf.c: Likewise.
23697         * math/s_csinl.c: Likewise.
23698         * math/s_csinh.c: Likewise.
23699         * math/s_csinhf.c: Likewise.
23700         * math/s_csinhl.c: Likewise.
23701         * math/libm-test.inc (ccos_test): Add more tests.
23702         (ccosh_test): Likewise.
23703         (csin_test): Likewise.
23704         (csinh_test): Likewise.
23705         * sysdeps/i386/fpu/libm-test-ulps: Update.
23706         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23707
23708 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
23709
23710         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
23711         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
23712
23713         * sysdeps/x86_64/x32/_itoa.h: Add comment.
23714
23715 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23716
23717         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
23718         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
23719         * sysdeps/powerpc/soft-fp/Versions: Likewise.
23720         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
23721         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
23722         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
23723         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
23724         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
23725         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
23726         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
23727         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
23728         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
23729         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
23730         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
23731         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
23732         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
23733         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
23734         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
23735         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
23736         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
23737         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
23738         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
23739         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
23740         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
23741         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
23742         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
23743         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
23744         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
23745         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
23746         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
23747         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
23748
23749 2012-05-18  Andreas Jaeger  <aj@suse.de>
23750
23751         * csu/.gitignore: Delete.
23752
23753 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23754
23755         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
23756         (timex): Use __syscall_slong_t.
23757
23758 2012-05-18  Andreas Jaeger  <aj@suse.de>
23759             Carlos O'Donell  <carlos_odonell@mentor.com>
23760
23761         * manual/install.texi (Configuring and compiling): Update
23762         description about files modified in the source directory.
23763         * INSTALL: Regenerated.
23764
23765 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23766
23767         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
23768         value.  Use "or" to set return value to -1.
23769         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
23770         negate return value.
23771
23772 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23773
23774         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
23775         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
23776         failure if the compiler has Graphite support disabled.
23777         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
23778         Likewise.
23779         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
23780         CFLAGS-memmove.c): Likewise.
23781         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
23782         Likewise.
23783
23784 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23785
23786         * sysdeps/x86_64/x32/_itoa.h: New file.
23787
23788         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
23789         getdents system call only if kernel and user dirents have the
23790         same d_ino and d_off.
23791
23792         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
23793         LLONG_MAX != LONG_MAX.
23794         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23795         (_fitoa_word): Likewise.
23796
23797         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
23798         years.
23799         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
23800         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
23801         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
23802
23803         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
23804         include <bits/wordsize.h>.  Check __x86_64__ instead of
23805         __WORDSIZE.
23806         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
23807         if __x86_64__ is defined.  Use anonymous union on fpstate.
23808
23809         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
23810         anonymous union.
23811
23812 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
23813
23814         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
23815         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
23816         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
23817         Refer to _rtld_local_ro instead of _rtld_global_ro.
23818         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
23819         Likewise.
23820         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
23821         Likewise.
23822         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
23823         Likewise.
23824         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
23825         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
23826         of _rtld_global, and rtld_progname instead of _dl_argv[0].
23827
23828         * sysdeps/powerpc/powerpc32/dl-machine.c
23829         (__elf_machine_runtime_setup) [PROF]: Don't reference
23830         _dl_prof_resolve.
23831
23832 2012-05-18  Andreas Jaeger  <aj@suse.de>
23833
23834         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
23835         function only available for GCCs before 3.4 since GCC 3.4
23836         introduced a builtin.
23837         (lrint): Likewise.
23838         (llrintf): Likewise.
23839         (llrint): Likewise.
23840         (fmaxf): Likewise.
23841         (fmax): Likewise.
23842         (fminf): Likewise.
23843         (fmin): Likewise.
23844         (rint): Likewise.
23845         (rintf): Likewise.
23846         (nearbyint): Likewise.
23847         (nearbyintf): Likewise.
23848         (ceil): Likewise.
23849         (ceilf): Likewise.
23850         (floor): Likewise.
23851         (floorf): Likewise.
23852
23853 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23854
23855         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
23856         on both fields and cast pointer to __syscall_ulong_t.
23857
23858         * bits/types.h (__fsword_t): New type.
23859         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
23860         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
23861         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23862         (__FSWORD_T_TYPE): Likewise.
23863         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23864         (__FSWORD_T_TYPE): Likewise.
23865         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23866         (__FSWORD_T_TYPE): Likewise.
23867         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
23868         (__FSWORD_T_TYPE): Likewise.
23869         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
23870         __SWORD_TYPE with __fsword_t.
23871         (statfs64): Likewise.
23872
23873 2012-05-17  David S. Miller  <davem@davemloft.net>
23874
23875         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
23876
23877 2012-05-17  Andreas Jaeger  <aj@suse.de>
23878
23879         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
23880         warning.
23881
23882 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23883
23884         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
23885
23886 2012-05-17  Andreas Jaeger  <aj@suse.de>
23887
23888         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
23889         when it is used.
23890
23891 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
23892
23893         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
23894
23895 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23896
23897         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
23898         * sysdeps/x86_64/tst-mallocalign1.c: New file.
23899
23900 2012-05-17  Andreas Jaeger  <aj@suse.de>
23901             Carlos O'Donell  <carlos_odonell@mentor.com>
23902
23903         [BZ #14059]
23904         * sysdeps/x86_64/multiarch/init-arch.h
23905         (bit_YMM_Usable): Rename to...
23906         (bit_AVX_Usable): ... this.
23907         (bit_FMA4_Usable): New macro.
23908         (bit_XMM_state): New macro.
23909         (bit_YMM_state): New macro.
23910         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
23911         [__ASSEMBLER__] (index_AVX_Usable): ... this.
23912         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
23913         (CPUID_OSXSAVE): New macro.
23914         (CPUID_AVX): New macro.
23915         (CPUID_FMA4): New macro.
23916         (index_YMM_Usable): Rename to...
23917         (index_AVX_Usable): ... this.
23918         (HAS_AVX): Use HAS_ARCH_FEATURE.
23919         (HAS_FMA4): Likewise.
23920         (HAS_YMM_USABLE): Remove.
23921         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23922         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
23923         are present.
23924         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
23925         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
23926         * sysdeps/x86_64/multiarch/Makefile: Likewise.
23927         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
23928         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
23929
23930 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
23931
23932         * math/libm-test.c: Support platforms without multiple rounding modes.
23933         * math/bug-nextafter.c: Support platforms without FP exceptions.
23934         * math/bug-nexttoward.c: Likewise.
23935         * math/test-fenv.c: Likewise.
23936         * math/test-misc.c: Likewise.
23937         * stdlib/bug-getcontext.c: Likewise.
23938
23939 2012-05-17  Andreas Jaeger  <aj@suse.de>
23940
23941         * manual/examples/search.c (critter_cmp): Change signature to
23942         avoid warnings.
23943         * manual/string.texi (Collation Functions): Likewise.
23944
23945 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23946
23947         * bits/types.h: Fold copyright years.
23948         * bits/typesizes.h: Likewise.
23949         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
23950         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
23951         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
23952         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
23953         * time/time.h: Likewise.
23954
23955 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
23956
23957         [BZ #208]
23958         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
23959         in instead of returning them.  Return void.
23960         (__libc_mallinfo): Accumulate over all arenas.
23961         (__malloc_stats): Adjust for change in int_mallinfo interface.
23962
23963 2012-05-16  Roland McGrath  <roland@hack.frob.com>
23964
23965         [BZ #10375]
23966         * configure.in (NM): Add AC_CHECK_TOOL for it.
23967         (libc_extra_cflags): New substituted variable.
23968         Check for -fstack-protector being used implicitly.
23969         * configure: Regenerated.
23970         * config.make.in (config-extra-cflags): New variable,
23971         gets @libc_extra_cflags@.
23972         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
23973
23974         [BZ #10375]
23975         * configure.in: Check for _FORTIFY_SOURCE being predefined.
23976         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
23977         * configure: Regenerated.
23978         * config.make.in (CPPUNDEFS): New substituted variable.
23979         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
23980         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
23981         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
23982
23983 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23984
23985         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
23986         (mq_attr): Use __syscall_slong_t.
23987
23988 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23989
23990         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
23991         Check __x86_64__ instead of __WORDSIZE.
23992         (_STAT_VER_LINUX): Likewise.
23993         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
23994         __syscall_ulong_t and __syscall_slong_t.
23995         (stat64): Likewise.
23996
23997 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23998
23999         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
24000
24001 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24002
24003         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
24004
24005 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24006
24007         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
24008         __syscall_ulong_t.
24009
24010         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
24011         include <bits/wordsize.h>.  Check __x86_64__ instead of
24012         __WORDSIZE.
24013         (greg_t): Use "__extension__ long long int" if __x86_64__ is
24014         defined.
24015         (mcontext_t): Replace "unsigned long" with "unsigned long long".
24016
24017         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
24018         include <bits/wordsize.h>.  Check __x86_64__ instead of
24019         __WORDSIZE.
24020         (user_regs_struct): Use "__extension__ unsigned long long"
24021         instead of "unsigned long" if __x86_64__ is defined.
24022         (user): Likewise.  Pad after pointer field if __ILP32__ is
24023         defined.
24024
24025 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
24026
24027         * configure.in (makeinfo): Require version 4.5 or later.  Allow
24028         versions 5 to 9.
24029         * configure: Regenerated.
24030         * manual/install.texi (texinfo): Increase version requirement to
24031         4.5 or later.
24032         * INSTALL: Regenerated.
24033
24034         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
24035
24036 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24037
24038         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
24039
24040         * sysdeps/x86_64/x32/ffs.c: New file.
24041
24042         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
24043         __syscall_ulong_t.
24044         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
24045         defined.  Use __syscall_ulong_t.
24046         (shminfo): Use __syscall_ulong_t.
24047         (shm_info): Likewise.
24048
24049         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
24050         __syscall_ulong_t.
24051
24052         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
24053         <bits/wordsize.h>.
24054         (msgqnum_t): Use __syscall_ulong_t.
24055         (msglen_t): Likewise.
24056         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
24057         __syscall_ulong_t.
24058
24059         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
24060         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24061
24062         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
24063
24064         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
24065         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
24066
24067         * sysvipc/sys/msg.h (msgbuf): Replace long int with
24068         __syscall_slong_t.
24069
24070         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
24071         include <bits/wordsize.h>.  Check __x86_64__ instead of
24072         __WORDSIZE.
24073
24074         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
24075         "unsigned long long int" if __x86_64__ is defined.
24076         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
24077
24078         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
24079         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24080         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
24081
24082         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
24083         <stdint.h>.
24084         (GET_PC): Cast to uintptr_t first.
24085         (GET_FRAME): Likewise.
24086         (GET_STACK): Likewise.
24087
24088         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
24089         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
24090         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
24091         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
24092         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
24093         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
24094         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
24095         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
24096         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
24097         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
24098         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
24099         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
24100         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
24101         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
24102         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
24103         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
24104         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
24105         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
24106         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
24107         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
24108         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
24109         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
24110         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
24111         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
24112         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
24113         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
24114         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
24115         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
24116         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
24117
24118 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
24119
24120         * Makerules (+depfiles): Also collect depfiles from .oS in
24121         $(extra-objs).
24122         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
24123         .oS, $(libnldbl-routines)).
24124
24125         * Makerules (native-compile-mkdep-flags): Define.
24126         * sunrpc/Makefile (extra-objs): Add $(addprefix
24127         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
24128         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
24129         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
24130         calling $(make-target-directory).
24131
24132 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24133
24134         * bits/types.h (__snseconds_t): Removed.
24135         * time/time.h (struct timespec): Replace __snseconds_t with
24136         __syscall_slong_t.
24137         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
24138         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
24139         Likewise.
24140         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24141         (__SNSECONDS_T_TYPE): Likewise.
24142         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24143         (__SNSECONDS_T_TYPE): Likewise.
24144         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24145         (__SNSECONDS_T_TYPE): Likewise.
24146
24147 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24148
24149         * sysdeps/mach/hurd/bits/typesizes.h
24150         (__SYSCALL_SLONG_TYPE): New macro.
24151         (__SYSCALL_ULONG_TYPE): Likewise.
24152
24153 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24154
24155         * bits/types.h (__syscall_slong_t): New type.
24156         (__syscall_ulong_t): Likewise.
24157
24158         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
24159         (__SYSCALL_ULONG_TYPE): Likewise.
24160         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24161         (__SYSCALL_SLONG_TYPE): Likewise.
24162         (__SYSCALL_ULONG_TYPE): Likewise.
24163         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24164         (__SYSCALL_SLONG_TYPE): Likewise.
24165         (__SYSCALL_ULONG_TYPE): Likewise.
24166         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24167         (__SYSCALL_SLONG_TYPE): Likewise.
24168         (__SYSCALL_ULONG_TYPE): Likewise.
24169
24170 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24171
24172         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
24173         Add sigaltstack-offsets.sym.
24174         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
24175         <sigaltstack-offsets.h>.
24176         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
24177         longjmp_msg pointer.
24178         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
24179         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
24180         signal stack.
24181         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
24182
24183 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24184
24185         * elf/stackguard-macros.h: Remove file.
24186         * sysdeps/generic/stackguard-macros.h: New file.
24187         * sysdeps/i386/stackguard-macros.h: Likewise.
24188         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
24189         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
24190         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
24191         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
24192         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
24193         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
24194         * sysdeps/x86_64/stackguard-macros.h: Likewise.
24195         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
24196         <elf/stackguard-macros.h>.
24197
24198         [BZ #14109]
24199         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
24200         __aligned__ in attribute.
24201         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
24202         (gregset_t): Likewise.
24203
24204 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24205
24206         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
24207         * sysdeps/x86_64/64/Implies-after: Here.  New file.
24208         * sysdeps/x86_64/x32/Implies-after: New file.
24209
24210 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24211
24212         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
24213         and access return value for _dl_profile_fixup.  Use R10_LP to
24214         load frame size.
24215
24216 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24217
24218         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
24219
24220 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24221
24222         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
24223         * sysdeps/x86_64/x32/sysdep.h: New file.
24224
24225 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24226
24227         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
24228         * sysdeps/x86_64/setjmp.S: Likewise.
24229
24230 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24231
24232         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
24233         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
24234         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
24235         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
24236         remove unused global constant.
24237
24238 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
24239
24240         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
24241         include of <not-cancel.h>.
24242
24243 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24244
24245         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
24246
24247 2012-05-15  Jeff Law  <law@redhat.com>
24248             Andreas Jaeger  <aj@suse.de>
24249
24250         [BZ #13594]
24251         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
24252         out from...
24253         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
24254         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
24255         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
24256         code changing __hst_map_handle.map.
24257
24258 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24259
24260         * configure.in (sysnames): Look for Implies-before and Implies-after
24261         files.
24262         * configure: Regenerated.
24263
24264 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24265
24266         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
24267         8-byte data alignment with LP_SIZE alignment.
24268
24269 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24270
24271         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
24272         into R10_LP.
24273
24274 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24275
24276         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
24277
24278 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24279
24280         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
24281         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
24282         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
24283         Likewise.
24284         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
24285
24286 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24287
24288         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
24289         (stackinfo_sub_sp): Likewise.
24290
24291 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24292
24293         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
24294         RAX_LP.
24295
24296 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24297
24298         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
24299         into R*_LP.
24300
24301 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24302
24303         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
24304         sizes into R*_LP.
24305
24306 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24307
24308         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
24309
24310 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24311
24312         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
24313         into R11_LP and load __x86_64_shared_cache_size_half into
24314         R8_LP.
24315
24316 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24317
24318         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
24319         R8_LP.
24320
24321 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24322
24323         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
24324         logb for POWER7.
24325         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
24326         logbf for POWER7.
24327         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
24328         logbl for POWER7.
24329         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
24330         powerpc32/power7/fpu/s_logb.c via #include.
24331         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
24332         powerpc32/power7/fpu/s_logbf.c via #include.
24333         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
24334         powerpc32/power7/fpu/s_logbl.c via #include.
24335
24336 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24337
24338         * README.libm: Remove file.
24339
24340 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24341
24342         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
24343         count for x32.  Use R*_LP and omit operand-size suffix.
24344
24345 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24346
24347         * shlib-versions: Move x86_64-.*-linux.* entries to ...
24348         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
24349         * sysdeps/x86_64/x32/shlib-versions: New file.
24350
24351 2012-05-14  Roland McGrath  <roland@hack.frob.com>
24352
24353         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
24354         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
24355         Use _dl_fatal_printf instead.
24356
24357 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24358
24359         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
24360         set if not set by the user.  Do not allow for being unset.
24361         * sysdeps/unix/sysv/linux/configure: Regenerated.
24362
24363 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24364
24365         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
24366         the `q' suffix from lea and replace .quad with ASM_ADDR.
24367
24368 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24369
24370         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
24371         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
24372         instead of $17.
24373         (PTR_DEMANGLE): Likewise.
24374
24375 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24376
24377         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
24378         (LP_OP): Likewise.
24379         (ASM_ADDR): Likewise.
24380         (RAX_LP): Likewise.
24381         (RBP_LP): Likewise.
24382         (RBX_LP): Likewise.
24383         (RCX_LP): Likewise.
24384         (RDI_LP): Likewise.
24385         (RSI_LP): Likewise.
24386         (RSP_LP): Likewise.
24387         (R8_LP): Likewise.
24388         (R9_LP): Likewise.
24389         (R10_LP): Likewise.
24390         (R10_LP): Likewise.
24391         (R11_LP): Likewise.
24392         (R12_LP): Likewise.
24393         (R13_LP): Likewise.
24394         (R14_LP): Likewise.
24395         (R15_LP): Likewise.
24396
24397 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24398
24399         * sysdeps/x86_64/x32/dl-machine.h: New file.
24400
24401 2012-05-14  Andreas Jaeger  <aj@suse.de>
24402
24403         * manual/Makefile (subdir): Remove export of subdir.
24404         (all): Remove target.
24405         (.PHONY): Remove all from list.
24406         (mkinstalldirs): Remove.
24407         (.PHONY): Remove installdirs from list.
24408         ($(inst_infodir)/libc.info): Use make-target-directory.
24409         (installdirs): Remove.
24410         (subdir_%): Remove.
24411         (glibc-targets): Remove.
24412         (lib): Remove.
24413         (stubs): Remove.
24414         ($(objpfx)stubs ../po/manual.pot): Remove.
24415         ($(objpfx)stamp%): Remove.
24416         (make-target-directory): Remove.
24417         (subdir_install): Remove.
24418         (routines): Remove.
24419         (aux): Remove.
24420         (sources): Remove.
24421         (objects): Remove.
24422         (headers): Remove.
24423
24424         [BZ #13750]
24425         * manual/.gitignore: Remove, it's not needed anymore.
24426         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
24427         all files in it.
24428         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
24429         directory.
24430         (texis): Renamed to $(objpfx)texis.
24431         (texis-path): New, contains path to generated files.
24432         (chapters.%): Use texis-path for complete path, add extra argument
24433         libc-texinfo.sh.
24434         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
24435         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
24436         (summary,texi, stamp-summary): Use complete path of
24437         files. Generate files in build dir.
24438         (dir-add.texi): Build in build dir.
24439         (libm-err.texi,stamp-libm-err): Likewise.
24440         (version.texi, stamp-version): Likewise.
24441         (.%c.texi): Likewise.
24442         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
24443         (mostlyclean): Remove target.
24444         (realclean): Remove target.
24445         (generated): Add new variable with contents from mostlyclean and
24446         realclean, remove entries duplicated in common-mostlyclean, add
24447         stamp-libm-err and stamp-version.
24448         (generated-dirs): Add libc directory.
24449         ($(inst_infodir)/libc.info): Install files from build dir.
24450
24451         * manual/install.texi (Configuring and compiling): Adjust since
24452         the info files are not part of the tar ball anymore.
24453
24454 2012-05-14  Andreas Jaeger  <aj@suse.de>
24455
24456         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
24457         variable.
24458
24459 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24460
24461         [BZ #13717]
24462         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
24463         to 2.2.0 where earlier.
24464         * sysdeps/unix/sysv/linux/configure: Regenerated.
24465         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
24466         Remove conditional code.
24467         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
24468         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
24469         Remove conditional code.
24470         [!__NR_lchown]: Likewise.
24471         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24472         [__NR_lchown]: Likewise.
24473         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
24474         comment referencing __ASSUME_LCHOWN_SYSCALL.
24475         * sysdeps/unix/sysv/linux/i386/sigaction.c
24476         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24477         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24478         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
24479         Remove conditional code.
24480         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
24481         (__protocol_available): Remove #if 0 code.
24482         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
24483         conditional code.
24484         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
24485         * sysdeps/unix/sysv/linux/kernel-features.h
24486         (__ASSUME_GETCWD_SYSCALL): Don't define.
24487         (__ASSUME_REALTIME_SIGNALS): Likewise.
24488         (__ASSUME_PREAD_SYSCALL): Likewise.
24489         (__ASSUME_PWRITE_SYSCALL): Likewise.
24490         (__ASSUME_POLL_SYSCALL): Likewise.
24491         (__ASSUME_LCHOWN_SYSCALL): Likewise.
24492         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
24493         non-SPARC.
24494         (__ASSUME_SIOCGIFNAME): Don't define.
24495         (__ASSUME_MSG_NOSIGNAL): Likewise.
24496         (__ASSUME_SENDFILE): Define unconditionally.
24497         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
24498         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
24499         conditional code.
24500         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
24501         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
24502         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24503         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24504         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
24505         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24506         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
24508         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24509         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
24511         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24512         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
24514         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24515         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
24517         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24518         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
24520         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24521         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
24523         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24524         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
24526         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24527         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
24529         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24530         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24531         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
24532         Remove conditional code.
24533         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24534         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24535         Remove conditional code.
24536         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24537         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
24538         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
24539         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24540         Remove conditional code.
24541         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24542         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
24543         Remove conditional code.
24544         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24545         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
24546         Remove conditional code.
24547         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24548         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24549         Remove conditional code.
24550         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24551         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24552         Remove conditional code.
24553         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24554         * sysdeps/unix/sysv/linux/sh/pwrite64.c
24555         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24556         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24557         * sysdeps/unix/sysv/linux/sigaction.c
24558         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24559         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24560         * sysdeps/unix/sysv/linux/sigpending.c
24561         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24562         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24563         * sysdeps/unix/sysv/linux/sigprocmask.c
24564         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24565         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24566         * sysdeps/unix/sysv/linux/sigsuspend.c
24567         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24568         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24569         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
24570         (__libc_missing_rt_sigs): Remove.
24571         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
24572         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
24573         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
24574         Remove conditional code.
24575         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
24576         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
24577         return 1.
24578         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
24579         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
24580         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
24581         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
24582
24583 2012-05-14  Andreas Jaeger  <aj@suse.de>
24584
24585         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
24586         it's not used in glibc.
24587         (__coshm1): Likewise.
24588         (__acosh1p): Likewise.
24589         (__sgn): Likewise.
24590
24591         * manual/string.texi (Copying and Concatenation): Add missing
24592         variable in concat example.
24593         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
24594
24595 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24596
24597         [BZ #14103]
24598         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
24599         __builtin_clzl with __builtin_clzll.
24600
24601 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24602
24603         [BZ #14104]
24604         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
24605         libc_freeres_ptr.
24606
24607 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24608
24609         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
24610         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
24611         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
24612         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
24613
24614 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
24615
24616         * NEWS: Update ia64 info.
24617
24618 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
24619
24620         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
24621         used as bcopy.
24622
24623 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
24624
24625         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
24626         * sysdeps/unix/syscalls.list (dup3): Likewise.
24627         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
24628         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
24629
24630 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24631
24632         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
24633         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
24634
24635 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24636
24637         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
24638         thread pointer.
24639         (TLS_IE): Use mov/add instead of movq/addq to load thread
24640         pointer.
24641         (TLS_GD_PREFIX): New.
24642         (TLS_GD): Use it.
24643
24644 2012-05-11  David S. Miller  <davem@davemloft.net>
24645
24646         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
24647         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
24648         (_FPU_SETCW): Likewise.
24649
24650 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24651
24652         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
24653         is 32-byte aligned.
24654
24655 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
24656
24657         [BZ #11837]
24658         * iconvdata/gb18030.c: Update tables.
24659         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
24660         characters specially.
24661         (BODY for TO_LOOP): Add encoding of missing ranges.
24662
24663 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
24664
24665         [BZ #13673]
24666         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
24667         * sysdeps/mach/hurd/dup3.c: Likewise.
24668         * sysdeps/mach/hurd/readlinkat.c: Likewise.
24669         * sysdeps/powerpc/memmove.c:: Likewise.
24670
24671 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24672
24673         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
24674         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
24675
24676 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24677
24678         * elf/elf.h (R_X86_64_RELATIVE64): New.
24679         (R_X86_64_NUM): Updated.
24680         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
24681         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
24682         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
24683         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
24684         tst-quad1pie tst-quad2pie
24685         (modules-names): Add tst-quadmod1 tst-quadmod2.
24686         ($(objpfx)tst-quad1): New dependency.
24687         ($(objpfx)tst-quad2): Likewise.
24688         ($(objpfx)tst-quad1pie): Likewise.
24689         ($(objpfx)tst-quad2pie): Likewise.
24690         * sysdeps/x86_64/tst-quad1.c: New file.
24691         * sysdeps/x86_64/tst-quad1pie.c: New file.
24692         * sysdeps/x86_64/tst-quad2.c: Likewise.
24693         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
24694         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
24695         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
24696         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
24697         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
24698
24699 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24700
24701         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
24702         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
24703         * streams/stropts.h (t_scalar_t): Define type.
24704
24705         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
24706         (_PATH_PRESERVE): Set to "/var/lib".
24707         (_PATH_RWHODIR): Set to "/var/spool/rwho".
24708
24709         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
24710         instead of int.
24711
24712         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
24713         if __dir_mkfile succeeded.
24714
24715         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
24716         checking for _hurd_dtablesize.  Unlock it right after having
24717         finished _hurd_dtable allocation.
24718
24719 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24720
24721         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
24722         * sysdeps/mach/hurd/configure: Regenerated.
24723         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
24724         special-casing to...
24725         * sysdeps/gnu/configure.in: ... this new file.
24726         * sysdeps/unix/sysv/linux/configure: Regenerated.
24727         * sysdeps/gnu/configure: New generated file.
24728
24729         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
24730         for Linux: use nsec instead of usec, as well as:
24731         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
24732         members of type struct timespec.
24733         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
24734         New macros.
24735         (struct stat64): Likewise.
24736         (_STATBUF_ST_NSEC): New macro.
24737         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
24738
24739         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
24740         __strtoul_internal rather than strtoul.
24741
24742 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24743
24744         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
24745         and reject them.
24746
24747 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24748
24749         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
24750         which preserves existing values.
24751         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
24752
24753 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24754
24755         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
24756         TIMEOUT values.  Return EINVAL for NFDS values either negative or
24757         greater than FD_SETSIZE.
24758
24759 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24760
24761         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
24762         allocated, call __vm_protect to finish enabling the existing space, and
24763         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
24764         allocate the remainder.
24765
24766 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24767
24768         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
24769         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
24770
24771 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24772
24773         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
24774         sysdeps/mach/hurd/readlink.c.
24775
24776         * posix/tst-sysconf.c (posix_options): Only use
24777         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
24778         _POSIX_SYNCHRONIZED_IO when they are defined
24779         * sysdeps/mach/hurd/bits/posix_opt.h:
24780         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
24781         (_XOPEN_REALTIME): Undefine macro.
24782         (_XOPEN_REALTIME_THREADS): Undefine macro.
24783         (_XOPEN_SHM): Undefine macro.
24784         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
24785         macro to -1.
24786         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
24787         macro to -1.
24788         (_POSIX_ASYNC_IO): Undefine macro.
24789         (_POSIX_PRIORITIZED_IO): Undefine macro.
24790         (_POSIX_SPIN_LOCKS): Define macro to -1.
24791
24792         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
24793         SA_NODEFER, SA_RESETHAND.
24794         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
24795         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
24796         F_DUPFD_CLOEXEC.
24797
24798 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24799
24800         * elf/Makefile (pldd-modules): Define unconditionally.
24801
24802 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24803
24804         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
24805
24806 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24807
24808         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
24809         Return ENOENT when name is empty.
24810         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
24811
24812 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24813
24814         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
24815
24816         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
24817
24818 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24819
24820         Fix mlock in all cases except non-readable pages.
24821         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
24822         instead of VM_PROT_ALL as parameter to __vm_wire function.
24823
24824         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
24825         (__mkdir): When path is `/', just fail with EEXIST.
24826         * sysdeps/mach/hurd/mkdirat.c: Likewise.
24827
24828 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24829
24830         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
24831         <sys/uio.h> (for writev).
24832         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
24833         and <sys/param.h> (for MIN).
24834
24835 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24836
24837         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
24838         REQUESTED_TIME.  Properly set the remaining time and return EINTR
24839         if interrupted.
24840
24841 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24842
24843         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
24844         Depend on against $(link-rpcuserlibs).
24845
24846 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24847
24848         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
24849         (__libc_stack_end): Do not use attribute_relro.
24850         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
24851         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
24852         to libthread-provided value.
24853         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
24854         attribute_relro.
24855
24856 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24857
24858         [BZ #3748]
24859         * bits/libc-lock.h (__libc_once_get): New macro.
24860         * sysdeps/mach/bits/libc-lock.h: Likewise.
24861         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
24862         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
24863         instead of using implementation details.
24864
24865         * libio/fileops.c: Unconditionally include <kernel-features.h>.
24866         * libio/freopen.c: Likewise.
24867         * libio/freopen64.c: Likewise.
24868         * misc/syslog.c: Likewise.
24869         * nscd/connections.c: Likewise.
24870         * nscd/netgroupcache.c: Likewise.
24871         * sysdeps/posix/getcwd.c: Likewise.
24872
24873 2012-05-10  Roland McGrath  <roland@hack.frob.com>
24874
24875         * math/w_ilogbf.c: Add #include <limits.h>.
24876
24877 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24878
24879         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
24880         path instead of returning without unlocking.
24881
24882         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
24883         immediate-write ioctls.
24884         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
24885
24886 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24887
24888         * sysdeps/mach/hurd/i386/init-first.c (init): Use
24889         __builtin_frame_address instead of making assumptions about the
24890         location of the return address relative to DATA.  Force early load of
24891         the return address.
24892         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
24893         __builtin_frame_address.
24894
24895         dup3 for GNU Hurd.
24896         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
24897         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
24898         implement dup3 and do some further code clean-ups.
24899         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
24900         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
24901
24902 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24903
24904         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
24905
24906         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
24907         HURD_CRITICAL_END around holding _hurd_dtable_lock.
24908         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
24909         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
24910         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
24911         d->port.lock.
24912
24913         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
24914         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
24915         when handler == SIG_ERR, not when handler != SIG_ERR.
24916
24917 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24918
24919         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
24920         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
24921         definitions.
24922
24923         accept4 for GNU Hurd.
24924         * include/sys/socket.h (__libc_accept4): New prototype.
24925         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
24926         to implement __libc_accept4.
24927         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
24928         __libc_accept4.
24929         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
24930
24931         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
24932         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
24933         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
24934         signal-defines.sym.
24935
24936 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24937
24938         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
24939
24940 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24941
24942         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
24943         assertion on O_CLOEXEC flag.
24944         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
24945         * hurd/intern-fd.c: Likewise.
24946         * hurd/port2fd.c: Likewise.
24947
24948 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24949
24950         [BZ #3906]
24951         * bits/in.h (IPV6_PKTINFO): Define new macro.
24952         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
24953
24954 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24955
24956         [BZ #13954]
24957         [BZ #13955]
24958         [BZ #13956]
24959         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
24960         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
24961         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
24962         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
24963         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24964         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
24965         * math/libm-test.inc (logb_test) : Additional logb tests.
24966
24967 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
24968             Andreas Jaeger  <aj@suse.de>
24969
24970         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
24971         * configure: Regenerated.
24972         * config.h.in (LINK_OBSOLETE_RPC): New macro.
24973         * config.make.in (link-obsolete-rpc): New substituted variable.
24974         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
24975         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
24976         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
24977         (shared-only-routines): Don't set it under [link-obsolete-rpc],
24978         so that libc.a contains the symbols.
24979         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
24980         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
24981         * sunrpc/auth_none.c: Likewise.
24982         * sunrpc/auth_unix.c: Likewise.
24983         * sunrpc/authdes_prot.c: Likewise.
24984         * sunrpc/authuxprot.c: Likewise.
24985         * sunrpc/clnt_gen.c: Likewise.
24986         * sunrpc/clnt_perr.c: Likewise.
24987         * sunrpc/clnt_raw.c: Likewise.
24988         * sunrpc/clnt_simp.c: Likewise.
24989         * sunrpc/clnt_tcp.c: Likewise.
24990         * sunrpc/clnt_udp.c: Likewise.
24991         * sunrpc/clnt_unix.c: Likewise.
24992         * sunrpc/des_crypt.c: Likewise.
24993         * sunrpc/des_soft.c: Likewise.
24994         * sunrpc/get_myaddr.c: Likewise.
24995         * sunrpc/key_call.c: Likewise.
24996         * sunrpc/key_prot.c: Likewise.
24997         * sunrpc/netname.c: Likewise.
24998         * sunrpc/pm_getmaps.c: Likewise.
24999         * sunrpc/pm_getport.c: Likewise.
25000         * sunrpc/pmap_clnt.c: Likewise.
25001         * sunrpc/pmap_prot.c: Likewise.
25002         * sunrpc/pmap_prot2.c: Likewise.
25003         * sunrpc/pmap_rmt.c: Likewise.
25004         * sunrpc/publickey.c: Likewise.
25005         * sunrpc/rpc_cmsg.c: Likewise.
25006         * sunrpc/rpc_common.c: Likewise.
25007         * sunrpc/rpc_dtable.c: Likewise.
25008         * sunrpc/rpc_prot.c: Likewise.
25009         * sunrpc/rpc_thread.c: Likewise.
25010         * sunrpc/rtime.c: Likewise.
25011         * sunrpc/svc.c: Likewise.
25012         * sunrpc/svc_auth.c: Likewise.
25013         * sunrpc/svc_raw.c: Likewise.
25014         * sunrpc/svc_run.c: Likewise.
25015         * sunrpc/svc_tcp.c: Likewise.
25016         * sunrpc/svc_udp.c: Likewise.
25017         * sunrpc/svc_unix.c: Likewise.
25018         * sunrpc/svcauth_des.c: Likewise.
25019         * sunrpc/xcrypt.c: Likewise.
25020         * sunrpc/xdr.c: Likewise.
25021         * sunrpc/xdr_array.c: Likewise.
25022         * sunrpc/xdr_float.c: Likewise.
25023         * sunrpc/xdr_intXX_t.c: Likewise.
25024         * sunrpc/xdr_mem.c: Likewise.
25025         * sunrpc/xdr_rec.c: Likewise.
25026         * sunrpc/xdr_ref.c: Likewise.
25027         * sunrpc/xdr_sizeof.c: Likewise.
25028         * sunrpc/xdr_stdio.c: Likewise.
25029
25030 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25031
25032         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
25033         change.  Update copyright years.
25034
25035 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25036
25037         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
25038
25039 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
25040             Joseph Myers  <joseph@codesourcery.com>
25041             Paul Pluzhnikov  <ppluzhnikov@google.com>
25042
25043         [BZ #14012]
25044         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
25045         requiring rpcgen.
25046         [cross-compiling] (extra-libs): Likewise.
25047         [cross-compiling] (extra-libs-others): Likewise.
25048         [cross-compiling] (librpcsvc-routines): Likewise.
25049         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
25050         [cross-compiling] (omit-deps): Likewise.
25051         (sunrpc-CPPFLAGS): New variable.
25052         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
25053         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
25054         (cross-rpcgen-objs): New variable.
25055         (extra-objs): Append $(cross-rpcgen-objs).
25056         ($(cross-rpcgen-objs)): New rule.
25057         ($(objpfx)cross-rpcgen): Likewise.
25058         (rpcgen-cmd): Define to use $(built-program-file).  Expand
25059         comment.
25060         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
25061         ($(objpfx)x%.stmp): Likewise.
25062         * sunrpc/proto.h [IS_IN_build] (_): Define.
25063         [IS_IN_build] (_libc_intl_domainname): Likewise.
25064
25065 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25066
25067         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
25068         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
25069         and R_X86_64_TPOFF64.
25070
25071 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25072
25073         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
25074         sysdeps/unix/sysv/syscalls.list.
25075         (stime): Likewise.
25076         (utime): Likewise.
25077         * sysdeps/unix/sysv/syscalls.list: Remove file.
25078
25079 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25080
25081         [BZ #3440]
25082         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
25083         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
25084         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
25085         (__LC_IDENTIFICATION): Make these macros useful in #if
25086         expressions, as required by C99.
25087
25088 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
25089
25090         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
25091         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
25092         after this.
25093
25094 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
25095
25096         * stdlib/longlong.h: Updated from GCC.
25097
25098 2012-05-09  Andreas Jaeger  <aj@suse.de>
25099
25100         * nscd/nscd.c (run_modes): Make named enum, reorder so that
25101         default is first entry.
25102         (run_mode): Set type.
25103         (main): Remove informal message about syslog.
25104         (options): Fix typo.
25105
25106         [BZ #14053]
25107         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
25108         to asm.
25109         (lrint): Likewise.
25110         (llrintf): Likewise.
25111         (llrint): Likewise.
25112         (rint): Likewise.
25113         (rintf): Likewise.
25114         (nearbyint): Likewise.
25115         (nearbyintf): Likewise.
25116
25117 2012-05-09  Andreas Jaeger  <aj@suse.de>
25118             Pedro Alves  <palves@redhat.com>
25119
25120         * nscd/nscd.c (run_mode): Use enum.
25121         (main): Cleanup coding style issue.
25122
25123 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
25124             Andreas Jaeger  <aj@suse.de>
25125
25126         * nscd/nscd.c (go_background): Replaced with...
25127         (run_mode): ... this.
25128         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
25129         (options): Add -F --foreground.
25130         (main): Implement it.
25131         (parse_opt): Parse it.
25132
25133 2012-05-09  Andreas Jaeger  <aj@suse.de>
25134
25135         [BZ #14083]
25136         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
25137         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
25138         -Wconversion warning.
25139         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
25140         Likewise.
25141
25142 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
25143
25144         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
25145         == 0.
25146         (LC_ALL): Use macro-int-constant.
25147         (LC_COLLATE): Likewise.
25148         (LC_CTYPE): Likewise.
25149         (LC_MESSAGES): Likewise.
25150         (LC_MONETARY): Likewise.
25151         (LC_NUMERIC): Likewise.
25152         (LC_TIME): Likewise.
25153         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
25154         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25155         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25156         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
25157         Specify type.
25158         [C99-based standards] (float_t): Expect type.
25159         [C99-based standards] (double_t): Expect type.
25160         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
25161         type.
25162         [C99-based standards] (HUGE_VALL): Likewise.
25163         [C99-based standards] (INFINITY): Likewise.
25164         [C99-based standards] (NAN): Likewise.
25165         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
25166         [C99-based standards] (FP_NAN): Likewise.
25167         [C99-based standards] (FP_NORMAL): Likewise.
25168         [C99-based standards] (FP_SUBNORMAL): Likewise.
25169         [C99-based standards] (FP_ZERO): Likewise.
25170         [C99-based standards] (FP_FAST_FMA): Use
25171         optional-macro-int-constant.  Specify type.  Require == 1.
25172         [C99-based standards] (FP_FAST_FMAF): Likewise.
25173         [C99-based standards] (FP_FAST_FMAL): Likewise.
25174         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
25175         [C99-based standards] (FP_ILOGBNAN): Likewise.
25176         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
25177         Specify type.
25178         [C99-based standards] (MATH_ERREXCEPT): Likewise.
25179         [C99-based standards] (math_errhandling): Specify type.
25180         [ISO99 || ISO11] (signgam): Do not allow.
25181         [non-C99-based standards] (copysignf): Do not allow.
25182         [non-C99-based standards] (exp2f): Likewise.
25183         [non-C99-based standards] (log2f): Likewise.
25184         [non-C99-based standards] (modff): Allow.
25185         [non-C99-based standards] (erff): Do not allow.
25186         [non-C99-based standards] (erfcf): Likewise.
25187         [non-C99-based standards] (gammaf): Likewise.
25188         [non-C99-based standards] (hypotf): Likewise.
25189         [non-C99-based standards] (j0f): Likewise.
25190         [non-C99-based standards] (j1f): Likewise.
25191         [non-C99-based standards] (jnf): Likewise.
25192         [non-C99-based standards] (lgammaf): Likewise.
25193         [non-C99-based standards] (tgammaf): Likewise.
25194         [non-C99-based standards] (y0f): Likewise.
25195         [non-C99-based standards] (y1f): Likewise.
25196         [non-C99-based standards] (ynf): Likewise.
25197         [non-C99-based standards] (isnanf): Likewise.
25198         [non-C99-based standards] (acoshf): Likewise.
25199         [non-C99-based standards] (asinhf): Likewise.
25200         [non-C99-based standards] (atanhf): Likewise.
25201         [non-C99-based standards] (cbrtf): Likewise.
25202         [non-C99-based standards] (expm1f): Likewise.
25203         [non-C99-based standards] (ilogbf): Likewise.
25204         [non-C99-based standards] (log1pf): Likewise.
25205         [non-C99-based standards] (logbf): Likewise.
25206         [non-C99-based standards] (nextafterf): Likewise.
25207         [non-C99-based standards] (remainderf): Likewise.
25208         [non-C99-based standards] (rintf): Likewise.
25209         [non-C99-based standards] (scalbf): Likewise.
25210         [non-C99-based standards] (copysignl): Likewise.
25211         [non-C99-based standards] (exp2l): Likewise.
25212         [non-C99-based standards] (log2l): Likewise.
25213         [non-C99-based standards] (modfl): Allow.
25214         [non-C99-based standards] (erfl): Do not allow.
25215         [non-C99-based standards] (erfcl): Likewise.
25216         [non-C99-based standards] (gammal): Likewise.
25217         [non-C99-based standards] (hypotl): Likewise.
25218         [non-C99-based standards] (j0l): Likewise.
25219         [non-C99-based standards] (j1l): Likewise.
25220         [non-C99-based standards] (jnl): Likewise.
25221         [non-C99-based standards] (lgammal): Likewise.
25222         [non-C99-based standards] (tgammal): Likewise.
25223         [non-C99-based standards] (y0l): Likewise.
25224         [non-C99-based standards] (y1l): Likewise.
25225         [non-C99-based standards] (ynl): Likewise.
25226         [non-C99-based standards] (isnanl): Likewise.
25227         [non-C99-based standards] (acoshl): Likewise.
25228         [non-C99-based standards] (asinhl): Likewise.
25229         [non-C99-based standards] (atanhl): Likewise.
25230         [non-C99-based standards] (cbrtl): Likewise.
25231         [non-C99-based standards] (expm1l): Likewise.
25232         [non-C99-based standards] (ilogbl): Likewise.
25233         [non-C99-based standards] (log1pl): Likewise.
25234         [non-C99-based standards] (logbl): Likewise.
25235         [non-C99-based standards] (nextafterl): Likewise.
25236         [non-C99-based standards] (remainderl): Likewise.
25237         [non-C99-based standards] (rintl): Likewise.
25238         [non-C99-based standards] (scalbl): Likewise.
25239         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25240         [non-C99-based standards] (FP_*): Do not allow.
25241         [C99-based standards] (FP_*): Change to
25242         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25243         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25244         allow.
25245         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
25246         (SIG_ERR): Likewise.
25247         [X/Open-based standards] (SIG_HOLD): Likewise.
25248         (SIG_IGN): Likewise.
25249         (SIGABRT): Use macro-int-constant.  Specify type.  Require
25250         positive value.
25251         (SIGFPE): Likewise.
25252         (SIGILL): Likewise.
25253         (SIGINT): Likewise.
25254         (SIGSEGV): Likewise.
25255         (SIGTER): Likewise.
25256         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
25257         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
25258         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
25259         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
25260         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
25261         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
25262         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
25263         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
25264         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
25265         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
25266         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
25267         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
25268         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
25269         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
25270         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
25271         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
25272         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
25273         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
25274         [X/Open-based standards] (SIGTRAP): Likewise.
25275         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
25276         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
25277         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
25278         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
25279         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25280         allow.
25281
25282 2012-05-08  Ian Wienand  <ianw@vmware.com>
25283
25284         [BZ #14080]
25285         * time/tzset.c (__tzset_parse_tz): Update default rules for
25286         daylight time changes in the Energy Policy Act of 2005.
25287
25288 2012-05-09  Andreas Jaeger  <aj@suse.de>
25289
25290         [BZ #13983]
25291         * elf/ldconfig.c (parse_conf): Change string to make clear that
25292         ldconfig only issued a warning if ld.so.conf does not exist.
25293
25294 2012-05-08  David S. Miller  <davem@davemloft.net>
25295
25296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
25297         movxtod instead of popping the value on the stack.
25298
25299         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25300
25301 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
25302
25303         * config.h.in: Add HAVE_ARM_PCS_VFP.
25304
25305 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
25306
25307         [BZ #13979]
25308         * include/features.h: Warn if user requests __FORTIFY_SOURCE
25309         checking but the checks are disabled for any reason.
25310
25311 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
25312
25313         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
25314         and ELF64_R_TYPE with ELFW(R_TYPE).
25315
25316 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
25317
25318         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
25319         (ulimit): Likewise.
25320
25321         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
25322         (settimeofday): Likewise.
25323
25324 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
25325
25326         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
25327         a struct th_u2 inside the union, and move tu_block/tu_code into
25328         a new th_u3 union of tu_block/tu_code inside of that.  Move
25329         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
25330         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
25331         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
25332         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
25333         (th_stuff): Change to th_u1.tu_stuff.
25334         (th_data): Define.
25335         (th_msg): Change to th_u1.th_u2.tu_data.
25336
25337 2012-05-07  David S. Miller  <davem@davemloft.net>
25338
25339         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25340
25341         [BZ #14074]
25342         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
25343         (SETUP_PIC_REG): Use it.
25344         (SETUP_PIC_REG_LEAF): Use it.
25345
25346 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
25347
25348         [BZ #13885]
25349         [BZ #13923]
25350         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25351         USE_AS_EXPM1L.
25352         (EXPL_FINITE): Likewise.
25353         (FLDLOG): Likewise.
25354         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25355         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25356         e_expl.S.
25357         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25358         USE_AS_EXPM1L.
25359         (EXPL_FINITE): Likewise.
25360         (FLDLOG): Likewise.
25361         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25362         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25363         e_expl.S.
25364         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
25365         test of -max_value argument for long double.
25366         * sysdeps/i386/fpu/libm-test-ulps: Update.
25367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25368
25369 2012-05-06  David S. Miller  <davem@davemloft.net>
25370
25371         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
25372         quad soft-float symbols whose references which are compiler
25373         generated.
25374         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25375
25376 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
25377
25378         [BZ #13884]
25379         [BZ #13914]
25380         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25381         USE_AS_EXP10L.
25382         (EXPL_FINITE): Likewise.
25383         (FLDLOG): Likewise.
25384         (c0): Likewise.
25385         (c1): Likewise.
25386         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25387         Adjust comments for base varying.
25388         (__expl_finite): Change alias to EXPL_FINITE.
25389         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
25390         e_expl.S.
25391         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
25392         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
25393         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
25394         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
25395         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25396         USE_AS_EXP10L.
25397         (EXPL_FINITE): Likewise.
25398         (FLDLOG): Likewise.
25399         (c0): Likewise.
25400         (c1): Likewise.
25401         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25402         Adjust comments for base varying.
25403         (__expl_finite): Change alias to EXPL_FINITE.
25404         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
25405         tests for bugs.
25406         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25407
25408         [BZ #14064]
25409         * math/libm-test.inc (check_float_internal): Correct ulp
25410         calculation for subnormal expected results.
25411
25412 2012-05-06  Andreas Jaeger  <aj@suse.de>
25413
25414         * Makeconfig (+math-flags): New, set to -frounding-math.
25415         (+cflags): Add +math-flags so that all of glibc gets compiled with
25416         it.
25417
25418         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
25419
25420 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
25421
25422         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
25423         Disable one test.
25424
25425         [BZ #13787]
25426         [BZ #13922]
25427         [BZ #14036]
25428         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
25429         (__ieee754_expl): Allow for and saturate large arguments.
25430         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
25431         (u_threshold): Likewise.
25432         (__exp): Call __ieee754_exp before checking for overflow and
25433         underflow.
25434         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
25435         (u_threshold): Likewise.
25436         (__expf): Call __ieee754_expf before checking for overflow and
25437         underflow.
25438         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
25439         (u_threshold): Likewise.
25440         (__expl): Call __ieee754_expl before checking for overflow and
25441         underflow.
25442         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
25443         (__ieee754_expl): Allow for and saturate large arguments.
25444         * math/libm-test.inc (exp_test): Add another test.  Do not allow
25445         missing overflow exception on overflow.
25446         (expm1_test): Do not allow missing overflow exception on overflow.
25447
25448         * sysdeps/i386/fpu/e_expl.c: Move to ...
25449         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
25450         rather than using inline asm.
25451         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
25452         * sysdeps/x86_64/fpu/e_expl.S: Copy from
25453         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
25454
25455         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
25456         (nice): Likewise.
25457         (poll): Likewise.
25458         (signal): Likewise.
25459         (time): Likewise.
25460         (times): Likewise.
25461
25462 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25463
25464         * sysdeps/unix/syscalls.list (adjtime): Add entry from
25465         sysdeps/unix/common/syscalls.list.
25466         (fchmod): Likewise.
25467         (fchown): Likewise.
25468         (ftruncate): Likewise.
25469         (getrusage): Likewise.
25470         (gettimeofday): Likewise.
25471         (setpgid): Likewise.
25472         (setregid): Likewise.
25473         (setreuid): Likewise.
25474         (sigaction): Likewise.
25475         (truncate): Likewise.
25476         (vhangup): Likewise.
25477         * sysdeps/unix/common/syscalls.list: Remove file.
25478         * sysdeps/unix/bsd/Implies: Don't include unix/common.
25479         * sysdeps/unix/sysv/linux/Implies: Likewise.
25480
25481 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
25482
25483         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
25484         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
25485         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
25486         Moved to ...
25487         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
25488         Here.
25489         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
25490         to ...
25491         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
25492         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
25493         to ...
25494         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
25495         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
25496         to ...
25497         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
25498         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
25499         to ...
25500         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
25501         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
25502         to ...
25503         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
25504         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
25505         to ...
25506         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
25507         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
25508         to ...
25509         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
25510         Here.
25511         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
25512         to ...
25513         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
25514         Here.
25515         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
25516         to ...
25517         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
25518         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
25519         Moved to ...
25520         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
25521         Here.
25522         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
25523         to ...
25524         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
25525
25526 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25527
25528         * sysdeps/unix/common/bits/dirent.h: Remove file.
25529         * sysdeps/unix/common/bits/fcntl.h: Likewise.
25530
25531         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
25532         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
25533         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
25534         * sysdeps/unix/bsd/isatty.c: Likewise.
25535         * sysdeps/unix/bsd/tcdrain.c: Likewise.
25536         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
25537         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
25538
25539 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25540
25541         [BZ #13563]
25542         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
25543         long double comparison inaccuracies.
25544         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
25545         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25546
25547 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
25548
25549         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
25550         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
25551
25552 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25553
25554         [BZ #14049]
25555         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
25556         nonzero digits before rounding a hex value.
25557         * stdlib/tst-strtod.c (tests): Add another test.
25558
25559 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25560
25561         * sysdeps/s390/fpu/libm-test-ulps: Update.
25562
25563 2012-05-03  Andreas Jaeger  <aj@suse.de>
25564
25565         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
25566         does not get optimized out.
25567         (malloc_opt_barrier): New.
25568
25569 2012-05-03  Andreas Jaeger  <aj@suse.de>
25570             Roland McGrath  <roland@hack.frob.com>
25571
25572         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
25573         intermediate file deletion.
25574         (generated): Add .symlist files.
25575
25576 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
25577
25578         [BZ #13775]
25579         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
25580         Redirect under this condition.
25581         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25582         [__USE_GNU] (__dprintf_chk): Not under this condition.
25583         [__USE_GNU] (__vdprintf_chk): Likewise.
25584         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
25585         under this condition.
25586         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25587         [__USE_XOPEN2K8] (dprintf): Define under this condition.
25588         [__USE_XOPEN2K8] (vdprintf): Likewise.
25589         [__USE_GNU] (__dprintf_chk): Not under this condition.
25590         [__USE_GNU] (__vdprintf_chk): Likewise.
25591         [__USE_GNU] (dprintf): Likewise.
25592         [__USE_GNU] (vdprintf): Likewise.
25593
25594 2012-05-03  Roland McGrath  <roland@hack.frob.com>
25595
25596         * elf/Makefile (common-generated): Set this instead of generated for
25597         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
25598         $(all-built-dso)-derived lists.
25599
25600 2012-05-03  Andreas Jaeger  <aj@suse.de>
25601
25602         * sysdeps/i386/fpu/libm-test-ulps: Update.
25603
25604         * FAQ: Removed.
25605         * FAQ.in: Likewise.
25606         * scripts/gen-FAQ.pl: Likewise.
25607         * manual/install.texi (Installation): Point to online location of
25608         FAQ.
25609         * Makefile (files-for-dist): Remove FAQ.
25610         (FAQ): Remove.
25611
25612 2012-05-02  Allan McRae  <allan@archlinux.org>
25613
25614         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
25615         (LDFLAGS-reldepmod5.so): Likewise.
25616         (LDFLAGS-reldep6mod1.so): Likewise.
25617         (LDFLAGS-reldep6mod4.so): Likewise.
25618         (LDFLAGS-reldep8mod3.so): Likewise.
25619         (LDFLAGS-unload4mod1.so): Likewise.
25620         (LDFLAGS-unload4mod2.so): Likewise.
25621         (LDFLAGS-tst-initorder): Likewise.
25622         (LDFLAGS-tst-initordera2.so): Likewise.
25623         (LDFLAGS-tst-initordera3.so): Likewise.
25624         (LDFLAGS-tst-initordera4.so): Likewise.
25625         (LDFLAGS-tst-initorderb2.so): Likewise.
25626         (LDFLAGS-noload): Likewise.
25627         (LDFLAGS-next): Likewise.
25628         (LDFLAGS-order2mod1.so): Likewise.
25629         (LDFLAGS-order2mod2.so): Likewise.
25630         (LDFLAGS-tst-initorder2): Likewise.
25631         (LDFLAGS-tst-initorder2a.so): Likewise.
25632         (LDFLAGS-tst-initorder2b.so): Likewise.
25633         (LDFLAGS-tst-initorder2c.so): Likewise.
25634         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
25635
25636 2012-05-02  David S. Miller  <davem@davemloft.net>
25637
25638         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25639
25640 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
25641
25642         [BZ #14055]
25643         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
25644
25645 2012-05-02  Andreas Jaeger  <aj@suse.de>
25646
25647         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
25648         since we manipulate rounding mode.
25649         (CPPFLAGS-test-idouble.c): Likewise.
25650         (CPPFLAGS-test-ifloat.c): Likewise.
25651         (CFLAGS-test-ldouble.c): Likewise.
25652         (CFLAGS-test-double.c): Likewise.
25653         (CFLAGS-test-float.c): Likewise.
25654         (CFLAGS-test-misc.c): Likewise.
25655         (CFLAGS-test-test-fenv.c): Likewise.
25656
25657 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25658
25659         [BZ #2550]
25660         [BZ #2570]
25661         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
25662         comparisons to determine direction to adjust input.
25663
25664 2012-05-01  Roland McGrath  <roland@hack.frob.com>
25665
25666         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
25667         output to the target.
25668
25669         * scripts/localplt.awk: New file.
25670         * elf/Makefile ($(objpfx)check-localplt): Target removed.
25671         (check-localplt-CFLAGS): Variable removed.
25672         ($(all-built-dso:=.jmprel)): New static pattern rule.
25673         (generated): Add those targets.
25674         (localplt-built-dso): New variable.
25675         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
25676
25677         * elf/check-localplt.c: File removed.
25678
25679         * scripts/check-execstack.awk: New file.
25680         * elf/Makefile ($(objpfx)check-execstack): Target removed.
25681         (check-execstack-CFLAGS): Variable removed.
25682         ($(objpfx)check-execstack.h): Target removed.
25683         ($(objpfx)execstack-default): New target.
25684         (generated): Add that instead of check-execstack.h.
25685         ($(all-built-dso:=.phdr)): New static pattern rule.
25686         (generated): Add those targets.
25687         * elf/check-execstack.c: File removed.
25688
25689         * scripts/check-textrel.awk: New file.
25690         * elf/Makefile ($(objpfx)check-textrel): Target removed.
25691         (check-textrel-CFLAGS): Variable removed.
25692         (all-built-dso): Use := to define.o
25693         ($(all-built-dso:=.dyn)): New static pattern rule.
25694         (generated): Add those targets.
25695         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
25696         * config.make.in (READELF): New substituted variable.
25697         * elf/check-textrel.c: File removed.
25698
25699 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
25700
25701         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25702         allow.
25703         * conform/data/ctype.h-data [C99-based standards] (isblank):
25704         Expect function.
25705         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
25706         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
25707         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25708         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
25709         Specify type.  Require positive value.
25710         (EILSEQ): Likewise.
25711         (ERANGE): Likewise.
25712         [ISO || POSIX] (EILSEQ): Do not expect.
25713         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
25714         Specify type.  Require positive value.
25715         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
25716         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
25717         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
25718         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
25719         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
25720         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
25721         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
25722         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
25723         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
25724         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
25725         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
25726         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
25727         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
25728         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
25729         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
25730         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
25731         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
25732         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
25733         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
25734         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
25735         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
25736         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
25737         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
25738         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
25739         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
25740         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
25741         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
25742         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
25743         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
25744         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
25745         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
25746         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
25747         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
25748         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
25749         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
25750         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
25751         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
25752         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
25753         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
25754         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
25755         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
25756         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
25757         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
25758         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
25759         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
25760         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
25761         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
25762         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
25763         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
25764         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
25765         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
25766         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
25767         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
25768         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
25769         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
25770         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
25771         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
25772         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
25773         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
25774         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
25775         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
25776         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
25777         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
25778         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
25779         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
25780         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
25781         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
25782         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
25783         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
25784         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
25785         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
25786         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
25787         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
25788         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
25789         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
25790         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
25791         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
25792         Require >= 2.
25793         (FLT_ROUNDS): Expect as macro, not constant.
25794         (FLT_MANT_DIG): Use macro-int-constant.
25795         (DBL_MANT_DIG): Likewise.
25796         (LDBL_MANT_DIG): Likewise.
25797         (FLT_DIG): Likewise.
25798         (DBL_DIG): Likewise.
25799         (LDBL_DIG): Likewise.
25800         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
25801         (DBL_MIN_EXP): Likewise.
25802         (LDBL_MIN_EXP): Likewise.
25803         (FLT_MAX_EXP): Use macro-int-constant.
25804         (DBL_MAX_EXP): Likewise.
25805         (LDBL_MAX_EXP): Likewise.
25806         (FLT_MAX_10_EXP): Likewise.
25807         (DBL_MAX_10_EXP): Likewise.
25808         (LDBL_MAX_10_EXP): Likewise.
25809         (FLT_MAX): Use macro-constant.
25810         (DBL_MAX): Likewise.
25811         (LDBL_MAX): Likewise.
25812         (FLT_EPSILON): Use macro-constant.  Give upper bound.
25813         (DBL_EPSILON): Likewise.
25814         (LDBL_EPSILON): Likewise.
25815         (FLT_MIN): Likewise.
25816         (DBL_MIN): Likewise.
25817         (LDBL_MIN): Likewise.
25818         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
25819         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
25820         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
25821         [ISO11] (FLT_HAS_SUBNORM): Likewise.
25822         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
25823         [ISO11] (DBL_DECIMAL_DIG): Likewise.
25824         [ISO11] (FLT_DECIMAL_DIG): Likewise.
25825         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
25826         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
25827         [ISO11] (FLT_TRUE_MIN): Likewise.
25828         [ISO11] (LDBL_TRUE_MIN): Likewise.
25829         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25830         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
25831         (SCHAR_MIN): Use macro-int-constant.  Specify type.
25832         (SCHAR_MAX): Likewise.
25833         (UCHAR_MAX): Likewise.
25834         (CHAR_MIN): Likewise.
25835         (CHAR_MAX): Likewise.
25836         (MB_LEN_MAX): Use macro-int-constant.
25837         (SHRT_MIN): Use macro-int-constant.  Specify type.
25838         (SHRT_MAX): Likewise.
25839         (USHRT_MAX): Likewise.
25840         (INT_MAX): Likewise.
25841         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
25842         bound negative.
25843         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25844         bound with "U".
25845         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25846         bound with "L".
25847         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
25848         bound negative.  Suffix upper bound with "L".
25849         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25850         bound with "UL".
25851         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
25852         Specify type.
25853         [C99-based standards] (LLONG_MAX): Likewise.
25854         [C99-based standards] (ULLONG_MAX): Likewise.
25855         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
25856         == 0.
25857         [ISO11] (max_align_t): Require type.
25858         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25859
25860         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
25861         from $CFLAGS, without defining away __attribute__ calls.
25862         (checknamespace): Use $CFLAGS_namespace.
25863
25864         * conform/conformtest.pl (@keywords): Only include C99 keywords
25865         for standards based on C99 or C11.
25866
25867         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
25868         Disable tests.
25869         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
25870         UNIX98]: Likewise.
25871
25872         * conform/conformtest.pl: Handle "macro-int-constant" and test for
25873         usability of symbols in #if.
25874
25875         * conform/conformtest.pl: If macro or constant types start
25876         "promoted:", expect the symbol to be of the following type
25877         promoted by the integer promotions.
25878
25879         * conform/conformtest.pl: Parse all "constant" and "macro" lines
25880         in one place.  Also handle "macro-constant".
25881
25882         * conform/conformtest.pl: Only accept expected macro values with
25883         "==".  Parse all "macro" lines in one place.
25884         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
25885
25886         * conform/conformtest.pl: Handle braced types on "constant" lines
25887         instead of handling "typed-constant".
25888         * conform/data/signal.h-data: Use "constant" instead of
25889         "typed-constant".
25890
25891         * conform/conformtest.pl: Handle "optional-" at start of lines in
25892         one place rather than duplicating several cases.  Handle each
25893         format of "macro" line with initial "optional-".
25894
25895         * conform/conformtest.pl: Only accept expected constant or
25896         optional-constant values with "==".  Parse all "constant" lines in
25897         one place.  Parse all "optional-constant" lines in one place.
25898         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
25899         * conform/data/fmtmsg.h-data: Likewise.
25900         * conform/data/netinet/in.h-data: Likewise.
25901         * conform/data/tar.h-data: Likewise.
25902         * conform/data/limits.h-data: Use "==" form on "constant" and
25903         "optional-constant" lines.
25904
25905         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
25906         Use -std=c99 for XOPEN2K.
25907         (@knownproblems): Remove.
25908         (newtoken): Don't check %isknown.
25909
25910         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
25911         Do not expect macro.
25912         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
25913         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
25914         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
25915         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
25916         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
25917         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
25918         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
25919         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
25920         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
25921         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
25922         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
25923         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
25924         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
25925         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
25926         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
25927         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
25928         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
25929         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
25930         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
25931         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
25932         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
25933         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
25934         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
25935         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
25936         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
25937         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
25938         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
25939         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
25940         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
25941         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
25942         [XPG3] (acosh): Likewise.
25943         [XPG3] (asinh): Likewise.
25944         [XPG3] (atanh): Likewise.
25945         [XPG3] (cbrt): Likewise.
25946         [XPG3] (expm1): Likewise.
25947         [XPG3] (ilogb): Likewise.
25948         [XPG3] (log1p): Likewise.
25949         [XPG3] (logb): Likewise.
25950         [XPG3] (nextafter): Likewise.
25951         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
25952         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
25953         [XPG3] (remainder): Likewise.
25954         [XPG3] (rint): Likewise.
25955         [XPG3 || XPG4 || UNIX98] (round): Likewise.
25956         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
25957         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
25958         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
25959         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
25960         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
25961         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
25962         [UNIX98 || XOPEN2K] (scalb): Expect.
25963         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
25964         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
25965         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
25966         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
25967         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
25968         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
25969         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
25970         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
25971         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
25972         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
25973         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
25974         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
25975         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
25976         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
25977         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
25978         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
25979         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
25980         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
25981         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
25982         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
25983         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
25984         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
25985         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
25986         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
25987         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
25988         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
25989         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
25990         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
25991         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
25992         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
25993         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
25994         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
25995         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
25996         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
25997         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
25998         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
25999         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
26000         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
26001         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
26002         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
26003         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
26004         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
26005         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
26006         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
26007         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
26008         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
26009         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
26010         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
26011         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
26012         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
26013         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
26014         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
26015         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
26016         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
26017         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
26018         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
26019         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
26020         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
26021         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
26022         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
26023         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
26024         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
26025         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
26026         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
26027         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
26028         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
26029         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
26030         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
26031         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
26032         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
26033         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
26034         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
26035         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
26036         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
26037         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
26038         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
26039         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
26040         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
26041         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
26042         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
26043         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
26044         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
26045         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
26046         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
26047         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
26048         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
26049         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
26050         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
26051         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
26052         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
26053         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
26054         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
26055         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
26056         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
26057         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
26058         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
26059         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
26060         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
26061         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
26062         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
26063         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
26064         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
26065         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
26066         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
26067         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
26068         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
26069         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
26070         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
26071         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
26072         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
26073         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
26074         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
26075         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
26076         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
26077         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
26078         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
26079         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
26080         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
26081         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
26082         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
26083         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
26084         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
26085         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
26086         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
26087         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
26088         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
26089         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
26090         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
26091         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
26092         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
26093         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
26094         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
26095         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
26096         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
26097         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
26098         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
26099         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
26100
26101         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
26102         _XOPEN_SOURCE_EXTENDED for XPG4.
26103
26104         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
26105
26106         * Makeconfig (localtime): Remove variable.
26107         (inst_localtime-file): Likewise.
26108
26109 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26110
26111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
26112         Update.
26113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26114         Update.
26115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
26116         Update.
26117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
26118         Update.
26119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
26120         Update.
26121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
26122         Update.
26123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26124         Update.
26125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
26126         Update.
26127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26128         Update.
26129
26130 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
26131
26132         [BZ #2550]
26133         [BZ #2570]
26134         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
26135         comparisons to determine direction to adjust input.
26136         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
26137         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
26138         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
26139         Likewise.
26140         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
26141         Likewise.
26142         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
26143         Likewise.
26144         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
26145         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
26146         Likewise.
26147         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
26148         Likewise.
26149         * math/libm-test.inc (nexttoward_test): Add more tests.
26150
26151 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26152
26153         [BZ #14040]
26154         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
26155         in version GLIBC_2.1, not GLIBC_2.0.
26156         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
26157         Likewise.
26158
26159 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
26160
26161         [BZ #13942]
26162         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
26163         (1 - x) * (1 + x).
26164         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26165         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
26166         * math/libm-test.inc (acos_test): Add more tests.
26167         (asin_test): Likewise.
26168         * sysdeps/i386/fpu/libm-test-ulps: Update.
26169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26170
26171         [BZ #14034]
26172         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
26173         of square root.
26174         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
26175         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26176         * math/libm-test.inc (acos_test_tonearest): New function.
26177         (acos_test_towardzero): Likewise.
26178         (acos_test_downward): Likewise.
26179         (acos_test_upward): Likewise.
26180         (asin_test_tonearest): Likewise.
26181         (asin_test_towardzero): Likewise.
26182         (asin_test_downward): Likewise.
26183         (asin_test_upward): Likewise.
26184         (main): Call the new functions.
26185         * sysdeps/i386/fpu/libm-test-ulps: Update.
26186         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26187
26188         [BZ #13884]
26189         [BZ #13924]
26190         * math/e_exp10.c: Include <float.h>.
26191         (__ieee754_exp10): Handle underflow here rather than multiplying
26192         large negative argument by M_LN10.
26193         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
26194         of __ieee754_expf.
26195         * math/e_exp10l.c: Include <float.h>.
26196         (__ieee754_exp10l): Handle underflow here rather than multiplying
26197         large negative argument by M_LN10l.
26198         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
26199         spurious overflow exception on underflow.
26200
26201 2012-04-29  Marek Polacek  <polacek@redhat.com>
26202
26203         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
26204         (__fortify_function): New macro.
26205         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
26206         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
26207         __extern_always_inline.
26208         * libio/bits/stdio2.h: Likewise.
26209         * libio/bits/stdio.h: Likewise.
26210         * string/string.h: Likewise.
26211         * string/bits/string3.h: Likewise.
26212         * include/stdio.h: Likewise.
26213         * stdlib/bits/stdlib.h: Likewise.
26214         * stdlib/stdlib.h: Likewise.
26215         * rt/bits/mqueue2.h: Likewise.
26216         * rt/mqueue.h: Likewise.
26217         * posix/bits/unistd.h: Likewise.
26218         * posix/unistd.h: Likewise.
26219         * io/bits/poll2.h: Likewise.
26220         * io/bits/fcntl2.h: Likewise.
26221         * io/fcntl.h: Likewise.
26222         * io/sys/poll.h: Likewise.
26223         * misc/bits/syslog.h: Likewise.
26224         * misc/bits/syslog-ldbl.h: Likewise.
26225         * misc/sys/syslog.h: Likewise.
26226         * socket/bits/socket2.h: Likewise.
26227         * socket/sys/socket.h: Likewise.
26228         * debug/tst-chk1.c: Likewise.
26229         * wcsmbs/bits/wchar2.h: Likewise.
26230         * wcsmbs/bits/wchar-ldbl.h: Likewise.
26231         * wcsmbs/wchar.h: Likewise.
26232
26233 2012-04-29  Andreas Jaeger  <aj@suse.de>
26234
26235         * Makerules (tests): Remove enable-check-abi protection.
26236         (check-abi-warn): Remove.
26237         (check-abi-%): Remove check-abi-warn usage.
26238
26239         * configure.in: Remove check-abi configure option.
26240         * configure: Regenerated.
26241         * config.make.in (enable-check-abi): Remove.
26242
26243 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
26244
26245         [BZ #14033]
26246         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
26247         double functions to double *_finite functions.
26248
26249         [BZ #13941]
26250         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
26251         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
26252         LDBL_MIN_EXP.
26253         * stdio-common/Makefile (tests): Add tst-sprintf3.
26254         * stdio-common/tst-sprintf3.c: New file.
26255
26256         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
26257         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
26258
26259 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26260
26261         * conform/conformtest.pl: Remove duplicate typed-constant
26262         handling.
26263
26264 2012-04-28  David S. Miller  <davem@davemloft.net>
26265
26266         * Makerules (%.abilist): Add vpath on sysdep_dirs.
26267         (check-abi-%): Remove AWK script prerequisite and explicit
26268         abilist directory.
26269         (check-abi): Rewrite to just diff the symlist with the abilist.
26270         (config-tls, config-abi-config): Delete, no longer used.
26271         (update-abi-%): Remove AWK script and explicit abilist directory.
26272         (update-abi): Rewrite to simply compare and conditionally copy the
26273         symlist and the sysdep abilist file.  Remove update-abi-config
26274         checks.
26275         * abilist/ld.abilist: Remove.
26276         * abilist/libBrokenLocale.abilist: Remove.
26277         * abilist/libanl.abilist: Remove.
26278         * abilist/libcrypt.abilist: Remove.
26279         * abilist/libdl.abilist: Remove.
26280         * abilist/librt.abilist: Remove.
26281         * abilist/libthread_db.abilist: Remove.
26282         * abilist/libutil.abilist: Remove.
26283         * scripts/extract-abilist.awk: Remove.
26284         * scripts/merge-abilist.awk: Remove.
26285         * sysdeps/generic/libcidn.abilist: New file.
26286         * sysdeps/generic/libnss_compat.abilist: New file.
26287         * sysdeps/generic/libnss_db.abilist: New file.
26288         * sysdeps/generic/libnss_dns.abilist: New file.
26289         * sysdeps/generic/libnss_files.abilist: New file.
26290         * sysdeps/generic/libnss_hesiod.abilist: New file.
26291         * sysdeps/generic/libnss_nis.abilist: New file.
26292         * sysdeps/generic/libnss_nisplus.abilist: New file.
26293         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
26294         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
26295         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
26296         file.
26297         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
26298         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
26299         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
26300         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
26301         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
26302         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
26303         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
26304         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
26305         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
26306         file.
26307         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
26308         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
26309         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
26310         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
26311         file.
26312         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
26313         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
26314         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
26315         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
26316         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
26317         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
26318         file.
26319         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
26320         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
26321         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
26322         file.
26323         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
26324         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
26325         New file.
26326         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
26327         New file.
26328         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
26329         New file.
26330         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
26331         New file.
26332         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
26333         New file.
26334         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
26335         New file.
26336         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
26337         New file.
26338         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
26339         New file.
26340         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
26341         New file.
26342         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
26343         New file.
26344         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
26345         New file.
26346         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
26347         New file.
26348         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
26349         New file.
26350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
26351         file.
26352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
26353         New file.
26354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
26355         New file.
26356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
26357         file.
26358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
26359         New file.
26360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
26361         New file.
26362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
26363         file.
26364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
26365         New file.
26366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26367         New file.
26368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
26369         New file.
26370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
26371         New file.
26372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
26373         New file.
26374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
26375         New file.
26376         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
26377         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
26378         file.
26379         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
26380         New file.
26381         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
26382         file.
26383         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
26384         file.
26385         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
26386         file.
26387         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
26388         file.
26389         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
26390         file.
26391         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
26392         New file.
26393         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
26394         file.
26395         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
26396         file.
26397         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
26398         New file.
26399         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
26400         file.
26401         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
26402         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
26403         file.
26404         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
26405         New file.
26406         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
26407         file.
26408         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
26409         file.
26410         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
26411         file.
26412         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
26413         file.
26414         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
26415         file.
26416         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
26417         New file.
26418         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
26419         file.
26420         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
26421         file.
26422         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
26423         New file.
26424         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
26425         file.
26426         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
26427         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
26428         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
26429         file.
26430         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
26431         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
26432         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
26433         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
26434         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
26435         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
26436         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
26437         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
26438         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
26439         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
26440         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
26441         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
26442         file.
26443         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
26444         New file.
26445         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
26446         file.
26447         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
26448         file.
26449         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
26450         file.
26451         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
26452         file.
26453         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
26454         file.
26455         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
26456         New file.
26457         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
26458         New file.
26459         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
26460         file.
26461         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
26462         New file.
26463         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
26464         file.
26465         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
26466         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
26467         file.
26468         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
26469         New file.
26470         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
26471         file.
26472         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
26473         file.
26474         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
26475         file.
26476         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
26477         file.
26478         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
26479         file.
26480         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
26481         New file.
26482         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
26483         New file.
26484         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
26485         file.
26486         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
26487         New file.
26488         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
26489         file.
26490
26491 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26492
26493         * conform/conformtest.pl: Fix typo in handling typed-constant from
26494         allow-header.
26495
26496 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26497
26498         * README: Cut down references to pre-2.6 Linux kernels and
26499         Linuxthreads.  Update lists of configurations in libc and ports
26500         and sort alphabetically.  Say "or newer" with Linux kernel version
26501         requirements.
26502
26503         * config.h.in [IS_IN_build]: Allow compiling without optimization.
26504
26505 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
26506
26507         [BZ #887]
26508         * math/libm-test.inc (logb_test_downward): New test to expose
26509         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
26510         rounding mode.
26511
26512 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26513
26514         [BZ #14027]
26515         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
26516         to be done.
26517         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
26518         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
26519
26520 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
26521
26522         * sysdeps/unix/i386/brk.S: Remove file.
26523         * sysdeps/unix/i386/dl-brk.S: Likewise.
26524         * sysdeps/unix/i386/pipe.S: Likewise.
26525         * sysdeps/unix/i386/sigreturn.S: Likewise.
26526         * sysdeps/unix/i386/syscall.S: Likewise.
26527         * sysdeps/unix/i386/vfork.S: Likewise.
26528         * sysdeps/unix/i386/wait.S: Likewise.
26529
26530         * sysdeps/unix/common/tcsendbrk.c: Move to ...
26531         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
26532
26533         * configure.in (arm*-none*): Do not allow without
26534         --enable-hacker-mode.
26535         (netbsd*): Remove case setting base_os.
26536         (386bsd*): Likewise.
26537         (freebsd*): Likewise.
26538         (bsdi*): Likewise.
26539         (osf*): Likewise.
26540         (sunos*): Likewise.
26541         (ultrix*): Likewise.
26542         (newsos*): Likewise.
26543         (dynix*): Likewise.
26544         (*bsd*): Likewise.
26545         (sysv*): Likewise.
26546         (isc*): Likewise.
26547         (esix*): Likewise.
26548         (sco*): Likewise.
26549         (minix*): Likewise.
26550         (irix4*): Likewise.
26551         (irix6*): Likewise.
26552         (solaris[2-9]*): Likewise.
26553         (none): Likewise.
26554         * configure: Regenerated.
26555
26556 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26557
26558         [BZ #11521]
26559         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
26560         overflow or cancellation in calculating denominator.
26561         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
26562         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
26563         down expression to avoid unexpected rounding in newer GCCs.
26564         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
26565
26566 2012-04-26  David S. Miller  <davem@davemloft.net>
26567
26568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
26569         long-double compat symbols.
26570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
26571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
26572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
26573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
26574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
26575         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
26576         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
26577         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
26578         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
26579         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
26580         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
26581         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
26582         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
26583
26584 2012-04-25  David S. Miller  <davem@davemloft.net>
26585
26586         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
26587         HWCAP_* values only after the memory barriers have been defined.
26588         (atomic_full_barrier): Define.
26589         (atomic_read_barrier): Define.
26590         (atomic_write_barrier): Define.
26591
26592 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
26593
26594         * shlib-versions: Add libgcc_s version information.
26595         * sysdeps/generic/libgcc_s.h: Remove.
26596         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
26597         libgcc_s.h.
26598         * sysdeps/gnu/unwind-resume.c: Likewise.
26599         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
26600
26601 2012-04-25  David S. Miller  <davem@davemloft.net>
26602
26603         * sysdeps/unix/sparc/brk.S: Delete.
26604         * sysdeps/unix/sparc/dl-brk.S: Delete.
26605         * sysdeps/unix/sparc/pipe.S: Delete.
26606         * sysdeps/unix/sparc/sysdep.S: Delete.
26607         * sysdeps/unix/sparc/sysdep.h: Delete.
26608         * sysdeps/unix/sparc/vfork.S: Delete.
26609         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
26610         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
26611         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
26612         ret_ERRVAL, r0, r1, MOVE): Define.
26613         (JUMPTARGET): Remove.
26614         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
26615         sysdeps/unix/sparc/sysdep.h
26616         (ENTRY, END): Remove.
26617         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26618
26619 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
26620
26621         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
26622         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
26623         -DIS_IN_build.
26624
26625         * timezone/README: Update upstream location and email address for
26626         tzcode and tzdata.
26627         * timezone/zdump.c: Update from tzcode 2012b.
26628         * timezone/zic.c: Likewise.
26629
26630         * configure.in (libc_cv_as_needed): Remove test.
26631         * configure: Regenerated.
26632         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
26633         conditional definition.
26634         [$(have-as-needed) != yes] (no-as-needed): Likewise.
26635         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
26636         * config.make.in (have-as-needed): Remove variable.
26637
26638 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
26639             Paul Pluzhnikov  <ppluzhnikov@google.com>
26640
26641         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
26642         strings correctly.
26643
26644 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
26645
26646         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
26647         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
26648         * sysdeps/sh/strlen.S: Likewise.
26649
26650 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26651
26652         * sysdeps/unix/fork.S: Remove file.
26653         * sysdeps/unix/i386/fork.S: Likewise.
26654         * sysdeps/unix/sparc/fork.S: Likewise.
26655
26656         * sysdeps/unix/system.c: Remove file.
26657         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
26658
26659         * sysdeps/unix/getegid.S: Remove file.
26660         * sysdeps/unix/geteuid.S: Likewise.
26661
26662 2012-04-24  Roland McGrath  <roland@hack.frob.com>
26663
26664         * scripts/check-localplt.awk: New file.
26665         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
26666         of diff.
26667         * scripts/data/localplt-generic.data: Add a comment.
26668
26669         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
26670         NODE when __dir_mkfile failed.
26671         * sysdeps/mach/hurd/symlinkat.c: Likewise.
26672         Reported by Ludovic Courtès <ludo@gnu.org>.
26673
26674 2012-04-24  Andreas Jaeger  <aj@suse.de>
26675
26676         * Makerules (common-clean): Also remove gen-as-const-headers
26677         files.
26678
26679 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26680
26681         * Makerules (native-compile): Do not change working directory for
26682         build.  Use $(OUTPUT_OPTION) in command.
26683         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
26684
26685 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26686
26687         [BZ #13886]
26688         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
26689         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
26690         * math/libm-test.inc (floor_test): Add more tests.
26691         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
26692
26693 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26694
26695         * sysdeps/unix/getdents.c: Remove file.
26696         * sysdeps/unix/sysv/getdents.c: Likewise.
26697         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
26698
26699         * sysdeps/unix/syscalls.list (madvise): Add syscall from
26700         sysdeps/unix/mman/syscalls.list.
26701         (mmap): Likewise.
26702         (mprotect): Likewise.
26703         (msync): Likewise.
26704         (munmap): Likewise.
26705         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
26706         * sysdeps/unix/mman/syscalls.list: Remove.
26707         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
26708
26709         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
26710         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
26711         * configure: Regenerated.
26712         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
26713         $(libgcc_s_suffix).
26714         * config.make.in (libgcc_s_suffix): Remove variable.
26715
26716 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
26717
26718         * sysdeps/unix/sysv/gethostname.c: Move to ...
26719         * sysdeps/posix/gethostname.c: ... here.
26720
26721         * sysdeps/unix/execve.S: Remove file.
26722
26723         * sysdeps/unix/_exit.S: Remove file.
26724
26725 2012-04-23  Andreas Jaeger  <aj@suse.de>
26726
26727         [BZ #13739]
26728         * manual/Makefile: Remove make dist support, there's no
26729         need for a stand-alone documentation tar ball.
26730         (TEXI2DVI): Define always, it's not in Makeconfig.
26731         (dist): Removed.
26732         (tar-it): Removed.
26733         (edition): Removed.
26734         (glibc-doc-$(edition).tar): Removed
26735         (%.Z): Removed.
26736         (%.gz): Removed.
26737         (%.uu): Removed.
26738         (ETAGS): Remove, it's in Makeconfig.
26739         (move-if-change): Remove, it's in Makeconfig.
26740
26741 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
26742
26743         [BZ #13970]
26744         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
26745         (strtod, strtof, strtold, strtol, strtoul, strtoq)
26746         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
26747         (strtod_l, strtof_l, strtold_l): Remove __wur.
26748         It is not necessarily an error to ignore strtol's return value.
26749         One can reliably look at the stored endptr to decide whether
26750         the number had valid syntax.
26751
26752 2012-04-21  Andreas Jaeger  <aj@suse.de>
26753
26754         [BZ #13739]
26755         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
26756
26757 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
26758
26759         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
26760         * sysdeps/unix/sysv/Versions: Remove file.
26761
26762 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
26763
26764         [BZ #13927]
26765         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26766
26767 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
26768
26769         [BZ #7064]
26770         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
26771         version from __vm86.
26772
26773 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
26774
26775         * sysdeps/unix/common/lxstat.c: Remove file.
26776         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
26777
26778         * sysdeps/unix/sysv/Makefile: Remove file.
26779
26780         * sysdeps/unix/sysv/direct.h: Remove file.
26781
26782         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
26783         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
26784         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
26785         * sysdeps/unix/sysv/bits/signum.h: Likewise.
26786         * sysdeps/unix/sysv/bits/stat.h: Likewise.
26787         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
26788         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
26789
26790         * sysdeps/unix/sysv/setrlimit.c: Remove file.
26791
26792         * sysdeps/unix/xmknod.c: Remove file.
26793         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
26794
26795         * sysdeps/unix/sysv/settimeofday.c: Remove file.
26796
26797         * sysdeps/unix/sysv/i386/time.S: Remove file.
26798
26799         * sysdeps/unix/fxstat.c: Remove file.
26800         * sysdeps/unix/xstat.c: Likewise.
26801         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
26802
26803         * sysdeps/unix/sysv/sigaction.c: Remove file.
26804
26805         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
26806         (sysdep_headers): Remove variable.
26807         [termio.h not in sysdep_headers] (generated): Likewise.
26808         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
26809         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
26810         * sysdeps/unix/sysv/tcdrain.c: Likewise.
26811         * sysdeps/unix/sysv/tcflow.c: Likewise.
26812         * sysdeps/unix/sysv/tcflush.c: Likewise.
26813         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
26814         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
26815         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
26816         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
26817         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
26818
26819         * sysdeps/unix/siglist.c: Remove file.
26820
26821         * sysdeps/unix/getppid.S: Remove file.
26822
26823         * sysdeps/unix/mkdir.c: Remove file.
26824         * sysdeps/unix/rmdir.c: Likewise.
26825
26826 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
26827
26828         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
26829         ERR_MAX value.
26830         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
26831         errlist-compat value.
26832
26833 2012-04-18  David S. Miller  <davem@davemloft.net>
26834
26835         * sysdeps/generic/memcopy.h (reg_char): Delete.
26836         * debug/strcat_chk.c: Use char, not reg_char.
26837         * debug/strcpy_chk.c: Likewise.
26838         * debug/strncat_chk.c: Likewise.
26839         * debug/strncpy_chk.c: Likewise.
26840         * string/memchr.c: Likewise.
26841         * string/memrchr.c: Likewise.
26842         * string/rawmemchr.c: Likewise.
26843         * string/strcat.c: Likewise.
26844         * string/strchr.c: Likewise.
26845         * string/strchrnul.c: Likewise.
26846         * string/strcmp.c: Likewise.
26847         * string/strcpy.c: Likewise.
26848         * string/strncat.c: Likewise.
26849         * string/strncmp.c: Likewise.
26850         * string/strncpy.c: Likewise.
26851
26852 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26853
26854         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
26855         __builtin_memcopy is called when src and dest ranges are known to not
26856         overlap.
26857
26858 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26859
26860         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
26861         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
26862         fwd_align_merge macro call.
26863         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
26864         bwd_align_merge macro call.
26865         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
26866
26867 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26868
26869         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
26870         bwd_align_merge macros.
26871         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
26872         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
26873         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
26874
26875 2012-04-18  David S. Miller  <davem@davemloft.net>
26876
26877         * sysdeps/sparc/sparc64/memcopy.h: Delete.
26878
26879 2012-04-18  Andreas Jaeger  <aj@suse.de>
26880
26881         [BZ# 6794]
26882         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
26883         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
26884         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
26885
26886         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
26887         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
26888         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
26889
26890         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
26891         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
26892         Adjust for changed ldbl-128 files.
26893
26894         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
26895         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
26896         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
26897
26898 2012-04-17  David S. Miller  <davem@davemloft.net>
26899
26900         * sysdeps/sparc/sparc32/memcopy.h: Delete.
26901
26902 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
26903
26904         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
26905         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
26906         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
26907         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
26908         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
26909         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
26910
26911 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26912
26913         [BZ #6794]
26914         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
26915         * math/libm-test.inc: Add ilogb errno and exception tests.
26916         * math/w_ilogb.c: New file: ilogb wrapper.
26917         * math/w_ilogbf.c: New file: ilogbf wrapper.
26918         * math/w_ilogbl.c: New file: ilogbl wrapper.
26919         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
26920         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
26921         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
26922         exception being thrown with 0.0 as argument.
26923         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
26924         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
26925         exception being thrown with 0.0 as argument.
26926         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
26927         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
26928         exception being thrown with 0.0 as argument.
26929         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
26930         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
26931         exception being thrown with 0.0 as argument.
26932         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
26933         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
26934         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
26935         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
26936         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
26937         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
26938         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
26939         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
26940         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
26941
26942 2012-04-17  Petr Baudis  <pasky@ucw.cz>
26943
26944         * include/sys/uio.h: Change __vector to __iovec to avoid clash
26945         with altivec.
26946
26947 2012-04-16  Marek Polacek  <polacek@redhat.com>
26948
26949         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
26950
26951 2012-04-16  Marek Polacek  <polacek@redhat.com>
26952
26953         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
26954         operands of fdivp instruction.
26955
26956 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
26957
26958         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
26959         * elf/tst-auditmod3b.c: Likewise.
26960         * elf/tst-auditmod4b.c: Likewise.
26961         * elf/tst-auditmod5b.c: Likewise.
26962         * elf/tst-auditmod6b.c: Likewise.
26963         * elf/tst-auditmod6c.c: Likewise.
26964         * elf/tst-auditmod7b.c: Likewise.
26965         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
26966         * sysdeps/x86_64/preconfigure.in: Likewise.
26967         * sysdeps/x86_64/preconfigure: Regenerated.
26968
26969 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
26970
26971         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
26972         __ILP32__.
26973
26974 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
26975
26976         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26977         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
26978
26979 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
26980
26981         [BZ #13973]
26982         * locale/iso-639.def: Fix gl language name. Spotted by
26983         Yaron Shahrabani.
26984
26985 2012-04-12  Roland McGrath  <roland@hack.frob.com>
26986
26987         [BZ #2074]
26988         * libio/libio.h (__io_write_fn): Update comment.
26989
26990 2012-04-12  Petr Baudis  <pasky@ucw.cz>
26991
26992         [BZ #2074]
26993         * stdio.texi (Hook Functions): The user provided writer function
26994         is not allowed to return -1.
26995
26996 2012-04-11  David S. Miller  <davem@davemloft.net>
26997
26998         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26999
27000 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
27001
27002         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
27003         Add a leading slash to rtkaio.
27004
27005 2012-04-11  Jim Meyering  <meyering@redhat.com>
27006
27007         [BZ #11959]
27008         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
27009         It is not necessarily an error to ignore fwrite's return
27010         value.  One can reliably use ferror to test for errors after
27011         the fact.
27012
27013 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27014
27015         * bits/types.h (__snseconds_t): New type.
27016         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
27017
27018         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
27019         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27020         (__SNSECONDS_T_TYPE): Likewise.
27021         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27022         (__SNSECONDS_T_TYPE): Likewise.
27023         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27024         (__SNSECONDS_T_TYPE): Likewise.
27025
27026 2012-04-10  Andreas Jaeger  <aj@suse.de>
27027
27028         [BZ #2636]
27029         * manual/time.texi (Processor Time): Return type of times is
27030         elapsed real time since an arbitrary point in the past.
27031         (CPU Time): Move CLK_TCK from here...
27032         (Processor Time): ...to here.  Correct description.
27033         * manual/conf.texi (Constants for Sysconf): Correct description of
27034         _SC_CLK_TCK.
27035
27036 2012-04-10  David S. Miller  <davem@davemloft.net>
27037
27038         [BZ #13967]
27039         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
27040         where the is a gap between DT_REL(A) and DT_JMPREL.
27041
27042 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27043
27044         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
27045         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27046         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27047
27048 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27049
27050         * elf/dl-support.c (_dl_inhibit_cache): New variable.
27051         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
27052         (dl_main): Handle --inhibit-cache.
27053         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
27054         _dl_inhibit_cache.
27055         * elf/dl-load.c (_dl_map_object): Use it.
27056         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
27057
27058 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27059
27060         [BZ #13872]
27061         * sysdeps/i386/fpu/e_powl.S (p78): New object.
27062         (__ieee754_powl): Saturate large exponents rather than testing for
27063         overflow of y*log2(x).
27064         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27065         * math/libm-test.inc (pow_test): Do not permit spurious overflow
27066         exceptions.
27067
27068         [BZ #11521]
27069         * math/s_ctan.c: Include <float.h>.
27070         (__ctan): Avoid internal overflow or cancellation in calculating
27071         denominator.
27072         * math/s_ctanf.c: Likewise.
27073         * math/s_ctanl.c: Likewise.
27074         * math/s_ctanh.c: Likewise.
27075         * math/s_ctanhf.c: Likewise.
27076         * math/s_ctanhl.c: Likewise.
27077         * math/libm-test.inc (ctan_test): Add more tests.
27078         (ctanh_test): Likewise.
27079         * sysdeps/i386/fpu/libm-test-ulps: Update.
27080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27081
27082 2012-04-09  Andreas Jaeger  <aj@suse.de>
27083
27084         [BZ #6894]
27085         * manual/filesys.texi (Directory Entries): Mention that d_namlen
27086         is an optional BSD extension.
27087
27088         [BZ #10254]
27089         * manual/stdio.texi (Opening Streams): Document additional fopen
27090         parameters.
27091
27092 2012-04-09  Roland McGrath  <roland@hack.frob.com>
27093
27094         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
27095         %eax without telling the compiler.
27096
27097 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
27098
27099         [BZ # 13963]
27100         * manual/install.texi: Use sourceware.org.
27101
27102 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27103
27104         [BZ #13873]
27105         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
27106         (__ieee754_pow): Generate overflow and underflow using huge*huge
27107         and tiny*tiny rather than just returning constant infinity or zero
27108         for large exponents.
27109         * math/libm-test.inc (pow_test): Require overflow exceptions for
27110         applicable cases of large exponents.
27111
27112         [BZ #706]
27113         * sysdeps/i386/fpu/e_pow.S (p10): New object.
27114         (__ieee754_pow): Use iterative multiplication algorithm only for
27115         integer exponents with absolute value below 1024.  Check for odd
27116         integer exponents when using algorithm for real exponents.
27117         * math/libm-test.inc (pow_test): Add more tests.
27118         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27119
27120 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
27121
27122         [BZ #13705]
27123         * math/libm-test.inc (exp_test): Do not allow overflow exception
27124         on underflow test.
27125
27126 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
27127
27128         [BZ #13705]
27129         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
27130         instead of __kernel_standard_f.
27131
27132 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
27133
27134         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
27135         * sysdeps/x86_64/memset_chk.S: Likewise.
27136
27137 2012-04-08  Andreas Jaeger  <aj@suse.de>
27138
27139         [BZ #10153]
27140         * manual/startup.texi (Environment Access): Describe return value
27141         for putenv and setenv.
27142
27143         [BZ #6895]
27144         * manual/filesys.texi (Directory Entries): Add description for
27145         DT_LNK.
27146
27147         [BZ #6890]
27148         * manual/filesys.texi (Directory Entries): Clarify that it's file
27149         system not operating system in the description of DT_UNKNOWN.
27150
27151         [BZ #6578]
27152         * manual/syslog.texi (closelog): Fix reference, it's openlog.
27153
27154 2012-04-08  Stephen Compall  <s11@member.fsf.org>
27155
27156         [BZ #6649]
27157         * manual/llio.texi (Opening and Closing Files): Add cross
27158         reference to explain mode argument.
27159
27160 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
27161
27162         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
27163         * sysdeps/x86_64/memset_chk.S: Likewise.
27164
27165 2012-04-07  David S. Miller  <davem@davemloft.net>
27166
27167         * elf/elf.h (R_SPARC_WDISP10): Define.
27168         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
27169         R_SPARC_SIZE32.
27170         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
27171         R_SPARC_SIZE64 and R_SPARC_H34.
27172
27173 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
27174
27175         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
27176         conditions and remove no longer applicable assertion.
27177
27178 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27179
27180         * bits/byteswap.h: Include <features.h>.
27181         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27182         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27183
27184 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27185
27186         * bits/byteswap.h (__bswap_16): Removed.
27187         Include <bits/byteswap-16.h> to get __bswap_16.
27188         * sysdeps/i386/bits/byteswap.h: Likewise.
27189         * sysdeps/s390/bits/byteswap.h: Likewise.
27190         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27191         * bits/byteswap-16.h: New file.
27192         * sysdeps/i386/bits/byteswap-16.h: Likewise.
27193         * sysdeps/s390/bits/byteswap-16.h: Likewise.
27194         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
27195         * string/Makefile (headers): Add bits/byteswap-16.h.
27196
27197 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27198
27199         [BZ #13895]
27200         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
27201         extra indirection.
27202         * nss/Makefile (tests-static, tests): Add tst-nss-static.
27203         * nss/tst-nss-static.c: New.
27204
27205 2012-04-06  Robert Millan  <rmh@gnu.org>
27206
27207         [BZ #6486]
27208         * manual/llio.texi (File Position Primitive): lseek
27209         refers to WHENCE when it really means OFFSET.
27210
27211 2012-04-06  Andreas Jaeger  <aj@suse.de>
27212
27213         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
27214         strncmp declarations.
27215
27216         * abilist/libc.abilist: Add __poll and __ppoll.
27217
27218 2012-04-05  David S. Miller  <davem@davemloft.net>
27219
27220         * scripts/check-local-headers.sh: Accept a host triplet in the
27221         path matched by the exclude regexp.
27222
27223         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
27224         definition.
27225         * sysdeps/powerpc/powerpc32/dl-machine.h
27226         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
27227         * sysdeps/s390/s390-32/dl-machine.h
27228         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27229         * sysdeps/sparc/sparc32/dl-machine.h
27230         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27231         * sysdeps/sparc/sparc64/dl-machine.h
27232         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27233
27234         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
27235         lazy binding.
27236         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
27237         undefined symbol errors.
27238
27239         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
27240         DT_NEEDED entries.
27241
27242 2012-04-05  Michael Matz  <matz@suse.de>
27243
27244         [BZ #13592]
27245         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
27246
27247 2012-04-05  Andreas Jaeger  <aj@suse.de>
27248
27249         [BZ #13908]
27250         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
27251         comment.
27252
27253 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27254
27255         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
27256         which ROUND is no valid rounding mode.
27257
27258 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27259
27260         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
27261         read again.
27262         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
27263
27264 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27265
27266         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
27267         an exception using FPU order intentionally.
27268
27269 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27270
27271         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
27272         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
27273         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
27274         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
27275
27276 2012-04-05  Simon Josefsson  <simon@josefsson.org>
27277
27278         [BZ #12340]
27279         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
27280         EINVAL when BUFLEN is too smal.
27281
27282 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
27283
27284         [BZ #13553]
27285         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
27286         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
27287
27288 2012-04-03  Andreas Jaeger  <aj@suse.de>
27289
27290         [BZ #13938]
27291         * manual/setjmp.texi (System V contexts): Fix sentence.
27292
27293         [BZ #13926]
27294         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
27295         New macro for this case.
27296         [!__GNUC__] (__bswap_64): New inline function for this case.
27297         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27298         * bits/byteswap.h: Likewise.
27299         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
27300         ull, guard with __GLIBC_HAVE_LONG_LONG.
27301
27302         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
27303         __GLIBC_HAVE_LONG_LONG.
27304
27305         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
27306         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
27307
27308 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27309
27310         [BZ #13691]
27311         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
27312         inptr and inend, rather than using last_ch.
27313
27314 2012-04-02  David S. Miller  <davem@davemloft.net>
27315
27316         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
27317         * stdio-common/printf-parse.h (read_int): Change return type to
27318         'int', return -1 on INT_MAX overflow.
27319         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
27320         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
27321         overflows INT_MAX.  Check for overflow of in-format-string precision
27322         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
27323         SIZE_MAX not INT_MAX for integer overflow test.
27324         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
27325         skip the construct in the format string but do not record anything.
27326         * stdio-common/bug22.c: Adjust to test both width/prevision
27327         INT_MAX overflow as well as total length INT_MAX overflow.  Check
27328         explicitly for proper errno values.
27329
27330 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
27331
27332         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
27333         CHAR_MAX.
27334         * string/test-strcmp.c [! WIDE]: Likewise.
27335         * time/tst-mktime2.c: Likewise for INT_MAX.
27336         * string/test-string.h: #include <sys/param.h> for MIN.
27337
27338         * csu/init-first.c (__libc_init_first): Call __ctype_init.
27339         * sysdeps/i386/init-first.c (init): Likewise.
27340         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
27341         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
27342         * sysdeps/sh/init-first.c (init): Likewise.
27343
27344 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
27345
27346         * po/ru.po: Update from translation team.
27347         * po/vi.po: Likewise.
27348
27349 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
27350
27351         * resolv/nss_dns/dns-host.c: Merge copyright years.
27352
27353 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27354
27355         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
27356         Optimize memcpy with prefetch if
27357         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
27358         src, dst pointers have unequal 16 byte alignments.
27359
27360 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
27361
27362         [BZ #13928]
27363         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
27364         from a CNAME entry and return the minimum ttl for the query.
27365         (gaih_getanswer_slice): Likewise.
27366
27367 2012-03-30  Jeff Law  <law@redhat.com>
27368
27369         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
27370         due to long keys.
27371         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
27372         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
27373
27374         * resolv/nss_dns/dns-host.c: Update copyright year.
27375
27376 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
27377
27378         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
27379         requests to save a system call.  Fix check that all bytes are sent.
27380
27381         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
27382         comments for sendmmsg.
27383
27384 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27385
27386         [BZ #13691]
27387         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
27388         with only 1 character between 0x0041 and 0x01b0.
27389         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
27390         * wcsmbs/tst-mbsnrtowcs.c: New file.
27391
27392 2012-03-29  David S. Miller  <davem@davemloft.net>
27393
27394         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
27395         small copies by hand.
27396
27397 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27398
27399         [BZ #13761]
27400         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
27401         _nss_compat_initgroups_dyn): Fall back to malloc/free
27402         for large group memberships.
27403
27404 2012-03-28  David S. Miller  <davem@davemloft.net>
27405
27406         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
27407         that branches into memcpy.
27408         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
27409         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
27410         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
27411         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
27412         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
27413         bits.
27414         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
27415         implementation too.
27416         * sysdeps/sparc/mempcpy.S: New file.
27417
27418         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
27419         the IFUNC routine in the libc case.
27420         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
27421
27422         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
27423         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
27424         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
27425         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
27426         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
27427         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
27428         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
27429         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
27430
27431         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
27432         loop to 256 bytes instead of 64 bytes and fix test signedness.
27433
27434         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
27435         * sysdeps/sparc/sparc32/Makefile: rather than here...
27436         * sysdeps/sparc/sparc64/Makefile: and here.
27437
27438 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
27439
27440         * malloc/mallocbug.c: Avoid warnings about unused variables.
27441
27442 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
27443
27444         [BZ #13760]
27445         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
27446         in the right place. Discard and retry query if response is
27447         larger than input buffer size.
27448
27449 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
27450
27451         [BZ #369]
27452         [BZ #2678]
27453         [BZ #3866]
27454         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
27455         x for large integer exponent.
27456         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
27457         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
27458         sign of result as needed afterwards.
27459         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
27460         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
27461         result for underflowing pow the same as for overflow.
27462         (__kernel_standard_l): Handle powl overflow and underflow here
27463         rather than calling __kernel_standard.
27464         * math/libm-test.inc (pow_test): Add more tests.
27465
27466         [BZ #3868]
27467         [BZ #13879]
27468         [BZ #13910]
27469         [BZ #13911]
27470         [BZ #13912]
27471         [BZ #13913]
27472         [BZ #13915]
27473         [BZ #13916]
27474         [BZ #13917]
27475         [BZ #13918]
27476         [BZ #13919]
27477         [BZ #13920]
27478         [BZ #13921]
27479         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
27480         * sysdeps/ieee754/k_standard.c: Include <float.h>.
27481         (__kernel_standard_l): New function.
27482         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
27483         __kernel_standard.
27484         * math/w_acosl.c (__acosl): Likewise.
27485         * math/w_asinl.c (__asinl): Likewise.
27486         * math/w_atan2l.c (__atan2l): Likewise.
27487         * math/w_atanhl.c (__atanhl): Likewise.
27488         * math/w_coshl.c (__coshl): Likewise.
27489         * math/w_exp10l.c (__exp10l): Likewise.
27490         * math/w_exp2l.c (__exp2l): Likewise.
27491         * math/w_fmodl.c (__fmodl): Likewise.
27492         * math/w_hypotl.c (__hypotl): Likewise.
27493         * math/w_j0l.c (__j0l, __y0l): Likewise.
27494         * math/w_j1l.c (__j1l, __y1l): Likewise.
27495         * math/w_jnl.c (__jnl, __ynl): Likewise.
27496         * math/w_lgammal.c (__lgammal): Likewise.
27497         * math/w_log10l.c (__log10l): Likewise.
27498         * math/w_log2l.c (__log2l): Likewise.
27499         * math/w_logl.c (__logl): Likewise.
27500         * math/w_powl.c (__powl): Likewise.
27501         * math/w_remainderl.c (__remainderl): Likewise.
27502         * math/w_scalbl.c (sysv_scalbl): Likewise.
27503         * math/w_sinhl.c (__sinhl): Likewise.
27504         * math/w_sqrtl.c (__sqrtl): Likewise.
27505         * math/w_tgammal.c (__tgammal): Likewise.
27506         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
27507         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
27508         * math/libm-test.inc (acos_test): Add more tests.
27509         (acosh_test): Likewise.
27510         (asin_test): Likewise.
27511         (atanh_test): Likewise.
27512         (exp_test): Likewise.
27513         (exp10_test): Likewise.
27514         (exp2_test): Likewise.
27515         (expm1_test): Likewise.
27516         (lgamma_test): Likewise.
27517         (log_test): Likewise.
27518         (log10_test): Likewise.
27519         (log1p_test): Likewise.
27520         (log2_test): Likewise.
27521         (pow_test): Do not allow some spurious overflow exceptions.
27522         (sqrt_test): Add more tests.
27523         (tgamma_test): Likewise.
27524         (y0_test): Likewise.
27525         (y1_test): Likewise.
27526         (yn_test): Likewise.
27527
27528 2012-03-27  Anton Blanchard  <anton@samba.org>
27529
27530         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
27531         MAP_HUGETLB.
27532         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27533         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27534         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27535
27536 2012-03-27  David S. Miller  <davem@davemloft.net>
27537
27538         * conform/Makefile: Run run-conformtest.sh using $(BASH).
27539
27540         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
27541         have-as-vis3 check.
27542
27543 2012-03-27  Andreas Jaeger  <aj@suse.de>
27544
27545         * sysdeps/x86_64/elf/configure.in: Moved to ...
27546         * sysdeps/x86_64/configure.in: ... here.
27547         * sysdeps/x86_64/elf/start.S: Moved to ...
27548         * sysdeps/x86_64/start.S: ... here.
27549         * sysdeps/x86_64/elf/configure: Delete.
27550
27551         * sysdeps/x86_64/configure.in: Merge contents from
27552         sysdeps/i386/configure.in (without i686 check).
27553
27554         * sysdeps/i386/elf/Versions: Merge into ...
27555         * sysdeps/i386/Versions: ... this.
27556         * sysdeps/i386/elf/Versions: Delete file.
27557         * sysdeps/i386/elf/start.S: Moved to ...
27558         * sysdeps/i386/start.S: ...here.
27559         * sysdeps/i386/elf/configure.in: Merge into...
27560         * sysdeps/i386/configure.in: ...here.
27561         * sysdeps/i386/elf/configure.in: Delete file.
27562         * sysdeps/i386/elf/configure: Delete file.
27563
27564         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
27565         * debug/backtracesyms.c: ... here.
27566         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
27567         * debug/backtracesymsfd.c: ... here.
27568         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
27569         * sysdeps/generic/ifunc-sel.h: ... here.
27570
27571         * sysdeps/unix/i386/start.c: Delete file.
27572         * sysdeps/unix/sparc/start.c: Delete file.
27573         * sysdeps/unix/start.c: Delete file.
27574
27575         * sysdeps/sh/elf/configure.in: Moved to ...
27576         * sysdeps/sh/configure.in: ... here.
27577         * sysdeps/sh/elf/start.S: Moved to ...
27578         * sysdeps/sh/start.S: ... here.
27579         * sysdeps/sh/elf/configure: Delete file.
27580
27581         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
27582         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
27583         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
27584         * sysdeps/powerpc/powerpc64/entry.h: ... here.
27585         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
27586         * sysdeps/powerpc/powerpc64/start.S: here.
27587         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
27588         * sysdeps/powerpc/powerpc64/Makefile: ... this.
27589         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
27590         * sysdeps/powerpc/powerpc64/configure.in: ... this.
27591         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
27592
27593         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
27594         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
27595         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
27596         * sysdeps/powerpc/powerpc32/start.S: ... here.
27597         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
27598         * sysdeps/powerpc/powerpc32/configure.in: ... this.
27599         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
27600
27601         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
27602         * sysdeps/powerpc/ifunc-sel.h: ... here.
27603         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
27604         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
27605
27606         * sysdeps/sparc/elf/configure.in: Moved to ...
27607         * sysdeps/sparc/configure.in: ... here.
27608         * sysdeps/sparc/elf/configure: Delete file.
27609         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
27610         * sysdeps/sparc/sparc32/start.S: ... here.
27611         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
27612         * sysdeps/sparc/sparc64/start.S: ... here.
27613         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
27614         * sysdeps/sparc/sparc32/Makefile: ... this.
27615         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
27616         * sysdeps/sparc/sparc64/Makefile: ... this.
27617
27618         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
27619         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
27620         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
27621         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
27622         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
27623         * sysdeps/s390/s390-32/setjmp.S: ... here.
27624         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
27625         * sysdeps/s390/s390-32/configure.in: ... here.
27626         * sysdeps/s390/s390-32/elf/configure: Delete file.
27627         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
27628         * sysdeps/s390/s390-32/start.S: ... here.
27629
27630         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
27631         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
27632         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
27633         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
27634         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
27635         * sysdeps/s390/s390-64/setjmp.S: ... here.
27636         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
27637         * sysdeps/s390/s390-64/configure.in: ... here
27638         * sysdeps/s390/s390-64/elf/configure: Delete file.
27639         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
27640         * sysdeps/s390/s390-64/start.S: ... here.
27641         * sysdeps/s390/s390-64/elf/configure: Delete.
27642
27643         * configure.in: Remove support for elf directories in sysdeps.
27644
27645         * configure: Regenerated.
27646         * sysdeps/i386/configure: Regenerated.
27647         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27648         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27649         * sysdeps/s390/s390-32/configure: Regenerated.
27650         * sysdeps/s390/s390-64/configure: Regenerated.
27651         * sysdeps/sh/configure: Regenerated.
27652         * sysdeps/sparc/configure: Regenerated.
27653         * sysdeps/x86_64/configure: Regenerated.
27654
27655 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
27656
27657         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27658
27659         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
27660         denormal result into account.
27661
27662 2012-03-25  Roland McGrath  <roland@hack.frob.com>
27663
27664         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
27665         Reported by Allan McRae <allan@archlinux.org>.
27666
27667 2012-03-23  Jeff Law  <law@redhat.com>
27668
27669         * nss/getnssent.c (__nss_getent): Fix typo.
27670
27671 2012-03-23  David S. Miller  <davem@davemloft.net>
27672
27673         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27674
27675 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
27676
27677         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
27678         to pad to uint64_t for each field.
27679         (dl_tls_index): Replace unsigned long with uint64_t.
27680
27681 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
27682         Paul Pluzhnikov  <ppluzhnikov@google.com>
27683
27684         [BZ #6528]
27685         * grp/Makefile (otherlibs): Don't set it.
27686         * inet/Makefile (otherlibs): Likewise.
27687         * login/Makefile (otherlibs): Likewise.
27688         * nscd/Makefile (otherlibs): Likewise.
27689         * posix/Makefile (otherlibs): Likewise.
27690         * pwd/Makefile (otherlibs): Likewise.
27691         * rt/Makefile (otherlibs): Likewise.
27692         * sunrpc/Makefile (otherlibs): Likewise.
27693         * nss/Makefile (otherlibs): Likewise.
27694         Add libnss_files to routines and static-only-routines.
27695         ($(objpfx)getent): Remove rule.
27696         * resolv/Makefile: Add libnss_dns and libresolv to routines and
27697         static-only-routines.
27698
27699 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27700
27701         [BZ #13892]
27702         * math/s_cexp.c: Include <float.h>.
27703         (__cexp): Handle exp result overflowing not necessarily
27704         overflowing both real and imaginary parts of result.
27705         * math/s_cexpf.c: Likewise.
27706         * math/s_cexpl.c: Likewise.
27707         * math/libm-test.inc (cexp_test): Add more tests.
27708         * sysdeps/i386/fpu/libm-test-ulps: Update.
27709         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27710
27711 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27712
27713         * include/link.h (ELFW): New macro.
27714         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
27715         Replace ELF64_R_TYPE with ELFW(R_TYPE).
27716
27717 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27718
27719         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
27720         with uint64_t.
27721
27722 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27723
27724         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
27725         declaration.
27726         (struct La_x32_retval): Likewise.
27727
27728 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27729
27730         * sysdeps/x86_64/preconfigure.in: New file.
27731         * sysdeps/x86_64/preconfigure: New generated file.
27732
27733 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27734
27735         [BZ #13824]
27736         * math/e_exp2l.c: Include <float.h>.
27737         (__ieee754_exp2l): Handle overflow and underflow cases
27738         separately.  Only pass fractional part of argument to
27739         __ieee754_expl.
27740         * math/libm-test.inc (exp2_test): Add more tests.
27741
27742         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
27743         negating x to take absolute value.
27744         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
27745         Likewise.
27746         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
27747         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
27748         Likewise.
27749         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
27750         computing low part if x was negated.
27751         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
27752
27753 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27754
27755         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
27756         la_x32_gnu_pltexit.
27757         (pltexit): Cast int_retval to ptrdiff_t.
27758         * elf/tst-auditmod3b.c: Likewise.
27759         * elf/tst-auditmod4b.c: Likewise.
27760         * elf/tst-auditmod5b.c: Likewise.
27761         * elf/tst-auditmod6b.c: Likewise.
27762         * elf/tst-auditmod6c.c: Likewise.
27763         * elf/tst-auditmod7b.c: Likewise.
27764
27765         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
27766         and x32_gnu_pltexit.
27767
27768         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
27769         __ELF_NATIVE_CLASS.
27770         (La_x32_regs): New macro.
27771         (La_x32_retval): Likewise.
27772         (la_x32_gnu_pltenter): New function prototype.
27773         (la_x32_gnu_pltexit): Likewise.
27774
27775 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
27776
27777         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
27778         exponent.
27779
27780         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27781
27782         * configure.in (libc_cv_cc_nofma): Check for option to disable
27783         generation of FMA instructions.
27784         * configure: Regenerate.
27785         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
27786         * sysdeps/ieee754/dbl-64/Makefile: New file.
27787         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27788         Remove brandred-fma4.
27789         (CFLAGS-brandred-fma4.c): Remove.
27790         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
27791         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
27792         define.
27793         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
27794         define.
27795
27796 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27797
27798         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
27799         LLONG_MAX != LONG_MAX.
27800         (_itoa_word): Use _ITOA_WORD_TYPE on value.
27801         (_fitoa_word): Likewise.
27802         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
27803         LLONG_MAX != LONG_MAX.
27804         * stdio-common/_itowa.h: Include <_itoa.h>.
27805         (_itowa_word): Use _ITOA_WORD_TYPE on value.
27806         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
27807         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
27808         only if not defined.
27809         (_ITOA_WORD_TYPE): Likewise.
27810         (_itoa_word): Use _ITOA_WORD_TYPE on value.
27811         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
27812
27813 2012-03-21  David S. Miller  <davem@davemloft.net>
27814
27815         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27816
27817 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27818
27819         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
27820         of x86_64 when setting libc_cv_slibdir, libdir and
27821         libc_cv_localedir.
27822         * sysdeps/unix/sysv/linux/configure: Regenerated.
27823
27824 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27825
27826         * manual/lang.texi (Old Varargs): Remove section.
27827         (How Variadic): Update menu.
27828         (va_start): Do not mention varargs.h.
27829
27830 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
27831             Joseph Myers  <joseph@codesourcery.com>
27832
27833         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
27834         link test.
27835         * configure: Regenerated.
27836
27837 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
27838
27839         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
27840         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
27841         conformtest.pl
27842
27843 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27844
27845         * NOTES: Remove.
27846         * Makefile (files-for-dist): Remove NOTES.
27847         (NOTES): Remove rule.
27848         * README: Don't refer to NOTES.
27849         * manual/creature.texi: Don't include macros.texi.
27850         * manual/intro.texi (creature.texi): Remove comment referring to
27851         NOTES.
27852
27853         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
27854         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
27855         * configure: Regenerated.
27856         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
27857         LIBC_TRY_CC_OPTION.
27858         (libc_cv_as_i686): Likewise.
27859         (libc_cv_cc_avx): Likewise.
27860         (libc_cv_cc_sse2avx): Likewise.
27861         (libc_cv_cc_fma4): Likewise.
27862         (libc_cv_cc_novzeroupper): Likewise.
27863         * sysdeps/i386/configure: Regenerated.
27864
27865         [BZ #13883]
27866         * sysdeps/i386/fpu/s_cexp.S: Remove.
27867         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
27868         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
27869         * math/libm-test.inc (cexp_test): Add more tests.
27870         * sysdeps/i386/fpu/libm-test-ulps: Update.
27871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27872
27873 2012-03-21  Allan McRae  <allan@archlinux.org>
27874
27875         * timezone/Makefile: Do not install iso3166.tab and zone.tab
27876
27877 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27878
27879         [BZ #13871]
27880         * math/w_exp2.c: Do not include <float.h>.
27881         (o_threshold, u_threshold): Remove.
27882         (__exp2): Calculate result before checking finiteness and calling
27883         __kernel_standard.
27884         * math/w_exp2f.c: Likewise.
27885         * math/w_exp2l.c: Likewise.
27886         * math/libm-test.inc (exp2_test): Require overflow exception for
27887         1e6 input.
27888
27889         [BZ #3866]
27890         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
27891         range of signed 64-bit integers before using fistpll.  Remove
27892         checks for whether integers fit in mantissa bits.
27893         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
27894         the range of signed 32-bit integers before using fistpl.  Remove
27895         checks for whether integers fit in mantissa bits.
27896         * sysdeps/i386/fpu/e_powl.S (p64): New object.
27897         (__ieee754_powl): Test for y outside the range of signed 64-bit
27898         integers before using fistpll.  Reduce 64-bit values to 63-bit
27899         ones as needed.
27900         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
27901         divide-by-zero is raised for zero to large negative powers.
27902         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
27903         (__ieee754_powl): Test for y outside the range of signed 64-bit
27904         integers before using fistpll.  Reduce 64-bit values to 63-bit
27905         ones as needed.
27906         * math/libm-test.inc (pow_test): Add more tests.
27907
27908 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27909
27910         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
27911         <stdio-common/_itoa.h>.
27912         * debug/segfault.c: Likewise.
27913         * elf/dl-cache.c: Likewise.
27914         * elf/dl-minimal.c: Likewise.
27915         * elf/dl-misc.c: Likewise.
27916         * elf/dl-sysdep.c: Likewise.
27917         * elf/dl-version.c: Likewise.
27918         * elf/rtld.c: Likewise.
27919         * hurd/hurdsock.c: Likewise.
27920         * hurd/lookup-retry.c: Likewise.
27921         * malloc/malloc.c: Likewise.
27922         * malloc/mtrace.c: Likewise.
27923         * nscd/nscd_getgr_r.c: Likewise.
27924         * nscd/nscd_getpw_r.c: Likewise.
27925         * nscd/nscd_getserv_r.c: Likewise.
27926         * posix/getopt_init.c: Likewise.
27927         * posix/wordexp.c: Likewise.
27928         * stdio-common/_itoa.c: Likewise.
27929         * stdio-common/printf_fphex.c: Likewise.
27930         * stdio-common/vfprintf.c: Likewise.
27931         * string/_strerror.c: Likewise.
27932         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
27933         * sysdeps/i386/i686/hp-timing.h: Likewise.
27934         * sysdeps/mach/_strerror.c: Likewise.
27935         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
27936         * sysdeps/mach/hurd/sethostid.c: Likewise.
27937         * sysdeps/mach/hurd/xmknodat.c: Likewise.
27938         * sysdeps/mach/xpg-strerror.c: Likewise.
27939         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
27940         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
27941         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
27942         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
27943         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
27944         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
27945         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
27946         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
27947         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
27948         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
27949         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
27950         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
27951         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
27952         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
27953         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
27954         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
27955         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
27956         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
27957         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
27958         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
27959         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
27960
27961         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
27962
27963         * stdio-common/_itoa.h: Moved to ...
27964         * sysdeps/generic/_itoa.h: Here.
27965
27966         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
27967
27968         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
27969         instead of "_itoa.h" and "_itowa.h".
27970         * stdio-common/vfprintf.: Likewise.
27971
27972 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27973
27974         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
27975         <bits/wordsize.h>.
27976         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
27977         (__signbit): Likwise.
27978         (llrintf): Likwise.
27979         (llrint): Likwise.
27980
27981 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27982
27983         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
27984         __WORDSIZE != 64.
27985
27986 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
27987
27988         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
27989         OVERFLOW_EXCEPTION_OK.
27990         * math/libm-test.inc ("Philosophy"): Update comment about
27991         exception testing.
27992         (OVERFLOW_EXCEPTION): Define.
27993         (OVERFLOW_EXCEPTION_OK): Likewise.
27994         (INVALID_EXCEPTION_OK): Renumber.
27995         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
27996         (IGNORE_ZERO_INF_SIGN): Likewise.
27997         (test_exceptions): Handle FE_OVERFLOW.
27998         (exp10_test): Expect overflow exceptions.
27999         (exp2_test): Likewise.
28000         (expm1_test): Likewise.
28001         (nextafter_test): Likewise.
28002         (pow_test): Likewise.
28003         (scalbn_test): Likewise.
28004         (scalbln_test): Likewise.
28005
28006 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28007
28008         * sysdeps/x86_64/bits/atomic.h
28009         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
28010         64bit integer.
28011         (atomic_exchange_acq): Likewise.
28012         (__arch_exchange_and_add_body): Likewise.
28013         (__arch_add_body): Likewise.
28014         (atomic_add_negative): Likewise.
28015         (atomic_add_zero): Likewise.
28016
28017 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28018
28019         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
28020         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
28021
28022 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28023
28024         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
28025         Check __x86_64__ instead of __WORDSIZE.
28026
28027 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28028
28029         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
28030
28031 2012-03-19  David S. Miller  <davem@davemloft.net>
28032
28033         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28034
28035         * sysdeps/sparc/fpu/fenv_private.h: New file.
28036         * sysdeps/sparc/fpu/math_private.h: Use it.
28037         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
28038         Remove.
28039         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
28040         (libc_feholdexcept_setroundl): Remove.
28041         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
28042         Remove.
28043         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
28044         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
28045
28046 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28047
28048         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
28049         int64_t instead of long int.
28050         (INSERT_WORDS64): Likwise.
28051
28052 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28053
28054         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
28055         _Unwind_GetCFA return to _Unwind_Ptr first.
28056
28057 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
28058
28059         [BZ #13629]
28060         * math/s_clog.c: Include <float.h>.
28061         (__clog): Scale large or subnormal inputs.
28062         * math/s_clogf.c: Likewise.
28063         * math/s_clogl.c: Likewise.
28064         * math/s_clog10.c: Include <float.h>.
28065         (M_LOG10_2): Define.
28066         (__clog10): Scale large or subnormal inputs.
28067         * math/s_clog10f.c: Likewise.
28068         * math/s_clog10l.c: Likewise.
28069         * math/libm-test.inc (clog_test): Add more tests.
28070         (clog10_test): Likewise.
28071         * sysdeps/i386/fpu/libm-test-ulps: Update.
28072         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28073
28074         [BZ #11451]
28075         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
28076         x and y.
28077         * math/libm-test.inc (atan2_test): Add another test.
28078
28079         * Makerules (common-objdir-compile): Remove.
28080         * sysdeps/unix/Makefile (config-generated): Do not add
28081         $(unix-generated) to variable.
28082         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
28083         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
28084         Remove rule.
28085         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
28086         Likewise.
28087         [generic bits/local_lim.h] (before-compile): Do not append to
28088         variable.
28089         [generic bits/local_lim.h] (common-generated): Likewise.
28090         [generic sys/param.h] (before-compile): Do not append to variable.
28091         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
28092         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
28093         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
28094         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
28095         include.
28096         [generic sys/param.h] (sys/param.h-includes): Remove variable.
28097         [generic sys/param.h] (sys/param.h-includes): Remove rule.
28098         [generic sys/param.h] ($(addprefix
28099         $(common-objpfx),$(sys/param.h-includes))): Likewise.
28100         [generic sys/param.h] (common-generated): Do not append to
28101         variable.
28102         [generic sys/param.h] (sysdep_headers): Likewise.
28103         [generic bits/errno.h] (before-compile): Do not append to
28104         variable.
28105         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
28106         rule.
28107         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
28108         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
28109         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
28110         [generic bits/errno.h] (common-generated): Do not append to
28111         variable.
28112         [generic bits/ioctls.h] (before-compile): Do not append to
28113         variable.
28114         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
28115         rule.
28116         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
28117         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
28118         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
28119         rule.
28120         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
28121         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
28122         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
28123         [generic bits/ioctls.h] (common-generated): Do not append to
28124         variable.
28125         [generic sys/syscall.h] (syscall.h): Remove variable.
28126         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
28127         rule.
28128         [generic sys/syscall.h] (before-compile): Do not append to
28129         variable.
28130         [generic sys/syscall.h] (common-generated): Likewise.
28131         * sysdeps/unix/errnos-tmpl.c: Remove file.
28132         * sysdeps/unix/errnos.awk: Likewise.
28133         * sysdeps/unix/ioctls-tmpl.c: Likewise.
28134         * sysdeps/unix/ioctls.awk: Likewise.
28135         * sysdeps/unix/mk-local_lim.c: Likewise.
28136         * sysdeps/unix/snarf-ioctls: Likewise.
28137
28138 2012-03-19  Richard Henderson  <rth@twiddle.net>
28139
28140         * sysdeps/i386/fpu/fenv_private.h: New file.
28141         * sysdeps/i386/fpu/math_private.h: Use it.
28142         (math_opt_barrier, math_force_eval): Remove.
28143         (libc_feholdexcept_setround_53bit): Remove.
28144         (libc_feupdateenv_53bit): Remove.
28145         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28146         (math_opt_barrier, math_force_eval): Remove.
28147         (libc_feholdexcept): Remove.
28148         (libc_feholdexcept_setround): Remove.
28149         (libc_fetestexcept, libc_fesetenv): Remove.
28150         (libc_feupdateenv_test): Remove.
28151         (libc_feupdateenv, libc_feholdsetround): Remove.
28152         (libc_feresetround): Remove.
28153
28154         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
28155         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28156
28157         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
28158         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
28159         (libc_feupdateenv_testl): New.
28160         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
28161         (libc_feupdateenv_testf): New.
28162         (libc_feupdateenv): Use libc_feupdateenv_test.
28163         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
28164         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
28165
28166         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
28167         (libc_feholdsetroundf, libc_feholdsetroundl): New.
28168         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
28169         (libc_feresetround_noex): New.
28170         (libc_feresetround_noexf): New.
28171         (libc_feresetround_noexl): New.
28172         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
28173         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
28174         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
28175         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
28176         SET_RESTORE_ROUND.
28177         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
28178         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
28179         (__cos): Likewise.
28180         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
28181         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
28182         SET_RESTORE_ROUND_NOEX.
28183         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
28184         SET_RESTORE_ROUND_NOEXF.
28185         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
28186         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
28187         (libc_feholdsetroundf): New.
28188         (libc_feresetround, libc_feresetroundf): New.
28189
28190         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
28191         (libc_feholdexcept_setround_53bit): Convert from macro to function.
28192         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
28193
28194         * sysdeps/generic/math_private.h: Include <fenv.h>.
28195         (default_libc_feholdexcept): New.
28196         (default_libc_feholdexcept_setround): New.
28197         (default_libc_fesetenv, default_libc_feupdateenv): New.
28198         (libc_feholdexcept): Only define if undefined.
28199         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
28200         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
28201         (libc_feholdexcept_setroundl): Likewise.
28202         (libc_feholdexcept_setround_53bit): Likewise.
28203         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
28204         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
28205         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
28206         (libc_feupdateenv_53bit): Likewise.
28207         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
28208         (libc_feholdexcept): Convert from macro to inline function.
28209         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
28210         (libc_fesetenv, libc_feupdateenv): Likewise.
28211
28212         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
28213         not previously defined.
28214         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
28215         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
28216         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
28217         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
28218         * sysdeps/ieee754/flt-32/math_private.h: New file.
28219         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
28220         math_private.h below SET_FLOAT_WORD.
28221         (__isnan, __isinf_ns, __finite): Remove.
28222         (__isnanf, __isinf_nsf, __finitef): Remove.
28223
28224 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
28225
28226         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28227
28228 2012-03-17  David S. Miller  <davem@davemloft.net>
28229
28230         [BZ #6471]
28231         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
28232         for 2.16.
28233
28234 2012-03-16  David S. Miller  <davem@davemloft.net>
28235
28236         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
28237         warnings.
28238
28239         [BZ #6471]
28240         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
28241         properly.
28242         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
28243         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
28244         sysdep_routines when subdir is sysvipc.
28245         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
28246         __getshmlba helper.
28247
28248         * sysdeps/sparc/fpu/libm-test/ulps: Update.
28249
28250 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28251
28252         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
28253         [__LP64__].
28254
28255 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28256
28257         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
28258         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
28259         (__lround): Renamed to ...
28260         (__llround): This.  Replace long int with long long int.
28261         Define lround functions as aliases of llround functions.
28262         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
28263
28264 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28265
28266         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
28267         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
28268         adresses to uintptr_t.  Replace "long int" and "unsigned long
28269         int" with "greg_t" on va_arg.
28270
28271 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28272
28273         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
28274         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
28275
28276         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
28277         Move e_machine check before EI_CLASS check.  Handle x32
28278         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
28279         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
28280         SKIP_EM_IA_64 and include
28281         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
28282
28283         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
28284         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
28285         (add_system_dir): New macro.
28286
28287         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
28288         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
28289
28290 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28291
28292         [BZ #2551]
28293         [BZ #2552]
28294         [BZ #2553]
28295         [BZ #2554]
28296         [BZ #2562]
28297         [BZ #2563]
28298         [BZ #2565]
28299         [BZ #2566]
28300         [BZ #2576]
28301         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
28302         (y0): Likewise.
28303         * math/w_j0f.c (j0f): Likewise.
28304         (y0f): Likewise.
28305         * math/w_j0l.c (__j0l): Likewise.
28306         (__y0l): Likewise.
28307         * math/w_j1.c (j1): Likewise.
28308         (y1): Likewise.
28309         * math/w_j1f.c (j1f): Likewise.
28310         (y1f): Likewise.
28311         * math/w_j1l.c (__j1l): Likewise.
28312         (__y1l): Likewise.
28313         * math/w_jn.c (jn): Likewise.
28314         (yn): Likewise.
28315         * math/w_jnf.c (jnf): Likewise.
28316         (ynf): Likewise.
28317         * math/w_jnl.c (__jnl): Likewise.
28318         (__ynl): Likewise.
28319         * math/libm-test.inc (j0_test): Add more tests.
28320         (j1_test): Likewise.
28321         (jn_test): Likewise.  Add trailing semicolon to existing test.
28322         (y0_test): Likewise.
28323         (y1_test): Likewise.
28324         * sysdeps/i386/fpu/libm-test-ulps: Update.
28325         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28326
28327         [BZ #13851]
28328         [BZ #13854]
28329         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
28330         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
28331         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
28332         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
28333         (__tanl): Set errno for infinite argument.
28334         * sysdeps/i386/fpu/mptan.c: Remove.
28335         * sysdeps/i386/fpu/s_tan.S: Likewise.
28336         * sysdeps/i386/fpu/s_tanl.S: Likewise.
28337         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
28338         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
28339         * math/libm-test.inc (tan_test): Add more tests and enable more
28340         tests for double and long double.
28341         * sysdeps/i386/fpu/libm-test-ulps: Update.
28342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28343
28344 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
28345
28346         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
28347         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
28348
28349 2012-03-16  Roland McGrath  <roland@hack.frob.com>
28350
28351         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
28352         * configure.in: Use it for both main tree and add-ons.
28353         * configure: Regenerated.
28354
28355 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28356
28357         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
28358
28359 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28360
28361         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
28362         in comment.
28363
28364         [BZ #13851]
28365         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
28366         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
28367         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
28368         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
28369         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
28370         infinite argument.
28371         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
28372         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
28373         != 0 for prec == 2.
28374         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
28375         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
28376         * sysdeps/i386/fpu/s_cosl.S: Likewise.
28377         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
28378         * sysdeps/i386/fpu/s_sinl.S: Likewise.
28379         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
28380         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
28381         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
28382         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
28383         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
28384         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
28385         * math/libm-test.inc (cos_test): Add more tests and enable more
28386         tests for long double.
28387         (sin_test): Likewise.
28388         (sincos_test): Likewise.
28389         * sysdeps/i386/fpu/libm-test-ulps: Update.
28390         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28391
28392 2012-03-16  David S. Miller  <davem@davemloft.net>
28393
28394         * sysdeps/sparc/fpu/math_private.h: New file.
28395
28396 2012-03-15  David S. Miller  <davem@davemloft.net>
28397
28398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
28399         file.
28400         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
28401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
28402         file.
28403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
28404         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
28405         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
28406         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
28407         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
28408         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
28409         sysdep routines.
28410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28411
28412         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
28413         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
28414
28415         * sysdeps/sparc/sparc-ifunc.h: New file.
28416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
28417         sparc-ifunc.h
28418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
28419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28420         Likewise.
28421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
28422         Likewise.
28423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
28424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
28425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
28426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
28427         Likewise.
28428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
28429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
28430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
28431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
28432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
28433         Likewise.
28434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
28435         Likewise.
28436         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
28437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
28438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
28439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
28440         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
28441         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
28442         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
28443         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
28444         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
28445         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
28446         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
28447         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
28448         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
28449         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
28450         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
28451         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
28452         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
28453         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
28454         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
28455         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
28456         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
28457         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
28458         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
28459         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
28460
28461 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28462
28463         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
28464         scaling.
28465         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28466
28467 2012-03-15  Andreas Jaeger  <aj@suse.de>
28468
28469         [BZ #13852]
28470         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
28471         ieee754/flt-32 implementation for sin, cos and sincos.
28472         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
28473         * sysdeps/i386/fpu/s_cosf.S: Likewise.
28474         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
28475         * sysdeps/i386/fpu/s_sinf.S: Likewise.
28476         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
28477         ieee754/flt-32 implementation for tan.
28478
28479         * math/libm-test.inc (cos_test): Enable some large input tests for
28480         float as well
28481         (sin_test): Likewise.
28482         (sincos_test): Likewise.
28483         (tan_test): Add tests for large input.
28484
28485         * sysdeps/i386/fpu/libm-test-ulps: Update.
28486
28487 2012-03-15  Andreas Jaeger  <aj@suse.de>
28488
28489         [BZ #13658]
28490         * math/libm-test.inc (cos_test): Add more test cases.
28491         (sin_test): Likewise.
28492         (sincos_test): Likewise.
28493
28494 2012-03-15  Andreas Jaeger  <aj@suse.de>
28495
28496         [BZ #13837]
28497         * math/libm-test.inc (cos_test): Add a test case for large input
28498         value.
28499         (sin_test): Likewise.
28500         (sincos_test): Likewise.
28501
28502 2012-03-15  Andreas Jaeger  <aj@suse.de>,
28503         Joseph Myers  <joseph@codesourcery.com>
28504
28505         [BZ #13658]
28506         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
28507         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
28508         * sysdeps/i386/fpu/branred.c: Likewise.
28509         * sysdeps/i386/fpu/dosincos.c: Likewise.
28510         * sysdeps/i386/fpu/mpa.c: Likewise.
28511         * sysdeps/i386/fpu/s_cos.S: Likewise.
28512         * sysdeps/i386/fpu/s_sin.S: Likewise.
28513         * sysdeps/i386/fpu/s_sincos.S: Likewise.
28514         * sysdeps/i386/fpu/sincos32.c: Likewise.
28515
28516         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
28517         Define.
28518         (libc_feupdateenv_53bit): Define.
28519         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
28520         Define.
28521         (libc_feupdateenv_53bit): Define.
28522
28523         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
28524         53 bit (without extend i386 double precision).
28525
28526         * math/libm-test.inc (sincos_test): Add tests for large input.
28527         (sin): Likewise.
28528         (cos): Likewise.
28529
28530         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28531
28532 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28533
28534         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28535
28536 2012-03-15  David S. Miller  <davem@davemloft.net>
28537
28538         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
28539         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
28540         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
28541         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
28542         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
28543         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
28544         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
28545         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
28546         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
28547         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
28548         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
28549         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
28550         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
28551         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
28552         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
28553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
28554         file.
28555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
28556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
28557         file.
28558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
28559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
28560         file.
28561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
28562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
28563         file.
28564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
28565         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
28566         fmin/fmax sysdep routines.
28567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28568
28569 2012-03-14  David S. Miller  <davem@davemloft.net>
28570
28571         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
28572         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
28573         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
28574         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
28575         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
28576         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
28577         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
28578         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
28579         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
28580         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
28581         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
28582         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
28583         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
28584         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
28585         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
28586         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
28587         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
28588         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
28589         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
28590         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
28591         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
28592         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
28593         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
28594         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
28595         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
28596         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
28597         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
28598         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
28599         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
28600         routines.
28601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
28602         file.
28603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
28604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
28605         file.
28606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
28607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
28608         file.
28609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
28610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
28611         file.
28612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
28613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
28614         file.
28615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
28616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
28617         file.
28618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
28619         file.
28620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
28621         file.
28622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
28623         file.
28624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
28625         New file.
28626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
28627         file.
28628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
28629         file.
28630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
28631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
28632         file.
28633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
28634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
28635         file.
28636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
28637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
28638         file.
28639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
28640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
28641         VIS3 routines.
28642
28643         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
28644         New file.
28645
28646         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28647
28648         * sysdeps/sparc/configure.in: New file.
28649         * sysdeps/sparc/configure: Generate.
28650         * configure.in (libc_cv_sparc_as_vis3): Substitute.
28651         * configure: Regenerate.
28652         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
28653         * config.make.in (have-as-vis3): New.
28654         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
28655         available use -Av9d instead of -Av9a.
28656         * sysdeps/sparc/sparc64/Makefile: Likewise.
28657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
28658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
28659         New file.
28660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
28661         file.
28662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
28663         New file.
28664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
28665         file.
28666         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
28667         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
28668         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
28669         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
28670         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
28671
28672         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
28673         fzeros/fnegs to load 0x80000000 into a float register instead of
28674         using the stack.
28675         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
28676
28677 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28678
28679         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28680         bits/syscall.h.
28681         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
28682         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
28683         ($(inst_includedir)/bits/syscall.h): Remove rule.
28684         ($(objpfx)bits/syscall.d): Include instead of
28685         $(objpfx)syscall-list.d.
28686         (generated): Change syscall-list.h and syscall-list.d to
28687         bits/syscall.h and bits/syscall.d.
28688
28689 2012-03-14  Roland McGrath  <roland@hack.frob.com>
28690
28691         [BZ #13846]
28692         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
28693
28694 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28695
28696         [BZ #13841]
28697         * math/s_csqrt.c: Include <float.h>.
28698         (__csqrt): Scale large or subnormal inputs.
28699         * math/s_csqrtf.c: Likewise.
28700         * math/s_csqrtl.c: Likewise.
28701         * math/libm-test.inc (csqrt_test): Add more tests.
28702         * sysdeps/i386/fpu/libm-test-ulps: Update.
28703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28704
28705         [BZ #13840]
28706         * math/libm-test.inc (hypot_test): Add more tests.
28707
28708 2012-03-13  David S. Miller  <davem@davemloft.net>
28709
28710         [BZ #13840]
28711         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
28712         double-precision for the calculation instead of scaling.
28713
28714 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
28715
28716         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
28717         manipulate bits before adding and subtracting TWO52[sx].
28718         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
28719         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28720         Likewise.
28721         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
28722
28723 2012-03-13  David S. Miller  <davem@davemloft.net>
28724
28725         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
28726         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
28727         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
28728         rtld-global-offsets.h
28729         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
28730
28731         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
28732         large parameters.
28733
28734         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
28735
28736         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
28737         'err' in the ifdef scope in which it is actually used.
28738
28739         * nss/nss_db/db-init.c: Include string.h
28740
28741 2012-03-12  David S. Miller  <davem@davemloft.net>
28742
28743         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
28744         masking out of the most significant byte of random value used.
28745         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28746         Fix coding style in previous change.
28747
28748         * sysdeps/unix/sysv/linux/kernel-features.h
28749         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
28750         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
28751         expression.
28752         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
28753         later.
28754
28755 2012-03-11  David S. Miller  <davem@davemloft.net>
28756
28757         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
28758         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
28759         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
28760         for 'resultvar' otherwise things get truncated on 64-bit.
28761
28762         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28763         Fix masking out of the most significant byte of random value used.
28764
28765         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28766
28767 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
28768
28769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28770
28771 2012-03-09  David S. Miller  <davem@davemloft.net>
28772
28773         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
28774         variables with appropriate CPP guards.
28775         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
28776         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
28777         on resulting framesize and the management of the outregs buffer for pltexit.
28778         Preserve floating point return values across _dl_call_pltexit call.
28779         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
28780         framesize and the management of the outregs buffer for pltexit.
28781         Preserve floating point return values across _dl_call_pltexit
28782         call.
28783         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
28784         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
28785         (print_exit): Fix format string for return register value.
28786
28787 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
28788
28789         * sunrpc/Makefile (others): Add rpcgen.
28790         ($(objpfx)rpcgen): Remove special build rule and dependency on
28791         libc.
28792         * sunrpc/rpcgen.c: New file.
28793
28794 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
28795
28796         [BZ #13673]
28797         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
28798         * stdio-common/bug-vfprintf-nargs.c: Likewise.
28799         * sysdeps/i386/crti.S: Likewise.
28800         * sysdeps/i386/crtn.S: Likewise.
28801         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
28802         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
28803         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
28804         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
28805         * sysdeps/sh/crti.S: Likewise.
28806         * sysdeps/sh/crtn.S: Likewise.
28807         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
28808
28809         [BZ #13673]
28810         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
28811         with URL.
28812         * locale/programs/locfile-kw.gperf: Likewise.
28813         * locale/programs/charmap-kw.h: Regenerated.
28814         * locale/programs/locfile-kw.h: Likewise.
28815
28816         [BZ #13673]
28817         * intl/plural.y: Replace FSF snail mail address with URL.
28818         * intl/plural.c: Regenerated.
28819
28820 2012-03-09  Richard Henderson  <rth@twiddle.net>
28821
28822         * include/math_private.h: Remove file.
28823         * math/math_private.h: Move file ...
28824         * sysdeps/generic/math_private.h: ... here.
28825
28826         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
28827         * sysdeps/powerpc/fpu/math_private.h: Likewise.
28828         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28829
28830         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
28831         and <math_private.h>.
28832         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
28833         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
28834         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
28835         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
28836         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
28837         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
28838         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
28839         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28840         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
28841         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28842         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28843         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
28844         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
28845         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28846         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
28847         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
28848         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28849         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
28850         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
28851         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
28852         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28853         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
28854         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
28855         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28856         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
28857         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
28858         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
28859         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28860         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28861         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
28862         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
28863         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28864         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
28865         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
28866         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
28867         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
28868         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
28869         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
28870         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
28871         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28872         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
28873         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
28874         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
28875         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
28876         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
28877         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
28878         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
28879         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
28880         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
28881         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
28882         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
28883         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
28884         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
28885         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
28886         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
28887         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
28888         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28889         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
28890         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
28891         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
28892         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
28893         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
28894         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28895         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
28896         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
28897         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
28898         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
28899         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
28900         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
28901         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
28902         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
28903         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28904         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
28905         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28906         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
28907         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
28908         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
28909         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
28910         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
28911         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
28912         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
28913         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
28914         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
28915         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
28916         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
28917         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
28918         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
28919         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
28920         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
28921         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
28922         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
28923         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
28924         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28925         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
28926         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
28927         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
28928         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28929         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
28930         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
28931         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
28932         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
28933         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
28934         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
28935         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
28936         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
28937         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
28938         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
28939         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
28940         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
28941         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
28942         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
28943         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
28944         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
28945         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
28946         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
28947         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28948         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
28949         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
28950         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
28951         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
28952         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
28953         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
28954         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28955         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
28956         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
28957         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
28958         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
28959         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
28960         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
28961         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
28962         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
28963         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
28964         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
28965         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
28966         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
28967         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
28968         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
28969         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
28970         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
28971         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
28972         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28973         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
28974         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
28975         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
28976         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
28977         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
28978         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
28979         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
28980         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
28981         * sysdeps/ieee754/k_standard.c: Likewise.
28982         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
28983         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
28984         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
28985         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
28986         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
28987         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
28988         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
28989         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
28990         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
28991         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
28992         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
28993         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
28994         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
28995         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
28996         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
28997         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
28998         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
28999         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29000         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29001         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
29002         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
29003         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
29004         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
29005         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
29006         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
29007         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
29008         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
29009         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
29010         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
29011         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
29012         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
29013         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
29014         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
29015         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
29016         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
29017         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
29018         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
29019         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
29020         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
29021         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
29022         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
29023         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
29024         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
29025         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
29026         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
29027         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
29028         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
29029         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
29030         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
29031         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
29032         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
29033         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
29034         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
29035         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
29036         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
29037         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
29038         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
29039         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
29040         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
29041         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
29042         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
29043         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
29044         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
29045         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29046         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29047         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29048         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29049         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29050         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29051         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29052         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29053         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29054         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29055         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29056         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29057         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29058         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
29059         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29060         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29061         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
29062         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
29063         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
29064         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
29065         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
29066         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
29067         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
29068         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
29069         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29070         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29071         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
29072         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
29073         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
29074         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
29075         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
29076         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
29077         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
29078         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
29079         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
29080         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
29081         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
29082         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
29083         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
29084         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
29085         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
29086         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
29087         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
29088         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
29089         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
29090         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
29091         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
29092         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
29093         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
29094         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29095         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29096         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29097         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29098         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29099         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29100         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29101         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29102         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29103         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29104         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29105         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29106         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29107         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
29108         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
29109         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
29110         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
29111         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
29112         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
29113         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
29114         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
29115         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
29116         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
29117         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
29118         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
29119         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
29120         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
29121         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
29122         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
29123         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
29124         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
29125         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
29126         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
29127         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
29128         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
29129         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
29130         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
29131         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
29132         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
29133         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
29134         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
29135         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
29136         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
29137         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
29138         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
29139         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
29140         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
29141         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
29142         * sysdeps/ieee754/s_lib_version.c: Likewise.
29143         * sysdeps/ieee754/s_matherr.c: Likewise.
29144         * sysdeps/ieee754/s_signgam.c: Likewise.
29145         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29146         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29147         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
29148         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
29149         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
29150         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
29151         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
29152         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
29153         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
29154         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
29155         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
29156         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
29157         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
29158         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
29159         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
29160         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
29161         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
29162         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
29163         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
29164         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
29165         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
29166
29167 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29168
29169         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
29170         * sunrpc/rpc_main.c: Likewise.
29171         * sunrpc/rpc_svcout.c: Likewise.
29172
29173 2012-03-09  David S. Miller  <davem@davemloft.net>
29174
29175         * include/math_private.h: New file.
29176
29177 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29178
29179         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
29180         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
29181         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
29182         from <bits/socket_type.h>.
29183         (enum __socket_type): Don't define here.
29184         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
29185         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29186         bits/socket_type.h.
29187
29188         [BZ #13566]
29189         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
29190         checking __USE_GNU.
29191
29192         * Makerules ($(inst_includedir)/%.h): New rule.
29193         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
29194         (install-others): Remove variable setting.
29195         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
29196
29197 2012-03-08  Richard Henderson  <rth@twiddle.net>
29198
29199         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
29200         from macro to inline function; merge with the
29201         !__LIBC_INTERNAL_MATH_INLINES version.
29202         (__ieee754_sqrtf): Likewise.
29203
29204         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
29205         to inline function.
29206         (__rintf, __floor, __floorf): Likewise.
29207
29208         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
29209         macro to inline function.
29210         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
29211
29212         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
29213         not <math/math_private.h>.
29214
29215 2012-03-08  David S. Miller  <davem@davemloft.net>
29216
29217         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
29218         copyright year.
29219         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
29220
29221 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
29222
29223         * resolv/gai_misc.c (handle_requests): Fix struct timespec
29224         normalization.
29225         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
29226         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29227
29228 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
29229
29230         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
29231         be defined individually, they must be defined as a block.  Define
29232         S for printing a string instead of hidint the different by using a
29233         macro for adding the 'l'.
29234         * stdio-common/tst-fphex-wide.c: Adjust.
29235
29236 2012-03-07  Marek Polacek  <polacek@redhat.com>
29237
29238         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
29239
29240 2012-03-08  Marek Polacek  <polacek@redhat.com>
29241
29242         [BZ #13806]
29243         * stdio-common/Makefile (tests): Add tst-fphex-wide.
29244         * stdio-common/tst-fphex.c: Define a few macros to make the
29245         test reusable.  Use them.
29246         * stdio-common/tst-fphex-wide.c: New file.
29247
29248 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
29249
29250         [BZ #6911]
29251         * manual/macros.texi (gnusystems): New macro.
29252         (nongnusystems): Likewise.
29253         (gnulinuxhurdsystems): Likewise.
29254         (gnuhurdsystems): Likewise..
29255         (gnulinuxsystems): Likewise.
29256         * manual/charset.texi: Use new macros or @theglibc{} to refer to
29257         variants of the GNU system, not "GNU system".
29258         * manual/conf.texi: Likewise.
29259         * manual/errno.texi: Likewise.  Update example of errno macro
29260         expansion.
29261         * manual/filesys.texi: Likewise.
29262         (getumask): Document as specific to GNU/Hurd.
29263         * manual/install.texi: Likewise.  Reword some references to
29264         GNU/Linux.
29265         * manual/intro.texi: Likewise.
29266         * manual/io.texi: Likewise.
29267         (File Name Portability): Detail which constraints are inapplicable
29268         to all GNU systems and which are only inapplicable to GNU/Hurd.
29269         * manual/job.texi: Likewise.
29270         * manual/llio.texi: Likewise.
29271         (O_NOCTTY): Document as present on GNU/Linux.
29272         * manual/maint.texi: Likewise.
29273         * manual/memory.texi: Likewise.
29274         * manual/pattern.texi: Likewise.
29275         * manual/pipe.texi: Likewise.
29276         * manual/process.texi: Likewise.
29277         * manual/resource.texi: Likewise.
29278         (RUSAGE_CHILDREN): Remove statement about specifying a particular
29279         child on GNU/Hurd.
29280         * manual/setjmp.texi: Likewise.
29281         * manual/signal.texi: Likewise.
29282         * manual/startup.texi: Likewise.
29283         * manual/stdio.texi: Likewise.
29284         * manual/terminal.texi: Likewise.
29285         (ONLCR): Document as POSIX.
29286         (OXTABS): Document availability on GNU/Linux as XTABS.
29287         (ONOEOT): Document availability separately from other bits.
29288         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
29289         * manual/time.texi: Likewise.
29290         * manual/users.texi: Likewise.
29291         * INSTALL: Regenerated.
29292         * sysdeps/gnu/errlist.c: Regenerated.
29293
29294         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
29295         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
29296         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
29297         puts.
29298         * configure: Regenerated.
29299
29300 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
29301
29302         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
29303         default includes instead of AC_HEADER_CHECK.
29304         * sysdeps/i386/configure: Regenerated.
29305
29306         [BZ #10716]
29307         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
29308         * math/s_cacoshf.c (__cacoshf): Likewise.
29309         * math/s_cacoshl.c (__cacoshl): Likewise.
29310         * math/s_casinh.c (__casinh): Set signs of result from argument.
29311         * math/s_casinhf.c (__casinhf): Likewise.
29312         * math/s_casinhl.c (__casinhl): Likewise.
29313         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
29314         (casinh_test): Add more tests.
29315         * sysdeps/i386/fpu/libm-test-ulps: Update.
29316         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29317
29318 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
29319
29320         * po/zh_TW.po: Update from translation team.
29321
29322         * login/Makefile (distribute): Remove variable.
29323         * catgets/Makefile: Likewise.
29324         * mach/Makefile: Likewise.
29325         * malloc/Makefile: Likewise.
29326         * misc/Makefile: Likewise.
29327         * iconv/Makefile: Likewise.
29328         * nscd/Makefile: Likewise.
29329         * hurd/Makefile: Likewise.
29330         * manual/Makefile: Likewise.
29331         * locale/Makefile: Likewise.
29332         * intl/Makefile: Likewise.
29333         * conform/Makefile: Likewise.
29334         * nss/Makefile: Likewise.
29335         * time/Makefile: Likewise.
29336         * soft-fp/Makefile: Likewise.
29337         * dirent/Makefile: Likewise.
29338         * gmon/Makefile: Likewise.
29339         * po/Makefile: Likewise.
29340         * rt/Makefile: Likewise.
29341         * socket/Makefile: Likewise.
29342         * math/Makefile: Likewise.
29343         * signal/Makefile: Likewise.
29344         * debug/Makefile: Likewise.
29345         * elf/Makefile: Likewise.
29346         * timezone/Makefile: Likewise.
29347         * stdlib/Makefile: Likewise.
29348         * iconvdata/Makefile: Likewise.
29349         * sunrpc/Makefile: Likewise.
29350         * io/Makefile: Likewise.
29351         * argp/Makefile: Likewise.
29352         * inet/Makefile: Likewise.
29353         * hesiod/Makefile: Likewise.
29354         * grp/Makefile: Likewise.
29355         * csu/Makefile: Likewise.
29356         * wctype/Makefile: Likewise.
29357         * crypt/Makefile: Likewise.
29358         * libio/Makefile: Likewise.
29359         * string/Makefile: Likewise.
29360         * nis/Makefile: Likewise.
29361         * resolv/Makefile: Likewise.
29362         * stdio-common/Makefile: Likewise.
29363         * wcsmbs/Makefile: Likewise.
29364         * dlfcn/Makefile: Likewise.
29365         * posix/Makefile: Likewise.
29366
29367         [BZ #6959]
29368         * timezone/Makefile: Don't install timezone files, just the programs
29369         and scripts.
29370
29371 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
29372
29373         * nss/databases.def: Add missing gshadow entry.
29374
29375         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
29376
29377 2012-03-06  Marek Polacek  <polacek@redhat.com>
29378
29379         [BZ #13726]
29380         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
29381         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
29382         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
29383         * stdio-common/tst-long-dbl-fphex.c: New file.
29384
29385 2012-03-06  David S. Miller  <davem@davemloft.net>
29386
29387         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
29388         (set_obp_int): New function.
29389         (get_obp_int): New function.
29390         (__get_clockfreq_via_dev_openprom): Likewise.
29391         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
29392         Avoid unused variable warnings on 'val' and use builtin_expect.
29393         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
29394         __builtin_expect.
29395         (INLINE_CLONE_SYSCALL): Likewise.
29396
29397 2012-03-05  David S. Miller  <davem@davemloft.net>
29398
29399         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29400
29401 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
29402
29403         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29404
29405         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
29406         only for |x| >= 40.
29407         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29408
29409 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
29410
29411         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
29412         Replace gettimeofday with __vdso_gettimeofday.
29413
29414         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29415         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
29416         __vdso_clock_gettime and __vdso_getcpu.
29417
29418         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
29419         time with __vdso_time.
29420
29421 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29422
29423         * manual/lang.texi (size_t): Note types to which size_t may be
29424         equivalent with the GNU C Library, but do not describe when
29425         differences between them are significant.
29426
29427 2012-03-05  Andreas Jaeger  <aj@suse.de>
29428
29429         * sysdeps/i386/fpu/libm-test-ulps: Update.
29430
29431 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29432
29433         [BZ #3976]
29434         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
29435         (__ieee754_pow): Save and restore rounding mode and use
29436         round-to-nearest for main computations.
29437         * math/libm-test.inc (pow_test_tonearest): New function.
29438         (pow_test_towardzero): Likewise.
29439         (pow_test_downward): Likewise.
29440         (pow_test_upward): Likewise.
29441         (main): Call the new functions.
29442         * sysdeps/i386/fpu/libm-test-ulps: Update.
29443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29444
29445         [BZ #3976]
29446         * math/libm-test.inc (cosh_test_tonearest): New function.
29447         (cosh_test_towardzero): Likewise.
29448         (cosh_test_downward): Likewise.
29449         (cosh_test_upward): Likewise.
29450         (sinh_test_tonearest): Likewise.
29451         (sinh_test_towardzero): Likewise.
29452         (sinh_test_downward): Likewise.
29453         (sinh_test_upward): Likewise.
29454         (main): Call the new functions.
29455         * sysdeps/i386/fpu/libm-test-ulps: Update.
29456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29457
29458 2012-03-05  Tom de Vries  <tom@codesourcery.com>
29459
29460         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
29461         default stack guard is set in last bytes.
29462         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
29463
29464 2012-03-05  Kees Cook  <keescook@chromium.org>
29465
29466         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
29467
29468         [BZ #13656]
29469         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
29470         possibly allocate from heap instead of stack.
29471         * stdio-common/bug-vfprintf-nargs.c: New file.
29472         * stdio-common/Makefile (tests): Add nargs overflow test.
29473
29474 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
29475
29476         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29477
29478 2012-03-03  Marek Polacek  <polacek@redhat.com>
29479
29480         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
29481         * math/math_private.h: Likewise.
29482         * stdlib/tst-strtod.c: Likewise.
29483         * sysdeps/i386/i486/bits/atomic.h: Likewise.
29484         * sysdeps/x86_64/bits/atomic.h: Likewise.
29485
29486 2012-03-02  David S. Miller  <davem@davemloft.net>
29487
29488         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
29489         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
29490         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
29491         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
29492         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
29493         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
29494         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
29495         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
29496
29497 2012-03-02  Roland McGrath  <roland@hack.frob.com>
29498
29499         [BZ #13792]
29500         * manual/examples/README: New file, says the example source files
29501         can be used under GPL>=2.
29502         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
29503         line containing just "*/".
29504         * manual/examples/add.c: Add copyright header (GPL>=2).
29505         * manual/examples/argp-ex1.c: Likewise.
29506         * manual/examples/argp-ex2.c: Likewise.
29507         * manual/examples/argp-ex3.c: Likewise.
29508         * manual/examples/argp-ex4.c: Likewise.
29509         * manual/examples/atexit.c: Likewise.
29510         * manual/examples/db.c: Likewise.
29511         * manual/examples/dir.c: Likewise.
29512         * manual/examples/dir2.c: Likewise.
29513         * manual/examples/execinfo.c: Likewise.
29514         * manual/examples/filecli.c: Likewise.
29515         * manual/examples/filesrv.c: Likewise.
29516         * manual/examples/fmtmsgexpl.c: Likewise.
29517         * manual/examples/genpass.c: Likewise.
29518         * manual/examples/inetcli.c: Likewise.
29519         * manual/examples/inetsrv.c: Likewise.
29520         * manual/examples/isockad.c: Likewise.
29521         * manual/examples/longopt.c: Likewise.
29522         * manual/examples/memopen.c: Likewise.
29523         * manual/examples/memstrm.c: Likewise.
29524         * manual/examples/mkfsock.c: Likewise.
29525         * manual/examples/mkisock.c: Likewise.
29526         * manual/examples/mygetpass.c: Likewise.
29527         * manual/examples/pipe.c: Likewise.
29528         * manual/examples/popen.c: Likewise.
29529         * manual/examples/rprintf.c: Likewise.
29530         * manual/examples/search.c: Likewise.
29531         * manual/examples/select.c: Likewise.
29532         * manual/examples/setjmp.c: Likewise.
29533         * manual/examples/sigh1.c: Likewise.
29534         * manual/examples/sigusr.c: Likewise.
29535         * manual/examples/stpcpy.c: Likewise.
29536         * manual/examples/strdupa.c: Likewise.
29537         * manual/examples/strftim.c: Likewise.
29538         * manual/examples/strncat.c: Likewise.
29539         * manual/examples/subopt.c: Likewise.
29540         * manual/examples/swapcontext.c: Likewise.
29541         * manual/examples/termios.c: Likewise.
29542         * manual/examples/testopt.c: Likewise.
29543         * manual/examples/testpass.c: Likewise.
29544         * manual/examples/timeval_subtract.c: Likewise.
29545
29546         [BZ #13792]
29547         * manual/time.texi (Elapsed Time): Move timeval_subtract example
29548         function to ...
29549         * manual/timeval_subtract.c.texi: ... here, new file.
29550
29551 2012-03-02  David S. Miller  <davem@davemloft.net>
29552
29553         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
29554
29555 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
29556
29557         [BZ #3976]
29558         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
29559         (__sin): Save and restore rounding mode and use round-to-nearest
29560         for all computations.
29561         (__cos): Save and restore rounding mode and use round-to-nearest
29562         for all computations.
29563         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
29564         <fenv.h>.
29565         (tan): Save and restore rounding mode and use round-to-nearest for
29566         all computations.
29567         * math/libm-test.inc (cos_test_tonearest): New function.
29568         (cos_test_towardzero): Likewise.
29569         (cos_test_downward): Likewise.
29570         (cos_test_upward): Likewise.
29571         (sin_test_tonearest): Likewise.
29572         (sin_test_towardzero): Likewise.
29573         (sin_test_downward): Likewise.
29574         (sin_test_upward): Likewise.
29575         (tan_test_tonearest): Likewise.
29576         (tan_test_towardzero): Likewise.
29577         (tan_test_downward): Likewise.
29578         (tan_test_upward): Likewise.
29579         (main): Call the new functions.
29580         * sysdeps/i386/fpu/libm-test-ulps: Update.
29581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29582
29583         [BZ #10135]
29584         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
29585         small n, then large n, before computing and testing k+n.
29586         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
29587         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
29588         Likewise.
29589         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
29590         Likewise.
29591         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
29592         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
29593         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
29594         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
29595         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
29596         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
29597         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
29598         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
29599         * math/libm-test.inc (scalbn_test): Add more tests.
29600         (scalbln_test): Likewise.
29601
29602         * manual/filesys.texi (mode_t): Describe constraints on size and
29603         signedness, not exact equivalence to a particular type.
29604         (ino_t): Likewise.
29605         (ino64_t): Likewise.
29606         (dev_t): Likewise.
29607         (nlink_t): Likewise.
29608         (blkcnt_t): Likewise.
29609         (blkcnt64_t): Likewise.
29610         * manual/llio.texi (off_t): Likewise.
29611
29612         [BZ #3976]
29613         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
29614         (__ieee754_exp): Save and restore rounding mode and use
29615         round-to-nearest for all computations.
29616         * math/libm-test.inc (exp_test_tonearest): New function.
29617         (exp_test_towardzero): Likewise.
29618         (exp_test_downward): Likewise.
29619         (exp_test_upward): Likewise.
29620         (main): Call the new functions.
29621         * sysdeps/i386/fpu/libm-test-ulps: Update.
29622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29623
29624 2012-03-01  Chris Demetriou  <cgd@google.com>
29625
29626         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
29627         have predictable order.
29628
29629 2012-03-01  David S. Miller  <davem@davemloft.net>
29630
29631         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
29632
29633         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
29634         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
29635         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
29636         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
29637
29638         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
29639         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
29640         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
29641         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
29642         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
29643         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
29644         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
29645         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
29646         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
29647
29648         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29649
29650         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
29651         * sysdeps/sparc/fpu/libm-test-ulps: to here.
29652         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
29653
29654         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
29655         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29656         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
29657         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
29658         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
29659         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
29660         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
29661         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29662         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
29663         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
29664         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
29665         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29666         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
29667         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
29668         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
29669         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29670         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
29671         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
29672         * sysdeps/sparc/elf/configure: Regenerated.
29673
29674 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
29675
29676         * configure.in (AS, LD): Require binutils 2.20 or later.
29677         * configure: Regenerated.
29678         * manual/install.texi (Tools for Compilation): Give binutils 2.20
29679         as required minimum version.
29680         * INSTALL: Regenerated.
29681
29682         [BZ #2541]
29683         [BZ #4108]
29684         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
29685         before squaring exponent.
29686         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
29687         bottom long double and 27 bits of top long double before squaring
29688         exponent.
29689         * math/libm-test.inc (erfc_test): Add more tests.
29690         * sysdeps/i386/fpu/libm-test-ulps: Update.
29691         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29692         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29693
29694 2012-03-01  Kai Tietz  <ktietz@redhat.com>
29695
29696         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
29697         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
29698         containing bit-fields.
29699         * soft-fp/extended.h (_FP_UNION_E): Likewise.
29700         * soft-fp/single.h (_FP_UNION_S): Likewise.
29701         * soft-fp/double.h (_FP_UNION_D): Likewise.
29702
29703 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29704
29705         [BZ #13786]
29706         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
29707         not include ../strcmp.S.
29708         [USE_AS_STRNCASECMP_L]: Likewise.
29709         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
29710         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
29711         * sysdeps/i386/i686/multiarch/strncase_l-c.c
29712         (__strncasecmp_l_ia32): Define as alias to
29713         __strncasecmp_l_nonascii.
29714
29715         [BZ #5794]
29716         * math/libm-test.inc (expm1_test): Add test for bug 5794.
29717         * sysdeps/i386/fpu/libm-test-ulps: Update.
29718         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29719
29720         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
29721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29722
29723 2012-02-29  Jeff Law  <law@redhat.com>
29724
29725         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
29726         out of bounds read.
29727
29728 2012-02-29  Marek Polacek  <polacek@redhat.com>
29729
29730         [BZ #13706]
29731         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
29732         * elf/Makefile: Add rules to run tst-unused-dep.out.
29733
29734 2012-02-28  David S. Miller  <davem@davemloft.net>
29735
29736         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
29737         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
29738         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
29739         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
29740         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
29741         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
29742
29743 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29744
29745         * math/libm-test.inc (llround_test): Move one test from
29746         lround_test.  Use TEST_f_L in moved test.
29747         (lround_test): Move misplaced test to llround_test.  Add testcase
29748         from bug 2561.
29749
29750 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
29751
29752         * sysdeps/x86_64/fpu/e_expf.S: New file.
29753         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
29754
29755 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
29756
29757         [BZ #13637]
29758         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
29759         of remain_len that may cause incomplete multi-byte character and
29760         false match.
29761         * posix/bug-regex33.c: New file.
29762         * posix/Makefile (tests): Add bug-regex33.
29763
29764 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
29765
29766         * manual/macros.texi: New file.
29767         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
29768         * manual/libc.texinfo: Include macros.texi.
29769         * manual/creatute.texi: Likewise.
29770         * manual/install.texi: Likewise.
29771         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
29772         @glibcadj{} in references to the GNU C Library.
29773         * manual/charset.texi: Likewise.
29774         * manual/conf.texi: Likewise.
29775         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
29776         when not using those macros.
29777         * manual/creature.texi: Likewise.
29778         * manual/crypt.texi: Likewise.
29779         * manual/errno.texi: Likewise.
29780         * manual/filesys.texi: Likewise.
29781         * manual/header.texi: Likewise.
29782         * manual/install.texi: Likewise.
29783         * manual/intro.texi: Likewise.
29784         * manual/io.texi: Likewise.
29785         * manual/job.texi: Likewise.
29786         * manual/lang.texi: Likewise.
29787         * manual/libc.texiinfo: Likewise.
29788         * manual/llio.texi: Likewise.
29789         * manual/locale.texi: Likewise.
29790         * manual/maint.texi: Likewise.
29791         * manual/math.texi: Likewise.
29792         * manual/memory.texi: Likewise.
29793         * manual/message.texi: Likewise.
29794         * manual/nss.texi: Likewise.
29795         * manual/pattern.texi: Likewise.
29796         * manual/process.texi: Likewise.
29797         * manual/resource.texi: Likewise.
29798         * manual/search.texi: Likewise.
29799         * manual/setjmp.texi: Likewise.
29800         * manual/signal.texi: Likewise.
29801         * manual/socket.texi: Likewise.
29802         * manual/startup.texi: Likewise.
29803         * manual/stdio.texi: Likewise.
29804         * manual/string.texi: Likewise.
29805         * manual/sysinfo.texi: Likewise.
29806         * manual/syslog.texi: Likewise.
29807         * manual/terminal.texi: Likewise.
29808         * manual/time.texi: Likewise.
29809         * manual/users.texi: Likewise.
29810         * INSTALL: Regenerated.
29811         * NOTES: Regenerated.
29812         * sysdeps/gnu/errlist.c: Regenerated.
29813
29814 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
29815
29816         * include/dirent.h: Include <dirstream.h> before
29817         <dirent/dirent.h>.
29818
29819 2012-02-28  David S. Miller  <davem@davemloft.net>
29820
29821         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
29822         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
29823         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
29824         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
29825
29826 2012-02-27  David S. Miller  <davem@davemloft.net>
29827
29828         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
29829         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
29830         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
29831         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
29832
29833         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
29834         frame pointer instead of stack pointer relative arg slot.
29835         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
29836         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
29837         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
29838
29839 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
29840
29841         [BZ #3992]
29842         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
29843
29844 2012-02-27  David S. Miller  <davem@davemloft.net>
29845
29846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
29847         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
29848         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
29849         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
29850         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
29851         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
29852         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
29853         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
29854
29855 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
29856
29857         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
29858         later.  Allow versions 5-9.
29859         * configure: Regenerated.
29860         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
29861         required minimum version and 4.6 as recommended version.  Do not
29862         mention bugs in GCC 2.7 and 2.8.
29863         * INSTALL: Regenerated.
29864
29865 2012-02-27  David S. Miller  <davem@davemloft.net>
29866
29867         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
29868         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
29869         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
29870         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
29871         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
29872         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
29873         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
29874         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
29875
29876         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
29877         manipulate bits before adding and subtracting TWO112[sx].
29878         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
29879
29880 2012-02-27  Roland McGrath  <roland@hack.frob.com>
29881
29882         [BZ #13775]
29883         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
29884         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
29885         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
29886         being in POSIX, because they are in 1003.1-2008.
29887
29888         * rt/tst-aio.c: Include <fcntl.h>.
29889         * rt/tst-aio7.c: Likewise.
29890         * rt/tst-aio64.c: Likewise.
29891
29892         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
29893
29894 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
29895
29896         * manual/install.texi (--with-headers): Describe headers as
29897         interface headers, not private headers.
29898         (Specific advice for GNU/Linux systems): Describe use of headers
29899         from "make headers_install", not private headers from older
29900         kernels.
29901         * INSTALL: Regenerated.
29902         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
29903         Change to 2.6.19.
29904         * sysdeps/unix/sysv/linux/configure: Regenerated.
29905
29906         * manual/llio.texi (fclean): Remove documentation.
29907
29908         * manual/Makefile (libc-texi-generated): New variable.  Include
29909         version.texi.
29910         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
29911         $(libc-texi-generated), not duplicated list of files.
29912         (version.texi, stamp-version): New rules.
29913         (realclean): Remove $(libc-texi-generated), not individual files
29914         from that list.  Do not remove dir-add.texinfo.
29915         * manual/libc.texinfo: Comment out uses of edition numbers and
29916         references to printed manual.  Remove last-updated dates.
29917         (EDITION): Comment out.
29918         (ISBN): Likewise.
29919         (VERSION, UPDATED): Remove.
29920         (version.texi): Include.
29921
29922 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
29923
29924         * sysdeps/posix/spawni.c: Include <signal.h>.
29925         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
29926         * sysdeps/pthread/aio_fsync.c: Likewise.
29927
29928 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
29929
29930         * conform/Makefile (tests): Run only when not cross-compiling and
29931         when fast-check is not defined.
29932
29933         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
29934         * conform/data/limits.h-data: Fixes for POSIX2008.
29935         * conform/run-conformtest.sh: Run all tests.
29936         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
29937         headers.
29938         * include/bits/dlfcn.h: Likewise.
29939         * include/langinfo.h: Likewise.
29940         * include/monetary.h: Likewise.
29941         * include/sys/poll.h: Likewise.
29942
29943         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
29944         for __USE_GNU.
29945         * posix/spawn.h: Define __need_sigset_t.
29946         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
29947         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
29948         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
29949         to get sigevent_t only.
29950         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
29951         only for __USE_GNU.
29952         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
29953         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
29954         process_vm_writev only for __USE_GNU.
29955         * termios/termios.h: Declare tcgetsid also for POSIX2008.
29956
29957         * conform/Makefile: For now ignore errors from run-conformtest.
29958         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
29959         POSIX to avoid namespace pollution.  Don't prepend headers.
29960         * conform/data/aio.h-data: Fixes for POSIX testing.
29961         * conform/data/fcntl.h-data: Likewise.
29962         * conform/data/glob.h-data: Likewise.
29963         * conform/data/grp.h-data: Likewise.
29964         * conform/data/pthread.h-data: Likewise.
29965         * conform/data/pwd.h-data: Likewise.
29966         * conform/data/signal.h-data: Likewise.
29967         * conform/data/spawn.h-data: Likewise.
29968         * conform/data/stdio.h-data: Likewise.
29969         * conform/data/stdlib.h-data: Likewise.
29970         * conform/data/stropts.h-data: Likewise.
29971         * conform/data/sys/mman.h-data: Likewise.
29972         * conform/data/sys/stat.h-data: Likewise.
29973         * conform/data/sys/types.h-data: Likewise.
29974         * conform/data/sys/wait.h-data: Likewise.
29975         * conform/data/time.h-data: Likewise.
29976         * conform/data/unistd.h-data: Likewise.
29977         * conform/data/utime.h-data: Likewise.
29978
29979         * io/sys/stat.h: fchmod was always in POSIX.
29980         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
29981         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
29982         * rt/aio.h: Define __need_timespec before including <time.h>.
29983         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
29984         struct.  Add forward declaration of pthread_attr_t and use it in
29985         sigevent.
29986         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
29987         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
29988         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
29989         always remove CLK_TCK definition.
29990
29991 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
29992
29993         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
29994
29995 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
29996
29997         * conform/run-conformtest.sh: New file.
29998         * conform/Makefile: Run run-conformtest for tests.
29999         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
30000         support.
30001
30002         * conform/data/uchar.h-data: New file.
30003         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
30004         * conform/data/arpa/inet.h-data: Likewise.
30005         * conform/data/assert.h-data: Likewise.
30006         * conform/data/complex.h-data: Likewise.
30007         * conform/data/cpio.h-data: Likewise.
30008         * conform/data/ctype.h-data: Likewise.
30009         * conform/data/dirent.h-data: Likewise.
30010         * conform/data/dlfcn.h-data: Likewise.
30011         * conform/data/errno.h-data: Likewise.
30012         * conform/data/fcntl.h-data: Likewise.
30013         * conform/data/float.h-data: Likewise.
30014         * conform/data/fmtmsg.h-data: Likewise.
30015         * conform/data/fnmatch.h-data: Likewise.
30016         * conform/data/ftw.h-data: Likewise.
30017         * conform/data/glob.h-data: Likewise.
30018         * conform/data/grp.h-data: Likewise.
30019         * conform/data/iconv.h-data: Likewise.
30020         * conform/data/inttypes.h-data: Likewise.
30021         * conform/data/langinfo.h-data: Likewise.
30022         * conform/data/libgen.h-data: Likewise.
30023         * conform/data/limits.h-data: Likewise.
30024         * conform/data/locale.h-data: Likewise.
30025         * conform/data/math.h-data: Likewise.
30026         * conform/data/monetary.h-data: Likewise.
30027         * conform/data/mqueue.h-data: Likewise.
30028         * conform/data/ndbm.h-data: Likewise.
30029         * conform/data/net/if.h-data: Likewise.
30030         * conform/data/netdb.h-data: Likewise.
30031         * conform/data/netinet/in.h-data: Likewise.
30032         * conform/data/nl_types.h-data: Likewise.
30033         * conform/data/poll.h-data: Likewise.
30034         * conform/data/pthread.h-data: Likewise.
30035         * conform/data/pwd.h-data: Likewise.
30036         * conform/data/regex.h-data: Likewise.
30037         * conform/data/sched.h-data: Likewise.
30038         * conform/data/search.h-data: Likewise.
30039         * conform/data/semaphore.h-data: Likewise.
30040         * conform/data/setjmp.h-data: Likewise.
30041         * conform/data/signal.h-data: Likewise.
30042         * conform/data/spawn.h-data: Likewise.
30043         * conform/data/stdarg.h-data: Likewise.
30044         * conform/data/stdio.h-data: Likewise.
30045         * conform/data/stdlib.h-data: Likewise.
30046         * conform/data/string.h-data: Likewise.
30047         * conform/data/strings.h-data: Likewise.
30048         * conform/data/stropts.h-data: Likewise.
30049         * conform/data/sys/ipc.h-data: Likewise.
30050         * conform/data/sys/mman.h-data: Likewise.
30051         * conform/data/sys/msg.h-data: Likewise.
30052         * conform/data/sys/resource.h-data: Likewise.
30053         * conform/data/sys/select.h-data: Likewise.
30054         * conform/data/sys/sem.h-data: Likewise.
30055         * conform/data/sys/shm.h-data: Likewise.
30056         * conform/data/sys/socket.h-data: Likewise.
30057         * conform/data/sys/stat.h-data: Likewise.
30058         * conform/data/sys/statvfs.h-data: Likewise.
30059         * conform/data/sys/time.h-data: Likewise.
30060         * conform/data/sys/timeb.h-data: Likewise.
30061         * conform/data/sys/times.h-data: Likewise.
30062         * conform/data/sys/types.h-data: Likewise.
30063         * conform/data/sys/uio.h-data: Likewise.
30064         * conform/data/sys/un.h-data: Likewise.
30065         * conform/data/sys/utsname.h-data: Likewise.
30066         * conform/data/sys/wait.h-data: Likewise.
30067         * conform/data/syslog.h-data: Likewise.
30068         * conform/data/tar.h-data: Likewise.
30069         * conform/data/termios.h-data: Likewise.
30070         * conform/data/utime.h-data: Likewise.
30071         * conform/data/utmpx.h-data: Likewise.
30072         * conform/data/varargs.h-data: Likewise.
30073         * conform/data/wchar.h-data: Likewise.
30074         * conform/data/wctype.h-data: Likewise.
30075         * conform/data/wordexp.h-data: Likewise.
30076
30077         * include/stropts.h: New file.
30078         * include/uchar.h: New file.
30079         * include/aio.h: Changes to allow conformtest.pl to use the headers.
30080         * include/assert.h: Likewise.
30081         * include/ctype.h: Likewise.
30082         * include/dirent.h: Likewise.
30083         * include/dlfcn.h: Likewise.
30084         * include/fcntl.h: Likewise.
30085         * include/fnmatch.h: Likewise.
30086         * include/glob.h: Likewise.
30087         * include/grp.h: Likewise.
30088         * include/libio.h: Likewise.
30089         * include/locale.h: Likewise.
30090         * include/math.h: Likewise.
30091         * include/net/if.h: Likewise.
30092         * include/netdb.h: Likewise.
30093         * include/netinet/in.h: Likewise.
30094         * include/pthread.h: Likewise.
30095         * include/pwd.h: Likewise.
30096         * include/regex.h: Likewise.
30097         * include/sched.h: Likewise.
30098         * include/search.h: Likewise.
30099         * include/setjmp.h: Likewise.
30100         * include/signal.h: Likewise.
30101         * include/stdio.h: Likewise.
30102         * include/stdlib.h: Likewise.
30103         * include/string.h: Likewise.
30104         * include/sys/cdefs.h: Likewise.
30105         * include/sys/mman.h: Likewise.
30106         * include/sys/msg.h: Likewise.
30107         * include/sys/resource.h: Likewise.
30108         * include/sys/select.h: Likewise.
30109         * include/sys/socket.h: Likewise.
30110         * include/sys/stat.h: Likewise.
30111         * include/sys/statvfs.h: Likewise.
30112         * include/sys/time.h: Likewise.
30113         * include/sys/times.h: Likewise.
30114         * include/sys/uio.h: Likewise.
30115         * include/sys/utsname.h: Likewise.
30116         * include/sys/wait.h: Likewise.
30117         * include/termios.h: Likewise.
30118         * include/time.h: Likewise.
30119         * include/ulimit.h: Likewise.
30120         * include/unistd.h: Likewise.
30121         * include/utime.h: Likewise.
30122         * include/wchar.h: Likewise.
30123         * include/wctype.h: Likewise.
30124         * include/wordexp.h: Likewise.
30125
30126         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
30127
30128         * time/time.h: TIME_UTC must be a macro.
30129         Make timespec_get available for ISO C11 only as well.
30130
30131 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
30132
30133         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
30134         Reported by Peng Haitao <penght@cn.fujitsu.com>.
30135
30136 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30137
30138         * configure.in: Use -o not -a in test for unsupported multi-arch.
30139
30140 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30141
30142         * manual/texinfo.tex: Update to version 2012-01-19.16.
30143
30144 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30145
30146         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
30147
30148 2012-02-24  Roland McGrath  <roland@hack.frob.com>
30149
30150         [BZ #13738]
30151         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
30152         * manual/fdl-1.3.texi: New file.
30153         * manual/fdl-1.1.texi: File removed.
30154
30155         [BZ #13738]
30156         * manual/libc.texinfo (FDL_VERSION): New @set.
30157         Use it for mention of FDL in cover text.
30158         (Documentation License): Use it in @include file name.
30159
30160 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30161             Roland McGrath  <roland@hack.frob.com>
30162
30163         [BZ #5461]
30164         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
30165         not LONG_LONG_MAX and LONG_LONG_MIN.
30166         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
30167         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
30168         name.
30169         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
30170
30171 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30172
30173         [BZ #2547]
30174         [BZ #11365]
30175         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
30176         manipulate bits before adding and subtracting TWO23[sx].
30177         * math/libm-test.inc (nearbyint_test): Add more tests.
30178
30179 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30180
30181         [BZ #2548]
30182         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
30183         bits before adding and subtracting TWO23[sx].
30184         * math/libm-test.inc (rint_test): Add more tests.
30185         (rint_test_tonearest): Likewise.
30186         (rint_test_towardzero): Likewise.
30187         (rint_test_downward): Likewise.
30188         (rint_test_upward: Likewise.
30189
30190 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30191
30192         [BZ #10110]
30193         * include/stdc-predef.h: New file.  Extracted from features.h.
30194         * include/features.h: Include stdc-predef.h.
30195         * Makefile (headers): Add stdc-predef.h.
30196         * CONFORMANCE (Compiler limitations): Update.
30197
30198 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30199
30200         * manual/libc.texinfo (VERSION, UPDATED): Revert.
30201
30202 2012-02-21  David S. Miller  <davem@davemloft.net>
30203
30204         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
30205         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30206
30207 2012-02-20  David S. Miller  <davem@davemloft.net>
30208
30209         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
30210         using a normal save/restore sequence, rather than allocating a
30211         dummy stack frame just to store a frame pointer and restore.
30212         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30213
30214 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30215
30216         * manual/install.texi: Fix stray word in line-wrapped comment.
30217
30218 2012-02-20  David S. Miller  <davem@davemloft.net>
30219
30220         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
30221         both binutils and gcc support GOTDATA.
30222
30223         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
30224         "rd %pc" in the PIC register setup sequences.
30225
30226         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
30227         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
30228         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
30229         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
30230         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
30231         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30232         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30233         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30234         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
30235         (SYSCALL_ERROR_HANDLER): Likewise.
30236         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
30237         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30238         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
30239         (SYSCALL_ERROR_HANDLER): Likewise.
30240
30241         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
30242         (HAVE_GCC_GOTDATA): New.
30243         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
30244         relocation support in both binutils and gcc.
30245         * sysdeps/sparc/elf/configure: Regenerate.
30246
30247         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
30248         * sysdeps/sparc/sparc32/elf/configure: Delete.
30249         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
30250         * sysdeps/sparc/sparc64/elf/configure: Delete.
30251         * sysdeps/sparc/elf/configure.in: New file.
30252         * sysdeps/sparc/elf/configure: Generate.
30253
30254         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
30255         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
30256         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
30257         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
30258         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
30259
30260 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30261
30262         * manual/install.texi: Do not mention specific glibc version
30263         numbers.
30264         * manual/libc.texinfo (VERSION, UPDATED): Update.
30265         (@copying): Use @copyright{} and range of years.
30266
30267 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30268
30269         [BZ #13695]
30270         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
30271         [crti.S not in sysdirs] (generated): Do not append.
30272         [crti.S not in sysdirs] (omit-deps): Likewise.
30273         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
30274         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
30275         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
30276         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
30277         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
30278         Likewise.
30279         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
30280         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
30281         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
30282         * csu/defs.awk: Remove file.
30283         * sysdeps/generic/initfini.c: Likewise.
30284         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
30285         variable.
30286         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
30287         Likewise.
30288
30289 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30290
30291         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
30292         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
30293         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
30294         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
30295         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
30296         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
30297         <bits/epoll.h>.
30298         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
30299         (__EPOLL_PACKED): Define to empty if not defined by
30300         <bits/epoll.h>.
30301         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
30302         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30303         bits/epoll.h.
30304
30305 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30306
30307         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
30308         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
30309         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
30310         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
30311         <bits/timerfd.h>.
30312         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
30313         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30314         bits/timerfd.h.
30315
30316 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30317
30318         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
30319         in C locale.
30320         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30321         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
30322         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
30323         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30324
30325 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
30326
30327         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30328         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30329
30330 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
30331
30332         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
30333         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
30334         defined.
30335         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
30336         Likewise.
30337         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
30338         entry for 2.16.
30339
30340 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
30341
30342         * math/w_acos.c: Use non-signaling floating-point comparisons.
30343         * math/w_acosf.c: Likewise.
30344         * math/w_acosh.c: Likewise.
30345         * math/w_acoshf.c: Likewise.
30346         * math/w_acoshl.c: Likewise.
30347         * math/w_acosl.c: Likewise.
30348         * math/w_asin.c: Likewise.
30349         * math/w_asinf.c: Likewise.
30350         * math/w_asinl.c: Likewise.
30351         * math/w_atanh.c: Likewise.
30352         * math/w_atanhf.c: Likewise.
30353         * math/w_atanhl.c: Likewise.
30354         * math/w_exp2.c: Likewise.
30355         * math/w_exp2f.c: Likewise.
30356         * math/w_exp2l.c: Likewise.
30357         * math/w_j0.c: Likewise.
30358         * math/w_j0f.c: Likewise.
30359         * math/w_j0l.c: Likewise.
30360         * math/w_j1.c: Likewise.
30361         * math/w_j1f.c: Likewise.
30362         * math/w_j1l.c: Likewise.
30363         * math/w_jn.c: Likewise.
30364         * math/w_jnf.c: Likewise.
30365         * math/w_log.c: Likewise.
30366         * math/w_log10.c: Likewise.
30367         * math/w_log10f.c: Likewise.
30368         * math/w_log10l.c: Likewise.
30369         * math/w_log2.c: Likewise.
30370         * math/w_log2f.c: Likewise.
30371         * math/w_log2l.c: Likewise.
30372         * math/w_logf.c: Likewise.
30373         * math/w_logl.c: Likewise.
30374         * math/w_sqrt.c: Likewise.
30375         * math/w_sqrtf.c: Likewise.
30376         * math/w_sqrtl.c: Likewise.
30377         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
30378         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
30379         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
30380         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30381         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30382
30383 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30384
30385         [BZ #9739]
30386         * manual/string.texi (strnlen): Use correct parameter name in
30387         equivalent expression.
30388
30389 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30390
30391         [BZ #11174]
30392         * manual/users.texi (seteuid): Consistently use neweuid for
30393         argument name.
30394
30395 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30396
30397         [BZ #13704]
30398         * manual/nss.texi (Services in the NSS configuration): Correct
30399         list of services in example configuration file.
30400
30401 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
30402
30403         [BZ #11322]
30404         * manual/arith.texi: Remove statements about negative zero
30405         behaving identically to zero.
30406
30407 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30408
30409         [BZ #5993]
30410         * manual/install.texi: Do not document upgrading from libc5.
30411
30412 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30413
30414         [BZ #4596]
30415         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
30416
30417 2012-02-18  David S. Miller  <davem@davemloft.net>
30418
30419         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
30420         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
30421         %o7 across the call.
30422         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
30423         instead.
30424         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
30425         SETUP_PIC_REG_LEAF.
30426         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30427         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
30428         * sysdeps/sparc/crtn.S: Likewise.
30429
30430 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
30431
30432         * aout/Makefile: Remove.
30433
30434 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
30435
30436         [BZ #13058]
30437         * manual/examples/argp-ex1.c (main): Format definition in GNU
30438         style.
30439         * manual/examples/argp-ex2.c (main): Likewise.
30440         * manual/examples/argp-ex3.c (main): Likewise.
30441         * manual/examples/argp-ex4.c (main): Likewise.
30442         * manual/examples/longopt.c (main): Use new-style prototype
30443         definition.
30444         * manual/examples/strncat.c (main): Specify return type and use
30445         (void) for arguments.
30446         * manual/examples/subopt.c (main): Use char **argv argument.
30447
30448 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30449
30450         [BZ #5077]
30451         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
30452         rounding modes.
30453
30454 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
30455
30456         [BZ #6907]
30457         * manual/string.texi (strchr): Change when strchrnul is
30458         recommended.
30459
30460 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
30461
30462         [BZ #174]
30463         * manual/locale.texi (setlocale): Document LOCPATH.
30464
30465 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30466
30467         [BZ #10210]
30468         * manual/process.texi (execle): Move @dots{} before last argument.
30469
30470 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
30471
30472         [BZ #12047]
30473         * manual/charset.texi (Generic Charset Conversion): Fix typo
30474         (LC_TYPE -> LC_CTYPE).
30475
30476 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
30477
30478         [BZ #5805]
30479         * manual/arith.texi (scalbn): Use @var{} on parameter names.
30480         (scalbnf): Likewise.
30481         (scalbnl): Likewise.
30482         (scalbln): Likewise.
30483         (scalblnf): Likewise.
30484         (scalblnl): Likewise.
30485         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
30486         (vwarnx): Likewise.
30487         (verr): Likewise.
30488         (verrx): Likewise.
30489         * manual/filesys.texi (telldir): Use braces around return type.
30490         * manual/llio.texi (mmap): Add space after comma.
30491         (mmap64): Likewise.
30492         * manual/math.texi (jn): Use @var{} on parameter names.
30493         (jnf): Likewise.
30494         (jnl): Likewise.
30495         (yn): Likewise.
30496         (ynf): Likewise.
30497         (ynl): Likewise.
30498         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
30499         line.
30500         * manual/resource.texi (ulimit): Use @dots{} instead of literal
30501         "...".
30502         (sched_get_priority_min): Remove semicolon on @deftypefun line.
30503         (sched_get_priority_max): Likewise.
30504         * manual/signal.texi (sigvec): Add space after comma.
30505         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
30506         names.
30507         (if_indextoname): Likewise.
30508         (if_freenameindex): Likewise.
30509         (sendto): Use ',' instead of '.' in prototype.
30510         * manual/startup.texi (syscall): Use @dots{} instead of literal
30511         "...".
30512         * manual/stdio.texi (__fpending): Separate initial words of
30513         paragraph from @deftypefun line.
30514         * manual/syslog.texi (syslog): Use @dots{} instead of literal
30515         "...".
30516         (vsyslog): Use @var{} on parameter names.
30517         * manual/terminal.texi (stty): Use @var{} on parameter names.
30518         * manual/users.texi (getutmp): Use @var{} on parameter names.
30519         (getutmpx): Likewise.
30520
30521 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30522
30523         [BZ #6884]
30524         * manual/stdio.texi (fopen): Fix typos in description of
30525         ",ccs=STRING".
30526
30527 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
30528
30529         [BZ #4026]
30530         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
30531         get clock_id definition.
30532
30533 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
30534
30535         [BZ #4822]
30536         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
30537         (madvise): Cast every argument to void on its own.
30538
30539 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30540
30541         [BZ #9902]
30542         * manual/startup.texi (Exit Status): Fix typo.
30543
30544 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30545
30546         [BZ #10140]
30547         * manual/examples/argp-ex1.c: Include <stdlib.h>.
30548         * manual/examples/argp-ex2.c: Likewise.
30549         * manual/examples/argp-ex3.c: Likewise.
30550
30551 2012-02-16  Richard Henderson  <rth@redhat.com>
30552
30553         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
30554         * sysdeps/s390/s390-32/initfini.c: Remove.
30555         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
30556         * sysdeps/s390/s390-64/initfini.c: Remove.
30557
30558 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30559
30560         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
30561         compiler output for sysdeps/generic/initfini.c.
30562         * sysdeps/sh/elf/initfini.c: Remove file.
30563
30564 2012-02-16  David S. Miller  <davem@davemloft.net>
30565
30566         [BZ #11494]
30567         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
30568
30569         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
30570         * sysdeps/sparc/crti.S: New file.
30571         * sysdeps/sparc/crtn.S: New file.
30572         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
30573         * sysdeps/sparc/sparc64/Makefile: Likewise.
30574
30575 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
30576
30577         [BZ #3335]
30578         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
30579
30580 2012-02-15  Roland McGrath  <roland@hack.frob.com>
30581
30582         [BZ #4822]
30583         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
30584
30585         * mach/devstream.c (cookie_io_functions_t): Macro removed.
30586         (write, read, close): Likewise.
30587         Patch by Aurelien Jarno <aurelien@aurel32.net>.
30588
30589 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
30590
30591         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
30592         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
30593         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
30594         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
30595         <bits/signalfd.h>.
30596         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
30597         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30598         bits/signalfd.h.
30599
30600 2012-02-14  Marek Polacek  <polacek@redhat.com>
30601
30602         * sysdeps/x86_64/crti.S: New file.
30603         * sysdeps/x86_64/crtn.S: New file.
30604         * sysdeps/x86_64/elf/initfini.c: Remove file.
30605
30606 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30607
30608         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
30609         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
30610         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
30611         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
30612         <bits/inotify.h>.
30613         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
30614         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30615         bits/inotify.h.
30616
30617 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30618
30619         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
30620         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
30621         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
30622         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
30623         <bits/eventfd.h>.
30624         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
30625         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30626         bits/eventfd.h.
30627
30628 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
30629
30630         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
30631         __feraiseexcept instead of feraiseexcept.
30632
30633         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
30634         nanosleep invocations.
30635         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
30636         strings, and add error checking for a nanosleep invocations.
30637
30638 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
30639
30640         Replace FSF snail mail address with URLs, as per GNU coding standards.
30641         Most of the snail mail addresses were wrong anyway, and omitting
30642         them makes the source code easier to maintain.  Almost all of the
30643         changes are to license notices and to locale LC_IDENTIFICATION
30644         addresses, except for this one:
30645         * manual/libc.texinfo: In "Published by", give the FSF's URL,
30646         not its snail mail address.
30647
30648 2012-02-09  Richard Henderson  <rth@twiddle.net>
30649
30650         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
30651         of kernel-features.h.
30652
30653         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
30654
30655 2012-02-08  Marek Polacek  <polacek@redhat.com>
30656
30657         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
30658         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
30659         * sysdeps/gnu/_G_config.h: Likewise.
30660         * sysdeps/generic/_G_config.h: Likewise.
30661
30662 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
30663
30664         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
30665         tests.
30666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30667
30668         * sysdeps/powerpc/powerpc32/crti.S: New file.
30669         * sysdeps/powerpc/powerpc32/crtn.S: New file.
30670         * sysdeps/powerpc/powerpc64/crti.S: New file.
30671         * sysdeps/powerpc/powerpc64/crtn.S: New file.
30672
30673         * Makeconfig (have-initfini): Don't set.
30674         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
30675         * configure.in (nopic_initfini): Don't substitute.
30676         * config.h.in (HAVE_INITFINI): Don't #undef.
30677         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
30678         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
30679
30680 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
30681
30682         Support crti.S and crtn.S provided directly by architectures.
30683         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
30684         [crti.S in sysdirs] (omit-deps): Likewise.
30685         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
30686         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
30687         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
30688         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
30689         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
30690         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
30691         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
30692         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
30693         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
30694         compiler output for sysdeps/generic/initfini.c.
30695         * sysdeps/i386/elf/Makefile: Remove file.
30696         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
30697
30698 2012-02-07  Marek Polacek  <polacek@redhat.com>
30699
30700         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
30701         * sysdeps/gnu/_G_config.h: Likewise.
30702         * sysdeps/mach/hurd/_G_config.h: Likewise.
30703
30704 2012-02-07  Marek Polacek  <polacek@redhat.com>
30705
30706         * math/Makefile (tests): Add tst-CMPLX2.
30707         * math/tst-CMPLX2.c: New file.
30708
30709 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
30710
30711         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30712
30713         * math/libm-test.inc (jn_test): Add missing L suffix.
30714
30715 2012-02-06  Marek Polacek  <polacek@redhat.com>
30716
30717         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
30718         * sysdeps/i386/fpu/e_powf.S: Likewise.
30719         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
30720         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
30721         * sysdeps/i386/fpu/e_acosh.S: Likewise.
30722         * sysdeps/i386/fpu/e_pow.S: Likewise.
30723         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
30724         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
30725         * sysdeps/i386/fpu/s_expm1.S: Likewise.
30726         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
30727         * sysdeps/i386/fpu/e_log2.S: Likewise.
30728         * sysdeps/i386/fpu/e_log2l.S: Likewise.
30729         * sysdeps/i386/fpu/e_scalb.S: Likewise.
30730         * sysdeps/i386/fpu/e_powl.S: Likewise.
30731         * sysdeps/i386/fpu/s_log1p.S: Likewise.
30732         * sysdeps/i386/fpu/e_log10f.S: Likewise.
30733         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
30734         * sysdeps/i386/fpu/e_logl.S: Likewise.
30735         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
30736         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
30737         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
30738         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
30739         * sysdeps/i386/fpu/e_log2f.S: Likewise.
30740         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
30741         * sysdeps/i386/fpu/e_log.S: Likewise.
30742         * sysdeps/i386/fpu/s_cexp.S: Likewise.
30743         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
30744         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
30745         * sysdeps/i386/fpu/e_logf.S: Likewise.
30746         * sysdeps/i386/fpu/e_log10l.S: Likewise.
30747         * sysdeps/i386/fpu/e_atanh.S: Likewise.
30748         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
30749         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
30750         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
30751         * sysdeps/i386/fpu/e_log10.S: Likewise.
30752         * sysdeps/i386/fpu/s_frexp.S: Likewise.
30753         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
30754         * sysdeps/i386/fpu/s_asinh.S: Likewise.
30755         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
30756         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
30757         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
30758         * sysdeps/i386/asm-syntax.h: Likewise.
30759         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
30760         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
30761         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
30762         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
30763         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
30764         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
30765         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
30766         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
30767         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
30768         * sysdeps/powerpc/sysdep.h: Likewise.
30769         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
30770         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30771
30772 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
30773
30774         [BZ #411]
30775         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
30776
30777 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
30778
30779         * sysdeps/i386/sysdep.h: Include <features.h>.
30780         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
30781         version.
30782
30783 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
30784
30785         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
30786         Define.
30787         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
30788         LOAD_PIC_REG_STR.
30789
30790 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30791
30792         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
30793         (SETUP_PIC_REG): Use GET_PC_THUNK.
30794         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
30795         macro.
30796
30797 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30798
30799         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
30800         for non-PIC compilation.
30801         (SETUP_PIC_REG): Add .p2align directive.
30802         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
30803         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
30804         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
30805         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
30806         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
30807         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
30808         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
30809         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30810         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
30811         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
30812         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
30813         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
30814         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
30815         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
30816         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
30817         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
30818         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
30819         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
30820         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
30821         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
30822         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
30823         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
30824         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
30825         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
30826         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
30827         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
30828         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
30829         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
30830         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
30831         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
30832         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
30833         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
30834         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
30835         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
30836         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
30837         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
30838         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
30839         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
30840         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
30841         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
30842         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
30843
30844 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30845
30846         * math/tst-CMPLX.c: Include <stdio.h>.
30847
30848 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
30849
30850         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
30851         float.
30852         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
30853         * sysdeps/sparc/bits/mathdef.h: Likewise.
30854
30855 2012-01-31  Marek Polacek  <polacek@redhat.com>
30856
30857         * libio/libio.h: Don't define _PARAMS.
30858         * locale/programs/config.h: Don't define PARAMS.
30859         * stdlib/strtol_l.c: Likewise.
30860         (__strtol_l): Remove PARAMS from the prototype.
30861
30862 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
30863
30864         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
30865         names.  Just use the correct names.  Remove unnecessary wrapper
30866         functions.
30867         * malloc/arena.c: Likewise.
30868         * malloc/hooks.c: Likewise.
30869
30870         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
30871         ARENA_TEST says not to.  Simplify test for creation of a new arena.
30872         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
30873
30874 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
30875
30876         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
30877         into tail calls.
30878         (update_get_addr): New function.
30879         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
30880         GET_ADDR_MODULE parameter.
30881
30882 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
30883
30884         * crypt/cert.c: Remove __STDC__ conditionals.
30885         * crypt/crypt-entry.c: Likewise.
30886         * crypt/crypt_util.c: Likewise.
30887         * libio/filedoalloc.c: Likewise.
30888         * libio/fileops.c: Likewise.
30889         * libio/genops.c: Likewise.
30890         * libio/iofclose.c: Likewise.
30891         * libio/iofdopen.c: Likewise.
30892         * libio/iofopen.c: Likewise.
30893         * libio/iofopen64.c: Likewise.
30894         * libio/iogetdelim.c: Likewise.
30895         * libio/iopopen.c: Likewise.
30896         * libio/obprintf.c: Likewise.
30897         * libio/oldfileops.c: Likewise.
30898         * libio/oldiofclose.c: Likewise.
30899         * libio/oldiofdopen.c: Likewise.
30900         * libio/oldiofopen.c: Likewise.
30901         * libio/oldiopopen.c: Likewise.
30902         * libio/wfiledoalloc.c: Likewise.
30903         * libio/wgenops.c: Likewise.
30904         * locale/programs/xmalloc.c: Likewise.
30905         * misc/syslog.c: Likewise.
30906         * stdio-common/xbug.c: Likewise.
30907         * string/memchr.c: Likewise.
30908         * string/memcmp.c: Likewise.
30909         * string/memrchr.c: Likewise.
30910         * string/rawmemchr.c: Likewise.
30911         * sysdeps/posix/getcwd.c: Likewise.
30912         * time/strftime_l.c: Likewise.
30913
30914 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
30915
30916         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
30917         * config.make.in (config-cflags-sse2avx): Define.
30918         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
30919         Fix typo.
30920
30921 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
30922
30923         * scripts/config.guess: Update from upstream config git repository.
30924         * scripts/config.sub: Likewise.
30925
30926 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
30927
30928         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
30929         (EM_NUM): Update.
30930         (R_TILEPRO_*, R_TILEGX_*): New macros.
30931
30932         * scripts/firstversions.awk: Fix bug in version range handling.
30933
30934         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
30935
30936         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
30937
30938         * include/sys/epoll.h: New file.
30939         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
30940         libc_hidden_def.
30941
30942 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
30943
30944         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
30945         Avoid unnecessary __WORDSIZE == 64 test.
30946         (fmaxf): Use VEX format if possible.
30947         (fmax): Likewise.
30948         (fminf): Likewise.
30949         (fmin): Likewise.
30950
30951         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
30952         * math/math_private.h: Remove libc_fegetround* and
30953         libc_fesetround*.
30954         * sysdeps/i386/configure.in: Check for -msse2avx.
30955         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
30956         also if SSE2AVX is defined.
30957         Remove libc_fegetround* and libc_fesetround*.
30958         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
30959         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
30960         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
30961         of HAS_YMM_USABLE.
30962         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
30963         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
30964         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
30965         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
30966         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
30967
30968         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
30969
30970 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30971
30972         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
30973         size is not set.
30974         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
30975
30976 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
30977
30978         [BZ #13618]
30979         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
30980         relocation.
30981         * Makeconfig (libm): Define.
30982         * elf/Makefile: Add rules to build and run tst-relsort1.
30983         * elf/tst-relsort1.c: New file.
30984         * elf/tst-relsort1mod1.c: New file.
30985         * elf/tst-relsort1mod2.c: New file.
30986
30987 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
30988
30989         * math/s_ldexp.c: Remove __STDC__ conditionals.
30990         * math/s_ldexpf.c: Likewise.
30991         * math/s_ldexpl.c: Likewise.
30992         * math/s_nextafter.c: Likewise.
30993         * math/s_nexttowardf.c: Likewise.
30994         * math/s_significand.c: Likewise.
30995         * math/s_significandf.c: Likewise.
30996         * math/s_significandl.c: Likewise.
30997         * math/w_jnl.c: Likewise.
30998         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
30999         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
31000         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
31001         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
31002         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
31003         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
31004         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
31005         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
31006         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
31007         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
31008         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
31009         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
31010         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
31011         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
31012         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
31013         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
31014         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
31015         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
31016         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
31017         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
31018         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
31019         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
31020         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
31021         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
31022         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
31023         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
31024         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
31025         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
31026         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
31027         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
31028         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
31029         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
31030         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
31031         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
31032         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
31033         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
31034         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
31035         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
31036         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
31037         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
31038         * sysdeps/ieee754/k_standard.c: Likewise.
31039         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
31040         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
31041         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
31042         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
31043         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
31044         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
31045         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
31046         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
31047         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
31048         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
31049         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
31050         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
31051         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
31052         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
31053         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
31054         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
31055         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
31056         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
31057         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
31058         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
31059         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31060         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
31061         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
31062         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
31063         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
31064         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
31065         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31066         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31067         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31068         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
31069         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
31070         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
31071         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
31072         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
31073         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
31074         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
31075         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
31076         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
31077         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
31078         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
31079         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
31080         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
31081         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
31082         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
31083         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
31084         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
31085         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
31086         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
31087         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
31088         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
31089         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
31090         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
31091         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
31092         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
31093         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
31094         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
31095         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
31096         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
31097         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
31098         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
31099         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
31100         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
31101         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
31102         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
31103         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
31104         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
31105         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
31106         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
31107         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
31108         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
31109         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
31110         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
31111         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
31112         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
31113         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
31114         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
31115         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
31116         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
31117         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
31118         * sysdeps/ieee754/s_matherr.c: Likewise.
31119         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
31120         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
31121         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
31122         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
31123
31124 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31125
31126         * crypt/md5.h: Remove __STDC__ conditionals.
31127         * libio/libioP.h: Likewise.
31128         * locale/programs/config.h: Likewise.
31129         * sysdeps/generic/sysdep.h: Likewise.
31130         * sysdeps/i386/asm-syntax.h: Likewise.
31131         * sysdeps/s390/asm-syntax.h: Likewise.
31132         * sysdeps/unix/sysdep.h: Likewise.
31133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
31134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
31135
31136 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31137
31138         * libio/libio.h: Remove __STDC__ conditionals.
31139         * malloc/obstack.h: Likewise.
31140         * math/complex.h: Likewise.
31141         * math/math.h: Likewise.
31142         * sysdeps/generic/_G_config.h: Likewise.
31143         * sysdeps/gnu/_G_config.h: Likewise.
31144         * sysdeps/mach/hurd/_G_config.h: Likewise.
31145         * sysdeps/powerpc/bits/mathdef.h: Likewise.
31146         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31147         * sysdeps/sparc/bits/mathdef.h: Likewise.
31148
31149 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
31150
31151         [BZ #13583]
31152         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
31153         Clean up HAS_* macros.
31154         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
31155         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
31156         possible.
31157         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
31158         HAS_AVX.
31159         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31160         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31161         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31162         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31163         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31164
31165 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
31166
31167         * elf/tst-unique3.cc (gets): Remove declaration.
31168         * elf/tst-unique3lib.cc (gets): Likewise.
31169         * elf/tst-unique3lib2.cc (gets): Likewise.
31170         * elf/tst-unique4.cc (gets): Likewise.
31171
31172 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
31173
31174         * include/stdio.h: Add C++ protection.  Add gets declarations and
31175         definitions.
31176         * debug/tst-chk1.c: Don't declare gets here.
31177         * stdio-common/tst-gets.c: Likewise.
31178
31179 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31180
31181         * posix/glob: Remove directory.
31182
31183 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31184
31185         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
31186
31187 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
31188
31189         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
31190         of the non-standard EPFNOSUPPORT.
31191
31192 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31193
31194         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
31195         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
31196         ANYWHERE set to 1 only on KERN_NO_SPACE error.
31197
31198 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
31199
31200         * wcsmbs/uchar.h: Test __STDC_VERSION__.
31201
31202 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
31203
31204         * nscd/aicache.c (addhstaiX): Do not cache negative results of
31205         transient errors.
31206         * nscd/grpcache.c (cache_addgr): Likewise.
31207         * nscd/hstcache.c (cache_addhst): Likewise.
31208         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31209         * nscd/pwdcache.c (cache_addpw): Likewise.
31210         * nscd/servicescache.c (cache_addserv): Likewise.
31211
31212 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
31213
31214         * malloc/malloc.c: Various cleanups.
31215         * malloc/hooks.c: Likewise.
31216
31217         * stdlib/Makefile (tests): Add bug-fmtmsg1.
31218         * stdlib/bug-fmtmsg1.c: New file.
31219
31220         * stdlib/fmtmsg.c (init): Add missing unlock.
31221         Patch by Peng Haitao <penght@cn.fujitsu.com>.
31222
31223 2012-01-12  Marek Polacek  <polacek@redhat.com>
31224
31225         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
31226         and _GNU_SOURCE.
31227
31228 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
31229
31230         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
31231         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
31232         macro to ensure uniqueness of label name.
31233         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
31234         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
31235
31236 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
31237
31238         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
31239
31240         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
31241         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
31242         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31243         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
31244
31245 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
31246
31247         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
31248
31249         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
31250         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
31251         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
31252
31253         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
31254
31255         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
31256         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
31257         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
31258         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
31259
31260         * math/bits/math-finite.h: Add ldexp support.
31261
31262 2012-01-10  Marek Polacek  <polacek@redhat.com>
31263
31264         * locale/programs/localedef.h (show_archive_content): Add noreturn
31265         attribute.
31266
31267 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
31268
31269         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
31270
31271 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31272
31273         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
31274
31275         * io/Makefile (headers): Add bits/poll2.h.
31276
31277 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
31278
31279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
31280         typo #include statement.
31281
31282 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31283
31284         * include/sys/cdefs.h: Define __attribute_alloc_size.
31285         * catgets/gencat.c: Add alloc_size attribute and apply consistently
31286         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
31287         * elf/pldd.c: Likewise.
31288         * iconv/iconv_charmap.c: Likewise.
31289         * iconv/iconvconfig.c: Likewise.
31290         * iconv/strtab.c: Likewise.
31291         * locale/programs/locale.c: Likewise.
31292         * locale/programs/localedef.h: Likewise.
31293         * locale/programs/simple-hash.c: Likewise.
31294         * nscd/nscd.h: Likewise.
31295         * nss/makedb.c: Likewise.
31296         * sysdeps/generic/ldconfig.h: Likewise.
31297         * locale/programs/localedef.c: Remove xmalloc prototype.
31298         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
31299
31300 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
31301
31302         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
31303         appropriate.
31304
31305 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31306
31307         * math/Makefile (tests): Add tst-CMPLX.
31308         * math/tst-CMPLX.c: New file.
31309
31310         * math/complex.h (CMPLXL): Fix typo.
31311
31312         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
31313         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
31314         GLIBC_2.16.
31315         * debug/tst-chk1.c: Add poll and ppoll tests.
31316         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
31317         * include/sys/poll.h: Add hidden proto for ppoll.
31318         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
31319         * sysdeps/mach/hurd/ppoll.c: Likewise.
31320         * io/ppoll.c: Likewise.
31321         * debug/poll_chk.c: New file.
31322         * debug/ppoll_chk.c: New file.
31323         * include/bits/poll2.h: New file.
31324         * io/bits/poll2.h: New file.
31325
31326         [BZ #1350]
31327         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
31328
31329         * configure.in: static is always set to yes.  Remove.
31330         * config.make.in: Don't set build-static.
31331         * Makeconfig: Remove use of build-static.
31332         * dlfcn/Makefile: Likewise.
31333         * elf/Makefile: Likewise.
31334         * math/Makefile: Likewise.
31335         * misc/Makefile: Likewise.
31336         * nptl/Makefile: Likewise.
31337         * sysdeps/mach/hurd/Makefile: Likewise.
31338
31339         * configure.in: PWD_P is not used anymore.
31340         * config.make.in: Remove PWD_P entry.
31341
31342         * configure.in: Remove last remnants of RANLIB.
31343         No need to check for signed size_t anymore.
31344         Don't set libc_commonpagesize and libc_relro_required here for Alpha
31345         and IA-64.
31346         Remove __builtin_expect test because we require at least gcc 3.4.
31347         * aclocal.m4: Likewise.
31348
31349         * wcsmbs/mbrtoc16.c: Implement using towc function.
31350         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
31351         * wcsmbs/wcsmbsload.c: Likewise.
31352         * iconv/gconv_simple.c: Likewise.
31353         * iconv/gconv_int.h: Likewise.
31354         * iconv/gconv_builtin.h: Likewise.
31355         * iconv/iconv_prog.c: Remove CHAR16 handling.
31356
31357         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
31358
31359         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
31360
31361         * configure.in: Remove --with-elf and --enable-bounded options.
31362         Dont set base_machine for ia64.  More non-ELF conditions removed.
31363         Remove testing and setting of leading underscore information.
31364         * config.make.in (build-bounded): Set to no.
31365         * config.h.in: Remove NO_UNDERSCORES entry.
31366         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
31367         them.
31368         * csu/start.c: Remove !NO_UNDERSCORE code.
31369         * locale/localeinfo.h: Likewise.
31370         * sysdeps/generic/machine-gmon.h: Likewise.
31371         * sysdeps/generic/sysdep.h: Likewise.
31372         * sysdeps/i386/sysdep.h: Likewise.
31373         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31374         * sysdeps/mach/sysdep.h: Likewise.
31375         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31376         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31377         * sysdeps/sh/sysdep.h: Likewise.
31378         * sysdeps/sparc/sparc32/alloca.S: Likewise.
31379         * sysdeps/unix/i386/sysdep.S: Likewise.
31380         * sysdeps/unix/sparc/start.c: Likewise.
31381         * sysdeps/unix/sparc/sysdep.S: Likewise.
31382         * sysdeps/unix/sparc/sysdep.h: Likewise.
31383         * sysdeps/unix/start.c: Likewise.
31384         * sysdeps/unix/x86_64/sysdep.S: Likewise.
31385         * sysdeps/x86_64/sysdep.h: Likewise.
31386
31387 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
31388
31389         [BZ #13553]
31390         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
31391         for non-gcc.
31392         * argp/argp-fmtstream.h: Use const instead __const.
31393         * argp/argp.h: Likewise.
31394         * assert/assert.h: Likewise.
31395         * bits/fenv.h: Likewise.
31396         * bits/sched.h: Likewise.
31397         * bits/sigset.h: Likewise.
31398         * bits/sigthread.h: Likewise.
31399         * catgets/nl_types.h: Likewise.
31400         * conform/data/pthread.h-data: Likewise.
31401         * crypt/crypt-private.h: Likewise.
31402         * crypt/crypt.h: Likewise.
31403         * crypt/crypt_util.c: Likewise.
31404         * ctype/ctype.h: Likewise.
31405         * debug/execinfo.h: Likewise.
31406         * debug/mbsnrtowcs_chk.c: Likewise.
31407         * debug/mbsrtowcs_chk.c: Likewise.
31408         * debug/wcsnrtombs_chk.c: Likewise.
31409         * debug/wcsrtombs_chk.c: Likewise.
31410         * debug/wcstombs_chk.c: Likewise.
31411         * dirent/dirent.h: Likewise.
31412         * dlfcn/dlfcn.h: Likewise.
31413         * elf/neededtest4.c: Likewise.
31414         * grp/grp.h: Likewise.
31415         * gshadow/gshadow.h: Likewise.
31416         * iconv/gconv.h: Likewise.
31417         * iconv/gconv_int.h: Likewise.
31418         * iconv/gconv_simple.c: Likewise.
31419         * iconv/iconv.h: Likewise.
31420         * iconv/loop.c: Likewise.
31421         * iconv/skeleton.c: Likewise.
31422         * include/aio.h: Likewise.
31423         * include/aliases.h: Likewise.
31424         * include/argz.h: Likewise.
31425         * include/arpa/inet.h: Likewise.
31426         * include/assert.h: Likewise.
31427         * include/dirent.h: Likewise.
31428         * include/dlfcn.h: Likewise.
31429         * include/execinfo.h: Likewise.
31430         * include/fcntl.h: Likewise.
31431         * include/fenv.h: Likewise.
31432         * include/glob.h: Likewise.
31433         * include/grp.h: Likewise.
31434         * include/libintl.h: Likewise.
31435         * include/mntent.h: Likewise.
31436         * include/netdb.h: Likewise.
31437         * include/pwd.h: Likewise.
31438         * include/rpc/netdb.h: Likewise.
31439         * include/sched.h: Likewise.
31440         * include/search.h: Likewise.
31441         * include/shadow.h: Likewise.
31442         * include/signal.h: Likewise.
31443         * include/stdio.h: Likewise.
31444         * include/stdlib.h: Likewise.
31445         * include/string.h: Likewise.
31446         * include/sys/socket.h: Likewise.
31447         * include/sys/stat.h: Likewise.
31448         * include/sys/statfs.h: Likewise.
31449         * include/sys/statvfs.h: Likewise.
31450         * include/sys/syslog.h: Likewise.
31451         * include/sys/time.h: Likewise.
31452         * include/sys/uio.h: Likewise.
31453         * include/time.h: Likewise.
31454         * include/unistd.h: Likewise.
31455         * include/utmp.h: Likewise.
31456         * include/wchar.h: Likewise.
31457         * include/wctype.h: Likewise.
31458         * inet/aliases.h: Likewise.
31459         * inet/arpa/inet.h: Likewise.
31460         * inet/netinet/ether.h: Likewise.
31461         * inet/netinet/in.h: Likewise.
31462         * intl/libintl.h: Likewise.
31463         * io/bits/fcntl2.h: Likewise.
31464         * io/fcntl.h: Likewise.
31465         * io/ftw.h: Likewise.
31466         * io/sys/poll.h: Likewise.
31467         * io/sys/stat.h: Likewise.
31468         * io/sys/statfs.h: Likewise.
31469         * io/sys/statvfs.h: Likewise.
31470         * io/utime.h: Likewise.
31471         * libio/bits/stdio.h: Likewise.
31472         * libio/bits/stdio2.h: Likewise.
31473         * libio/libio.h: Likewise.
31474         * libio/libioP.h: Likewise.
31475         * libio/stdio.h: Likewise.
31476         * locale/lc-ctype.c: Likewise.
31477         * locale/locale.h: Likewise.
31478         * login/utmp.h: Likewise.
31479         * malloc/arena.c: Likewise.
31480         * malloc/malloc.c: Likewise.
31481         * malloc/malloc.h: Likewise.
31482         * malloc/mcheck.c: Likewise.
31483         * malloc/mtrace.c: Likewise.
31484         * math/bits/mathcalls.h: Likewise.
31485         * math/fenv.h: Likewise.
31486         * math/math_private.h: Likewise.
31487         * misc/bits/error.h: Likewise.
31488         * misc/bits/syslog.h: Likewise.
31489         * misc/err.h: Likewise.
31490         * misc/error.h: Likewise.
31491         * misc/fstab.h: Likewise.
31492         * misc/mntent.h: Likewise.
31493         * misc/regexp.h: Likewise.
31494         * misc/search.h: Likewise.
31495         * misc/sgtty.h: Likewise.
31496         * misc/sys/mman.h: Likewise.
31497         * misc/sys/syslog.h: Likewise.
31498         * misc/sys/uio.h: Likewise.
31499         * misc/sys/xattr.h: Likewise.
31500         * misc/ttyent.h: Likewise.
31501         * nis/rpcsvc/ypclnt.h: Likewise.
31502         * nss/nss.h: Likewise.
31503         * posix/bits/unistd.h: Likewise.
31504         * posix/fnmatch.h: Likewise.
31505         * posix/glob.h: Likewise.
31506         * posix/sched.h: Likewise.
31507         * posix/spawn.h: Likewise.
31508         * posix/sys/wait.h: Likewise.
31509         * posix/unistd.h: Likewise.
31510         * posix/wordexp.h: Likewise.
31511         * pwd/pwd.h: Likewise.
31512         * resolv/netdb.h: Likewise.
31513         * resource/sys/resource.h: Likewise.
31514         * rt/aio.h: Likewise.
31515         * rt/bits/mqueue2.h: Likewise.
31516         * rt/mqueue.h: Likewise.
31517         * shadow/shadow.h: Likewise.
31518         * signal/signal.h: Likewise.
31519         * socket/send.c: Likewise.
31520         * socket/sendto.c: Likewise.
31521         * socket/sys/socket.h: Likewise.
31522         * stdio-common/printf.h: Likewise.
31523         * stdlib/bits/stdlib.h: Likewise.
31524         * stdlib/fmtmsg.h: Likewise.
31525         * stdlib/monetary.h: Likewise.
31526         * stdlib/stdlib.h: Likewise.
31527         * stdlib/ucontext.h: Likewise.
31528         * streams/stropts.h: Likewise.
31529         * string/argz.h: Likewise.
31530         * string/bits/string2.h: Likewise.
31531         * string/string.h: Likewise.
31532         * string/strings.h: Likewise.
31533         * sunrpc/rpc/auth.h: Likewise.
31534         * sunrpc/rpc/auth_des.h: Likewise.
31535         * sunrpc/rpc/clnt.h: Likewise.
31536         * sunrpc/rpc/netdb.h: Likewise.
31537         * sunrpc/rpc/pmap_clnt.h: Likewise.
31538         * sunrpc/rpc/xdr.h: Likewise.
31539         * sysdeps/generic/inttypes.h: Likewise.
31540         * sysdeps/generic/net/if.h: Likewise.
31541         * sysdeps/generic/sys/swap.h: Likewise.
31542         * sysdeps/gnu/net/if.h: Likewise.
31543         * sysdeps/gnu/utmpx.h: Likewise.
31544         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
31545         * sysdeps/i386/i486/bits/string.h: Likewise.
31546         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
31547         * sysdeps/s390/bits/string.h: Likewise.
31548         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
31549         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
31550         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
31551         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
31552         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
31553         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
31554         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
31555         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
31556         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
31557         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31558         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
31559         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
31560         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
31561         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
31562         * sysdeps/unix/sysv/linux/readv.c: Likewise.
31563         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
31564         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
31565         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
31566         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
31567         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
31568         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31569         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
31570         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
31571         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
31572         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
31573         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
31574         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
31575         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31576         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
31577         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
31578         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
31579         * sysvipc/sys/ipc.h: Likewise.
31580         * sysvipc/sys/msg.h: Likewise.
31581         * sysvipc/sys/sem.h: Likewise.
31582         * sysvipc/sys/shm.h: Likewise.
31583         * termios/termios.h: Likewise.
31584         * time/sys/time.h: Likewise.
31585         * time/time.h: Likewise.
31586         * wcsmbs/bits/wchar2.h: Likewise.
31587         * wcsmbs/uchar.h: Likewise.
31588         * wcsmbs/wchar.h: Likewise.
31589         * wctype/wctype.h: Likewise.
31590
31591         [BZ #13551]
31592         * Makeconfig: Remove all but ELF support including AIX support.
31593         * Makerules: Likewise.
31594         * config.h.in: Likewise.
31595         * config.make.in: Likewise.
31596         * configure: Likewise.
31597         * configure.in: Likewise.
31598         * csu/Makefile: Likewise.
31599         * csu/version.c: Likewise.
31600         * debug/Makefile: Likewise.
31601         * dlfcn/Makefile: Likewise.
31602         * elf/Makefile: Likewise.
31603         * extra-lib.mk: Likewise.
31604         * iconv/Makefile: Likewise.
31605         * include/libc-symbols.h: Likewise.
31606         * include/shlib-compat.h: Likewise.
31607         * resolv/Makefile: Likewise.
31608         * resolv/res_libc.c: Likewise.
31609         * rt/Makefile: Likewise.
31610         * sysdeps/i386/asm-syntax.h: Likewise.
31611         * sysdeps/i386/sysdep.h: Likewise.
31612         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31613         * sysdeps/mach/sysdep.h: Likewise.
31614         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
31615         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
31616         * sysdeps/s390/asm-syntax.h: Likewise.
31617         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31618         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31619         * sysdeps/sh/sysdep.h: Likewise.
31620         * sysdeps/unix/sparc/sysdep.h: Likewise.
31621         * sysdeps/wordsize-32/divdi3.c: Likewise.
31622         * sysdeps/x86_64/sysdep.h: Likewise.
31623
31624         * argp/Versions: Remove _argp_unlock_xxx.
31625
31626         [BZ #13559]
31627         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
31628         * abilist/libBrokenLocale.abilist: Likewise.
31629         * abilist/libanl.abilist: Likewise.
31630         * abilist/libc.abilist: Likewise.
31631         * abilist/libcrypt.abilist: Likewise.
31632         * abilist/libdl.abilist: Likewise.
31633         * abilist/libm.abilist: Likewise.
31634         * abilist/libnsl.abilist: Likewise.
31635         * abilist/libpthread.abilist: Likewise.
31636         * abilist/libresolv.abilist: Likewise.
31637         * abilist/librt.abilist: Likewise.
31638         * abilist/libthread_db.abilist: Likewise.
31639         * abilist/libutil.abilist: Likewise.
31640         * abilist/libnss_db.abilist: New file.
31641
31642         * scripts/abilist.awk: Add support for indirect functions.
31643
31644         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
31645
31646         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
31647
31648         * shlib-versions: Remove entries for ports architectures.
31649
31650         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
31651         files in ports.
31652         * elf/stackguard-macros.h: Remove support for IA-64.
31653         * elf/tst-auditmod1.c: Likewise.
31654         * sysdeps/generic/ldsodefs.h: Likewise.
31655
31656         * sysdeps/unix/sysv/linux/configure.in: Ports should define
31657         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
31658         configure files.
31659
31660         [BZ #13552]
31661         * configure.in: Remove --enable-omitfp support.
31662         * FAQ.in: Adjust.
31663         * config.make.in: Likewise.
31664         * Makeconfig: Likewise.
31665         * manual/install.texi: Likewise.
31666
31667         In case anyone cares, the IA-64 architecture could move to ports.
31668         * sysdeps/ia64/*: Removed.
31669         * sysdeps/unix/sysv/linux/ia64/*: Removed.
31670         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
31671
31672         [BZ #13555]
31673         * configure.in: Remove entries for unsupported architectures.
31674
31675         [BZ #13533]
31676         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
31677         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
31678         routines.
31679         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
31680         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
31681         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
31682         fall back to using wcrtomb.
31683         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
31684         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
31685         renaming.
31686         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
31687         * wcsmbs/tst-c16c32-1.c: New file.
31688
31689         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
31690         local variable.
31691
31692         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
31693
31694         * elf/tst-unique3.cc: Add explicit declaration of gets.
31695         * elf/tst-unique3lib.cc: Likewise.
31696         * elf/tst-unique3lib2.cc: Likewise.
31697         * elf/tst-unique4.cc: Likewise.
31698
31699         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
31700
31701 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
31702
31703         [BZ #13566]
31704         * assert/assert.h (static_assert): Don't define for C++.
31705         * libio/stdio.h (gets): Do declare for C++ <= C++11.
31706         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
31707
31708 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
31709
31710         * iconv/loop.c (single loop): Fix assertion in storing of
31711         remaining bytes.
31712
31713         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
31714
31715 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
31716
31717         * posix/getconf.c: Update copyright year.
31718         * nss/getent.c: Likewise.
31719         * nss/makedb.c: Likewise.
31720         * iconv/iconvconfig.c: Likewise.
31721         * iconv/iconv_prog.c: Likewise.
31722         * elf/ldconfig.c: Likewise.
31723         * elf/pldd.c: Likewise.
31724         * elf/sotruss.ksh: Likewise.
31725         * catgets/gencat.c: Likewise.
31726         * csu/version.c: Likewise.
31727         * elf/ldd.bash.in: Likewise.
31728         * elf/sprof.c (print_version): Likewise.
31729         * locale/programs/locale.c: Likewise.
31730         * locale/programs/localedef.c: Likewise.
31731         * login/programs/pt_chown.c: Likewise.
31732         * nscd/nscd.c (print_version): Likewise.
31733         * debug/xtrace.sh: Likewise.
31734         * malloc/memusage.sh: Likewise.
31735         * malloc/mtrace.pl: Likewise.
31736         * debug/catchsegv.sh: Likewise.
31737
31738 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
31739
31740         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
31741         pure attribute.
31742
31743 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
31744
31745         [BZ #13533]
31746         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
31747         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
31748         transformations.
31749         * iconv/gconv_int.h: Likewise.
31750         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
31751         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
31752         from libc for GLIBC_2.16.
31753         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
31754         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
31755         * wcsmbs/uchar.h: Really define mbstate_t.
31756         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
31757         * wcsmbs/c16rtomb.c: New file.
31758         * wcsmbs/mbrtoc16.c: New file.
31759         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
31760         for C/POSIX locale.
31761         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
31762         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
31763
31764         * wcsmbs/wchar.h: Add missing __restrict.
31765
31766 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
31767
31768         [BZ #13532]
31769         * time/Makefile (routines): Add timespec_get.
31770         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
31771         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
31772         timespec for ISO C11.
31773         * time/timespec_get.c: New file.
31774         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
31775         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
31776
31777         [BZ #13531]
31778         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
31779         * stdlib/stdlib.h: Declare aligned_alloc.
31780         * Versions.def: Add GLIBC_2.16 for libc.
31781         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
31782
31783         [BZ 13527]
31784         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
31785         ISO C11.
31786
31787         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
31788         code.
31789
31790         [BZ #13528]
31791         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
31792
31793         [BZ #13529]
31794         * assert/assert.h (static_assert): Define.
31795
31796         * version.h: Update for 2.16 development version.
31797
31798         [BZ #13526]
31799         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
31800         _ISOC11_SOURCE.
31801
31802         * version.h (RELEASE): Bump for 2.15 release.
31803         * include/features.h (__GLIBC_MINOR__): Bump to 15.
31804
31805         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
31806         Patch by Marek Polacek <mpolacek@redhat.com>.
31807
31808         * bits/byteswap.h: Protect long long constants with __extension__.
31809         * sysdeps/i386/bits/byteswap.h: Likewise.
31810         * sysdeps/ia64/bits/byteswap.h: Likewise.
31811         * sysdeps/s390/bits/byteswap.h: Likewise.
31812         * sysdeps/x86_64/bits/byteswap.h: Likewise.
31813
31814 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31815
31816         [BZ #13540]
31817         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
31818         destination buffer.
31819         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
31820
31821 2011-12-23  Marek Polacek  <polacek@redhat.com>
31822
31823         * elf/dl-addr.c (determine_info): Add inline keyword.
31824         * elf/tst-auditmod4b.c (check_avx): Likewise.
31825         * elf/tst-auditmod6b.c (check_avx): Likewise.
31826         * elf/tst-auditmod6c.c (check_avx): Likewise.
31827         * elf/tst-auditmod7b.c (check_avx): Likewise.
31828
31829 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
31830
31831         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
31832         !__SSE_MATH__.
31833
31834 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31835
31836         [BZ #13540]
31837         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
31838         processing for last bytes.
31839
31840 2011-08-06  Bruno Haible  <bruno@clisp.org>
31841
31842         [BZ #13061]
31843         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
31844         U+0385, not to U+1FEE.
31845
31846         [BZ #13062]
31847         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
31848         entry for U+00A5 U+0301.
31849
31850 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
31851
31852         [BZ #13166]
31853         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
31854         buffer for the output is too small.
31855
31856         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
31857         optimization.
31858
31859         [BZ #13185]
31860         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
31861         SSE flags if possible.
31862
31863 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31864
31865         [BZ #13540]
31866         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
31867         processing for last bytes.
31868
31869 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
31870
31871         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
31872         (syscall-list-default-options, syscall-list-default-condition)
31873         (syscall-list-includes): Define.
31874         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
31875         list of ABIs and options and #if conditions for each ABI.  Do not
31876         handle common syscalls between ABIs specially.
31877         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
31878         Remove.
31879         (syscall-list-variants, syscall-list-32bit-options)
31880         (syscall-list-32bit-condition, syscall-list-64bit-options)
31881         (syscall-list-64bit-condition): Define.
31882         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
31883         (syscall-list-variants, syscall-list-32bit-options)
31884         (syscall-list-32bit-condition, syscall-list-64bit-options)
31885         (syscall-list-64bit-condition): Define.
31886         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
31887         Remove.
31888         (syscall-list-variants, syscall-list-32bit-options)
31889         (syscall-list-32bit-condition, syscall-list-64bit-options)
31890         (syscall-list-64bit-condition): Define.
31891         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
31892         Remove.
31893         (syscall-list-variants, syscall-list-32bit-options)
31894         (syscall-list-32bit-condition, syscall-list-64bit-options)
31895         (syscall-list-64bit-condition): Define.
31896
31897 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
31898
31899         * locale/iso-639.def: Add brx entry.
31900
31901         [BZ #13328]
31902         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
31903         Proposed by Mariusz_Cukr <marcukr@op.pl>.
31904
31905         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
31906         __feraiseexcept_renamed.
31907
31908 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
31909
31910         [BZ #13538]
31911         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
31912         EPOLLET with unsigned values.
31913         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31914         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31915
31916         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
31917         to large cancellation.
31918         * math/s_cacoshf.c: Likewise.
31919         * math/s_cacoshl.c: Likewise.
31920
31921 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
31922
31923         [BZ #13305]
31924         [BZ #12786]
31925         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
31926         * math/s_cacoshf.c: Likewise.
31927         * math/s_cacoshl.c: Likewise.
31928
31929 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
31930
31931         [BZ #13439]
31932         * iconv/gconv.h: Define __GCONV_SWAP.
31933         * iconvdata/unicode.c: The swap bit must be stored in __flags.
31934         * iconvdata/utf-16.c: Likewise.
31935         * iconvdata/utf-32.c: Likewise.
31936
31937 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
31938
31939         [BZ #13524]
31940         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
31941         numerator after shifting it by one limb.
31942
31943 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
31944
31945         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
31946         under [__USE_EXTERN_INLINES].
31947
31948 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
31949
31950         [BZ #13446]
31951         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
31952
31953 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31954
31955         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
31956         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
31957         optimized code.
31958         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
31959         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
31960         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
31961         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
31962         for strncasecmp/strncasecmp_l compilation.
31963         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
31964         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
31965
31966 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
31967
31968         [BZ #13484]
31969         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
31970         of __asm__.
31971
31972 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
31973
31974         [BZ #13506]
31975         * time/tzfile.c (__tzfile_read): Check values from file header.
31976
31977 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
31978
31979         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
31980         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
31981         * powerpc/powerpc32/dl-start.S: Likewise.
31982         * powerpc/powerpc32/elf/start.S: Likewise.
31983         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
31984         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
31985         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
31986         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
31987         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
31988         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
31989         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
31990         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
31991         * powerpc/powerpc32/fpu/s_round.S: Likewise.
31992         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
31993         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
31994         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
31995         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
31996         * powerpc/powerpc32/memset.S: Likewise.
31997         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
31998         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
31999         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
32000         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
32001         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
32002         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
32003         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
32004         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
32005         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
32006         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
32007         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
32008         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
32009         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
32010
32011 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32012
32013         * math/libm-test.inc: Added more nearbyint tests.
32014         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
32015         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
32016         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
32017         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
32018
32019 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
32020
32021         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
32022         FD_CLOEXEC.
32023
32024 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32025
32026         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
32027         Add wcscpy-ssse3 wcscpy-c.
32028         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
32029         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
32030         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
32031         * sysdeps/x86_64/wcschr.S: New file.
32032         * sysdeps/x86_64/wcsrchr.S: New file.
32033         * string/test-strcmp.c: Remove checking of wcscmp function for
32034         wrong alignments.
32035         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
32036         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
32037         wcsrchr-sse2 wcsrchr-c.
32038         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
32039         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
32040         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
32041         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
32042         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
32043         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
32044         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
32045         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
32046         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
32047         * wcsmbc/wcschr.c (WCSCHR): New macro.
32048
32049 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32050
32051         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
32052         * wcsmbs/test-wcsrchr.c: New file.
32053         * string/test-strrchr.c: Add wcsrchr support.
32054         (WIDE): New macro.
32055         * wcsmbs/test-wcscpy.c: New file.
32056         * string/test-strcpy.c: Add wcscpy support.
32057         (WIDE): New macro.
32058
32059 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
32060
32061         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
32062         the inner loop.
32063
32064 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
32065
32066         [BZ #13472]
32067         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
32068
32069 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
32070
32071         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
32072         Minor optimizations.
32073
32074         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
32075         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
32076         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32077
32078 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
32079
32080         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
32081         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
32082         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
32083         for gcc to avoid warnings.
32084         * inet/Makefile (tests): Add tst-checks.
32085         * inet/tst-checks.c: New file.
32086
32087         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
32088         warning.
32089
32090         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
32091         __wmemcmp_sse2.
32092
32093         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
32094         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
32095
32096         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
32097
32098 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
32099
32100         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
32101         problem.
32102
32103         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
32104
32105 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
32106
32107         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
32108         conditional on GCC version.
32109         (__arch_compare_and_exchange_val_8_acq)
32110         (__arch_compare_and_exchange_val_16_acq)
32111         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
32112         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
32113         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
32114
32115 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
32116
32117         * sysdeps/sh/backtrace.c: New file.
32118
32119 2011-12-02  Andreas Schwab  <schwab@redhat.com>
32120
32121         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
32122         parenthesis.
32123
32124 2011-12-01  Andreas Schwab  <schwab@redhat.com>
32125
32126         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
32127         falling back to utime.
32128
32129 2011-11-30  Andreas Schwab  <schwab@redhat.com>
32130
32131         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
32132         expectations for float.
32133
32134 2011-11-29  Andreas Schwab  <schwab@redhat.com>
32135
32136         * locale/weight.h (findidx): Add parameter len.
32137         * locale/weightwc.h (findidx): Likewise.
32138         * posix/fnmatch_loop.c (FCT): Adjust caller.
32139         * posix/regcomp.c (build_equiv_class): Likewise.
32140         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
32141         * posix/regexec.c (check_node_accept_bytes): Likewise.
32142         * string/strcoll_l.c (STRCOLL): Likewise.
32143         * string/strxfrm_l.c (STRXFRM): Likewise.
32144
32145 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
32146
32147         * Makefile.in: Remove CVSOPT handling.
32148         * configure.in: Remove use of AC_REVISION.
32149         * iconvdata/Makefile (distribute): No need to filter out CVS.
32150         * scripts/list-sources.sh: Remove CVS, subversion and monotone
32151         handling.
32152
32153 2011-11-16  Andreas Schwab  <schwab@redhat.com>
32154
32155         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
32156         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
32157         [USE_AS_STRNCASECMP_L]: Likewise.
32158         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
32159         NO_TLS_DIRECT_SEG_REFS.
32160         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
32161         Fix argument offsets for non-PIC.
32162         [USE_AS_STRNCASECMP_L]: Likewise.
32163         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
32164         NO_TLS_DIRECT_SEG_REFS.
32165
32166 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32167
32168         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
32169         O_CLOEXEC.
32170         * locale/loadlocale.c (_nl_load_locale): Likewise.
32171
32172 2011-11-15  Andreas Schwab  <schwab@redhat.com>
32173
32174         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
32175         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
32176         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
32177         (SYSCALL_GETTIME): Set errno on error.
32178
32179         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
32180         count references to noai6ai_cached.
32181
32182 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32183
32184         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
32185
32186         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
32187         FD_CLOEXEC for /proc/self/maps.
32188
32189         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
32190         FD_CLOEXEC for /proc/meminfo.
32191
32192         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
32193         gai.conf.
32194
32195         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
32196         FD_CLOEXEC for given file.
32197
32198         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
32199
32200         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
32201         FD_CLOEXEC for /etc/hosts.
32202         (_gethtent): Likewise.
32203
32204         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
32205
32206         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
32207         cancellation and set FD_CLOEXEC for /etc/netgroup.
32208
32209         * nss/nss_files/files-key.c (search): Don't allow cancellation when
32210         reading /etc/publickey.
32211
32212         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
32213         allow cancellation when reading /etc/group.
32214
32215         * nss/nss_files/files-alias.c (internal_setent): Don't allow
32216         cancellation.
32217         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
32218
32219         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
32220         when using data file.
32221
32222         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
32223
32224         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
32225         (write_nis_obj): Use "c" and "e" in fopen.
32226
32227         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
32228
32229         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
32230
32231         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
32232
32233         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
32234
32235         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
32236         locale.alias.
32237
32238         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
32239
32240         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
32241
32242         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
32243
32244         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
32245         file parsing and set FD_CLOEXEC.
32246
32247 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32248
32249         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
32250
32251 2011-11-14  Andreas Schwab  <schwab@redhat.com>
32252
32253         * malloc/arena.c (arena_get2): Don't call reused_arena when
32254         _int_new_arena failed.
32255
32256 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32257
32258         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
32259         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
32260         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
32261         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32262         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32263         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
32264         to compile strcasecmp and strncasecmp.
32265         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
32266         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
32267
32268         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
32269
32270 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
32271
32272         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
32273         locale-defines.sym to gen-as-const-headers.
32274         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
32275         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
32276         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
32277         to compile strcasecmp and strncasecmp.
32278         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
32279         strcasecmp_l and strncasecmp_l.
32280         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
32281         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
32282         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
32283         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
32284         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
32285         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
32286         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
32287         * sysdeps/i386/i686/multiarch/strncase.S: New file.
32288         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
32289         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
32290         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
32291
32292 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
32293
32294         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
32295         result of SYSDEP_GETTIME_CPU to retval.
32296         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
32297         parameter list to macro.  Remove trailing semicolon.  Adjust users.
32298
32299         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
32300         variable.
32301
32302         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
32303         mantissa words.
32304         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32305
32306         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
32307         from unused variable.
32308
32309         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
32310         DWARF definitions.
32311         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
32312         for assembling.
32313
32314         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
32315         over namespaces.
32316
32317         * sunrpc/rpc_prot.c (rejected): Fix case value.
32318
32319         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
32320         unsigned long long int to avoid warnings in shift.
32321
32322         * posix/regex_internal.c (re_string_reconstruct): Actually use result
32323         of use of trans.
32324         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
32325         variable tmp.
32326
32327         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
32328         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
32329         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
32330
32331         * nis/nis_table.c (nis_list): Use variable of correct type for
32332         result of __follow_path call.
32333
32334 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32335
32336         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
32337         of math functions ceil, trunc, floor, round, and sqrt, when
32338         avaliable on the platform.
32339         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
32340         name clash.
32341         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
32342         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
32343         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
32344
32345 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
32346
32347         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
32348         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
32349
32350 2011-11-11  Roland McGrath  <roland@hack.frob.com>
32351
32352         * include/unistd.h: Fix __readlink return type.
32353         Reported by Chris Metcalf <cmetcalf@tilera.com>.
32354
32355 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
32356
32357         * stdlib/ucontext.h: Undo last change for makecontext.
32358
32359 2011-11-11  Andreas Schwab  <schwab@redhat.com>
32360
32361         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
32362
32363         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
32364         * setjmp/setjmp.h: Mark functions as non-leaf.
32365         * setjmp/bits/setjmp2.h: Likewise.
32366         * stdlib/ucontext.h: Likewise.
32367
32368 2011-11-10  Andreas Schwab  <schwab@redhat.com>
32369
32370         * malloc/arena.c (_int_new_arena): Don't increment narenas.
32371         (reused_arena): Don't check arena limit.
32372         (arena_get2): Atomically check arena limit.
32373
32374 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
32375
32376         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
32377         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
32378
32379         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
32380         instructions.
32381
32382 2011-11-07  Andreas Schwab  <schwab@redhat.com>
32383
32384         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
32385         handler when locking.
32386
32387         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
32388         Fix size of allocated buffer.
32389
32390 2011-11-04  Andreas Schwab  <schwab@redhat.com>
32391
32392         [BZ #10103]
32393         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
32394         declarations for long double functions.
32395         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
32396
32397         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
32398
32399 2011-11-03  Andreas Schwab  <schwab@redhat.com>
32400
32401         * nscd/nscd.c (main): Don't start AVC thread until credentials are
32402         installed.
32403
32404         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
32405         is disabled.
32406
32407 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32408
32409         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
32410
32411 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
32412
32413         * include/alloca.h (stackinfo_alloca_round): Define.
32414         (extend_alloca): Use it.
32415         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
32416         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
32417         here.
32418
32419         * scripts/check-local-headers.sh: Ignore libaudit.h.
32420
32421         * nscd/Makefile (extra-objs): Make recursively expanded.
32422
32423 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
32424
32425         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
32426         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
32427
32428         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
32429         * posix/tst-rfc3484-2.c: Likewise.
32430         * posix/tst-rfc3484-3.c: Likewise.
32431
32432         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
32433         process_vm_writev.
32434         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
32435         process_vm_writev.
32436         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
32437         process_vm_writev from libc using GLIBC_2.15 version.
32438
32439         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
32440
32441 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
32442
32443         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
32444         stack usage.
32445
32446 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
32447
32448         [BZ #13367]
32449         * nss/getent.c (initgroups_keys): Show error message in case no group
32450         names are given.
32451
32452         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
32453         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
32454         __bump_nl_timestamp.
32455         * nscd/connections (nscd_init): When host database is served open
32456         netlink socket and request notification about configuration changes.
32457         (main_loop_poll): Track netlink file descriptor and bump timestamp
32458         in case data becomes available.
32459         (main_loop_epoll): Likewise.
32460         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
32461         (database_pers_head): Add extra_data fileds.
32462         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
32463         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
32464         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
32465         Adjust caller.
32466         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
32467         in6ai data, call __free_in6ai.
32468         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
32469         Add -DHAVE_NETLINK.
32470         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
32471         interface information.  Reuse previous data if netlink timestamp
32472         is not changed.
32473         (__bump_nl_timestamp): New function.
32474         (__free_in6ai): New function.
32475
32476 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
32477
32478         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
32479         close_not_cancel_no_status here.
32480         (__check_pf): Reorganize code a bit to not call close twice if OOM.
32481
32482 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32483
32484         [BZ #13276]
32485         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
32486         return value.
32487
32488         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
32489         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
32490         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
32491
32492 2011-07-03  Andreas Jaeger  <aj@suse.de>
32493
32494         [BZ #10709]
32495         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
32496         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
32497         * math/libm-test.inc (sin_test): Add test case.
32498
32499 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32500
32501         [BZ #13337]
32502         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
32503         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32504
32505         * elf/chroot_canon.c (chroot_canon): Cleanups.
32506
32507         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
32508
32509         [BZ #13335]
32510         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
32511         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32512
32513         * string/test-strchr.c: Make usable for strchrnul testing.
32514         * string/test-strchrnul.c: New file.
32515         * string/Makefile (strop-tests): Add strchrnul.
32516
32517         * po/it.po: Update from translation team.
32518         * po/es.po: Likewise.
32519
32520 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
32521
32522         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
32523         the three constants needed as parameters.  Drop the others.
32524         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
32525         __m128i_strloadu_tolower.
32526         Create and initialize variable zero and use it in all the places
32527         where _mm_setzero_si128 was used.
32528
32529         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
32530         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
32531         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
32532         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
32533         anymore.
32534         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
32535         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
32536         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
32537         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
32538         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
32539         __mpranred, __mptan.
32540         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
32541         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
32542         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
32543         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
32544         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
32545         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
32546         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
32547         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
32548         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
32549
32550 2011-10-28  Andreas Schwab  <schwab@redhat.com>
32551
32552         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
32553         redefine if SHARED.
32554         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
32555
32556         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
32557         wide char related routines to wcsmbs subdir.
32558
32559 2011-10-27  Andreas Schwab  <schwab@redhat.com>
32560
32561         [BZ #13344]
32562         * misc/sys/cdefs.h (__THROWNL): Define.
32563         * posix/unistd.h: Use __THREADNL instead of __THREAD
32564         for memory synchronization functions.
32565
32566 2011-10-26  Roland McGrath  <roland@hack.frob.com>
32567
32568         [BZ #13349]
32569         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
32570         doesn't exist.
32571         * manual/stdio.texi (Obstack Streams): Node removed.
32572
32573 2011-10-26  Andreas Schwab  <schwab@redhat.com>
32574
32575         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
32576         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32577         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32578
32579         * math/math_private.h (math_force_eval): Allow non-addressable
32580         arguments.
32581         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
32582
32583 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32584
32585         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
32586         file is not needed.
32587
32588         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
32589         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32590         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32591         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32592         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32593         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32594         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32595         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
32596         Add AVX variants.
32597         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
32598         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
32599         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
32600         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
32601         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
32602         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
32603         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
32604         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
32605         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
32606         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
32607         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
32608         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
32609         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
32610         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
32611         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
32612         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
32613         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
32614         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
32615         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
32616
32617         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
32618         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
32619
32620         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
32621         place.  Use VEX encoding when compiling for AVX.
32622
32623 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32624
32625         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
32626         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
32627
32628         * string/test-strchr.c (do_test): Don't generate NUL bytes.
32629
32630 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32631
32632         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
32633         useless if() expression.
32634         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
32635         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
32636         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
32637         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
32638         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
32639         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32640         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
32641         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
32642         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
32643         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
32644         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
32645         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
32646         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
32647         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
32648         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
32649         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32650         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
32651         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
32652         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
32653
32654         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
32655
32656 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32657
32658         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
32659         condition.
32660         * elf/dl-fini.c (_dl_sort_fini): Likewise.
32661
32662 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32663
32664         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
32665         .text section.  Avoid duplicate constants.
32666         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
32667         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32668         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
32669         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32670         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32671         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32672         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32673         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32674         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
32675         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
32676         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
32677         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
32678         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
32679         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
32680         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
32681         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
32682         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
32683         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
32684         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
32685         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32686         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
32687         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
32688         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
32689         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
32690         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
32691         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
32692         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
32693         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
32694         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
32695         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
32696         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
32697         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
32698         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
32699         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
32700         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
32701         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
32702         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
32703         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
32704         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
32705         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
32706         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
32707         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
32708         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
32709         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
32710         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
32711
32712 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
32713
32714         * sysdeps/x86_64/dla.h: Move to ...
32715         * sysdeps/x86_64/fpu/dla.h: ...here.
32716         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
32717         situations.  Use __builtin_fma only for gcc 4.6 and up.
32718
32719         * config.make.in: Add have-mfma4 entry.
32720         * configure.in: Substitute libc_cv_cc_fma4.
32721         * math/Makefile (dbl-only-routines): Add sincostab.
32722         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
32723         Use __sincostab not sincos.
32724         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
32725         name is a macro.
32726         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32727         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32728         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32729         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
32730         using __copysign.
32731         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
32732         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
32733         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
32734         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
32735         and __inv.
32736         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
32737         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
32738         __copysign.
32739         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
32740         define aliases when function name is a macro.
32741         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
32742         sysdeps/ieee754/dbl-64/sincos.tbl.
32743         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
32744         fma4-enabled routines.
32745         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
32746         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
32747         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
32748         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
32749         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
32750         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
32751         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
32752         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
32753         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
32754         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
32755         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
32756         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
32757         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
32758         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
32759         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
32760         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
32761         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
32762         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
32763         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
32764         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
32765         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
32766         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
32767         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
32768         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
32769         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
32770         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
32771         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
32772         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
32773         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
32774         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
32775
32776         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
32777         rename.
32778         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32779         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32780         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32781         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32782         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32783         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32784         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32785         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32786
32787 2011-10-24  Andreas Schwab  <schwab@redhat.com>
32788
32789         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
32790
32791 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32792
32793         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
32794
32795         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
32796         prediction.
32797         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
32798
32799         * string/strnlen.c: Don't define STRNLEN, reverse logic.
32800         Remove unused variable magic_bits.
32801         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
32802
32803         * string/strnlen.c: Define and use STRNLEN macro.
32804         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
32805         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
32806         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
32807         * wcsmbs/wcslen.c: Define and use WCSLEN.
32808         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
32809         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
32810         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
32811         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
32812         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
32813         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
32814         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
32815
32816 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32817
32818         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32819         strnlen-sse2-no-bsf.
32820         Rename strlen-no-bsf to strlen-sse2-no-bsf.
32821         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
32822         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
32823         Add strnlen support.
32824         (USE_AS_STRNLEN): New macro.
32825         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
32826         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
32827         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
32828         * sysdeps/x86_64/wcslen.S: New file.
32829
32830 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
32831
32832         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
32833         XMM-moves are used for copying on small sizes.
32834
32835 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32836
32837         * wcsmbs/Makefile (strop-tests): Add wcschr.
32838         * wcsmbs/test-wcschr.c: New file.
32839         * string/test-strchr.c: Update.
32840         Add wcschr support.
32841         (WIDE): New macro.
32842
32843 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32844
32845         * wcsmbs/Makefile (strop-tests): Add wcslen.
32846         * wcsmbs/test-wcslen.c: New file.
32847         * string/test-strlen.c: Update.
32848         Add wcslen support.
32849         (WIDE): New macro.
32850
32851 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32852
32853         * po/it.po: Update from translation team.
32854
32855 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32856
32857         * sysdeps/x86_64/wcscmp.S: Update.
32858         Fix wrong comparison semantics.
32859         wcscmp shall use signed comparison not unsigned.
32860         Don't use substraction to avoid overflow bug.
32861         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
32862         * wcsmbc/wcscmp.c: Likewise.
32863         * string/test-strcmp.c: Likewise.
32864         Add new tests to check cases with negative values.
32865
32866 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32867
32868         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
32869         * sysdeps/x86_64/dla.h: ...here.  New file.
32870         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
32871         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32872         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32873         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32874         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32875         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
32876         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32877         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32878         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32879
32880 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
32881
32882         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
32883         __ynl_finite aliases.
32884
32885 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
32886
32887         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32888
32889         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
32890         define DLA_FMA.
32891         [DLA_FMA] (EMULV): Use DLA_FMA.
32892         [DLA_FMA] (MUL12): Use EMULV.
32893         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
32894         that are not needed.
32895         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32896         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32897         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32898         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32899         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32900         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32901         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32902
32903 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
32904
32905         * math/s_nan.c: Undef __nan.
32906         * math/s_nanf.c: Undef __nanf.
32907         * math/s_nanl.c: Undef __nanl.
32908         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
32909         "math_private.h".
32910
32911 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
32912
32913         * math/s_catan.c: Add branch predictions.
32914         * math/s_catanf.c: Likewise.
32915         * math/s_catanh.c: Likewise.
32916         * math/s_catanhf.c: Likewise.
32917         * math/s_catanhl.c: Likewise.
32918         * math/s_catanl.c: Likewise.
32919         * math/s_cexp.c: Likewise.
32920         * math/s_cexpf.c: Likewise.
32921         * math/s_cexpl.c: Likewise.
32922         * math/s_clog.c: Likewise.
32923         * math/s_clog10.c: Likewise.
32924         * math/s_clog10f.c: Likewise.
32925         * math/s_clog10l.c: Likewise.
32926         * math/s_clogf.c: Likewise.
32927         * math/s_clogl.c: Likewise.
32928         * math/s_csqrt.c: Likewise.
32929         * math/s_csqrtf.c: Likewise.
32930         * math/s_csqrtl.c: Likewise.
32931         * math/s_ctanf.c: Likewise.
32932         * math/s_ctanh.c: Likewise.
32933         * math/s_ctanhf.c: Likewise.
32934         * math/s_ctanhl.c: Likewise.
32935         * math/s_ctanl.c: Likewise.
32936
32937         * math/math_private.h: Define __nan, __nanf, __nanl.
32938         * math/s_cacosh.c: Include <math_private.h>.
32939         * math/s_cacoshl.c: Likewise.
32940         * math/s_casinh.c: Likewise.
32941         * math/s_casinhf.c: Likewise.
32942         * math/s_casinhl.c: Likewise.
32943         * math/s_ccos.c: Rely entire on ccosh.
32944         * math/s_ccosf.c: Rely entire on ccoshf.
32945         * math/s_ccosl.c: Rely entirely on ccoshl.
32946         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
32947         Remove tests for FE_INVALID.
32948         * math/s_ccoshf.c: Likewise.
32949         * math/s_ccoshl.c: Likewise.
32950         * math/s_csin.c: Likewise.
32951         * math/s_csinf.c: Likewise.
32952         * math/s_csinh.c Likewise.
32953         * math/s_csinhf.c: Likewise.
32954         * math/s_csinhl.c: Likewise.
32955         * math/s_csinl.c: Likewise.
32956         * math/s_ctan.c: Likewise.
32957         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
32958         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
32959         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
32960
32961 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
32962
32963         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
32964         compilation problems.
32965
32966         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
32967         __builtin_expect.
32968
32969 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
32970
32971         * sysdeps/i386/configure.in: Test for -mfma4 option.
32972         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
32973         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
32974         COMMON_CPUID_INDEX_80000001.
32975         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
32976         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
32977         use it if FMA3 is not supported.
32978         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
32979
32980         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
32981         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
32982
32983 2011-10-20  Andreas Schwab  <schwab@redhat.com>
32984
32985         [BZ #12892]
32986         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
32987         it would create a cycle with a link time dependency.
32988
32989 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
32990
32991         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
32992         instruction.
32993         * string/Makefile (strop-tests): Add rawmemchr.
32994         * string/test-rawmemchr.c: New file.
32995
32996         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
32997         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
32998         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
32999         when compiling str{,n}casecmp and when AVX is available.  Hook up
33000         new optimized code in initializers.
33001
33002 2011-10-19  Andreas Schwab  <schwab@redhat.com>
33003
33004         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
33005         __feraiseexcept instead of feraiseexcept.
33006
33007 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
33008
33009         * math/math_private.h: Define defaults for libc_fetestexcept and
33010         libc_feupdateenv.
33011         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
33012         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
33013         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33014         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33015         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
33016         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33017         libc_fetestexcept and libc_feupdateenv.
33018
33019         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
33020         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
33021         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
33022         * sysdeps/x86_64/fpu/math_private.h: Define special version of
33023         libc_feholdexcept_setround.
33024
33025         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
33026         Add s_nearbyint-c and s_nearbyintf-c.
33027         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
33028         nearbyintf inlines.
33029         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
33030         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
33031         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
33032         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
33033
33034         * math/math_private.h: Define defaults for libc_fegetround,
33035         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
33036         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
33037         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
33038         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
33039         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
33040         standard functions.
33041         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33042         Remove comments and hacks for old compiler versions.
33043         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33044         libc_fegetround, libc_fesetround, libc_feholdexcept, and
33045         libc_feholdexceptl.
33046
33047 2011-10-18  Andreas Schwab  <schwab@redhat.com>
33048
33049         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
33050         (__feraiseexcept_renamed): Add __NTH.
33051         (feraiseexcept): Add __NTH.  Rename local variables to fix
33052         namespace violations.
33053
33054 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
33055
33056         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
33057
33058         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
33059
33060         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
33061         recently added interfaces.
33062         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
33063
33064         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
33065         about macro parameter expansion.
33066
33067         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
33068         __NO_MATH_INLINES is defined.  Cleanups.
33069
33070         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
33071         and __floorf is target has SSE4.1.
33072         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
33073         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
33074         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
33075         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
33076
33077         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
33078         name.
33079         (floorf): Likewise.
33080
33081         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
33082
33083 2011-10-17  Andreas Schwab  <schwab@redhat.com>
33084
33085         * misc/sys/cdefs.h: Fix last change.
33086
33087         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
33088         database lookup.
33089
33090 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
33091
33092         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
33093
33094         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
33095         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
33096         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
33097         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
33098         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
33099         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
33100         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
33101         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
33102         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
33103         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
33104         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
33105         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
33106         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
33107         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
33108         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
33109         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
33110         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
33111         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
33112         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
33113         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
33114         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
33115         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
33116
33117         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
33118         ceil, ceilf, floor, floorf.
33119
33120         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
33121         Perform IRELATIVE relocations last.
33122
33123         * elf/do-rel.h: Add another parameter nrelative, replacing the
33124         local variable with the same name.  Change name of the function
33125         to end in Rel or Rela (uppercase).
33126         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
33127         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
33128         elf_dynamic_do_##reloc function.
33129
33130 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33131
33132         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
33133         is sufficient, at least on modern CPUs.
33134
33135         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
33136
33137         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
33138         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
33139
33140         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
33141         __expl_finite.
33142         * math/bits/math-finite.h: Add entries for exp.
33143         * math/e_expl.c: Add __*_finite alias.
33144         * sysdeps/i386/fpu/e_exp.S: Likewise.
33145         * sysdeps/i386/fpu/e_expf.S: Likewise.
33146         * sysdeps/i386/fpu/e_expl.c: Likewise.
33147         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33148         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33149         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
33150         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
33151         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
33152         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
33153         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
33154
33155         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
33156         is sufficient, at least on modern CPUs.
33157
33158         * ctype/ctype-info.c (__ctype_init): Define.
33159         * include/ctype.h (__ctype_init): Declare.
33160         (__ctype_b_loc): The variable is always initialized.
33161         (__ctype_toupper_loc): Likewise.
33162         (__ctype_tolower_loc): Likewise.
33163         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
33164         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
33165
33166 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
33167
33168         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
33169
33170         * configure.in: Also look in $cxxmachine/include for C++ system
33171         headers.
33172
33173 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33174
33175         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
33176         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
33177         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
33178         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
33179         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
33180         (USE_AS_WMEMCMP): New macro.
33181         Fixing indents.
33182         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
33183         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
33184         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
33185         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
33186         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33187         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
33188         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
33189         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
33190         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
33191         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
33192         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
33193         (USE_AS_WMEMCMP): New macro.
33194         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
33195         * sysdeps/string/test-memcmp.c: Update.
33196         Fix simple_wmemcmp.
33197         Add new tests.
33198         * wcsmbs/wmemcmp.c: Update.
33199         (WMEMCMP): New macro.
33200         Fix overflow bug.
33201
33202 2011-10-12  Andreas Jaeger  <aj@suse.de>
33203
33204         [BZ #13268]
33205         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
33206
33207 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33208
33209         * libio/iofwide.c (do_length): Avoid warning.
33210
33211         * ctype/ctype.h (__isctype_f): Add missing __THROW.
33212
33213 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
33214
33215         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
33216
33217         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
33218         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
33219         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
33220         * sysdeps/i386/i686/fpu/e_log.S: New file.
33221         * sysdeps/i386/i686/fpu/e_logf.S: New file.
33222         * sysdeps/i386/i686/fpu/e_logl.S: New file.
33223
33224         * ctype/ctype.h: Add support for inlined isXXX functions when
33225         compiling C++ code.
33226
33227 2011-10-14  Andreas Schwab  <schwab@redhat.com>
33228
33229         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33230
33231         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
33232
33233 2011-10-13  Roland McGrath  <roland@hack.frob.com>
33234
33235         [BZ #13291]
33236         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
33237
33238 2011-10-13  Andreas Schwab  <schwab@redhat.com>
33239
33240         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
33241         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
33242         feraiseexcept.
33243
33244         * sysdeps/x86_64/memrchr.S: Check for zero size.
33245
33246         * string/stratcliff.c: Add memrchr tests.
33247
33248 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33249
33250         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33251         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
33252         rawmemchr-sse2 rawmemchr-sse2-bsf.
33253         * sysdeps/i386/i686/multiarch/memchr.S: New file.
33254         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
33255         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
33256         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
33257         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
33258         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
33259         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
33260         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
33261         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
33262         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
33263         * string/memrchr.c (MEMRCHR): New macro.
33264
33265 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
33266
33267         Add integration with gcc's -ffinite-math-only and optimize wrapper
33268         functions in libm.
33269         * Versions.def: Define GLIBC_2.15 version for libm.
33270         * math/Makefile (headers): Add bits/math-finite.h.
33271         * math/bits/math-finite.h: New file.
33272         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
33273         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
33274         * math/e_acoshl.c: Add __*_finite alias.
33275         * math/e_acosl.c: Likewise.
33276         * math/e_asinl.c: Likewise.
33277         * math/e_atan2l.c: Likewise.
33278         * math/e_atanhl.c: Likewise.
33279         * math/e_coshl.c: Likewise.
33280         * math/e_exp10.c: Likewise.
33281         * math/e_exp10f.c: Likewise.
33282         * math/e_exp10l.c: Likewise.
33283         * math/e_exp2l.c: Likewise.
33284         * math/e_fmodl.c: Likewise.
33285         * math/e_gammal_r.c: Likewise.
33286         * math/e_hypotl.c: Likewise.
33287         * math/e_j0l.c: Likewise.
33288         * math/e_j1l.c: Likewise.
33289         * math/e_jnl.c: Likewise.
33290         * math/e_lgammal_r.c: Likewise.
33291         * math/e_log10l.c: Likewise.
33292         * math/e_log2l.c: Likewise.
33293         * math/e_logl.c: Likewise.
33294         * math/e_powl.c: Likewise.
33295         * math/e_sinhl.c: Likewise.
33296         * math/e_sqrtl.c: Likewise.
33297         * math/e_scalb.c: Completely rewritten and optimized.
33298         * math/e_scalbf.c: Likewise.
33299         * math/e_scalbl.c: Likewise.
33300         * math/w_acos.c: Likewise.
33301         * math/w_acosf.c: Likewise.
33302         * math/w_acosl.c: Likewise.
33303         * math/w_acosh.c: Likewise.
33304         * math/w_acoshf.c: Likewise.
33305         * math/w_acoshl.c: Likewise.
33306         * math/w_asin.c: Likewise.
33307         * math/w_asinf.c: Likewise.
33308         * math/w_asinl.c: Likewise.
33309         * math/w_atan2.c: Likewise.
33310         * math/w_atan2f.c: Likewise.
33311         * math/w_atan2l.c: Likewise.
33312         * math/w_atanh.c: Likewise.
33313         * math/w_atanhf.c: Likewise.
33314         * math/w_atanhl.c: Likewise.
33315         * math/w_exp10.c: Likewise.
33316         * math/w_exp10f.c: Likewise.
33317         * math/w_exp10l.c: Likewise.
33318         * math/w_fmod.c: Likewise.
33319         * math/w_fmodf.c: Likewise.
33320         * math/w_fmodl.c: Likewise.
33321         * math/w_j0.c: Likewise.
33322         * math/w_j0f.c: Likewise.
33323         * math/w_j0l.c: Likewise.
33324         * math/w_j1.c: Likewise.
33325         * math/w_j1f.c: Likewise.
33326         * math/w_j1l.c: Likewise.
33327         * math/w_jn.c: Likewise.
33328         * math/w_jnf.c: Likewise.
33329         * math/w_log.c: Likewise.
33330         * math/w_logf.c: Likewise.
33331         * math/w_logl.c: Likewise.
33332         * math/w_log10.c: Likewise.
33333         * math/w_log10f.c: Likewise.
33334         * math/w_log10l.c: Likewise.
33335         * math/w_log2.c: Likewise.
33336         * math/w_log2f.c: Likewise.
33337         * math/w_log2l.c: Likewise.
33338         * math/w_pow.c: Likewise.
33339         * math/w_powf.c: Likewise.
33340         * math/w_powl.c: Likewise.
33341         * math/w_remainder.c: Likewise.
33342         * math/w_remainderf.c: Likewise.
33343         * math/w_remainderl.c: Likewise.
33344         * math/w_scalb.c: Likewise.
33345         * math/w_scalbf.c: Likewise.
33346         * math/w_scalbl.c: Likewise.
33347         * math/w_sqrt.c: Likewise.
33348         * math/w_sqrtf.c: Likewise.
33349         * math/w_sqrtl.c: Likewise.
33350         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
33351         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
33352         used.
33353         * math/math_private.h: Declare __kernel_standard_f.
33354         * math/w_cosh.c: Remove cruft and optimize a bit.
33355         * math/w_coshf.c: Likewise.
33356         * math/w_coshl.c: Likewise.
33357         * math/w_exp2.c: Likewise.
33358         * math/w_exp2f.c: Likewise.
33359         * math/w_exp2l.c: Likewise.
33360         * math/w_hypot.c: Likewise.
33361         * math/w_hypotf.c: Likewise.
33362         * math/w_hypotl.c: Likewise.
33363         * math/w_lgamma.c: Likewise.
33364         * math/w_lgamma_r.c: Likewise.
33365         * math/w_lgammaf.c: Likewise.
33366         * math/w_lgammaf_r.c: Likewise.
33367         * math/w_lgammal.c: Likewise.
33368         * math/w_lgammal_r.c: Likewise.
33369         * math/w_sinh.c: Likewise.
33370         * math/w_sinhf.c: Likewise.
33371         * math/w_sinhl.c: Likewise.
33372         * math/w_tgamma.c: Likewise.
33373         * math/w_tgammaf.c: Likewise.
33374         * math/w_tgammal.c: Likewise.
33375         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
33376         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
33377         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
33378         Minor optimizations.  Pretty printing.  Remove cruft.
33379         * sysdeps/i386/fpu/e_acosf.S: Likewise.
33380         * sysdeps/i386/fpu/e_acosh.S: Likewise.
33381         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
33382         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
33383         * sysdeps/i386/fpu/e_acosl.c: Likewise.
33384         * sysdeps/i386/fpu/e_asin.S: Likewise.
33385         * sysdeps/i386/fpu/e_asinf.S: Likewise.
33386         * sysdeps/i386/fpu/e_atan2.S: Likewise.
33387         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
33388         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
33389         * sysdeps/i386/fpu/e_atanh.S: Likewise.
33390         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
33391         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
33392         * sysdeps/i386/fpu/e_exp10.S: Likewise.
33393         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
33394         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
33395         * sysdeps/i386/fpu/e_exp2.S: Likewise.
33396         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
33397         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
33398         * sysdeps/i386/fpu/e_fmod.S: Likewise.
33399         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
33400         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
33401         * sysdeps/i386/fpu/e_hypot.S: Likewise.
33402         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
33403         * sysdeps/i386/fpu/e_log.S: Likewise.
33404         * sysdeps/i386/fpu/e_log10.S: Likewise.
33405         * sysdeps/i386/fpu/e_log10f.S: Likewise.
33406         * sysdeps/i386/fpu/e_log10l.S: Likewise.
33407         * sysdeps/i386/fpu/e_log2.S: Likewise.
33408         * sysdeps/i386/fpu/e_log2f.S: Likewise.
33409         * sysdeps/i386/fpu/e_log2l.S: Likewise.
33410         * sysdeps/i386/fpu/e_logf.S: Likewise.
33411         * sysdeps/i386/fpu/e_logl.S: Likewise.
33412         * sysdeps/i386/fpu/e_pow.S: Likewise.
33413         * sysdeps/i386/fpu/e_powf.S: Likewise.
33414         * sysdeps/i386/fpu/e_powl.S: Likewise.
33415         * sysdeps/i386/fpu/e_remainder.S: Likewise.
33416         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
33417         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
33418         * sysdeps/i386/fpu/e_scalb.S: Likewise.
33419         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
33420         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
33421         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
33422         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
33423         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
33424         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
33425         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
33426         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33427         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
33428         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33429         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
33430         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
33431         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
33432         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
33433         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
33434         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
33435         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
33436         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33437         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
33438         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
33439         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33440         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
33441         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
33442         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33443         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33444         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
33445         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
33446         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
33447         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
33448         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
33449         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
33450         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33451         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
33452         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
33453         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
33454         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
33455         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
33456         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33457         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
33458         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
33459         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
33460         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
33461         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
33462         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
33463         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
33464         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
33465         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
33466         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
33467         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
33468         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
33469         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
33470         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
33471         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
33472         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
33473         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
33474         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
33475         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
33476         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
33477         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33478         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
33479         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
33480         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
33481         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
33482         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
33483         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
33484         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
33485         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
33486         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
33487         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
33488         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
33489         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
33490         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
33491         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
33492         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
33493         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
33494         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
33495         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
33496         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
33497         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
33498         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
33499         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
33500         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
33501         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
33502         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
33503         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
33504         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
33505         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
33506         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
33507         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
33508         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
33509         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
33510         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33511         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
33512         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
33513         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
33514         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
33515         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
33516         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
33517         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
33518         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
33519         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
33520         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
33521         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
33522         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
33523         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
33524         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
33525         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
33526         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
33527         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
33528         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
33529         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
33530         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
33531         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
33532         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
33533         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
33534         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
33535         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
33536         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
33537         (__isnanf): Likewise.
33538         (__isinf_ns): Likewise.
33539         (__isinf_nsf): Likewise.
33540         (__finite): Likewise.
33541         (__finitef): Likewise.
33542         (__ieee754_sqrt): Define as macro.
33543         (__ieee754_sqrtf): Define as macro.
33544         (__ieee754_sqrtl): Define as macro.
33545         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
33546         inlined copy.
33547         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
33548         __FINITE_MATH_ONLY__ consistent.
33549         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
33550
33551 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
33552
33553         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
33554         of rawmemchr.
33555
33556         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
33557
33558 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
33559
33560         * po/ja.po: Update from translation team.
33561
33562 2011-10-08  Roland McGrath  <roland@hack.frob.com>
33563
33564         * locale/programs/locarchive.c (prepare_address_space): New function.
33565         (create_archive, enlarge_archive, open_archive): Use it.
33566
33567         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
33568         inside [SHARED], where it is used.
33569
33570         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
33571
33572         * nss/getent.c (netgroup_keys): Remove unused variable.
33573         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
33574
33575 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
33576
33577         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
33578         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
33579         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
33580         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
33581         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
33582         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
33583         * math/Makefile (libm-calls): Add s_isinf_ns.
33584         * math/divtc3.c: Use __isinf_nsl instead of isinf.
33585         * math/multc3.c: Likewise.
33586         * math/s_casin.c: Likewise.
33587         * math/s_casinf.c: Likewise.
33588         * math/s_casinl.c: Likewise.
33589         * math/s_ccos.c: Likewise.
33590         * math/s_ccosf.c: Likewise.
33591         * math/s_ccosl.c: Likewise.
33592         * math/s_ctan.c: Likewise.
33593         * math/s_ctanf.c: Likewise.
33594         * math/s_ctanh.c: Likewise.
33595         * math/s_ctanhf.c: Likewise.
33596         * math/s_ctanhl.c: Likewise.
33597         * math/s_ctanl.c: Likewise.
33598         * math/w_fmod.c: Likewise.
33599         * math/w_fmodf.c: Likewise.
33600         * math/w_fmodl.c: Likewise.
33601         * math/w_remainder.c: Likewise.
33602         * math/w_remainderf.c: Likewise.
33603         * math/w_remainderl.c: Likewise.
33604         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
33605         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
33606         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
33607         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
33608         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
33609         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
33610         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
33611         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
33612
33613         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
33614         of the number.
33615         * stdio-common/printf_fphex.c: Likewise.
33616         * stdio-common/printf_size.c: Likewise.
33617
33618         * math/e_exp10.c: Include math_private.h using <...> not "...".
33619         * math/e_exp10f.c: Likewise.
33620         * math/e_exp10l.c: Likewise.
33621         * math/e_exp2l.c: Likewise.
33622         * math/e_j0l.c: Likewise.
33623         * math/e_j1l.c: Likewise.
33624         * math/e_jnl.c: Likewise.
33625         * math/e_lgammal_r.c: Likewise.
33626         * math/e_rem_pio2l.c: Likewise.
33627         * math/e_scalb.c: Likewise.
33628         * math/e_scalbf.c: Likewise.
33629         * math/e_scalbl.c: Likewise.
33630         * math/k_cosl.c: Likewise.
33631         * math/k_sinl.c: Likewise.
33632         * math/k_tanl.c: Likewise.
33633         * math/s_cacoshf.c: Likewise.
33634         * math/s_catan.c: Likewise.
33635         * math/s_catanf.c: Likewise.
33636         * math/s_catanh.c: Likewise.
33637         * math/s_catanhf.c: Likewise.
33638         * math/s_catanhl.c: Likewise.
33639         * math/s_catanl.c: Likewise.
33640         * math/s_ccosh.c: Likewise.
33641         * math/s_ccoshf.c: Likewise.
33642         * math/s_ccoshl.c: Likewise.
33643         * math/s_cexp.c: Likewise.
33644         * math/s_cexpf.c: Likewise.
33645         * math/s_cexpl.c: Likewise.
33646         * math/s_clog.c: Likewise.
33647         * math/s_clog10.c: Likewise.
33648         * math/s_clog10f.c: Likewise.
33649         * math/s_clog10l.c: Likewise.
33650         * math/s_clogf.c: Likewise.
33651         * math/s_clogl.c: Likewise.
33652         * math/s_csin.c: Likewise.
33653         * math/s_csinf.c: Likewise.
33654         * math/s_csinh.c: Likewise.
33655         * math/s_csinhf.c: Likewise.
33656         * math/s_csinhl.c: Likewise.
33657         * math/s_csinl.c: Likewise.
33658         * math/s_csqrt.c: Likewise.
33659         * math/s_csqrtf.c: Likewise.
33660         * math/s_csqrtl.c: Likewise.
33661         * math/s_ctan.c: Likewise.
33662         * math/s_ctanf.c: Likewise.
33663         * math/s_ctanh.c: Likewise.
33664         * math/s_ctanhf.c: Likewise.
33665         * math/s_ctanhl.c: Likewise.
33666         * math/s_ctanl.c: Likewise.
33667         * math/s_ldexp.c: Likewise.
33668         * math/s_ldexpf.c: Likewise.
33669         * math/s_ldexpl.c: Likewise.
33670         * math/s_significand.c: Likewise.
33671         * math/s_significandf.c: Likewise.
33672         * math/s_significandl.c: Likewise.
33673         * math/w_acos.c: Likewise.
33674         * math/w_acosf.c: Likewise.
33675         * math/w_acosh.c: Likewise.
33676         * math/w_acoshf.c: Likewise.
33677         * math/w_acoshl.c: Likewise.
33678         * math/w_acosl.c: Likewise.
33679         * math/w_asin.c: Likewise.
33680         * math/w_asinf.c: Likewise.
33681         * math/w_asinl.c: Likewise.
33682         * math/w_atan2.c: Likewise.
33683         * math/w_atan2f.c: Likewise.
33684         * math/w_atan2l.c: Likewise.
33685         * math/w_atanh.c: Likewise.
33686         * math/w_atanhf.c: Likewise.
33687         * math/w_atanhl.c: Likewise.
33688         * math/w_cosh.c: Likewise.
33689         * math/w_coshf.c: Likewise.
33690         * math/w_coshl.c: Likewise.
33691         * math/w_dremf.c: Likewise.
33692         * math/w_exp10.c: Likewise.
33693         * math/w_exp10f.c: Likewise.
33694         * math/w_exp10l.c: Likewise.
33695         * math/w_exp2.c: Likewise.
33696         * math/w_exp2f.c: Likewise.
33697         * math/w_fmod.c: Likewise.
33698         * math/w_fmodf.c: Likewise.
33699         * math/w_fmodl.c: Likewise.
33700         * math/w_hypot.c: Likewise.
33701         * math/w_hypotf.c: Likewise.
33702         * math/w_hypotl.c: Likewise.
33703         * math/w_j0.c: Likewise.
33704         * math/w_j0f.c: Likewise.
33705         * math/w_j0l.c: Likewise.
33706         * math/w_j1.c: Likewise.
33707         * math/w_j1f.c: Likewise.
33708         * math/w_j1l.c: Likewise.
33709         * math/w_jn.c: Likewise.
33710         * math/w_jnf.c: Likewise.
33711         * math/w_jnl.c: Likewise.
33712         * math/w_lgamma.c: Likewise.
33713         * math/w_lgamma_r.c: Likewise.
33714         * math/w_lgammaf.c: Likewise.
33715         * math/w_lgammaf_r.c: Likewise.
33716         * math/w_lgammal.c: Likewise.
33717         * math/w_lgammal_r.c: Likewise.
33718         * math/w_log.c: Likewise.
33719         * math/w_log10.c: Likewise.
33720         * math/w_log10f.c: Likewise.
33721         * math/w_log10l.c: Likewise.
33722         * math/w_log2.c: Likewise.
33723         * math/w_log2f.c: Likewise.
33724         * math/w_log2l.c: Likewise.
33725         * math/w_logf.c: Likewise.
33726         * math/w_logl.c: Likewise.
33727         * math/w_pow.c: Likewise.
33728         * math/w_powf.c: Likewise.
33729         * math/w_powl.c: Likewise.
33730         * math/w_remainder.c: Likewise.
33731         * math/w_remainderf.c: Likewise.
33732         * math/w_remainderl.c: Likewise.
33733         * math/w_scalb.c: Likewise.
33734         * math/w_scalbf.c: Likewise.
33735         * math/w_scalbl.c: Likewise.
33736         * math/w_sinh.c: Likewise.
33737         * math/w_sinhf.c: Likewise.
33738         * math/w_sinhl.c: Likewise.
33739         * math/w_sqrt.c: Likewise.
33740         * math/w_sqrtf.c: Likewise.
33741         * math/w_sqrtl.c: Likewise.
33742         * math/w_tgamma.c: Likewise.
33743         * math/w_tgammaf.c: Likewise.
33744         * math/w_tgammal.c: Likewise.
33745
33746         * po/ja.po: Update from translation team.
33747
33748 2011-09-29  Andreas Jaeger  <aj@suse.de>
33749
33750         [BZ #13179]
33751         * sunrpc/netname.c (netname2host): Fix logic.
33752
33753         [BZ #6779]
33754         [BZ #6783]
33755         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
33756         correctly.
33757         * math/w_remainder.c (__remainder): Likewise.
33758         * math/w_remainderf.c (__remainderf): Likewise.
33759         * math/libm-test.inc (remainder_test): Add test cases.
33760
33761 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33762
33763         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
33764         sdiv_qrnnd.
33765
33766 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
33767
33768         * string/test-memcmp.c: Avoid unncessary #defines.
33769         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
33770
33771 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33772
33773         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
33774         Use new sse2 version for core i3 - i7 as it's faster
33775         than sse42 version.
33776         (bit_Prefer_PMINUB_for_stringop): New.
33777         * sysdeps/x86_64/rawmemchr.S: Update.
33778         Replace with faster SSE2 version.
33779         * sysdeps/x86_64/memrchr.S: New file.
33780         * sysdeps/x86_64/memchr.S: Update.
33781         Replace with faster SSE2 version.
33782
33783 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
33784
33785         * elf/dl-load.c (lose): Add cast to avoid warning.
33786
33787 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
33788
33789         * po/ca.po: Update from translation team.
33790
33791         * inet/getnetgrent_r.c: Hook up nscd.
33792         * nscd/Makefile (routines): Add nscd_netgroup.
33793         (nscd-modules): Add netgroupcache.
33794         (CFLAGS-netgroupcache.c): Define.
33795         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
33796         (cache_search): Add const to second parameter.
33797         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
33798         INNETGR.
33799         (dbs): Add netgrdb entry.
33800         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
33801         (verify_persistent_db): Handle netgrdb.
33802         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
33803         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
33804         GETFDNETGR.
33805         (netgroup_response_header): Define.
33806         (innetgroup_response_header): Define.
33807         (datahead): Add netgroup_response_header and innetgroup_response_header
33808         elements.
33809         * nscd/nscd.conf: Add entries for netgroup cache.
33810         * nscd/nscd.h (dbtype): Add netgrdb.
33811         (_PATH_NSCD_NETGROUP_DB): Define.
33812         (netgroup_iov_disabled): Declare.
33813         (xmalloc, xcalloc, xrealloc): Move declarations here.
33814         (cache_search): Adjust prototype.
33815         Add netgroup-related prototypes.
33816         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
33817         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
33818         (__nscd_innetgr): Declare.
33819         * nscd/selinux.c (perms): Use access_vector_t as element type and
33820         add netgroup-related initializers.
33821         * nscd/netgroupcache.c: New file.
33822         * nscd/nscd_netgroup.c: New file.
33823         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
33824         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
33825         For four parameters use innetgr.
33826         * nss/nss_files/files-init.c: Add definition and callback for netgr.
33827         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
33828         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
33829         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
33830
33831         * nscd/connections.c (register_traced_file): Don't register file
33832         for disabled databases.
33833
33834 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
33835
33836         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
33837
33838         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
33839         from tree and freeing node.
33840
33841 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
33842
33843         * nss/nsswitch.c (__nss_database_lookup): Handle
33844         nss_parse_service_list out of memory case.
33845
33846 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
33847
33848         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
33849         out of memory case.
33850
33851 2011-10-04  Andreas Schwab  <schwab@redhat.com>
33852
33853         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
33854         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
33855         pass it down.
33856         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
33857         elf_machine_rela, elf_machine_lazy_rel.
33858         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
33859         (ELF_DYNAMIC_DO_REL): Likewise.
33860         (ELF_DYNAMIC_DO_RELA): Likewise.
33861         (ELF_DYNAMIC_RELOCATE): Likewise.
33862         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
33863         to ELF_DYNAMIC_DO_REL.
33864         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
33865         (dl_main): In trace mode always set __RTLD_NOIFUNC.
33866         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
33867         elf_machine_rela.
33868         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
33869         skip_ifunc, don't call ifunc function if non-zero.
33870         (elf_machine_rela): Likewise.
33871         (elf_machine_lazy_rel): Likewise.
33872         (elf_machine_lazy_rela): Likewise.
33873         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
33874         (elf_machine_lazy_rel): Likewise.
33875         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
33876         Likewise.
33877         (elf_machine_lazy_rel): Likewise.
33878         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33879         Likewise.
33880         (elf_machine_lazy_rel): Likewise.
33881         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
33882         (elf_machine_lazy_rel): Likewise.
33883         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
33884         (elf_machine_lazy_rel): Likewise.
33885         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
33886         (elf_machine_lazy_rel): Likewise.
33887         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
33888         (elf_machine_lazy_rel): Likewise.
33889         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
33890         (elf_machine_lazy_rel): Likewise.
33891         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
33892         (elf_machine_lazy_rel): Likewise.
33893
33894 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
33895
33896         * nss/nss_files/files-init.c (_nss_files_init): Use static
33897         initialization for all the *_traced_file variables.
33898
33899 2011-09-28  Andreas Schwab  <schwab@redhat.com>
33900
33901         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33902
33903 2011-09-27  Roland McGrath  <roland@hack.frob.com>
33904
33905         [BZ #13226]
33906         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
33907
33908 2011-09-27  Andreas Schwab  <schwab@redhat.com>
33909
33910         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
33911         Reread the line before reparsing it.
33912
33913 2011-09-26  Andreas Schwab  <schwab@redhat.com>
33914
33915         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
33916
33917 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
33918             Maxim Kuvyrkov  <maxim@codesourcery.com>
33919             Joseph Myers  <joseph@codesourcery.com>
33920
33921         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
33922         if needed for __stack_chk_guard.
33923
33924 2011-09-19  Roland McGrath  <roland@hack.frob.com>
33925
33926         * sysdeps/posix/spawni.c (script_execute): Always define it.
33927         It will be optimized away if unused.
33928         (maybe_script_execute): New function.
33929         (__spawni): Call it.
33930
33931         * Makerules: Don't include tls.make.
33932         (config-tls): Always set to thread.
33933         * tls.make.c: File removed.
33934
33935 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
33936
33937         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
33938         * config.make.in (CPPFLAGS-config): New substituted variable.
33939
33940 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
33941
33942         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
33943
33944         [BZ #13192]
33945         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
33946         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
33947
33948 2011-09-15  Roland McGrath  <roland@hack.frob.com>
33949
33950         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
33951         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
33952         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
33953         (CALL_FAIL): Likewise.
33954         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
33955         (CALL_FAIL): Macro removed.
33956         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
33957
33958 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
33959
33960         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
33961         for __FINITE_MATH_ONLY__ == 1.
33962
33963 2011-09-15  Andreas Schwab  <schwab@redhat.com>
33964
33965         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
33966         __ieee754_sqrt instead of sqrt.
33967         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
33968         __ieee754_sqrtf instead of sqrtf.
33969         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
33970         __floorf instead of floorf.
33971         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
33972         __floorf, __truncf instead of floorf, truncf.
33973
33974 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
33975
33976         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
33977
33978         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
33979         __extern_always_inline.
33980         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
33981         32-bit.
33982
33983 2011-09-14  Andreas Schwab  <schwab@redhat.com>
33984
33985         * elf/rtld.c (dl_main): Also relocate in dependency order when
33986         doing symbol dependency testing.
33987
33988 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
33989
33990         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33991         Always define `refsym'.
33992
33993 2011-09-13  Andreas Schwab  <schwab@redhat.com>
33994
33995         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
33996         (__FD_ELT): Renamed from __FDELT.
33997         * misc/bits/select2.h (__FD_ELT): Likewise.
33998         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
33999         __FD_MASK instead of __FDELT, __FDMASK.
34000         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34001         Likewise.
34002         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34003         Likewise.
34004
34005         * elf/Makefile (gen-ldd): Fix pattern.
34006
34007         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
34008         (init_tls): Likewise.
34009
34010 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
34011
34012         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
34013
34014 2011-09-12  Andreas Schwab  <schwab@redhat.com>
34015
34016         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
34017         `struct cmsghdr *' instead of `void *'.
34018         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
34019         Likewise.
34020
34021 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
34022
34023         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
34024         if non-absolute.
34025         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
34026         ldd_rewrite_script.
34027
34028 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
34029
34030         * configure.in: Remove --with-tls option.
34031         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
34032         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
34033         out in case it is missing.
34034         * sysdeps/ia64/elf/configure.in: Likewise.
34035         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
34036         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
34037         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
34038         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
34039         * sysdeps/sh/elf/configure.in: Likewise.
34040         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
34041         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
34042         * sysdeps/x86_64/elf/configure.in: Likewise.
34043         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
34044         * sysdeps/mach/hurd/tls.h: Likewise.
34045
34046         [BZ #13067]
34047         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
34048
34049         [BZ #13090]
34050         * configure.in: Fix use of AC_INIT.
34051
34052         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
34053
34054 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
34055
34056         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
34057         __set_errno.
34058         * malloc/hooks.c: Likewise.
34059
34060         [BZ #11929]
34061         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
34062         variables statically.
34063         (narenas): Initialize.
34064         (list_lock): Initialize.
34065         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
34066         initializtion of main_arena and list_lock.  Small cleanups.
34067         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
34068         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
34069         Add initializers to main_arena and mp_.
34070         (malloc_state): Remove pagesize member.  Change all users to use
34071         GLRO(dl_pagesize).
34072
34073         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
34074         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
34075         is always initialized.
34076
34077         * malloc/malloc.c: Removed unused configurations and dead code.
34078         * malloc/arena.c: Likewise.
34079         * malloc/hooks.c: Likewise.
34080         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
34081
34082         * include/tls.h: Removed.  USE___THREAD must always be defined.
34083         * bits/libc-tsd.h: Don't handle !USE___THREAD.
34084         * elf/dl-libc.c: Likewise.
34085         * elf/dl-tsd.c: Likewise.
34086         * include/errno.h: Likewise.
34087         * include/netdb.h: Likewise.
34088         * include/resolv.h: Likewise.
34089         * inet/herrno-loc.c: Likewise.
34090         * inet/herrno.c: Likewise.
34091         * malloc/arena.c: Likewise.
34092         * malloc/hooks.c: Likewise.
34093         * malloc/malloc.c: Likewise.
34094         * resolv/res-state.c: Likewise.
34095         * resolv/res_libc.c: Likewise.
34096         * sysdeps/i386/dl-machine.h: Likewise.
34097         * sysdeps/ia64/dl-machine.h: Likewise.
34098         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
34099         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
34100         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
34101         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
34102         * sysdeps/sh/dl-machine.h: Likewise.
34103         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
34104         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
34105         * sysdeps/unix/i386/sysdep.S: Likewise.
34106         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
34107         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
34108         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
34109         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
34110         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
34111         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
34112         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
34113         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
34114         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34115         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
34116         * sysdeps/unix/x86_64/sysdep.S: Likewise.
34117         * sysdeps/x86_64/dl-machine.h: Likewise.
34118         * tls.make.c: Likewise.
34119
34120         * configure.in: Remove --with-__thread option.  Make tests for
34121         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
34122         tls_model attribute fail if no support is available.  Remove
34123         USE_IN_LIBIO.
34124         * Makeconfig: Adjust for dropped configure option.  All features are
34125         now mandatory.
34126         * Makerules: Likewise.
34127         * Versions.def: Likewise.
34128         * argp/argp-fmtstream.c: Likewise.
34129         * argp/argp-fmtstream.h: Likewise.
34130         * argp/argp-help.c: Likewise.
34131         * assert/assert.c: Likewise.
34132         * config.h.in: Likewise.
34133         * config.make.in: Likewise.
34134         * configure: Likewise.
34135         * configure.in: Likewise.
34136         * csu/Versions: Likewise.
34137         * csu/init.c: Likewise.
34138         * elf/tst-audit2.c: Likewise.
34139         * elf/tst-tls10.c: Likewise.
34140         * elf/tst-tls10.h: Likewise.
34141         * elf/tst-tls11.c: Likewise.
34142         * elf/tst-tls12.c: Likewise.
34143         * elf/tst-tls14.c: Likewise.
34144         * elf/tst-tlsmod11.c: Likewise.
34145         * elf/tst-tlsmod12.c: Likewise.
34146         * elf/tst-tlsmod13.c: Likewise.
34147         * elf/tst-tlsmod13a.c: Likewise.
34148         * elf/tst-tlsmod14a.c: Likewise.
34149         * elf/tst-tlsmod15b.c: Likewise.
34150         * elf/tst-tlsmod16a.c: Likewise.
34151         * elf/tst-tlsmod16b.c: Likewise.
34152         * elf/tst-tlsmod7.c: Likewise.
34153         * elf/tst-tlsmod8.c: Likewise.
34154         * elf/tst-tlsmod9.c: Likewise.
34155         * gmon/gmon.c: Likewise.
34156         * grp/fgetgrent_r.c: Likewise.
34157         * grp/putgrent.c: Likewise.
34158         * hurd/fopenport.c: Likewise.
34159         * include/libc-symbols.h: Likewise.
34160         * include/tls.h: Likewise.
34161         * intl/gettextP.h: Likewise.
34162         * intl/loadinfo.h: Likewise.
34163         * locale/global-locale.c: Likewise.
34164         * locale/localeinfo.h: Likewise.
34165         * mach/devstream.c: Likewise.
34166         * malloc/arena.c: Likewise.
34167         * malloc/set-freeres.c: Likewise.
34168         * misc/err.c: Likewise.
34169         * misc/getttyent.c: Likewise.
34170         * misc/mntent_r.c: Likewise.
34171         * posix/getopt.c: Likewise.
34172         * posix/wordexp.c: Likewise.
34173         * pwd/fgetpwent_r.c: Likewise.
34174         * resolv/Versions: Likewise.
34175         * resolv/res_hconf.c: Likewise.
34176         * shadow/fgetspent_r.c: Likewise.
34177         * shadow/putspent.c: Likewise.
34178         * stdio-common/printf_fphex.c: Likewise.
34179         * stdio-common/tmpfile.c: Likewise.
34180         * stdlib/abort.c: Likewise.
34181         * stdlib/fmtmsg.c: Likewise.
34182         * sunrpc/auth_unix.c: Likewise.
34183         * sunrpc/clnt_perr.c: Likewise.
34184         * sunrpc/clnt_tcp.c: Likewise.
34185         * sunrpc/clnt_udp.c: Likewise.
34186         * sunrpc/clnt_unix.c: Likewise.
34187         * sunrpc/openchild.c: Likewise.
34188         * sunrpc/svc_simple.c: Likewise.
34189         * sunrpc/svc_tcp.c: Likewise.
34190         * sunrpc/svc_udp.c: Likewise.
34191         * sunrpc/svc_unix.c: Likewise.
34192         * sunrpc/xdr.c: Likewise.
34193         * sunrpc/xdr_array.c: Likewise.
34194         * sunrpc/xdr_rec.c: Likewise.
34195         * sunrpc/xdr_ref.c: Likewise.
34196         * sunrpc/xdr_stdio.c: Likewise.
34197
34198 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34199
34200         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34201
34202 2011-07-03  Andreas Jaeger  <aj@suse.de>
34203
34204         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
34205         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
34206         regenerate with gen-libm-tests.pl.
34207
34208 2010-05-12  Petr Baudis  <pasky@suse.cz>
34209
34210         [BZ #11589]
34211         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
34212         around j0() zero points by switching to j1().
34213         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
34214         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
34215         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
34216         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
34217
34218 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34219
34220         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
34221         instead of 0.
34222         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
34223         instead of 0.
34224         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
34225         Patch in part by Pavel Roskin <proski@gnu.org>.
34226
34227         [BZ #13138]
34228         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
34229         realloc.
34230         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
34231         Free memory block if necessary.
34232
34233         [BZ #12847]
34234         * libio/genops.c (INTDEF): For string streams the _lock pointer can
34235         be NULL.  Don't lock in this case.
34236
34237 2011-09-09  Roland McGrath  <roland@hack.frob.com>
34238
34239         * elf/elf.h (ELFOSABI_GNU): New macro.
34240         (ELFOSABI_LINUX): Define to that.
34241
34242 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
34243
34244         * string/strncat.c (strncat): Undef the symbol in case it has been
34245         defined in bits/string.h.
34246
34247 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34248
34249         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
34250
34251         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
34252         link map.
34253
34254 2011-08-17  Andreas Jaeger  <aj@suse.de>
34255
34256         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
34257
34258 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
34259             Ian Lance Taylor  <iant@google.com>
34260
34261         * math/libm-test.inc (lround_test): New testcase.
34262         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
34263
34264 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
34265
34266         * Makefile: Remove support for automatic cvs check-ins.
34267         * Makerules: Likewise.
34268         * config.make.in: Likewise.
34269         * configure.in: Likewise.
34270         * intl/Makefile: Likewise.
34271         * locale/Makefile: Likewise.
34272         * po/Makefile: Likewise.
34273         * posix/Makefile: Likewise.
34274         * sysdeps/gnu/Makefile: Likewise.
34275         * sysdeps/mach/hurd/Makefile: Likewise.
34276         * sysdeps/sparc/sparc32/Makefile: Likewise.
34277
34278         [BZ #13118]
34279         * posix/Makefile (bug-regex32-ENV): Define.
34280         Patch by John Stanley <jpsinthemix@verizon.net>.
34281
34282         * misc/Makefile (headers): Add bits/select2.h.
34283         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
34284         * misc/bits/select2.h: New file.
34285         * include/bits/select2.h: New file.
34286         * debug/Makefile (routines): Add fdelt_chk.
34287         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
34288         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
34289         FD_ISSET.
34290         * debug/fdelt_chk.c: New file.
34291
34292         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
34293         * wcsmbs/test-wmemcmp.c: Likewise.
34294         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
34295         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
34296
34297 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34298
34299         * string/Makefile (strop-tests): Add memcmp.
34300         * string/test-wmemcmp.c: New file.
34301         * string/test-memcmp.c: Add wmemcmp support.
34302
34303 2011-09-08  Roland McGrath  <roland@hack.frob.com>
34304
34305         [BZ #13153]
34306         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
34307         2011-07-19 change.
34308
34309         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
34310         garbage value in a __mach_port_mod_refs call in the cases of the
34311         task-self and thread-self ports.
34312
34313 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34314
34315         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
34316
34317 2011-09-08  Andreas Schwab  <schwab@redhat.com>
34318
34319         * elf/dl-load.c (lose): Check for non-null L.
34320
34321 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34322
34323         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
34324
34325         * elf/dl-libc.c (dlerror_run): Pass back error code from
34326         dl_catch_error.
34327
34328         [BZ #13123]
34329         * elf/dl-load.c (lose): Free l_origin if it is valid.
34330
34331         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
34332         names.
34333         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
34334         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34335         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34336         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34337         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
34338         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
34339
34340 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34341
34342         * sysdeps/powerpc/fpu/e_hypot.c: New file.
34343         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
34344         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
34345         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
34346         * sysdeps/powerpc/fpu/k_cosf.c: New file.
34347         * sysdeps/powerpc/fpu/k_sinf.c: New file.
34348         * sysdeps/powerpc/fpu/s_cosf.c: New file.
34349         * sysdeps/powerpc/fpu/s_sinf.c: New file.
34350         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
34351         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
34352
34353 2011-08-15  Alan Modra  <amodra@gmail.com>
34354
34355         [BZ #13092]
34356         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
34357         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
34358         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
34359         ppc_mcount to static-only-routines.
34360         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
34361         __mcount_internal.
34362         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
34363         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
34364
34365 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
34366
34367         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
34368         for finite and infinity parameters.
34369
34370 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
34371
34372         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
34373         and add nop instructions for throughput optimization.
34374         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
34375
34376 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
34377
34378         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
34379         aligned copy for power7 with vector-scalar instructions.
34380         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
34381
34382 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
34383
34384         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
34385         AVX check.
34386
34387 2011-09-07  Andreas Schwab  <schwab@redhat.com>
34388
34389         [BZ #13144]
34390         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
34391         last change.
34392
34393 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34394
34395         * sysdeps/unix/sysv/linux/x86_64/init-first.c
34396         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
34397         syscall wrapper around clock_gettime in __vdso_clock_gettime.
34398         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
34399         clock_gettime.
34400
34401 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34402
34403         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
34404         Forgot to demangle the pointer.
34405
34406         * sysdeps/i386/sysdep.h: Define atom_text_section.
34407         * sysdeps/x86_64/sysdep.h: Likewise.
34408         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
34409         section with atom_text_section.
34410         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34411         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34412         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
34413         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34414         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
34415
34416         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
34417         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
34418         already be defined.  Change to take two parameters and don't assign
34419         result to variable.  Adjust all users.
34420         Define INTERNAL_GETTIME if not already defined.
34421         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
34422         call.
34423         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
34424         HAVE_CLOCK_GETTIME_VSYSCALL.
34425         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
34426
34427         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
34428         gettimeofday vsyscall, just use time.
34429
34430 2011-09-06  Andreas Schwab  <schwab@redhat.com>
34431
34432         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
34433         <errno.h>.
34434
34435 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34436
34437         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
34438         syscall on x86-64.
34439         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
34440         syscall.
34441         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
34442         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
34443         syscall if possible.
34444
34445 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34446
34447         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
34448         e_ident.  Don't pass to find_mapsXX.
34449         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
34450
34451 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34452
34453         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34454         strchr-sse2-no-bsf strrchr-sse2-no-bsf
34455         * sysdeps/x86_64/multiarch/strchr.S: Update.
34456         Check bit_slow_BSF bit.
34457         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
34458         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
34459         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
34460
34461 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34462
34463         [BZ #13134]
34464         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
34465         before glibc 2.15.
34466         (tryshell): Define.
34467         (__spawni): Change last parameter to be flag.  Test
34468         SPAWN_XFLAGS_USE_PATH flag to use path or not.
34469         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
34470         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
34471         * posix/spawni.c: Likewise.
34472         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
34473         * posix/spawnp.c: Likewise.  Change normal version to use
34474         SPAWN_XFLAGS_USE_PATH.
34475         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
34476         SPAWN_XFLAGS_TRY_SHELL.
34477
34478         [BZ #13150]
34479         * posix/glob.h: Remove gcc 1.x support.
34480
34481         [BZ #13068]
34482         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
34483
34484 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34485
34486         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34487         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
34488         strrchr-sse2-bsf
34489         * sysdeps/i386/i686/multiarch/strchr.S: New file.
34490         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
34491         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
34492         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
34493         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
34494         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
34495
34496 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34497
34498         * sysdeps/x86_64/wcscmp.S: New file.
34499
34500         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
34501         wcscmp-c wcscmp-sse2
34502         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
34503         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
34504         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
34505         * wcsmbs/wcscmp.c: Allow renaming.
34506
34507 2011-09-05  David S. Miller  <davem@davemloft.net>
34508
34509         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
34510         stack slot, rather than the struct return pointer slot.
34511         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
34512         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
34513         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
34514         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
34515
34516 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34517
34518         * po/ja.po: Update from translation team.
34519
34520         [BZ #13144]
34521         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
34522         kernel in 64-bit binaries.
34523
34524 2011-09-01  David S. Miller  <davem@davemloft.net>
34525
34526         * elf/elf.h (HWCAP_SPARC_*): Move to..
34527         * sysdeps/sparc/sysdep.h: this new file and add new values.
34528         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
34529         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
34530         _DL_HWCAP_COUNT to 24.
34531         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
34532         entries.
34533         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
34534         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
34535         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
34536         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
34537         instead of magic constants.
34538         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
34539
34540 2011-08-31  David S. Miller  <davem@davemloft.net>
34541
34542         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
34543         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
34544         Reimplement to do errno handling inline.
34545         (SYSCALL_ERROR_HANDLER): New macro.
34546         (__SYSCALL_STRING): Do not do errno handling in asm.
34547         (__CLONE_SYSCALL_STRING): Delete.
34548         (__INTERNAL_SYSCALL_STRING): Delete.
34549         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
34550         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
34551         (PSEUDO): Reimplement to do errno handling inline.
34552         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
34553         (SYSCALL_ERROR_HANDLER): New macro.
34554         (__SYSCALL_STRING): Do not do errno handling in asm.
34555         (__CLONE_SYSCALL_STRING): Delete.
34556         (__INTERNAL_SYSCALL_STRING): Delete.
34557         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
34558         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
34559         i386.
34560         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
34561         (inline_syscall*): Add 'err' argument.
34562         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
34563         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
34564         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
34565         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
34566
34567         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
34568         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34569
34570 2011-08-30  Andreas Schwab  <schwab@redhat.com>
34571
34572         * elf/rtld.c (dl_main): Relocate objects in dependency order.
34573
34574 2011-08-29  Jiri Olsa <jolsa@redhat.com>
34575
34576         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
34577         directive.
34578
34579 2011-08-24  David S. Miller  <davem@davemloft.net>
34580
34581         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
34582
34583 2011-08-24  Andreas Schwab  <schwab@redhat.com>
34584
34585         * elf/Makefile: Add rules to build and run unload8 test.
34586         * elf/unload8.c: New file.
34587         * elf/unload8mod1.c: New file.
34588         * elf/unload8mod1x.c: New file.
34589         * elf/unload8mod2.c: New file.
34590         * elf/unload8mod3.c: New file.
34591
34592         * elf/dl-close.c (_dl_close_worker): Reset private search list if
34593         it wasn't used.
34594
34595 2011-08-23  David S. Miller  <davem@davemloft.net>
34596
34597         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
34598         subtract stack bias.
34599         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
34600         %sp not %fp in calculations.
34601         (_JMPBUF_UNWINDS_ADJ): Likewise.
34602
34603         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
34604         (aio_suspend): Call it to force an exception region around the
34605         AIO_MISC_WAIT() invocation.
34606
34607 2011-08-23  Andreas Schwab  <schwab@redhat.com>
34608
34609         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
34610         backslash.
34611
34612 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
34613
34614         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
34615         protection macro.
34616         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
34617         and <dl-machine.h>.
34618         (Elf64_FuncDesc): Remove.
34619
34620 2011-08-22  David S. Miller  <davem@davemloft.net>
34621
34622         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
34623         sigaltstack check, add missing cfi directives.
34624         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
34625         missing cfi directives, and sigaltstack handling.
34626
34627 2011-08-16  Andreas Schwab  <schwab@redhat.com>
34628
34629         [BZ #11724]
34630         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
34631         object is seen twice.
34632         * elf/dl-fini.c (_dl_sort_fini): Likewise.
34633
34634         * elf/Makefile (distribute): Add tst-initorder2.c.
34635         (tests): Add tst-initorder2.
34636         (modules-names): Add tst-initorder2a tst-initorder2b
34637         tst-initorder2c tst-initorder2d.  Add rules to build them.
34638         ($(objpfx)tst-initorder2.out): New rule.
34639         * elf/tst-initorder2.c: New file.
34640         * elf/tst-initorder2.exp: New file.
34641
34642 2011-08-22  Andreas Schwab  <schwab@redhat.com>
34643
34644         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
34645
34646         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
34647         dependencies back to end of function.
34648
34649         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
34650         $(elfobjdir)/ld.so.
34651
34652 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
34653
34654         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
34655         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
34656         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
34657         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
34658         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
34659         of __vdso_gettimeofday.
34660         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
34661         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
34662         attribute_hidden.
34663         (_libc_vdso_platform_setup): Remove initialization of
34664         __vdso_gettimeofday and __vdso_time.
34665
34666 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34667
34668         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
34669         and fgetc_unlocked.
34670         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
34671         getc_unlocked.
34672
34673         * elf/dl-open.c (add_to_global): Report additions to the global scope
34674         for LD_DEBUG=scopes.
34675         (dl_open_worker): Also print scope of newly loaded dependencies.
34676         (_dl_show_scope): Indicate if there is no scope.
34677
34678         [BZ #13114]
34679         * stdio-common/Makefile (tests): Add bug24.
34680         * stdio-common/bug24.c: New file.
34681
34682 2011-08-19  Andreas Jaeger  <aj@suse.de>
34683
34684         [BZ #13114]
34685         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
34686         non-existant file when using close-on-exec mode.
34687
34688 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34689
34690         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
34691         the very first instruction.
34692
34693         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
34694         the CFI state in the end.
34695         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
34696         inclusion of dl-trampoline.h.
34697         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
34698
34699 2011-08-19  Andreas Schwab  <schwab@redhat.com>
34700
34701         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
34702         expectations for long double.
34703
34704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
34705         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
34706
34707 2011-08-14  David S. Miller  <davem@davemloft.net>
34708
34709         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
34710         artificual limit depends upon the system page size.
34711
34712 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34713
34714         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
34715         * resolv/Makefile: Define CFLAGS-libresolv.
34716
34717 2011-08-17  Andreas Schwab  <schwab@redhat.com>
34718
34719         * nss/makedb.c (compute_tables): Make variables used in nested
34720         function static.
34721
34722 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34723
34724         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
34725         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
34726         if buffer was too small.
34727
34728         * elf/pldd.c (main): Attach to all threads in the process.
34729         Rewrite /proc handling to use *at functions.
34730
34731 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
34732
34733         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
34734         specifies first scope to show.
34735         (dl_open_worker): Update callers.  Move printing scope of new
34736         object to before the relocation.
34737         * elf/rtld.c (dl_main): Update _dl_show_scope call.
34738         * sysdeps/generic/ldsodefs.h: Update declaration.
34739
34740         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
34741         string for the scope number.
34742
34743 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
34744
34745         * nscd/servicescache.c (cache_addserv): Make sure written is always
34746         initialized.
34747
34748 2011-08-14  Roland McGrath  <roland@hack.frob.com>
34749
34750         * sysdeps/i386/i486/bits/atomic.h
34751         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
34752         statement expression, so as to suppress "set but not used" warning.
34753         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
34754
34755         * string/strncat.c (STRNCAT): Use prototype definition.
34756
34757         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
34758         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
34759         -Iprograms here.
34760         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
34761         (localedef-modules): Add localedef.
34762         (locale-modules): Add locale.
34763
34764         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
34765         * elf/rtld.c (dl_main): Invert order of assignment in last change,
34766         to avoid a warning.
34767
34768 2011-08-14  David S. Miller  <davem@davemloft.net>
34769
34770         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
34771         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
34772
34773 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
34774
34775         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
34776         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
34777         * elf/rtld.c (dl_main): Set l_name of vDSO.
34778         Call _dl_show_scope when DL_DEBUG_SCOPES.
34779         (process_dl_debug): Recognize scopes flag and also set it for all.
34780         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
34781         Declare _dl_show_scope.
34782
34783         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
34784         (do_dlopen): Pass caller_dlopen to dl_open.
34785         (__libc_dlopen_mode): Initialize caller_dlopen.
34786
34787         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
34788         of libc.  Make tolower call locale-independent.  Optimize a bit by
34789         using isdigit instead of isalnum.
34790         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
34791
34792 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
34793
34794         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
34795         was a dependency or dynamically loaded.
34796
34797 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
34798
34799         * intl/l10nflist.c: Allow architecture-specific pop function.
34800         * sysdeps/x86_64/l10nflist.c: New file.
34801
34802         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
34803         classification.
34804
34805 2011-08-10  Andreas Schwab  <schwab@redhat.com>
34806
34807         * include/dirent.h: Add libc_hidden_proto for scandirat and
34808         scandirat64.  Don't declare __scandirat64.
34809         * dirent/scandirat.c: Add libc_hidden_def.
34810         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
34811         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
34812
34813 2011-08-10  David S. Miller  <davem@davemloft.net>
34814
34815         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
34816         enum.
34817         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34818         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34819         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34820
34821 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
34822
34823         * Versions.def [libc]: Add GLIBC_2.15.
34824         * dirent/Makefile (routines): Add scandirat and scandirat64.
34825         * dirent/Versions [libc]: Export scandirat and scandirat64 for
34826         GLIBC_2.15.
34827         * dirent/dirent.h: Declare scandirat and scandirat64.
34828         * dirent/scandirat.c: New file.
34829         * dirent/scandirat64.c: New file.
34830         * sysdeps/wordsize-64/scandirat.c: New file.
34831         * sysdeps/wordsize-64/scandirat64.c: New file.
34832         * dirent/opendir.c: Define opendirat.
34833         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
34834         using scandirat.
34835         * dirent/scandir64.c: Adjust for scandir.c change.
34836         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
34837         __scandirat64, and __scandir_cancel_handler.
34838         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
34839         additional parameter and use openat instead of open (outside of ld.so).
34840         Add new __opendir as wrapper around __opendirat.
34841         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
34842         here without requiring old scandirat implementation.
34843
34844 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
34845
34846         * dirent/scandir.c (cancel_handler): Renamed to
34847         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
34848         defined.  Adjust users.
34849         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
34850         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
34851
34852 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
34853
34854         * string/test-string.h (IMPL): Use __STRING to expand name and then
34855         stringify it.
34856
34857         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
34858         of cleanups.
34859
34860 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34861
34862         * string/Makefile: Update.
34863         (strop-tests): Append strncat.
34864         * string/test-wcscmp.c: New file.
34865         New comprehensive test for wcscmp.
34866         * string/test-strcmp.c: Update.
34867         (WIDE): New define.
34868
34869 2011-07-22  Andreas Schwab  <schwab@redhat.com>
34870
34871         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
34872         line.
34873
34874 2011-07-26  Andreas Schwab  <schwab@redhat.com>
34875
34876         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
34877         encoding to ACE if AI_IDN.
34878
34879 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
34880
34881         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
34882         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
34883
34884 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34885
34886         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
34887         Fix overflow bug in strncat.
34888         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
34889
34890         * string/test-strncat.c: Update.
34891         Add new tests for checking overflow bugs.
34892
34893 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34894
34895         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34896         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
34897         * sysdeps/i386/i686/multiarch/strcat.S: New file.
34898         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
34899         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
34900         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
34901         * sysdeps/i386/i686/multiarch/strncat.S: New file.
34902         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
34903         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
34904
34905         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
34906         (USE_AS_STRCAT): Define.
34907         Add strcat and strncat support.
34908         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34909
34910 2011-07-25  Andreas Schwab  <schwab@redhat.com>
34911
34912         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
34913         __n bigger than INT_MAX+1.
34914         (__strncmp_g): Likewise.
34915
34916 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
34917
34918         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
34919         * libio/stido.h: Likewise.
34920
34921         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
34922         (AF_NFC): Define.
34923         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
34924         (AF_NFC): Define.
34925
34926         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
34927         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34928         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34929         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34930         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34931
34932         [BZ #13021]
34933         * scripts/test-installation.pl: Don't expect libnss_test1 to be
34934         installed.
34935
34936         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
34937         typo.
34938         (_dl_x86_64_save_sse): Likewise.
34939
34940 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
34941
34942         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
34943         OSXSAVE.
34944         (_dl_x86_64_save_sse): Likewise.
34945
34946         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
34947
34948         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
34949
34950 2011-07-21  Andreas Schwab  <schwab@redhat.com>
34951
34952         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
34953         change.
34954         (_dl_x86_64_save_sse): Use correct AVX check.
34955
34956 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34957
34958         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
34959         bug in strncpy/strncat.
34960         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
34961
34962 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
34963
34964         * string/tester.c (test_strcat): Add tests for different alignments
34965         of source and destination.
34966         (test_strncat): Likewise.
34967
34968 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
34969
34970         [BZ #12852]
34971         * posix/glob.c (glob): Check passed in values before using them in
34972         expressions to avoid some overflows.
34973         (glob_in_dir): Likewise.
34974
34975         [BZ #13007]
34976         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
34977         check for AVX enablement so that we don't crash with old kernels and
34978         new hardware.
34979         * elf/tst-audit4.c: Add same checks here.
34980         * elf/tst-audit6.c: Likewise.
34981
34982         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
34983
34984 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
34985
34986         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
34987
34988 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
34989
34990         * po/cs.po: Update from translation team.
34991         * po/bg.po: Likewise.
34992
34993 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
34994
34995         * misc/sys/cdefs.h: Add support for const attribute.
34996         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
34997         to gnu_dev_{major,minor,makedev} functions.
34998
34999 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
35000
35001         * intl/dcigettext.c (get_output_charset): Add missing bracket.
35002
35003 2011-07-20  Andreas Schwab  <schwab@redhat.com>
35004
35005         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
35006         strlen results.
35007
35008 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35009
35010         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
35011         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
35012         register in order to avoid conflicts with the soft frame pointer
35013         being held in r11 when necessary.
35014         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
35015         (INTERNAL_VSYSCALL_NCS): Likewise.
35016
35017 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
35018
35019         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
35020         * elf/dl-fini.c (_dl_fini): Adjust caller.
35021         * elf/dl-close.c (_dl_close_worker): Likewise.
35022         * sysdeps/generic/ldsodefs.h: Adjust declaration.
35023
35024 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35025
35026         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
35027         "aux_cache->nlibs < 0".
35028
35029         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
35030         in the reload-count case.
35031
35032 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35033
35034         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35035         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
35036         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
35037         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
35038         * sysdeps/x86_64/multiarch/strcat.S: New file.
35039         * sysdeps/x86_64/multiarch/strncat.S: New file.
35040         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
35041         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
35042         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
35043         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
35044         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
35045         (USE_AS_STRCAT): Define.
35046         Add strcat and strncat support.
35047         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
35048         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
35049         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
35050         * string/strncat.c: Update.
35051         (USE_AS_STRNCAT): Define.
35052         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35053         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
35054         and i7.
35055         * sysdeps/x86_64/multiarch/init-arch.h
35056         (bit_Prefer_PMINUB_for_stringop): New.
35057         (index_Prefer_PMINUB_for_stringop): Likewise.
35058         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
35059         bit_Prefer_PMINUB_for_stringop.
35060
35061 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35062
35063         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
35064         buffer64.
35065         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
35066         of casting of buffer.
35067         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
35068         buffer32 and buffer64.
35069         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
35070         writes instead of casting of buffer.
35071         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
35072         buffer32.
35073         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
35074         casting of buffer.
35075
35076 2011-07-19  Andreas Schwab  <schwab@redhat.com>
35077
35078         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
35079
35080 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35081
35082         * nscd/nscd.c (termination_handler): Don't do anything for a database
35083         if it has not yet been initialized.
35084
35085 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35086
35087         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35088
35089 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35090
35091         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35092
35093 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35094
35095         * po/nl.po: Update from translation team.
35096         * po/sv.po: Likewise.
35097
35098 2011-07-16  Roland McGrath  <roland@hack.frob.com>
35099
35100         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
35101         now disallowed by GCC.
35102
35103         * configure.in (use-default-link): Default to yes if a test -shared
35104         link meets our qualifications.
35105         * configure: Regenerated.
35106
35107         * config.make.in (output-format): New variable.
35108         * configure.in: Check for ld --print-output-format support.
35109         * configure: Regenerated.
35110         * Makerules ($(common-objpfx)format.lds)
35111         [$(output-format) != unknown]: Just use $(output-format),
35112         instead of the linker-script munging.
35113
35114 2011-07-14  Roland McGrath  <roland@hack.frob.com>
35115
35116         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
35117         of $(common-objpfx)shlib.lds.
35118         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
35119
35120         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
35121         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
35122
35123         * configure.in (-z relro check): Adjust test code to add a large
35124         writable data section after it.
35125         * configure: Regenerated.
35126
35127 2011-07-11  Roland McGrath  <roland@hack.frob.com>
35128
35129         * configure.in (-z relro check): Fix test code to make the variable
35130         truly const.
35131         * configure: Regenerated.
35132
35133 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
35134
35135         * nscd/nscd.h (struct traced_file): Define.
35136         (struct database_dyn): Remove inotify_descr, reset_res, and filename
35137         elements.  Add traced_files.
35138         (inotify_fd): Declare.
35139         (register_traced_file): Declare.
35140         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
35141         (inotify_fd): Export.
35142         (resolv_conf_descr): Remove.
35143         (nscd_init): Move inotify descriptor creation to main.
35144         Don't register files for notification here.
35145         (register_traced_file): New function.
35146         (invalidate_cache): Don't use reset_res to determine whether to call
35147         res_init, go through the list of registered files.
35148         (main_loop_poll): The inotify descriptors are now stored in the
35149         structures for the traced files.
35150         (main_loop_epoll): Likewise
35151         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
35152         to __nss_disable_nscd.
35153         * nscd/cache.c (prune_cache): There is no single inotify descriptor
35154         for a database anymore.  Check the records for all the registered
35155         files instead.
35156         * nss/Makefile (libnss_files-routines): Add files-init.
35157         (libnss_db-routines): Add db-init.
35158         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
35159         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
35160         * nss/nss_db/db-init.c: New file.
35161         * nss/nss_files/files-init.c: New file.
35162         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
35163         __nss_lookup_function.
35164         (__nss_lookup_function): Call nss_load_library.
35165         (nss_load_all_libraries): New function.
35166         (__nss_disable_nscd): Take parameter with callback function for files
35167         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
35168         used for the cached services.
35169         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
35170         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
35171         options for features to all the files in nscd.
35172
35173         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
35174
35175 2011-07-10  Roland McGrath  <roland@hack.frob.com>
35176
35177         * csu/elf-init.c (__libc_csu_init): Comment typo.
35178
35179 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
35180
35181         * po/pl.po: Update from translation team.
35182         * po/ja.po: Likewise.
35183         * po/ru.po: Likewise.
35184         * po/ko.po: Likewise.
35185         * po/fr.po: Likewise.
35186
35187 2011-07-09  Roland McGrath  <roland@hack.frob.com>
35188
35189         * configure.in (.ctors/.dtors header and trailer check):
35190         Use an empirical test on a built program.
35191         * configure: Regenerated.
35192
35193         * configure.in (-z relro check): Use an empirical test on a built DSO.
35194         Detect, but do not require, on ia64.
35195         * configure: Regenerated.
35196
35197         * configure.in (READELF): Find it with AC_CHECK_TOOL.
35198         Update tests that use readelf to use $READELF instead.
35199         * configure: Regenerated.
35200
35201 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
35202
35203         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
35204         if the result is not used.
35205
35206 2011-07-05  Andreas Jaeger  <aj@suse.de>
35207
35208         [BZ#9696]
35209         * stdlib/tst-strtod.c: Add testcase.
35210
35211 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35212
35213         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
35214         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
35215         The latter has a higher limit.  Take additional parameter to pass to
35216         the new function.
35217         (__pathconf): Pass file to __statfs_link_max.
35218         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
35219         __statfs_link_max.
35220         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
35221         __statfs_link_max.
35222
35223         [BZ #12868]
35224         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
35225         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
35226         Handle Lustre.
35227         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
35228         (__statfs_filesize_max): Likewise.
35229         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
35230
35231 2011-07-05  Andreas Jaeger  <aj@suse.de>
35232
35233         * resolv/res_comp.c (dn_skipname): Remove unused variable.
35234
35235 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
35236
35237         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
35238         `status' variable.
35239         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
35240         Likewise.
35241
35242 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
35243
35244         * Makefile (strop-tests): Add strncat.
35245         * string/test-strncat.c: New file.
35246
35247 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
35248
35249         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
35250
35251 2011-06-21  Andreas Jaeger  <aj@suse.de>
35252
35253         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
35254         Copy rule from iconvdata/Makefile.
35255
35256 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35257
35258         [BZ #12922]
35259         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
35260         but no long options are defined, just return 'W'.
35261
35262 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
35263
35264         [BZ #9696]
35265         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
35266
35267 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35268
35269         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
35270         netgroups to read.
35271         (innetgr): Likewise.
35272
35273 2011-07-05  Roland McGrath  <roland@hack.frob.com>
35274
35275         * config.make.in (install_root): Default to $(DESTDIR).
35276
35277 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
35278
35279         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
35280
35281 2011-07-02  Roland McGrath  <roland@hack.frob.com>
35282
35283         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
35284
35285         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
35286         containing directory rather than embedding absolute directory names.
35287
35288         * scripts/check-local-headers.sh: Rewritten using awk.
35289         Match by word, not by line.  Print error messages for matches.
35290         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
35291
35292         * Makerules [shlib-lds-flags empty]:
35293         ($(common-objpfx)libc_pic.opts): New target.
35294         ($(common-objpfx)libc_pic.os.clean): New target.
35295         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
35296
35297         * config.make.in (OBJCOPY): New variable.
35298         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
35299         * configure: Regenerated.
35300
35301         * config.make.in (use-default-link): New variable.
35302         * configure.in (use_default_link): Grok --with-default-link to set it.
35303         * configure: Regenerated.
35304         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
35305         (shlib-lds, shlib-lds-flags): Define to empty.
35306
35307         * Makerules (shlib-lds): New variable.
35308         (shlib-lds-flags): New variable.
35309         (build-shlib, build-moduile, build-module-asneeded): Use it.
35310         ($(common-objpfx)libc.so): Use $(shlib-lds).
35311         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
35312         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
35313
35314         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
35315         DT_FLAGS/DT_FLAGS_1 with zero flags.
35316
35317         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
35318         linker script munging.
35319
35320 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
35321
35322         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
35323         as 128-bit value.
35324         * crypt/sha512.c (sha512_process_block): Perform total addition using
35325         128-bit if possible.
35326         (__sha512_finish_ctx): Likewise.
35327         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
35328         as 64-bit value.
35329         * crypt/sha256.c (SWAP64): Define.
35330         (sha256_process_block): Perform total addition using 64-bit if
35331         possible.
35332         (__sha256_finish_ctx): Likewise.
35333
35334 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
35335
35336         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
35337         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35338         * nscd/hstcache.c (cache_addhst): Likewise.
35339         * nscd/grpcache.c (cache_addgr): Likewise.
35340         * nscd/aicache.c (addhstaiX): Likewise
35341         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
35342
35343 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
35344
35345         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
35346         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35347         * nscd/hstcache.c (cache_addhst): Likewise.
35348         * nscd/grpcache.c (cache_addgr): Likewise.
35349         * nscd/aicache.c (addhstaiX): Likewise
35350
35351 2011-07-01  Andreas Schwab  <schwab@redhat.com>
35352
35353         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
35354         domain only when needed.
35355
35356 2011-06-30  Andreas Schwab  <schwab@redhat.com>
35357
35358         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
35359         is always restored.
35360
35361 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
35362
35363         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
35364         are re-adding the entry.
35365         * nscd/servicescache.c (cache_addserv): Likewise.
35366
35367 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
35368
35369         * sysdeps/generic/dl-irel.h: fix protection against multiple
35370         inclusions.
35371         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
35372
35373 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
35374
35375         [BZ #12935]
35376         * malloc/memusage.sh: Fix quoting in message.
35377         * debug/xtrace.sh: Likewise.
35378
35379         * configure.in: Remove support for --experimental-malloc option, make
35380         it the default.
35381         * config.make.in: Likewise.
35382         * malloc/Makefile: Likewise.
35383
35384 2011-06-27  Andreas Schwab  <schwab@redhat.com>
35385
35386         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
35387         two-byte characters.
35388
35389 2011-06-27  Roland McGrath  <roland@hack.frob.com>
35390
35391         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
35392         AC_CACHE_CHECK invocation.
35393         * configure: Regenerated.
35394
35395         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
35396
35397 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
35398
35399         [BZ #12350]
35400         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
35401         bit from old_res_options.
35402
35403         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
35404
35405         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
35406         value type for setfct.
35407
35408 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
35409
35410         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35411         __gettimeofday instead of gettimeofday.
35412
35413 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
35414
35415         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
35416
35417 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
35418
35419         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
35420
35421         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
35422         info.
35423
35424 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35425
35426         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35427         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35428         strcpy-sse2-unaligned strncpy-sse2-unaligned
35429         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
35430         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
35431         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
35432         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
35433         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
35434         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
35435         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
35436         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
35437         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
35438         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
35439         (STRCPY): Support SSE2 and SSSE3 versions.
35440
35441 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
35442
35443         [BZ #12874]
35444         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
35445         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
35446         kernels which artificially limit size of requests.
35447
35448 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35449
35450         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35451         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35452         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
35453         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
35454         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
35455         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
35456         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
35457         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
35458         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
35459         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
35460         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
35461         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
35462         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
35463         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
35464         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
35465         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35466         Enable unaligned load optimization for Intel Core i3, i5 and i7
35467         processors.
35468         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
35469         Define.
35470         (index_Fast_Unaligned_Load): Define.
35471         (HAS_FAST_UNALIGNED_LOAD): Define.
35472
35473 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
35474
35475         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
35476
35477 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35478
35479         [BZ #12907]
35480         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
35481         until it is clear that the information is realy needed.
35482         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
35483
35484 2011-06-22  Andreas Schwab  <schwab@redhat.com>
35485
35486         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
35487
35488 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35489
35490         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35491         /sys/devices/system/cpu/online if it is usable.
35492
35493         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
35494         reading the information from the /proc filesystem to once a second.
35495
35496 2011-06-21  Andreas Jaeger  <aj@suse.de>
35497
35498         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
35499         NULL after inclusion of kernel headers.
35500
35501 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
35502
35503         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
35504         calls to internal_setent.
35505
35506         [BZ #12885]
35507         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
35508         addresses using gethostbyname4_r ignore IPv4 addresses.
35509
35510         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
35511         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
35512
35513         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
35514
35515 2011-06-20  David S. Miller  <davem@davemloft.net>
35516
35517         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
35518         inclusions.
35519         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
35520
35521         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
35522         (elf_irel): Use it.
35523         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
35524         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
35525         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
35526         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
35527         * sysdeps/x86_64/dl-irel.h: Likewise.
35528
35529         * elf/dl-runtime.c: Use elf_ifunc_invoke.
35530         * elf/dl-sym.c: Likewise.
35531
35532 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35533
35534         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
35535         need to dereference resplen2.
35536
35537 2011-06-14  Andreas Schwab  <schwab@redhat.com>
35538
35539         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
35540
35541 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35542
35543         * Makeconfig: Define vardbdir and inst_vardbdir.
35544         * nss/Makefile: Add rules to install db-Makefile.
35545
35546         * nss/nss_db/db-XXX.c: Cleanup.
35547
35548         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
35549         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
35550         GLIBC_PRIVATE.
35551         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
35552         * nss/makedb.c: Implement -g option to specify that value strings
35553         are generated and should not be added to table iterated over for
35554         get*ent calls.
35555         * nss/nss_db/db-initgroups.c: New file.
35556
35557         * nss/getent.c: Add support for initgroups lookups through getgrouplist
35558         interface.
35559
35560         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
35561         (internal_getgrouplist): Adjust to name change.
35562         Update use_initgroups_entry if this is not the first call.
35563         * nss/databases.def: Add initgroups entry.
35564
35565         * nss/makedb.c (compute_tables): Check result of multiple hash table
35566         sizes to minimize maximum chain length.
35567
35568 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
35569
35570         * Versions.def: Add entry for libnss_db.
35571         * shlib-versions: Likewise.
35572         * nss/Makefile: Add rules to build libnss_db.
35573         * nss/Versions: Add libnss_db information.  Organize libnss_files
35574         entries better.
35575         * nss/db-Makefile: Add gshadow support.  Change rules for the new
35576         makedb progra.  Some minor improvements to generate smaller files.
35577         * nss/nss_db/nss_db.h: Move NSS database header data structures to
35578         here from...
35579         * nss/makedb.c: ...here.
35580         Improve database format to be smaller and require less memory at
35581         runtime.
35582         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
35583         db anymore.
35584         * nss/nss_db/db-netgrp.c: Likewise.
35585         * nss/nss_db/db-open.c: Likewise.
35586         * nss/nss_files/flies-XXX.x: Adjust comments.
35587         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
35588         * nss/nss_files/files-grp.c: Likewise.
35589         * nss/nss_files/files-hosts.c: Likewise.
35590         * nss/nss_files/files-network.c: Likewise.
35591         * nss/nss_files/files-proto.c: Likewise.
35592         * nss/nss_files/files-pwd.c: Likewise.
35593         * nss/nss_files/files-rpc.c: Likewise.
35594         * nss/nss_files/files-service.c: Likewise.
35595         * nss/nss_files/files-sgrp.c: Likewise.
35596         * nss/nss_files/files-spwd.c: Likewise.
35597         * nss/nss_db/db-alias.c: Removed.
35598         * nss/nss_db/dummy-db.h: Removed.
35599
35600 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
35601
35602         * nss/makedb.c: Rewritten to not use database library.
35603         * nss/Makefile: Update to build new makedb program.
35604
35605 2011-06-14  Andreas Jaeger  <aj@suse.de>
35606
35607         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
35608         memset declaration.
35609
35610 2011-06-10  Andreas Schwab  <schwab@redhat.com>
35611
35612         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
35613         tmpbuf.
35614
35615 2011-06-10  Roland McGrath  <roland@hack.frob.com>
35616
35617         * Makerules (shlib.lds): Fail if the linker script comes out empty.
35618         * elf/Makefile ($(objpfx)ld.so): Likewise.
35619
35620         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
35621         Don't list ld.so twice in dependencies.
35622
35623         * posix/bug-regex31.c: Include <stdlib.h>.
35624
35625         * nscd/hstcache.c (cache_addhst): Remove unused variable.
35626
35627         * nis/nss_compat/compat-spwd.c
35628         (getspent_next_nss_netgr): Remove unused variable.
35629         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
35630
35631         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
35632         nonmembers" output to use the right array.
35633
35634         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
35635
35636         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
35637
35638         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
35639         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
35640         * catgets/gencat.c (read_input_file): Likewise.
35641         * locale/programs/locarchive.c (enlarge_archive): Likewise.
35642
35643         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
35644         variable definition inside #if's controlling its use.
35645
35646         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
35647
35648         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
35649
35650         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
35651
35652         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
35653         unreachable code.
35654
35655         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
35656
35657         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
35658         * configure: Regenerated.
35659
35660         * Makerules: Revert last change.
35661         * elf/Makefile: Likewise.
35662
35663 2011-06-09  Roland McGrath  <roland@hack.frob.com>
35664
35665         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
35666         * elf/Makefile ($(objpfx)librtld.os): Likewise.
35667         (reloc-link): Likewise.
35668
35669 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
35670
35671         * elf/Makefile: Add rules to build pldd.
35672         * elf/pldd.c: New file.
35673         * elf/pldd-xx.c: New file.
35674
35675 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
35676
35677         * version.h: Update for 2.15 development version.
35678
35679 2011-06-07  David S. Miller  <davem@davemloft.net>
35680
35681         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
35682         ifuncs.
35683         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
35684         elf_machine_lazy_rel): Likewise.
35685         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
35686         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
35687         elf_machine_lazy_rel): Likewise.
35688         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
35689         dl_hwcap via passed in argument.
35690         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
35691         Likewise.
35692
35693 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35694
35695         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
35696
35697 2011-06-06  Roland McGrath  <roland@hack.frob.com>
35698
35699         [BZ #12849]
35700         * manual/fdl-1.1.texi: New file, verbatim from:
35701         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
35702         * manual/lgpl-2.1.texi: New file, verbatim from:
35703         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
35704         * manual/Makefile (licenses): New variable, list those new file names.
35705         (texis): Use it.
35706         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
35707
35708         * manual/fdl.texi: File removed.
35709         * manual/lesser.texi: File removed.
35710         * manual/libc.texinfo (Copying, Documentation License):
35711         Use new @include file names, put @appendix directive before @include.
35712
35713 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
35714
35715         [BZ #12841]
35716         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
35717         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
35718         (mq_open): Add __NTH.
35719
35720 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
35721
35722         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35723         Assume Intel Core i3/i5/i7 processor if AVX is available.
35724
35725 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35726
35727         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
35728         typo.
35729
35730 2011-05-31  Andreas Schwab  <schwab@redhat.com>
35731
35732         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
35733         memory.  Use alloca_account.  Fix memory leak when retrying.
35734
35735 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35736
35737         * version.h (RELEASE): Bump for 2.14 release.
35738         * include/features.h (__GLIBC_MINOR__): Bump to 14.
35739
35740         * config.make.in (RANLIB): Remove entry.
35741
35742 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
35743
35744         * po/Makefile (po-sed-cmd): Add ksh to extensions.
35745         (libc.pot): Work around missing support for .ksh extension in xgettext.
35746
35747         [BZ #12684]
35748         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
35749         if both request failed.
35750         (send_dg): In case of server errors clear resplen or *resplen2.
35751
35752         [BZ #12454]
35753         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
35754         when there are multiple maps.
35755         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
35756         (_dl_fini): Remove test here.
35757
35758         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
35759
35760 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
35761
35762         [BZ #12350]
35763         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
35764         bit from old_res_options.
35765         (gaih_inet): Likewise.
35766
35767         [BZ #11099]
35768         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
35769         as signed.
35770
35771         * resolv/res_init.c (res_setoptions): Make the code more compact.
35772
35773         [BZ #11558]
35774         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
35775         set RES_USEVC.
35776
35777         [BZ #11634]
35778         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
35779
35780         * malloc/malloc.h: Mark malloc hook variables as deprecated.
35781
35782         [BZ #11781]
35783         * malloc/malloc.h: Declare malloc hook variables as volatile.
35784
35785         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
35786         in last patch.
35787
35788         [BZ #11799]
35789         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
35790         raise in the comment.
35791         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
35792         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
35793         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
35794
35795 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
35796
35797         [BZ #12811]
35798         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
35799         grow the buffers more if it already has to be sufficient.
35800         (build_wcs_upper_buffer): Likewise.
35801         * posix/regexec.c (check_matching): Likewise.
35802         (clean_state_log_if_needed): Likewise.
35803         (extend_buffers): Don't enlarge buffers beyond size of the input
35804         buffer.
35805         Patches mostly by Emil Wojak <emil@wojak.eu>.
35806         * posix/bug-regex32.c: New file.
35807         * posix/Makefile (tests): Add bug-regex32.
35808
35809         * locale/findlocale.c (_nl_find_locale): Return right away if
35810         _nl_explode_name failed.
35811         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
35812
35813         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
35814
35815         * debug/xtrace.sh: Unify messages.
35816         * malloc/memusage.sh: Likewise.
35817
35818         [BZ #12813]
35819         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
35820         time symbol from vDSO.  Substitute with vsyscall if not available.
35821         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
35822         __vdso_time.
35823
35824         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
35825         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
35826         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
35827         Add sendmmsg and internal_sendmmsg.
35828         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
35829         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
35830         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
35831
35832         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
35833         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
35834         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
35835
35836 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
35837
35838         [BZ #12813]
35839         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
35840         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
35841         available.
35842         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
35843         __vdso_getcpu.
35844
35845         [BZ #12814]
35846         * iconvdata/Makefile (tests): Add bug-iconv9.
35847         * iconvdata/bug-iconv9.c: New file.
35848
35849 2011-05-27  Andreas Schwab  <schwab@redhat.com>
35850
35851         [BZ #12814]
35852         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
35853
35854 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
35855
35856         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
35857         (struct user_regs_struct): Change intcs field back to cs.
35858
35859 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
35860
35861         * po/ja.po: Update from translation team.
35862
35863 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
35864
35865         [BZ #12795]
35866         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
35867         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
35868
35869 2011-05-20  Andreas Schwab  <schwab@redhat.com>
35870
35871         * stdlib/longlong.h: Update from GCC.
35872
35873 2011-05-23  Andreas Schwab  <schwab@redhat.com>
35874
35875         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
35876         parameter name.
35877         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
35878         Add parameter name.
35879         (__sysconf): Pass it down.
35880
35881 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
35882
35883         [BZ #12671]
35884         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
35885         some situations.
35886         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
35887         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
35888         add in in __libc_use_alloca calls.  Adjust callers.
35889         (glob): Use malloc in some situations.
35890
35891         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
35892         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
35893         pltexit.
35894
35895 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
35896
35897         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
35898         and CLOCK_BOOTTIME_ALARM.
35899
35900         [BZ #12782]
35901         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
35902         is returned.
35903
35904         * string/_strerror.c (__strerror_r): Print negative errors as signed
35905         numbers.
35906
35907         [BZ #12777]
35908         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
35909         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
35910         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
35911
35912         * configure.in: Fix typo in redirection and correct removal of test
35913         files in two cases.
35914
35915         [BZ #12788]
35916         * locale/setlocale.c (new_composite_name): Fix test to check for
35917         identical name of all categories.
35918
35919         [BZ #12792]
35920         * libio/filedoalloc.c (local_isatty): New function.
35921         (_IO_file_doallocate): Use local_isatty.
35922         * stdio-common/perror.c (perror): In case a new stream is used
35923         forward the stream error.
35924         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
35925         error flag.
35926
35927 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
35928
35929         [BZ #11869]
35930         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
35931         alloca.
35932         * include/alloca.h (extend_alloca_account): Define.
35933
35934         [BZ #11857]
35935         * posix/regex.h: Fix comments with documentation of user-accessible
35936         fields after compilation and describe correct free'ing of pattern
35937         after re_compile_pattern.
35938         Patch by Reuben Thomas <rrt@sc3d.org>.
35939
35940 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
35941
35942         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
35943         and -mno-altivec to prevent the compiler from using Altivec and/or
35944         VSX instructions when the corresponding registers are not available.
35945
35946 2011-05-19  Andreas Schwab  <schwab@redhat.com>
35947
35948         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
35949
35950 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
35951
35952         * libio/freopen.c (freopen): Use __dup2, not dup2.
35953         * libio/freopen64.c (freopen64): Likewise.
35954
35955 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
35956
35957         [BZ #12775]
35958         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
35959         * math/Makefile (tests): Add test-powl.
35960         (CFLAGS-test-powl.c): Define.
35961         * math/test-powl.c: New file.
35962
35963 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
35964
35965         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
35966
35967 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
35968
35969         [BZ #11837]
35970         * iconvdata/gb18030.c: Update to GB18020-2005.
35971
35972 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
35973
35974         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
35975         RE_SYNTAX_POSIX_AWK): Update to match recent development.
35976         Patch by Aharon Robbins <arnold@skeeve.com>.
35977
35978         [BZ #11892]
35979         * stdlib/putenv.c (putenv): Don't always create copy of the variable
35980         on the stack.
35981
35982         [BZ #11895]
35983         * misc/pselect.c (__pselect): Handle timeout value errors hidden
35984         through underflows.
35985
35986         [BZ #12766]
35987         * misc/error.c (error_at_line): Ensure file_name and old_file_name
35988         point to strings before performing equality test for error_one_per_line
35989         mode.
35990
35991         [BZ #11697]
35992         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
35993
35994         [BZ #11820]
35995         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
35996         (struct user_fpregs_struct): Avoid __uint*_t types.
35997
35998         [BZ #6420]
35999         * malloc/mtrace.c (tr_where): Add additional parameter to point to
36000         symbol info.  Use it instead of calling _dl_addr locally.
36001         (lock_and_info): New function.
36002         (tr_freehook): Call lock_and_info and pass symbol info as additional
36003         parameter to tr_where.
36004         (tr_mallochook): Likewise.
36005         (tr_reallochook): Likewise.
36006         (tr_memalignhook): Likewise.
36007
36008         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
36009         used and couldn't be at all thread-safe.
36010
36011 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
36012
36013         * libio/freopen.c (freopen): Don't close old file descriptor
36014         before the new one is opened.  Instead dup the new file descriptor
36015         to the old one after the new stream is created.
36016         * libio/freopen64.c (freopen64): Likewise.
36017         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
36018         * libio/fileops.c (_IO_new_file_close_it): Handle new
36019         _IO_FLAGS2_NOCLOSE flag.
36020         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
36021         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
36022         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
36023         _IO_FLAGS2_NOCLOSE flag.
36024         * include/unistd.h: Add hidden_proto for dup3.
36025         Define __have_dup3.
36026         * io/dup3.c: Define hidden symbol.
36027         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
36028
36029         [BZ #7101]
36030         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
36031         when an incomplete long option is used.
36032         * posix/tst-getopt_long1.c: New file.
36033         * posix/Makefile (tests): Add tst-getopt_long1.
36034
36035         [BZ #10138]
36036         * scripts/config.guess: Update from autoconf-2.68.
36037         * scripts/config.sub: Likewise.
36038
36039         [BZ #10157]
36040         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
36041         tests into ...
36042         (has_cpuclock): ...this.  New function.
36043         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
36044         macro here based on has_cpuclock code.
36045
36046         [BZ #10149]
36047         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36048         First byte (not low byte) is now always NUL.
36049         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
36050
36051         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36052         Use non-cancelable interfaces.
36053
36054         [BZ #9809]
36055         * locale/iso-639.def: Add entry for Sorani.
36056
36057         [BZ #11901]
36058         * include/stdlib.h: Move include protection to the right place.
36059         Define abort_msg_s.  Declare __abort_msg with it.
36060         * stdlib/abort.c (__abort_msg): Adjust type.
36061         * assert/assert.c (__assert_fail_base): New function.  Majority
36062         of code from __assert_fail.  Allocate memory for __abort_msg with
36063         mmap.
36064         (__assert_fail): Now call __assert_fail_base.
36065         * assert/assert-perr.c: Remove bulk of implementation.  Use
36066         __assert_fail_base.
36067         * include/assert.hL Declare __assert_fail_base.
36068         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
36069         mmap.
36070         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
36071
36072 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
36073
36074         [BZ #11952]
36075         [BZ #12453]
36076         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
36077         until all modules are registered in the DTV.
36078         * elf/Makefile: Add rules to build and run tst-tls19.
36079         * elf/tst-tls19.c: New file.
36080         * elf/tst-tls19mod1.c: New file.
36081         * elf/tst-tls19mod2.c: New file.
36082         * elf/tst-tls19mod3.c: New file.
36083         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
36084
36085         [BZ #12083]
36086         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
36087         correctly.
36088
36089         [BZ #12601]
36090         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
36091         two-byte sequence errors.
36092         * iconvdata/Makefile (tests): Add bug-iconv8.
36093         * iconvdata/bug-iconv8.c: New file.
36094
36095         [BZ #12626]
36096         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
36097         buf2 definition.
36098
36099         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
36100
36101         [BZ #12432]
36102         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
36103         (dummy_getcfa): New function.
36104         (init): Get _Unwind_GetCFA address, use dummy if not found.
36105         (backtrace_helper): In recursion check, also check whether CFA changes.
36106         (__backtrace): Completely initialize arg.
36107
36108         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
36109         storing incomplete byte sequence in state object.  Avoid testing for
36110         guaranteed too small input if we know there is enough data available.
36111
36112 2011-05-11  Andreas Schwab  <schwab@redhat.com>
36113
36114         * Makeconfig (+link-pie): Indent.
36115         * Rules (binaries-pie): Define if $(have-fpie) and
36116         $(build-shared).
36117         (binaries-shared): Also filter out $(binaries-pie).
36118         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
36119         * nscd/Makefile (others-pie): Add nscd.
36120         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
36121         ($(objpfx)nscd): Remove command override.
36122         * login/Makefile (others-pie): Add pt_chown.
36123         ($(objpfx)pt_chown): Remove command override.
36124         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
36125         remove command overrides.
36126
36127 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
36128
36129         * libio/tst_putwc.c: Fix error messages.
36130
36131         [BZ #12724]
36132         * libio/fileops.c (_IO_new_file_close_it): Always flush when
36133         currently writing and seek to current position when not.
36134         * libio/Makefile (tests): Add bug-fclose1.
36135         * libio/bug-fclose1.c: New file.
36136
36137 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
36138
36139         [BZ #12511]
36140         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
36141         don't set DF_1_NODELETE here.
36142         (do_lookup_x): When entering new entry test for copy relocation
36143         and if necessary set DF_1_NODELETE flag.
36144         * elf/tst-unique4.cc: New file.
36145         * elf/tst-unique4.h: New file.
36146         * elf/tst-unique4lib.cc: New file.
36147         * elf/Makefile: Add rules to build and run tst-unique4.
36148         Patch by Piotr Bury <pbury@goahead.com>.
36149
36150 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36151
36152         [BZ #12052]
36153         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
36154
36155         [BZ #12625]
36156         * misc/mntent_r.c (addmntent): Flush the stream after the output
36157
36158         [BZ #12393]
36159         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
36160         (is_trusted_path_normalize): Skip initial colon.  Append slash
36161         to empty buffer.  Duplicate is_trusted_path code but allow
36162         constructed patch to be prefix.
36163         (is_dst): Allow $ORIGIN followed by /.
36164         (_dl_dst_substitute): Correct clearing of check_for_trusted.
36165         Correct testing of result of is_trusted_path_normalize
36166         (decompose_rpath): Fix warning.
36167
36168 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
36169
36170         [BZ #11257]
36171         * grp/initgroups.c (internal_getgrouplist): When we found the service
36172         list through the initgroups entry in nsswitch.conf do not always
36173         continue on a successful lookup.  Don't always use the
36174         __nss_group_database value if it is set.
36175         * nss/nsswitch.conf (initgroups): Change action for successful db
36176         lookup to continue for compatibility.
36177
36178 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
36179
36180         [BZ #11532]
36181         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
36182         and CP774 modules.
36183         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
36184         and CP774 modules.
36185         * iconvdata/tst-tables.sh: Likewise.
36186         * iconvdata/cp770.c: New file.
36187         * iconvdata/cp771.c: New file.
36188         * iconvdata/cp772.c: New file.
36189         * iconvdata/cp773.c: New file.
36190         * iconvdata/cp774.c: New file.
36191         * iconvdata/testdata/CP770: New file.
36192         * iconvdata/testdata/CP770..UTF8: New file.
36193         * iconvdata/testdata/CP771: New file.
36194         * iconvdata/testdata/CP771..UTF8: New file.
36195         * iconvdata/testdata/CP772: New file.
36196         * iconvdata/testdata/CP772..UTF8: New file.
36197         * iconvdata/testdata/CP773: New file.
36198         * iconvdata/testdata/CP773..UTF8: New file.
36199         * iconvdata/testdata/CP774: New file.
36200         * iconvdata/testdata/CP774..UTF8: New file.
36201
36202         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
36203         END CHARMAP line.
36204         * iconvdata/gen-8bit-gap.sh: Likewise.
36205         * iconvdata/gen-8bit.sh: Likewise.
36206
36207         * locale/iso-639.def: Add ary entry.
36208
36209         [BZ #11258]
36210         * locale/C-translit.h.in: Add U20A1 transliteration.
36211
36212         [BZ #12178]
36213         * locale/iso-639.def: Add wae entry.
36214         Patch by Kevin Bortis <bortis@translate-wae.ch>.
36215
36216         [BZ #12545]
36217         * locale/programs/localedef.c (construct_output_path): Use ssize_t
36218         for n.
36219
36220         [BZ #12711]
36221         * locale/C-translit.h.in: Add entry for U20B9.
36222         Patch by pravin.d.s@gmail.com.
36223
36224 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
36225
36226         [BZ #12713]
36227         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
36228         ENAMETOOLONG use generic getcwd.
36229         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
36230         in rtld.  Use *stat64.
36231         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
36232         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
36233         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
36234         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
36235         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
36236         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
36237         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
36238         __fstatat64 macros.
36239         * include/dirent.h: Add libc_hidden_proto for rewinddir.
36240         * dirent/rewinddir.c: Add libc_hidden_def.
36241         * sysdeps/mach/hurd/rewinddir.c: Likewise.
36242         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
36243
36244         * include/dirent.h (__alloc_dir): Add flags parameter.
36245         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
36246         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
36247         __alloc_dir.
36248         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
36249         from fdopendir if O_CLOEXEC is already set.
36250
36251 2011-03-15  Alan Modra  <amodra@gmail.com>
36252
36253         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
36254         l_tls_firstbyte_offset non-zero.  Save padding offset in
36255         l_tls_firstbyte_offset for later use.
36256         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
36257         freeing static tls block.
36258
36259 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
36260
36261         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
36262         where #ifdef was intended.  The intent is to prevent ARG_MAX from
36263         being defined by the kernel headers.
36264
36265 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
36266
36267         [BZ #12734]
36268         * resolv/resolv.h: Define RES_NOTLDQUERY.
36269         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
36270         no-tld-query and set RES_NOTLDQUERY.
36271         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
36272         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
36273         modern BIND to search name as TLD unless forbidden.
36274
36275 2011-05-07  Petr Baudis  <pasky@suse.cz>
36276             Ulrich Drepper  <drepper@gmail.com>
36277
36278         [BZ #12393]
36279         * elf/dl-load.c (fillin_rpath): Move trusted path check...
36280         (is_trusted_path): ...to here.
36281         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
36282         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
36283         using is_trusted_path_normalize() in setuid scripts.
36284
36285 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
36286
36287         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
36288         __BEGIN/__END_DECLS.
36289
36290 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
36291
36292         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
36293         NSS_STATUS_NOTFOUND if no record was found.
36294
36295 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36296
36297         * sunrpc/Makefile (headers): Add rpc/netdb.h.
36298         (headers-not-in-tirpc): Remove rpc/netdb.h
36299         * resolv/netdb.h: Revert last change.
36300
36301 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
36302
36303         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
36304         circular dependency between libgcc.a and libc.a.
36305
36306 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36307
36308         * resolv/netdb.h: Don't include <rpc/netdb.h>.
36309         * nis/Makefile: Don't install rpcsvc/*.
36310         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
36311         instead of <rpc/types.h>.
36312         (MAXHOSTNAMELEN): Define.
36313
36314 2011-05-03  Andreas Schwab  <schwab@redhat.com>
36315
36316         * elf/ldconfig.c (add_dir): Don't crash on empty path.
36317
36318 2011-04-28  Maciej Babinski  <mbabinski@google.com>
36319
36320         [BZ #12714]
36321         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
36322         gethostbyname4_r when IPv6 results are possible.
36323
36324 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
36325
36326         [BZ #12723]
36327         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
36328         _PC_PIPE_BUF handling.
36329
36330 2011-04-30  Bruno Haible  <bruno@clisp.org>
36331
36332         [BZ #12717]
36333         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
36334         * resolv/netdb.h (getnameinfo): Change type of flags parameter
36335         to 'int'.
36336         * inet/getnameinfo.c (getnameinfo): Likewise.
36337
36338 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
36339
36340         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
36341         to groups setting in database lookup.
36342         * nss/nsswitch.conf: Add initgroups entry.
36343
36344 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
36345
36346         [BZ #12685]
36347         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
36348         mode string.
36349         Patch by Eric Blake <eblake@redhat.com>.
36350
36351 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
36352
36353         * sunrpc/Makefile (need-export-routines): Add svc_run.
36354         (routines): Remove svc_run.
36355         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
36356         * sunrpc/clnt_perr.c (clnt_perrno): Export.
36357         * sunrpc/svc_run.c (svc_run): Likewise.
36358         * sunrpc/svc_udp.c (svcudp_create): Likewise.
36359
36360 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
36361
36362         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
36363         problem in reallocation in last patch.
36364
36365 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
36366
36367         * sunrpc/Makefile: Move inclusion of Rules.
36368
36369 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36370
36371         * nss/nss_files/files-initgroups.c: New file.
36372         * nss/Makefile (libnss_files-routines): Add files-initgroups.
36373         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
36374         _nss_files_initgroups_dyn.
36375
36376 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
36377
36378         * elf/elf.h (R_ARM_IRELATIVE): Define.
36379
36380 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36381
36382         * po/ru.po: Update from translation team.
36383
36384 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36385
36386         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
36387         dependencies.
36388
36389 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
36390
36391         [BZ #12653]
36392         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
36393         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
36394         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
36395         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
36396         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
36397
36398 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
36399
36400         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
36401         differing bytes.
36402         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
36403         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
36404         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
36405
36406 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36407
36408         [BZ #12420]
36409         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
36410         storing it.
36411         * stdlib/bug-getcontext.c: New file.
36412         * stdlib/Makefile: Add rules to build and run bug-getcontext.
36413
36414 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36415
36416         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
36417         instructions into .machine "z9-109".
36418         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
36419         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
36420
36421 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36422
36423         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
36424         between environment variables and auxiliary vector.
36425
36426 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
36427
36428         * Makefile: Add rules to build linkobj/libc.so.
36429         * include/libc-symbols.h: Define libc_hidden_nolink.
36430         * include/rpc/auth.h: Mark functions which are to be hidden.
36431         * include/rpc/auth_des.h: Likewise.
36432         * include/rpc/auth_unix.h: Likewise.
36433         * include/rpc/clnt.h: Likewise.
36434         * include/rpc/des_crypt.h: Likewise.
36435         * include/rpc/key_prot.h: Likewise.
36436         * include/rpc/pmap_clnt.h: Likewise.
36437         * include/rpc/pmap_prot.h: Likewise.
36438         * include/rpc/pmap_rmt.h: Likewise.
36439         * include/rpc/rpc_msg.h: Likewise.
36440         * include/rpc/svc.h: Likewise.
36441         * include/rpc/svc_auth.h: Likewise.
36442         * include/rpc/xdr.h: Likewise.
36443         * nis/Makefile: Link all DSOs against linkobj/libc.so.
36444         * nss/Makefile: Likewise.
36445         * sunrpc/Makefile: Don't install headers.  Build library with normal
36446         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
36447         * sunrpc/auth_des.c: Hide exported symbols by default, export some
36448         for the compat linking library.  Remove use of INTDEF/INTUSE.
36449         * sunrpc/auth_none.c: Likewise.
36450         * sunrpc/auth_unix.c: Likewise.
36451         * sunrpc/authdes_prot.c: Likewise.
36452         * sunrpc/authuxprot.c: Likewise.
36453         * sunrpc/clnt_gen.c: Likewise.
36454         * sunrpc/clnt_perr.c: Likewise.
36455         * sunrpc/clnt_raw.c: Likewise.
36456         * sunrpc/clnt_simp.c: Likewise.
36457         * sunrpc/clnt_tcp.c: Likewise.
36458         * sunrpc/clnt_udp.c: Likewise.
36459         * sunrpc/clnt_unix.c: Likewise.
36460         * sunrpc/des_crypt.c: Likewise.
36461         * sunrpc/des_soft.c: Likewise.
36462         * sunrpc/get_myaddr.c: Likewise.
36463         * sunrpc/key_call.c: Likewise.
36464         * sunrpc/key_prot.c: Likewise.
36465         * sunrpc/netname.c: Likewise.
36466         * sunrpc/pm_getmaps.c: Likewise.
36467         * sunrpc/pm_getport.c: Likewise.
36468         * sunrpc/pmap_clnt.c: Likewise.
36469         * sunrpc/pmap_prot.c: Likewise.
36470         * sunrpc/pmap_prot2.c: Likewise.
36471         * sunrpc/pmap_rmt.c: Likewise.
36472         * sunrpc/publickey.c: Likewise.
36473         * sunrpc/rpc_cmsg.c: Likewise.
36474         * sunrpc/rpc_common.c: Likewise.
36475         * sunrpc/rpc_dtable.c: Likewise.
36476         * sunrpc/rpc_prot.c: Likewise.
36477         * sunrpc/rpc_thread.c: Likewise.
36478         * sunrpc/rtime.c: Likewise.
36479         * sunrpc/svc.c: Likewise.
36480         * sunrpc/svc_auth.c: Likewise.
36481         * sunrpc/svc_authux.c: Likewise.
36482         * sunrpc/svc_raw.c: Likewise.
36483         * sunrpc/svc_run.c: Likewise.
36484         * sunrpc/svc_simple.c: Likewise.
36485         * sunrpc/svc_tcp.c: Likewise.
36486         * sunrpc/svc_udp.c: Likewise.
36487         * sunrpc/svc_unix.c: Likewise.
36488         * sunrpc/svcauth_des.c: Likewise.
36489         * sunrpc/xcrypt.c: Likewise.
36490         * sunrpc/xdr.c: Likewise.
36491         * sunrpc/xdr_array.c: Likewise.
36492         * sunrpc/xdr_float.c: Likewise.
36493         * sunrpc/xdr_intXX_t.c: Likewise.
36494         * sunrpc/xdr_mem.c: Likewise.
36495         * sunrpc/xdr_rec.c: Likewise.
36496         * sunrpc/xdr_ref.c: Likewise.
36497         * sunrpc/xdr_sizeof.c: Likewise.
36498         * sunrpc/xdr_stdio.c: Likewise.
36499
36500 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
36501
36502         [BZ #12650]
36503         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
36504         * sysdeps/ia64/dl-tls.h: Likewise.
36505         * sysdeps/powerpc/dl-tls.h: Likewise.
36506         * sysdeps/s390/dl-tls.h: Likewise.
36507         * sysdeps/sh/dl-tls.h: Likewise.
36508         * sysdeps/sparc/dl-tls.h: Likewise.
36509         * sysdeps/x86_64/dl-tls.h: Likewise.
36510         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
36511
36512 2011-03-14  Andreas Schwab  <schwab@redhat.com>
36513
36514         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
36515         rpath element also skip the following colon.
36516         (expand_dynamic_string_token): Add is_path parameter and pass
36517         down to DL_DST_REQUIRED and _dl_dst_substitute.
36518         (decompose_rpath): Call expand_dynamic_string_token with
36519         non-zero is_path.  Ignore empty rpaths.
36520         (_dl_map_object_from_fd): Call expand_dynamic_string_token
36521         with zero is_path.
36522
36523 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
36524
36525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
36526         Make cancelable.
36527
36528 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
36529
36530         [BZ #12655]
36531         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
36532         Patch by Filipe David Manana <fdmanana@apache.org>.
36533
36534 2011-04-07  Andreas Schwab  <schwab@redhat.com>
36535
36536         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
36537         Maintain aligned stack.
36538         (CHECK_RSP): Remove unused macro.
36539
36540 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
36541
36542         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
36543         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
36544
36545 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
36546
36547         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
36548
36549         * include/features.h: Mention __USE_XOPEN2K8 in comment.
36550
36551 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
36552
36553         [BZ #12518]
36554         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
36555         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
36556         * sysdeps/x86_64/memmove.c: New file.
36557         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
36558         (memcpy): Renamed to ...
36559         (__new_memcpy): This.
36560         (memcpy): Provide GLIBC_2_14 memcpy.
36561         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
36562         (memcpy): Provide GLIBC_2_2_5 memcpy.
36563
36564 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36565
36566         [BZ #12631]
36567         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
36568
36569 2011-03-30  Andreas Schwab  <schwab@redhat.com>
36570
36571         * misc/syncfs.c: New file.
36572         * misc/Makefile (routines): Add syncfs.
36573         * posix/unistd.h: Declare syncfs.
36574         * sysdeps/unix/syscalls.list: Add syncfs.
36575
36576 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36577
36578         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
36579         open_by_handle_at.
36580         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
36581         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36582         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36583         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36584         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36585         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
36586         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36587
36588 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36589
36590         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
36591         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36592         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
36593         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36594         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36595         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36596         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36597
36598         * io/Makefile: Compile fallocate.c, fallocate64.c, and
36599         sync_file_range.c with -fexceptions.
36600         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
36601         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
36602         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
36603         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
36604         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
36605         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
36606         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
36607         sync_file_range as cancellation point
36608         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
36609         now a wrapper around __call_sync_file_range with cancellation handling.
36610         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
36611         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
36612         function name to __call_sync_file_range.
36613         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
36614         Add call_sync_file_range.
36615
36616 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36617
36618         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36619         bits/timex.h.
36620
36621 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36622
36623         * iconv/iconv.h: Fix typo in comment.
36624         * io/fcntl.h: Likewise.
36625         * libio/stdio.h: Likewise.
36626         * posix/spawn.h: Likewise.
36627         * posix/unistd.h: Likewise.
36628         * stdlib/stdlib.h: Likewise.
36629         * time/time.h: Likewise.
36630         * wcsmbs/wchar.h: Likewise.
36631
36632         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
36633         open_by_handle): Add.
36634         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
36635         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
36636         Augment a few comments.
36637         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36638         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36639         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36640         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36641         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36642         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
36643         open_by_handle.
36644
36645         * io/fcntl.h (AT_EMPTY_PATH): Define.
36646
36647 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
36648
36649         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
36650         * sysdeps/unix/sysv/linux/bits/time.h: New file.
36651         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
36652         to...
36653         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
36654         * Versions.def: Add GLIBC_2.14.
36655         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
36656         Export.
36657
36658 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
36659
36660         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
36661         round counter.
36662         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36663
36664 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36665
36666         [BZ #12597]
36667         * string/test-strncmp.c (do_page_test): New function.
36668         (check2): Likewise.
36669         (test_main): Call check2.
36670         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
36671
36672 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
36673
36674         [BZ #12587]
36675         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
36676         Handle cache information in CPU leaf 4.
36677         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36678
36679 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
36680
36681         [BZ #12583]
36682         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
36683         character representation.
36684         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
36685
36686 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
36687
36688         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
36689         END(__isnan) to END(__isnanf) to match function entry point/label
36690         EALIGN(__isnanf,...).
36691
36692 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
36693
36694         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
36695
36696 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
36697
36698         [BZ #12510]
36699         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
36700         copy from the symbol referenced in the relocation to initialize the
36701         used variable.
36702         Patch by Piotr Bury <pbury@goahead.com>.
36703         * elf/Makefile: Add rules to build and tst-unique3.
36704         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
36705         * elf/tst-unique3.cc: New file.
36706         * elf/tst-unique3.h: New file.
36707         * elf/tst-unique3lib.cc: New file.
36708         * elf/tst-unique3lib2.cc: New file.
36709
36710         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
36711
36712 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
36713
36714         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
36715         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
36716         to _start.
36717
36718 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
36719
36720         * elf/dl-load.c (_dl_map_object): If we are looking for the first
36721         to-be-loaded object along a path to loader is ld.so.
36722
36723 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36724             Ulrich Drepper  <drepper@gmail.com>
36725
36726         * sysdeps/x86_64/memset.S: After aligning destination, code
36727         branches to different locations depending on the value of
36728         misalignment, when multiarch is enabled. Fix this.
36729
36730 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36731
36732         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
36733         Set _x86_64_preferred_memory_instruction for AMD processsors.
36734         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36735         Set bit_Prefer_SSE_for_memop for AMD processors.
36736
36737 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
36738
36739         * libio/fmemopen.c (fmemopen): Optimize a bit.
36740
36741 2011-03-03  Andreas Schwab  <schwab@redhat.com>
36742
36743         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
36744
36745 2011-03-03  Roland McGrath  <roland@redhat.com>
36746
36747         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
36748
36749 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
36750
36751         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
36752         __bzero_ultra1 instead of __memset_ultra1.
36753
36754 2011-02-23  Andreas Schwab  <schwab@redhat.com>
36755             Ulrich Drepper  <drepper@gmail.com>
36756
36757         [BZ #12509]
36758         * include/link.h (struct link_map): Add l_orig_initfini.
36759         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
36760         returning unsuccessfully.
36761         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
36762         close of a file loaded at startup, restore the original l_initfini
36763         list.
36764         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
36765         list, store the pointer.
36766         * elf/Makefile ($(objpfx)noload-mem): New rule.
36767         (noload-ENV): Define.
36768         (tests): Add $(objpfx)noload-mem.
36769         * elf/noload.c: Include <memcheck.h>.
36770         (main): Call mtrace.  Close all opened handles.
36771
36772 2011-02-17  Andreas Schwab  <schwab@redhat.com>
36773
36774         [BZ #12454]
36775         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
36776         dependencies are missing.
36777
36778 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36779
36780         Fix __if_freereq crash: Unlike the generic version which uses free,
36781         Hurd needs munmap.
36782         * sysdeps/mach/hurd/ifreq.h: New file.
36783
36784 2011-01-27  Petr Baudis  <pasky@suse.cz>
36785             Ulrich Drepper  <drepper@gmail.com>
36786
36787         [BZ 12445]#
36788         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
36789         to extend_alloca().
36790         * stdio-common/bug23.c: New file.
36791         * stdio-common/Makefile (tests): Add bug23.
36792
36793 2010-09-28  Andreas Schwab  <schwab@redhat.com>
36794             Ulrich Drepper  <drepper@gmail.com>
36795
36796         [BZ #12489]
36797         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
36798         before performing relro protection.  At old place add assertion
36799         to make sure nothing changed.
36800
36801 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
36802             Glauber de Oliveira Costa  <glommer@gmail.com>
36803
36804         * elf/elf.h: Add new ARM TLS relocs.
36805
36806 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
36807
36808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
36809         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
36810         cast from r3.
36811         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
36812         'tests' variable.
36813         * sysdeps/wordsize-64/tst-writev.c: New file.
36814
36815 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
36816
36817         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
36818         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
36819         insns in _dl_start to prevent a TOC reference before relocs are
36820         resolved.
36821
36822 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
36823
36824         [BZ #12469]
36825         * Makeconfig: Remove RANLIB definition.
36826         * Makerules: Don't use RANLIB.
36827         * aclocal.m4: Remove ranlib test.
36828         * configure.in: No need to check for ranlib.
36829         * elf/rtld-Rules: Don't use RANLIB.
36830
36831 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36832
36833         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
36834         protection macro.
36835         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
36836         inclusion protection macro.
36837
36838         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
36839         SIGRTMIN and SIGRTMAX and print information in that case only when
36840         SIGRTMIN is defined.
36841
36842 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
36843
36844         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
36845         arginfo fn returning -1.
36846
36847         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
36848         and thousands string is zero terminated.
36849
36850 2011-02-03  Andreas Schwab  <schwab@redhat.com>
36851
36852         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
36853         sysdeps/unix/sysv/linux/bits/socket.h.
36854
36855 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36856
36857         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
36858         (__CPU_COUNT): Remove old macros.
36859         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
36860         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
36861         (__CPU_ALLOC, __CPU_FREE): Add macros.
36862         (__sched_cpualloc, __sched_cpufree): Add declarations.
36863
36864 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
36865
36866         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
36867         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
36868         * nscd/aicache.c (addhstaiX): Return timeout of added value.
36869         (readdhstai): Return value of addhstaiX call.
36870         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
36871         (addgrbyX): Return value returned by cache_addgr.
36872         (readdgrbyname): Return value returned by addgrbyX.
36873         (readdgrbygid): Likewise.
36874         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
36875         (addpwbyX): Return value returned by cache_addpw.
36876         (readdpwbyname): Return value returned by addhstbyX.
36877         (readdpwbyuid): Likewise.
36878         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
36879         (addservbyX): Return value returned by cache_addserv.
36880         (readdservbyname): Return value returned by addservbyX:
36881         (readdservbyport): Likewise.
36882         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
36883         (addhstbyX): Return value returned by cache_addhst.
36884         (readdhstbyname): Return value returned by addhstbyX.
36885         (readdhstbyaddr): Likewise.
36886         (readdhstbynamev6): Likewise.
36887         (readdhstbyaddrv6): Likewise.
36888         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
36889         (readdinitgroups): Return value returned by addinitgroupsX.
36890         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
36891         (prune_cache): Keep track of timeout value of re-added entries.
36892         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
36893         * nscd/nscd.h: Adjust prototypes of readd* functions.
36894
36895 2011-02-04  Roland McGrath  <roland@redhat.com>
36896
36897         * nis/nis_server.c (nis_servstate): Use the right name for 0.
36898         (nis_stats): Likewise.
36899         * nis/nis_modify.c (nis_modify): Likewise.
36900         * nis/nis_remove.c (nis_remove): Likewise.
36901         * nis/nis_add.c (nis_add): Likewise.
36902
36903         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
36904
36905         * posix/fnmatch_loop.c: Add some consts.
36906
36907         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
36908
36909 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
36910
36911         [BZ #12460]
36912         * config.make.in (config-cflags-novzeroupper): Define.
36913         * configure.in: Substitute libc_cv_cc_novzeroupper.
36914         * elf/Makefile (AVX-CFLAGS): Define.
36915         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
36916         (CFLAGS-tst-auditmod4a.c): Likewise.
36917         (CFLAGS-tst-auditmod4b.c): Likewise.
36918         (CFLAGS-tst-auditmod6b.c): Likewise.
36919         (CFLAGS-tst-auditmod6c.c): Likewise.
36920         (CFLAGS-tst-auditmod7b.c): Likewise.
36921         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
36922
36923 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
36924
36925         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
36926         function to the callback.
36927         Patch partly by Jiri Olsa <jolsa@redhat.com>.
36928
36929 2011-02-02  Andreas Schwab  <schwab@redhat.com>
36930
36931         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
36932         of errno.
36933
36934 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
36935
36936         [BZ #11724]
36937         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
36938         of constructors.
36939         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
36940         of destructors.
36941         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
36942
36943         [BZ #11724]
36944         * elf/Makefile: Add rules to build and run new test.
36945         * elf/tst-initorder.c: New file.
36946         * elf/tst-initorder.exp: New file.
36947         * elf/tst-initordera1.c: New file.
36948         * elf/tst-initordera2.c: New file.
36949         * elf/tst-initordera3.c: New file.
36950         * elf/tst-initordera4.c: New file.
36951         * elf/tst-initorderb1.c: New file.
36952         * elf/tst-initorderb2.c: New file.
36953         * elf/tst-order-a1.c: New file.
36954         * elf/tst-order-a2.c: New file.
36955         * elf/tst-order-a3.c: New file.
36956         * elf/tst-order-a4.c: New file.
36957         * elf/tst-order-b1.c: New file.
36958         * elf/tst-order-b2.c: New file.
36959         * elf/tst-order-main.c: New file.
36960         New test case by George Gensure <werkt0@gmail.com>.
36961
36962 2010-10-01  Andreas Schwab  <schwab@redhat.com>
36963
36964         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
36965         decoding ACE if AI_CANONIDN.
36966
36967 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
36968
36969         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
36970
36971 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
36972
36973         * version.h (RELEASE): Bump for 2.13 release.
36974         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
36975
36976         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
36977
36978         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
36979         MADV_NOHUGEPAGE.
36980         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
36981         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
36982         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36983         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36984         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36985         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
36986
36987         * posix/getconf.c: Update copyright year.
36988         * catgets/gencat.c: Likewise.
36989         * csu/version.c: Likewise.
36990         * debug/catchsegv.sh: Likewise.
36991         * debug/xtrace.sh: Likewise.
36992         * elf/ldconfig.c: Likewise.
36993         * elf/ldd.bash.in: Likewise.
36994         * elf/sprof.c (print_version): Likewise.
36995         * iconv/iconv_prog.c: Likewise.
36996         * iconv/iconvconfig.c: Likewise.
36997         * locale/programs/locale.c: Likewise.
36998         * locale/programs/localedef.c: Likewise.
36999         * malloc/memusage.sh: Likewise.
37000         * malloc/mtrace.pl: Likewise.
37001         * nscd/nscd.c (print_version): Likewise.
37002         * nss/getent.c: Likewise.
37003
37004         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
37005         PF_CAIF, and PF_ALG.
37006         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37007
37008 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
37009
37010         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
37011         (modules-names): Use them.
37012         (ifunc-test-modules, ifunc-pie-tests): Define.
37013         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
37014         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
37015         (test-extras): Likewise.
37016         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
37017         $(compile-command.c).
37018         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
37019         (all-built-dso): Define.
37020         (check-textrel.out, check-execstack.out): Depend on it.
37021
37022         * configure.in: Don't override --enable-multi-arch.
37023
37024 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
37025
37026         [BZ #6812]
37027         * nscd/hstcache.c (tryagain): Define.
37028         (cache_addhst): Return tryagain not notfound for temporary errors.
37029         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
37030         failed.
37031
37032 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
37033
37034         [BZ #10563]
37035         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
37036         to make the syscall.
37037         * sysdeps/unix/sysv/linux/setgroups.c: New file.
37038
37039         [BZ #12378]
37040         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
37041         and fall back to matching as normal character if the string ends before
37042         the matching ']' is found.  This is what POSIX requires.
37043         * posix/testfnm.c: Adjust test result.
37044         * posix/globtest.sh: Adjust test result.  Add new test.
37045         * posix/tst-fnmatch.input: Likewise.
37046         * posix/tst-fnmatch2.c: Add new test.
37047
37048 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
37049
37050         * elf/Makefile (check-execstack): Revert last change.  Depend on
37051         check-execstack.h.
37052         (check-execstack.h): New target.
37053         (generated): Add check-execstack.h.
37054         * elf/check-execstack.c: Include "check-execstack.h".
37055         (main): Revert last change.
37056         (handle_file): Return zero if GNU_STACK is absent and
37057         DEFAULT_STACK_PERMS doesn't include PF_X.
37058
37059 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
37060
37061         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
37062         in child fails because the descriptor is already closed.
37063         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
37064         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
37065         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
37066
37067         [BZ #12397]
37068         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
37069         syscall.
37070
37071         [BZ #10484]
37072         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
37073         temporary buffer used to handle multi lookups locally.
37074         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
37075
37076 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37077
37078         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
37079         loader is ld.so.
37080
37081 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
37082
37083         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
37084         alignment for SSE2.
37085
37086 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37087
37088         [BZ #12394]
37089         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
37090         characters.  When rounding increased number of integer digits recompute
37091         number of groups.
37092         * stdio-common/tst-grouping.c: New file.
37093         * stdio-common/Makefile: Add rules to build and run tst-grouping.
37094
37095 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
37096
37097         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
37098         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
37099
37100         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
37101         void.
37102         * bits/select.h: Likewise.
37103
37104 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
37105
37106         * po/ja.po: Update from translation team.
37107
37108 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
37109
37110         [BZ #11155]
37111         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
37112         implementation just like for lxstat, fxstatat, et al.
37113
37114 2010-12-27  Jim Meyering  <meyering@redhat.com>
37115
37116         [BZ #12348]
37117         * posix/regexec.c (build_trtable): Return failure indication upon
37118         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
37119
37120 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
37121
37122         [BZ #12201]
37123         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
37124         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
37125         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
37126         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
37127
37128         [BZ #12207]
37129         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
37130
37131         [BZ #12204]
37132         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
37133         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
37134
37135 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
37136
37137         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
37138         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
37139         script has SORT_BY_INIT_PRIORITY.
37140         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
37141         NO_CTORS_DTORS_SECTIONS is defined.
37142         * elf/soinit.c: Likewise.
37143         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
37144         NO_CTORS_DTORS_SECTIONS is defined.
37145         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
37146         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
37147         * sysdeps/sh/init-first.c: Likewise.
37148         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
37149
37150 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
37151
37152         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
37153         always use the slow path.
37154
37155 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
37156
37157         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
37158         similar rule which adds the sysdep directories to the header search in
37159         order to pick up the correct platform stackinfo.h.
37160         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
37161         perform test if it is, otherwise return successfully without testing.
37162         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
37163         DEFAULT_STACK_PERMS define in stackinfo.h.
37164         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
37165         defined in stackinfo.h.
37166         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
37167         DEFAULT_STACK_PERMS defined in stackinfo.h.
37168         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
37169         * sysdeps/ia64/stackinfo.h: Likewise.
37170         * sysdeps/s390/stackinfo.h: Likewise.
37171         * sysdeps/sh/stackinfo.h: Likewise.
37172         * sysdeps/sparc/stackinfo.h: Likewise.
37173         * sysdeps/x86_64/stackinfo.h: Likewise.
37174         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
37175         PF_X for powerpc64.  Retain PF_X for powerpc32.
37176
37177 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
37178
37179         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
37180         accurately.
37181         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
37182         GETDENTS_64BIT_ALIGNED.
37183
37184 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
37185
37186         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
37187
37188 2010-12-10  Andreas Schwab  <schwab@redhat.com>
37189
37190         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
37191         _GNU_SOURCE.
37192
37193         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
37194         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
37195         Remove __restrict.
37196         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
37197         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
37198
37199 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
37200
37201         [BZ #11655]
37202         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
37203         are initialized.
37204
37205 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
37206
37207         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
37208
37209 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
37210
37211         * po/it.po: Update from translation team.
37212
37213 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
37214
37215         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
37216         unused codes.
37217
37218 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
37219
37220         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
37221
37222 2010-11-24  Andreas Schwab  <schwab@redhat.com>
37223
37224         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
37225         specially.
37226         (gaih_getanswer_slice): Likewise.
37227
37228 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
37229
37230         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
37231
37232 2010-05-31  Petr Baudis  <pasky@suse.cz>
37233
37234         [BZ #11149]
37235         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
37236         silently even in the chroot mode.
37237
37238 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
37239
37240         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
37241         last patch a bit.  Pretty printing
37242
37243 2010-05-31  Petr Baudis <pasky@suse.cz>
37244
37245         [BZ #10085]
37246         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
37247         initialization of skip_initgroups_dyn.
37248
37249 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
37250
37251         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
37252         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37253
37254 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
37255
37256         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
37257
37258 2010-11-11  Andreas Schwab  <schwab@redhat.com>
37259
37260         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
37261         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
37262         (tst-fnmatch-ENV): Set MALLOC_TRACE.
37263         ($(objpfx)tst-fnmatch-mem): New rule.
37264         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
37265         * posix/tst-fnmatch.c (main): Call mtrace.
37266
37267 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
37268
37269         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37270         Support Intel processor model 6 and model 0x2c.
37271
37272 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
37273
37274         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
37275           signed comparison.
37276
37277 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
37278
37279         [BZ #12205]
37280         * string/test-strncasecmp.c (check_result): New function.
37281         (do_one_test): Use it.
37282         (check1): New function.
37283         (test_main): Use it.
37284         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
37285         Support strcasecmp and strncasecmp.
37286
37287 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
37288
37289         [BZ #12194]
37290         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
37291         * sysdeps/x86_64/bits/byteswap.h: Likewise.
37292
37293 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
37294
37295         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
37296         IFUNC support.
37297         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37298         memset-x86-64.
37299         * sysdeps/x86_64/multiarch/bzero.S: New file.
37300         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
37301         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
37302         * sysdeps/x86_64/multiarch/memset.S: New file.
37303         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
37304         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37305         Set bit_Prefer_SSE_for_memop for Intel processors.
37306         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
37307         Define.
37308         (index_Prefer_SSE_for_memop): Define.
37309         (HAS_PREFER_SSE_FOR_MEMOP): Define.
37310
37311 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
37312
37313         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
37314         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
37315
37316 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
37317
37318         [BZ #12191]
37319         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37320         (__x86_64_raw_data_cache_size_half): Likewise.
37321         (__x86_64_raw_shared_cache_size): Likewise.
37322         (__x86_64_raw_shared_cache_size_half): Likewise.
37323
37324         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37325         (__x86_64_raw_data_cache_size_half): Likewise.
37326         (__x86_64_raw_shared_cache_size): Likewise.
37327         (__x86_64_raw_shared_cache_size_half): Likewise.
37328         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
37329         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
37330         and __x86_64_raw_shared_cache_size_half.  Round
37331         __x86_64_data_cache_size_half, __x86_64_data_cache_size
37332         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
37333         to multiple of 256 bytes.
37334
37335 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
37336
37337         [BZ #12167]
37338         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
37339         of inacessible symlinks.  Verify result of symlink before returning it.
37340         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37341         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
37342
37343 2010-10-28  Erich Ritz  <erichritz@gmail.com>
37344
37345         * math/math.h (isinf): Fix typo in comment.
37346
37347 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
37348
37349         * po/da.po: Update from translation team.
37350
37351 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
37352
37353         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
37354         is added to the list.
37355
37356 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37357             Ulrich Drepper  <drepper@gmail.com>
37358
37359         * elf/dl-object.c (_dl_new_object): Don't append the new object to
37360         the global list here.  Move code to...
37361         (_dl_add_to_namespace_list): ...here.  New function.
37362         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
37363         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
37364         * elf/dl-load.c (lose): Don't remove the element from the list.
37365         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
37366         (_dl_map_object): Likewise.
37367
37368 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
37369
37370         [BZ #12159]
37371         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
37372         into all bytes of SSE register.
37373         Patch by Richard Li <richardpku@gmail.com>.
37374
37375 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
37376
37377         [BZ #12140]
37378         * malloc/malloc.c (_int_free): Fill correct number of bytes when
37379         perturbing.
37380
37381 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
37382
37383         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
37384         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
37385         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
37386         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
37387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
37388         submachine.
37389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
37390
37391 2010-10-22  Andreas Schwab  <schwab@redhat.com>
37392
37393         * include/dlfcn.h (__RTLD_SECURE): Define.
37394         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
37395         mode & __RTLD_SECURE instead.
37396         (open_path): Rename preloaded parameter to secure.
37397         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
37398         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
37399         * elf/dl-deps.c (openaux): Likewise.
37400         * elf/rtld.c (struct map_args): Remove is_preloaded.
37401         (map_doit): Don't use it.
37402         (dl_main): Likewise.
37403         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
37404         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
37405
37406 2010-09-09  Andreas Schwab  <schwab@redhat.com>
37407
37408         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
37409         (sysd-rules-targets): Remove duplicates.
37410         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
37411         rtld-%.$o dependency.
37412
37413 2010-10-18  Andreas Schwab  <schwab@redhat.com>
37414
37415         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
37416         _dl_map_object do it.
37417
37418 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
37419
37420         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
37421         fast fma builtins, define the macros in the C99 standard.
37422         (FP_FAST_FMAF): Likewise.
37423         (FP_FAST_FMAL): Likewise.
37424         * sysdeps/x86_64/bits/mathdef.h: Likewise.
37425
37426         * bits/mathdef.h: Update copyright year.
37427         * sysdeps/powerpc/bits/mathdef.h: Likewise.
37428
37429 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
37430
37431         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
37432         builtins, define the macros in the C99 standard.
37433         (FP_FAST_FMAF): Likewise.
37434         (FP_FAST_FMAL): Likewise.
37435         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
37436         multiply/add.
37437         (FP_FAST_FMAF): Likewise.
37438
37439 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
37440
37441         [BZ #3268]
37442         * math/libm-test.inc (fma_test): Some new testcases.
37443         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
37444         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
37445         y and infinite z.  Do multiplication by C already in long double.
37446         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
37447         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
37448         y and infinite z.  Do bitwise or of inexact bit into u.d.
37449         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
37450         * sysdeps/i386/fpu/s_fmaf.S: Removed.
37451         * sysdeps/i386/fpu/s_fma.S: Removed.
37452         * sysdeps/i386/fpu/s_fmal.S: Removed.
37453
37454 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
37455
37456         [BZ #3268]
37457         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
37458         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
37459         computation is not scheduled after fetestexcept.  Fix value
37460         of minimum denormal long double.
37461
37462 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
37463
37464         [BZ #3268]
37465         * math/libm-test.inc (fma_test): Add some more tests.
37466         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
37467         correctly.
37468
37469 2010-10-15  Andreas Schwab  <schwab@redhat.com>
37470
37471         * scripts/data/localplt-s390-linux-gnu.data: New file.
37472         * scripts/data/localplt-s390x-linux-gnu.data: New file.
37473
37474 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
37475
37476         [BZ #3268]
37477         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
37478         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
37479         instead of dbl-64.
37480         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
37481         inlines.
37482         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
37483         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
37484         if one of x and y is very large and the other is subnormal.
37485         * sysdeps/s390/fpu/s_fmaf.c: New file.
37486         * sysdeps/s390/fpu/s_fma.c: New file.
37487         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
37488         * sysdeps/powerpc/fpu/s_fma.S: New file.
37489         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
37490         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
37491         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
37492
37493 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
37494
37495         [BZ #3268]
37496         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
37497         fma tests.
37498         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
37499         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
37500         * sysdeps/i386/i686/multiarch/s_fma.c: Include
37501         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
37502         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
37503         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
37504         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
37505
37506 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
37507
37508         [BZ #12078]
37509         * posix/regcomp.c (parse_branch): One more memory leak plugged.
37510         * posix/bug-regex31.input: Add test case.
37511
37512 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37513
37514         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
37515         * posix/bug-regex31.input: New file.
37516
37517         [BZ #12078]
37518         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
37519         (parse_sub_exp): Fix last change, use postorder.
37520
37521         * posix/bug-regex31.c: New file.
37522         * posix/Makefile: Add rules to build and run bug-regex31.
37523
37524         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
37525
37526         [BZ #12078]
37527         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
37528
37529         [BZ #12108]
37530         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
37531         to have entries in sys_siglist.
37532
37533         [BZ #12093]
37534         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
37535         be NULL.
37536
37537 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
37538
37539         [BZ #3268]
37540         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
37541         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
37542         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
37543         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
37544         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
37545         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
37546         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
37547         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
37548         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
37549         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
37550         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
37551         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
37552         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
37553         * math/ftestexcept.c (fetestexcept): Likewise.
37554         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
37555         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
37556         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
37557         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
37558         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
37559         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
37560         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
37561
37562 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37563
37564         [BZ #12107]
37565         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
37566         newline.
37567
37568 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
37569
37570         * string/bug-strstr1.c: New file.
37571         * string/Makefile: Add rules to build and run bug-strstr1.
37572
37573 2010-10-05  Eric Blake  <eblake@redhat.com>
37574
37575         [BZ #12092]
37576         * string/str-two-way.h (two_way_long_needle): Always clear memory
37577         when skipping input due to the shift table.
37578
37579 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
37580
37581         [BZ #12005]
37582         * malloc/mcheck.c: Handle large requests.
37583
37584         [BZ #12077]
37585         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
37586         for strncmp and strncasecmp.
37587         * string/stratcliff.c: Add tests for strcmp and strncmp.
37588         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
37589
37590 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37591
37592         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
37593         __set_fpscr.
37594
37595 2010-09-30  Andreas Jaeger  <aj@suse.de>
37596
37597         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
37598         (CGROUP_SUPER_MAGIC): Define.
37599         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37600         Handle btrfs and cgroup file systems.
37601         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
37602         Likewise.
37603
37604 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
37605
37606         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
37607         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
37608
37609 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37610
37611         [BZ #12067]
37612         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
37613         trying to locate the ELF header.
37614
37615 2010-09-27  Andreas Schwab  <schwab@redhat.com>
37616
37617         [BZ #11611]
37618         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
37619         Mask out sign-bit copies when constructing f_fsid.
37620
37621 2010-09-24  Petr Baudis <pasky@suse.cz>
37622
37623         * debug/stack_chk_fail_local.c: Add missing licence exception.
37624         * debug/warning-nop.c: Likewise.
37625
37626 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
37627
37628         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
37629         implementing getdents64 using getdents syscall, set d_type if
37630         __ASSUME_GETDENTS32_D_TYPE.
37631
37632 2010-09-16  Andreas Schwab  <schwab@redhat.com>
37633
37634         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
37635         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
37636
37637 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
37638
37639         [BZ #12037]
37640         * posix/unistd.h: Undo change of feature selection for ftruncate from
37641         2010-01-11.
37642
37643 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
37644
37645         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
37646         detection.
37647
37648 2010-09-20  Andreas Schwab  <schwab@redhat.com>
37649
37650         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
37651         fanotify_mark.
37652         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
37653
37654 2010-09-14  Andreas Schwab  <schwab@redhat.com>
37655
37656         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
37657         variables after CHECK_SP call.
37658         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
37659
37660 2010-09-13  Andreas Schwab  <schwab@redhat.com>
37661             Ulrich Drepper  <drepper@redhat.com>
37662
37663         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
37664         re-relocationg ld.so.
37665         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
37666         _dl_init_paths call.
37667         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
37668         here anymore.
37669
37670 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
37671
37672         * resolv/res_init.c (__res_vinit): Count the default server we added.
37673
37674 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
37675             Ulrich Drepper  <drepper@redhat.com>
37676
37677         [BZ #11968]
37678         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
37679         (____longjmp_chk): Use %ebx for saving value across system call.
37680         Add unwind info.
37681
37682 2010-09-06  Andreas Schwab  <schwab@redhat.com>
37683
37684         * manual/Makefile: Don't mix pattern rules with normal rules.
37685
37686 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
37687
37688         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
37689         operation.
37690         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
37691         * libio/iofopncook.c (_IO_cookie_init): Likewise.
37692         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
37693         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
37694         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
37695         Likewise.
37696
37697 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
37698
37699         [BZ #11979]
37700         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
37701         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
37702
37703 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
37704
37705         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
37706         * sysdeps/x86_64/addmul_1.S: Likewise.
37707         * sysdeps/x86_64/lshift.S: Likewise.
37708         * sysdeps/x86_64/mul_1.S: Likewise.
37709         * sysdeps/x86_64/rshift.S: Likewise.
37710         * sysdeps/x86_64/sub_n.S: Likewise.
37711         * sysdeps/x86_64/submul_1.S: Likewise.
37712
37713 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37714
37715         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
37716         Define __sched_param instead of SCHED_* and sched_param when
37717         <bits/sched.h> is included with __need_schedparam defined.
37718         * bits/sched.h [__need_schedparam]
37719         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
37720         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
37721         (__defined_schedparam): Define to 1.
37722         (__sched_param): New structure, identical to sched_param.
37723         (__need_schedparam): Undefine.
37724
37725 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
37726
37727         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
37728         (epoll_create1): Declare.
37729
37730         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
37731
37732 2010-08-31  Andreas Schwab  <schwab@redhat.com>
37733
37734         [BZ #7066]
37735         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
37736         shifting retval into place.
37737
37738 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
37739
37740         * nis/rpcsvc/nis.h: Update copyright notice.
37741         * nis/rpcsvc/nis.x: Likewise.
37742         * nis/rpcsvc/nis_callback.h: Likewise.
37743         * nis/rpcsvc/nis_callback.x: Likewise.
37744         * nis/rpcsvc/nis_object.x: Likewise.
37745         * nis/rpcsvc/nis_tags.h: Likewise.
37746         * nis/rpcsvc/yp.h: Likewise.
37747         * nis/rpcsvc/yp.x: Likewise.
37748         * nis/rpcsvc/ypupd.h: Likewise.
37749         * nis/yp_xdr.c: Likewise.
37750         * nis/ypupdate_xdr.c: Likewise.
37751
37752         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
37753         mainly the body of pmap_getport.  Add parameters to specify timeouts.
37754         (pmap_getport): Use __libc_rpc_getport.
37755         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
37756         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
37757         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
37758
37759 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
37760
37761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
37762         fanotify_mark.
37763
37764 2010-08-27  Roland McGrath  <roland@redhat.com>
37765
37766         * sysdeps/i386/i686/multiarch/Makefile
37767         (CFLAGS-varshift.c): New variable.
37768
37769 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
37770
37771         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
37772         * sysdeps/i386/i686/multiarch/varshift.c: New file.
37773
37774         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
37775
37776         * sysdeps/x86_64/strlen.S: Minimal code improvement.
37777
37778 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
37779
37780         * sysdeps/x86_64/strlen.S: Unroll the loop.
37781         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37782         strlen-sse2 strlen-sse2-bsf.
37783         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
37784         __strlen_no_bsf if bit_Slow_BSF is set.
37785         (__strlen_sse42): Removed.
37786         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
37787         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
37788
37789 2010-08-25  Roland McGrath  <roland@redhat.com>
37790
37791         * sysdeps/x86_64/multiarch/varshift.S: File removed.
37792         * sysdeps/x86_64/multiarch/varshift.c: New file.
37793         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
37794         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
37795         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
37796         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
37797
37798 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
37799
37800         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37801         strlen-sse2 strlen-sse2-bsf.
37802         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
37803         __strlen_sse2_bsf if bit_Slow_BSF is unset.
37804         (__strlen_sse2): Removed.
37805         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
37806         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
37807         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
37808         bit_Slow_BSF for Atom.
37809         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
37810         (index_Slow_BSF): Define.
37811         (HAS_SLOW_BSF): Define.
37812
37813 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
37814
37815         [BZ #10851]
37816         * resolv/res_init.c (__res_vinit): When no server address at all
37817         is given default to loopback.
37818
37819 2010-08-24  Roland McGrath  <roland@redhat.com>
37820
37821         * configure.in: Remove config-name.h generation.
37822         * configure: Regenerated.
37823         * config-name.in: File removed.
37824         * scripts/config-uname.sh: New file.
37825         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
37826         ($(objdir)config-name.h): New target.
37827
37828         * sunrpc/rpc_parse.h: Avoid nested comment.
37829
37830 2010-08-24  Richard Henderson  <rth@redhat.com>
37831             Ulrich Drepper  <drepper@redhat.com>
37832             H.J. Lu  <hongjiu.lu@intel.com>
37833
37834         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
37835         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
37836         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
37837         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
37838         _mm_alignr_epi8 with _mm_loadu_si128.
37839         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
37840         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
37841         (__m128i_shift_right): Removed.
37842         * sysdeps/i386/i686/multiarch/varshift.h: New file.
37843         * sysdeps/i386/i686/multiarch/varshift.S: New file.
37844         * sysdeps/x86_64/multiarch/varshift.h: New file.
37845         * sysdeps/x86_64/multiarch/varshift.S: New file.
37846
37847 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
37848
37849         * configure.in: Move assembler checks to before sysdep dir checking.
37850
37851 2010-08-20  Petr Baudis  <pasky@suse.cz>
37852
37853         * LICENSES: Sync the sunrpc license.
37854
37855 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
37856
37857         * sunrpc/auth_des.c: Update copyright notice once again.
37858         * sunrpc/auth_none.c: Likewise.
37859         * sunrpc/auth_unix.c: Likewise.
37860         * sunrpc/authdes_prot.c: Likewise.
37861         * sunrpc/authuxprot.c: Likewise.
37862         * sunrpc/bindrsvprt.c: Likewise.
37863         * sunrpc/clnt_gen.c: Likewise.
37864         * sunrpc/clnt_perr.c: Likewise.
37865         * sunrpc/clnt_raw.c: Likewise.
37866         * sunrpc/clnt_simp.c: Likewise.
37867         * sunrpc/clnt_tcp.c: Likewise.
37868         * sunrpc/clnt_udp.c: Likewise.
37869         * sunrpc/clnt_unix.c: Likewise.
37870         * sunrpc/des_crypt.c: Likewise.
37871         * sunrpc/des_soft.c: Likewise.
37872         * sunrpc/get_myaddr.c: Likewise.
37873         * sunrpc/getrpcport.c: Likewise.
37874         * sunrpc/key_call.c: Likewise.
37875         * sunrpc/key_prot.c: Likewise.
37876         * sunrpc/openchild.c: Likewise.
37877         * sunrpc/pm_getmaps.c: Likewise.
37878         * sunrpc/pm_getport.c: Likewise.
37879         * sunrpc/pmap_clnt.c: Likewise.
37880         * sunrpc/pmap_prot.c: Likewise.
37881         * sunrpc/pmap_prot2.c: Likewise.
37882         * sunrpc/pmap_rmt.c: Likewise.
37883         * sunrpc/rpc/auth.h: Likewise.
37884         * sunrpc/rpc/auth_unix.h: Likewise.
37885         * sunrpc/rpc/clnt.h: Likewise.
37886         * sunrpc/rpc/des_crypt.h: Likewise.
37887         * sunrpc/rpc/key_prot.h: Likewise.
37888         * sunrpc/rpc/netdb.h: Likewise.
37889         * sunrpc/rpc/pmap_clnt.h: Likewise.
37890         * sunrpc/rpc/pmap_prot.h: Likewise.
37891         * sunrpc/rpc/pmap_rmt.h: Likewise.
37892         * sunrpc/rpc/rpc.h: Likewise.
37893         * sunrpc/rpc/rpc_des.h: Likewise.
37894         * sunrpc/rpc/rpc_msg.h: Likewise.
37895         * sunrpc/rpc/svc.h: Likewise.
37896         * sunrpc/rpc/svc_auth.h: Likewise.
37897         * sunrpc/rpc/types.h: Likewise.
37898         * sunrpc/rpc/xdr.h: Likewise.
37899         * sunrpc/rpc_clntout.c: Likewise.
37900         * sunrpc/rpc_cmsg.c: Likewise.
37901         * sunrpc/rpc_common.c: Likewise.
37902         * sunrpc/rpc_cout.c: Likewise.
37903         * sunrpc/rpc_dtable.c: Likewise.
37904         * sunrpc/rpc_hout.c: Likewise.
37905         * sunrpc/rpc_main.c: Likewise.
37906         * sunrpc/rpc_parse.c: Likewise.
37907         * sunrpc/rpc_parse.h: Likewise.
37908         * sunrpc/rpc_prot.c: Likewise.
37909         * sunrpc/rpc_sample.c: Likewise.
37910         * sunrpc/rpc_scan.c: Likewise.
37911         * sunrpc/rpc_scan.h: Likewise.
37912         * sunrpc/rpc_svcout.c: Likewise.
37913         * sunrpc/rpc_tblout.c: Likewise.
37914         * sunrpc/rpc_util.c: Likewise.
37915         * sunrpc/rpc_util.h: Likewise.
37916         * sunrpc/rpcinfo.c: Likewise.
37917         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
37918         * sunrpc/rpcsvc/key_prot.x: Likewise.
37919         * sunrpc/rpcsvc/klm_prot.x: Likewise.
37920         * sunrpc/rpcsvc/mount.x: Likewise.
37921         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
37922         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
37923         * sunrpc/rpcsvc/rex.x: Likewise.
37924         * sunrpc/rpcsvc/rstat.x: Likewise.
37925         * sunrpc/rpcsvc/rusers.x: Likewise.
37926         * sunrpc/rpcsvc/sm_inter.x: Likewise.
37927         * sunrpc/rpcsvc/spray.x: Likewise.
37928         * sunrpc/rpcsvc/yppasswd.x: Likewise.
37929         * sunrpc/rtime.c: Likewise.
37930         * sunrpc/svc.c: Likewise.
37931         * sunrpc/svc_auth.c: Likewise.
37932         * sunrpc/svc_authux.c: Likewise.
37933         * sunrpc/svc_raw.c: Likewise.
37934         * sunrpc/svc_run.c: Likewise.
37935         * sunrpc/svc_simple.c: Likewise.
37936         * sunrpc/svc_tcp.c: Likewise.
37937         * sunrpc/svc_udp.c: Likewise.
37938         * sunrpc/svc_unix.c: Likewise.
37939         * sunrpc/svcauth_des.c: Likewise.
37940         * sunrpc/xcrypt.c: Likewise.
37941         * sunrpc/xdr.c: Likewise.
37942         * sunrpc/xdr_array.c: Likewise.
37943         * sunrpc/xdr_float.c: Likewise.
37944         * sunrpc/xdr_mem.c: Likewise.
37945         * sunrpc/xdr_rec.c: Likewise.
37946         * sunrpc/xdr_ref.c: Likewise.
37947         * sunrpc/xdr_sizeof.c: Likewise.
37948         * sunrpc/xdr_stdio.c: Likewise.
37949
37950         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
37951         handling.
37952
37953 2010-08-19  Andreas Schwab  <schwab@redhat.com>
37954
37955         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
37956
37957 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
37958
37959         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
37960         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
37961         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
37962         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
37963         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
37964         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
37965         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
37966         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
37967         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
37968         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
37969         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
37970         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
37971         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
37972         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
37973
37974 2010-07-26  Anton Blanchard  <anton@samba.org>
37975
37976         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
37977         * malloc/arena.c (heap_trim): Likewise.
37978
37979 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
37980
37981         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
37982         here.  Not...
37983         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
37984         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
37985
37986 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
37987
37988         * sysdeps/i386/elf/Makefile: New file.
37989
37990 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
37991
37992         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
37993         from fanotify_init.
37994         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
37995         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
37996
37997 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
37998
37999         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
38000         of strncasecmp_l.
38001         * sysdeps/multiarch/strcmp.S: Likewise.
38002
38003 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
38004
38005         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38006         strncase_l-nonascii.
38007         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38008         Add strncase_l-ssse3.
38009         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
38010         * sysdeps/x86_64/strcmp.S: Likewise.
38011         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
38012         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
38013         * sysdeps/x86_64/strncase.S: New file.
38014         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
38015         * sysdeps/x86_64/strncase_l.S: New file.
38016         * string/Makefile (strop-tests): Add strncasecmp.
38017         * string/test-strncasecmp.c: New file.
38018
38019         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
38020         warning.
38021
38022         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
38023         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
38024
38025 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38026
38027         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
38028
38029 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
38030
38031         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
38032         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
38033         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
38034
38035 2010-05-01  Alan Modra  <amodra@gmail.com>
38036
38037         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
38038         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
38039         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
38040         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
38041         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
38042         tidying.  Don't tail-call __sigjmp_save for static lib.
38043         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
38044         save location.
38045         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
38046         (CALL_MCOUNT): Add eh info, and nop after bl.
38047         (TAIL_CALL_SYSCALL_ERROR): New macro.
38048         (PSEUDO_RET): Use it.
38049         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
38050         Correct save location of integer regs and cr.
38051         (_dl_profile_resolve): Correct cr save location.  Delete nops
38052         after bl when SHARED.  Reduce cfi size a little by better
38053         placement of cfi directives.
38054         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
38055         make a stack frame.  Instead use parm save area as a temp.
38056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
38057         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
38058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
38059         Don't make a stack frame for parent, use parm save area.
38060         Increase child stack frame to 112 bytes.  Don't save unused reg,
38061         and adjust reg usage.  Set up cfi on error recovery and
38062         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
38063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
38064         (__makecontext): Add dummy nop after jump to exit.
38065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
38066         Use correct parm save area and cr save, reduce stack frame.
38067         Correct cfi for possible PSEUDO_RET frame setup.
38068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
38069         Branch to local label emitted by PSEUDO_RET rather than
38070         __syscall_error.
38071
38072 2010-08-12  Andreas Schwab  <schwab@redhat.com>
38073
38074         [BZ #11904]
38075         * locale/programs/locale.c (print_assignment): New function.
38076         (show_locale_vars): Use it.
38077
38078 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
38079
38080         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
38081         field.
38082         (struct statfs64): Likewise.
38083         (_STATFS_F_FLAGS): Define.
38084         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
38085         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38086         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
38087         (ST_VALID): Define locally.
38088         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
38089         __statvfs_getflags, use the provided value.
38090         * sysdeps/unix/sysv/linux/kernel-features.h: Define
38091         __ASSUME_STATFS_F_FLAGS.
38092
38093         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
38094
38095         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
38096         Add sys/fanotify.h.
38097         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
38098         fanotify_mask for GLIBC_2.13.
38099         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
38100         fanotify_init and fanotify_mark.
38101         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38102         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
38103
38104         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
38105         Add prlimit.
38106         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
38107         prlimit64 for GLIBC_2.13.
38108         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
38109         prlimit64.
38110         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
38111         syscall.
38112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
38113         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
38114         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
38115         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
38116         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
38117         add prlimit alias.
38118         * sysdeps/unix/sysv/linux/prlimit.c: New file.
38119
38120         [BZ #11903]
38121         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
38122         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
38123
38124         * nss/Makefile: Add rules to build and run tst-nss-test1.
38125         * shlib-versions: Add entry for libnss_test1.
38126         * nss/nss_test1.c: New file.
38127         * nss/tst-nss-test1.c: New file.
38128
38129         * nss/nsswitch.c (__nss_database_custom): Define new variable.
38130         (__nss_configure_lookup): Set appropriate entry in
38131         __nss_configure_lookup to true.
38132         * nss/nsswitch.h: Define enum with indeces of databases in
38133         databases and __nss_database_custom arrays.  Declare
38134         __nss_database_custom.
38135         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
38136         to avoid using nscd when custom rules are installed.
38137         * nss/getXXbyYY_r.c: Likewise.
38138         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
38139
38140         * nss/nss_files/files-parse.c: Whitespace fixes.
38141
38142 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
38143
38144         [BZ #11883]
38145         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
38146         * posix/fnmatch_loop.c: Likewise.
38147
38148 2010-07-17  Andi Kleen  <ak@linux.intel.com>
38149
38150         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
38151         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
38152         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
38153         * Versions.def [GLIBC_2.13]: Add.
38154
38155 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
38156
38157         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38158         Also fail if tpwd after pwuid call is NULL.
38159
38160 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38161
38162         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
38163         when converting to ms.
38164
38165 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38166
38167         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
38168         EOPNOTSUPP errors with ENOTTY.
38169         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
38170         EOPNOTSUPP errors with ENOTTY.
38171
38172 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
38173
38174         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38175         Add strcasecmp_l-ssse3.
38176         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
38177         strcasecmp.
38178         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
38179         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
38180         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
38181
38182 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
38183
38184         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
38185
38186         * string/Makefile (strop-tests): Add strcasecmp.
38187         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38188         strcasecmp_l-nonascii.
38189         (gen-as-const-headers): Add locale-defines.sym.
38190         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
38191         * sysdeps/x86_64/strcasecmp.S: New file.
38192         * sysdeps/x86_64/strcasecmp_l.S: New file.
38193         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
38194         * sysdeps/x86_64/locale-defines.sym: New file.
38195         * string/test-strcasecmp.c: New file.
38196
38197         * string/test-strcasestr.c: Test both ends of the range of characters.
38198         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
38199
38200 2010-07-29  Roland McGrath  <roland@redhat.com>
38201
38202         [BZ #11856]
38203         * manual/locale.texi (Yes-or-No Questions): Fix example code.
38204
38205 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
38206
38207         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
38208         for ld.so.
38209
38210 2010-07-27  Andreas Schwab  <schwab@redhat.com>
38211
38212         * manual/memory.texi (Malloc Tunable Parameters): Document
38213         M_PERTURB.
38214
38215 2010-07-26  Roland McGrath  <roland@redhat.com>
38216
38217         [BZ #11840]
38218         * configure.in (-fgnu89-inline check): Set and substitute
38219         gnu89_inline, not libc_cv_gnu89_inline.
38220         * configure: Regenerated.
38221         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
38222
38223 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
38224
38225         * string/test-strnlen.c: New file.
38226         * string/Makefile (strop-tests): Add strnlen.
38227         * string/tester.c (test_strnlen): Add a few more test cases.
38228         * string/tst-strlen.c: Better error reporting.
38229
38230         * sysdeps/x86_64/strnlen.S: New file.
38231
38232 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
38233
38234         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
38235         lower-latency instructions.
38236
38237 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
38238
38239         * string/test-strcasestr.c: New file.
38240         * string/test-strstr.c: New file.
38241         * string/Makefile (strop-tests): Add strstr and strcasestr.
38242         * string/str-two-way.h: Don't undefine MAX.
38243         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
38244
38245 2010-07-21  Andreas Schwab  <schwab@redhat.com>
38246
38247         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38248         strcasestr-nonascii.
38249         (CFLAGS-strcasestr-nonascii.c): Define.
38250         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
38251         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
38252         Remove unused attribute.
38253
38254 2010-07-20  Roland McGrath  <roland@redhat.com>
38255
38256         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
38257         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
38258         ld.so.cache was broken.  With it, there is no way to disable dsocaps
38259         like LD_HWCAP_MASK can disable hwcaps.
38260
38261 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38262
38263         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
38264
38265 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
38266
38267         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
38268         call in strcasestr.
38269         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
38270         __strcasestr_sse42_nonascii.
38271         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
38272         strcasestr-nonascii.c.
38273         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
38274
38275 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
38276
38277         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
38278         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
38279         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
38280         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
38281
38282 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
38283
38284         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
38285         fcntl.
38286
38287 2010-07-06  Andreas Schwab  <schwab@redhat.com>
38288
38289         [BZ #11577]
38290         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
38291         dl_signal_cerror.
38292
38293 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
38294
38295         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
38296         _PC_PIPE_BUF using F_GETPIPE_SZ.
38297
38298 2010-07-05  Roland McGrath  <roland@redhat.com>
38299
38300         * manual/arith.texi (Rounding Functions): Fix rint description
38301         implicit in round description.
38302
38303 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
38304
38305         * elf/Makefile: Fix linking for a few tests to make recent linker
38306         happy.
38307
38308 2010-06-30  Andreas Schwab  <schwab@redhat.com>
38309
38310         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
38311         $(common-objpfx)libc_nonshared.a.
38312
38313 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
38314
38315         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
38316         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
38317         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38318         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38319         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
38320         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
38321         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38322         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
38324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
38325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
38326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
38328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
38330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
38331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
38332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
38333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
38335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
38337         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
38338         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
38339         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
38340         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
38341         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
38342         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
38343         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
38344         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
38345         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
38346         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
38347         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
38348         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
38349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
38350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
38351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
38352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
38353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
38354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
38355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
38356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
38357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
38358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
38359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
38360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
38361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
38362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
38363
38364 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
38365
38366         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
38367         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
38368         * string/memmove.c (memmove): Renamed to ...
38369         (MEMMOVE): ...this.  Default to memmove.
38370         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
38371         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
38372         (END_CHK): Define.
38373         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38374         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
38375         mempcpy-ssse3-back memmove-ssse3-back.
38376         * sysdeps/x86_64/multiarch/bcopy.S: New file .
38377         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
38378         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
38379         * sysdeps/x86_64/multiarch/memcpy.S: New file.
38380         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
38381         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
38382         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
38383         * sysdeps/x86_64/multiarch/memmove.c: New file.
38384         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
38385         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
38386         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
38387         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
38388         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
38389         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
38390         Define.
38391         (index_Fast_Copy_Backward): Define.
38392         (HAS_ARCH_FEATURE): Define.
38393         (HAS_FAST_REP_STRING): Define.
38394         (HAS_FAST_COPY_BACKWARD): Define.
38395
38396 2010-06-21  Andreas Schwab  <schwab@redhat.com>
38397
38398         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38399         Restore proper fallback handling.
38400
38401 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
38402
38403         [BZ #11701]
38404         * posix/group_member.c (__group_member): Correct checking loop.
38405
38406         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
38407         OOM in getpwuid_r correctly.  Return error number when the caller
38408         should return, otherwise -1.
38409         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
38410         call returning > 0 value.
38411         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
38412
38413 2010-06-07  Andreas Schwab  <schwab@redhat.com>
38414
38415         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
38416         libc_nonshared.a from targets in modules-names.
38417
38418 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
38419
38420         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
38421         requires it.
38422
38423 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
38424
38425         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
38426         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
38427         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
38428         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
38429
38430 2010-06-02  Andreas Schwab  <schwab@redhat.com>
38431
38432         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
38433
38434 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
38435
38436         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
38437         and F_GETPIPE_SZ.
38438         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
38439         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
38440         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
38441         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
38442         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
38443         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
38444
38445 2010-06-14  Roland McGrath  <roland@redhat.com>
38446
38447         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
38448
38449 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
38450
38451         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
38452         __REDIRECT followed by __THROW.
38453         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
38454         * posix/getopt.h (getopt): Likewise.
38455
38456 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38457
38458         * hurd/lookup-at.c (__file_name_lookup_at): Accept
38459         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
38460         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
38461         in AT_FLAGS.
38462         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
38463         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
38464
38465 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
38466
38467         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
38468
38469 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
38470
38471         [BZ #11640]
38472         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
38473         Properly check family and model.
38474
38475 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
38476
38477         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
38478
38479 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
38480
38481         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
38482
38483 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
38484
38485         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
38486         symbol reference.
38487
38488 2010-05-19  Andreas Schwab  <schwab@redhat.com>
38489
38490         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
38491         symbol reference.
38492
38493 2010-05-21  Andreas Schwab  <schwab@redhat.com>
38494
38495         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
38496         and internal_recvmmsg.
38497         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
38498         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
38499         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
38500         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
38501
38502         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
38503         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
38504         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
38505
38506 2010-05-20  Andreas Schwab  <schwab@redhat.com>
38507
38508         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
38509
38510 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
38511
38512         POWER7 optimizations.
38513         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
38514         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
38515
38516 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
38517
38518         * version.h: Update for 2.13 development version.
38519
38520 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
38521
38522         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
38523         exceptions.  Return 0.
38524
38525 2010-05-07  Roland McGrath  <roland@redhat.com>
38526
38527         * elf/ldconfig.c (main): Add a const.
38528
38529 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
38530
38531         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
38532         (args_options): Add no-idn option.
38533         (ahosts_keys_int): Add idn_flags to ai_flags.
38534         (parse_option): Handle 'i' option to clear idn_flags.
38535
38536         * malloc/malloc.c (_int_free): Possible race in the most recently
38537         added check.  Only act on the data if no current modification
38538         happened.
38539
38540 See ChangeLog.17 for earlier changes.