Fix ldbl-128ibm acoshl inaccuracy (bug 16384).
[jlayton/glibc.git] / ChangeLog
1 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #16384]
4         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
5         M_LN2l.
6         (__ieee754_acoshl): Use __log1pl not __log1p.
7
8 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
9
10         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all,
11         ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry,
12         __failing_morecore, ptmalloc_init, dump_heap, new_heap, grow_heap,
13         heap_trim, _int_new_arena, get_free_list, reused_arena, arena_get2):
14         Convert to GNU style.
15         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init,
16         mem2mem_check, mem2chunk_check, top_check, realloc_check,
17         memalign_check, __malloc_set_state): Likewise.
18         * malloc/mallocbug.c (main): Likewise.
19         * malloc/malloc.c (__malloc_assert, malloc_init_state, free_perturb,
20         do_check_malloced_chunk, do_check_malloc_state, sysmalloc, systrim,
21         mremap_chunk, __libc_malloc, __libc_free, __libc_realloc, _mid_memalign,
22         _int_malloc, malloc_consolidate, _int_realloc, _int_memalign, mtrim,
23         musable, __libc_mallopt, __posix_memalign, malloc_info): Likewise.
24         * malloc/malloc.h: Likewise.
25         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook, mallochook,
26         memalignhook, reallochook, mabort): Likewise.
27         * malloc/mcheck.h: Likewise.
28         * malloc/memusage.c (update_data, me, malloc, realloc, calloc, free, mmap,
29         mmap64, mremap, munmap, dest): Likewise.
30         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
31         * malloc/morecore.c (__default_morecore): Likewise.
32         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
33         * malloc/obstack.c (_obstack_begin, _obstack_newchunk,
34         _obstack_allocated_p, obstack_free, _obstack_memory_used,
35         print_and_abort): Likewise.
36         * malloc/obstack.h: Likewise.
37         * malloc/set-freeres.c (__libc_freeres): Likewise.
38         * malloc/tst-mallocstate.c (main): Likewise.
39         * malloc/tst-mtrace.c (main): Likewise.
40         * malloc/tst-realloc.c (do_test): Likewise.
41
42 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
43
44         [BZ #16366]
45         * nscd/netgroupcache.c (do_notfound): New function.
46         (addgetnetgrentX): Use it.
47
48         [BZ # 16365]
49         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
50         NSS_STATUS_NOTFOUND.
51
52 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
53
54         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
55         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56
57 2014-01-01  Allan McRae  <allan@archlinux.org>
58
59         * scripts/update-copyrights: Update configure input file suffix.
60
61         * NEWS: Update copyright year.
62         * catgets/gencat.c: Likewise.
63         * csu/version.c: Likewise.
64         * debug/catchsegv.sh: Likewise.
65         * debug/pcprofiledump.c: Likewise.
66         * debug/xtrace.sh: Likewise.
67         * elf/ldconfig.c: Likewise.
68         * elf/ldd.bash.in: Likewise.
69         * elf/pldd.c: Likewise.
70         * elf/sotruss.ksh: Likewise.
71         * elf/sprof.c: Likewise.
72         * iconv/iconv_prog.c: Likewise.
73         * iconv/iconvconfig.c: Likewise.
74         * locale/programs/locale.c: Likewise.
75         * locale/programs/localedef.c: Likewise.
76         * login/programs/pt_chown.c: Likewise.
77         * malloc/memusage.sh: Likewise.
78         * malloc/memusagestat.c: Likewise.
79         * malloc/mtrace.pl: Likewise.
80         * manual/libc.texinfo: Likewise.
81         * nscd/nscd.c: Likewise.
82         * nss/getent.c: Likewise.
83         * nss/makedb.c: Likewise.
84         * posix/getconf.c: Likewise.
85         * scripts/test-installation.pl: Likewise.
86
87         * All files with FSF copyright notices: Update copyright dates
88         using scripts/update-copyrights.
89         * intl/plural.c: Regenerated.
90         * locale/programs/charmap-kw.h: Likewise.
91         * locale/programs/locfile-kw.h: Likewise.
92
93 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
94
95         * sysdeps/unix/sysv/linux/configure: Regenerated.
96         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
97         the linux/fanotify.h header.
98         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
99         HAVE_LINUX_FANOTIFY_H is defined.
100
101 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
102
103         * benchtests/cos-inputs: New inputs.
104         * benchtests/sin-inputs: Likewise.
105
106         * benchtests/atan-inputs: New inputs. Fix name of multiple
107         precision fallback inputs.
108
109         * benchtests/atanh-inputs: New inputs.
110         * benchtests/tanh-inputs: Likewise.
111
112         * benchtests/acosh-inputs: New inputs.
113         * benchtests/asinh-inputs: Likewise.
114
115         * benchtests/cosh-inputs: New inputs.
116         * benchtests/sinh-inputs: Likewise.
117
118         * benchtests/acos-inputs: Add more inputs.
119         * benchtests/asin-inputs: Likewise.
120
121 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
122
123         [BZ #16375]
124         * manual/arith.texi: Fix spelling.
125         * manual/charset.texi: Likewise.
126         * manual/errno.texi: Likewise.
127         * manual/filesys.texi: Likewise.
128         * manual/lang.texi: Likewise.
129         * manual/llio.texi: Likewise.
130         * manual/locale.texi: Likewise.
131         * manual/message.texi: Likewise.
132         * manual/resource.texi: Likewise.
133         * manual/search.texi: Likewise.
134         * manual/setjmp.texi: Likewise.
135         * manual/stdio.texi: Likewise.
136         * manual/string.texi: Likewise.
137         * manual/sysinfo.texi: Likewise.
138         * manual/time.texi: Likewise.
139
140 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
141
142         * po/sl.po: New file.
143
144 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
145
146         * .gitignore: Add core/.gdbinit/.gdb_history.
147
148 2013-12-27  Allan McRae  <allan@archlinux.org>
149
150         [BZ #16369]
151         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
152         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
153
154 2013-12-24  Brooks Moses  <bmoses@google.com>
155
156         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
157         all compilers that claim C++98 compliance, not just GCC.
158         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
159         Likewise.
160
161 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
162
163         * NEWS: Restore accidentally deleted bug-fix entries.
164
165 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
166             Ondřej Bílka  <neleai@seznam.cz>
167
168         [BZ #15073]
169         * malloc/malloc.c (_int_free): Perform sanity check only if we
170         have_lock.
171
172 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
173
174         [BZ #12986]
175         * manual/stdio.texi (String Input Conversions): Clarify that character
176         classes are not supported.
177
178 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
179
180         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
181
182 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
183
184         [BZ #16337]
185         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
186         Calculate results for small negative arguments directly rather
187         than using reflection formula with special underflow handling.
188
189         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
190         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
191         sysdeps/unix/bsd/bsd4.4/syscalls.list.
192         (fchflags): Likewise.
193         (revoke): Likewise.
194         (setlogin): Likewise.
195         (sigaltstack): Likewise.
196         (wait4): Likewise.
197         (sigblock): Remove.
198         (sigsetmask): Likewise.
199         (wait3): Likewise.
200         (waitpid): Likewise.
201         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
202         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
203         file.
204         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
205         * sysdeps/unix/bsd/Makefile: ... here.
206         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
207         * sysdeps/unix/bsd/Versions: ... here.
208         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
209         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
210         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
211         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
212         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
213         * sysdeps/unix/bsd/sigblock.c: ... here.
214         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
215         * sysdeps/unix/bsd/sigsetmask.c: ... here.
216         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
217         * sysdeps/unix/bsd/sigvec.c: ... here.
218         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
219         * sysdeps/unix/bsd/tcdrain.c: ... here.
220         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
221         * sysdeps/unix/bsd/tcgetattr.c: ... here.
222         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
223         * sysdeps/unix/bsd/tcsetattr.c: ... here.
224         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
225         * sysdeps/unix/bsd/wait.c: ... here.
226         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
227         * sysdeps/unix/bsd/wait3.c: ... here.
228         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
229         * sysdeps/unix/bsd/waitpid.c: ... here.
230
231 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
232
233         [BZ #16356]
234         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
235         round-to-nearest for [!USE_AS_EXPM1L].
236         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
237         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
238         more tests of exp and exp10.  Expect some exp10 tests to miss
239         exceptions or fail in directed rounding modes.
240         * math/auto-libm-test-out: Regenerated.
241         * math/libm-test.inc (exp10_tonearest_test_data): New array.
242         (exp10_test_tonearest): New function.
243         (exp10_towardzero_test_data): New array.
244         (exp10_test_towardzero): New function.
245         (exp10_downward_test_data): New array.
246         (exp10_test_downward): New function.
247         (exp10_upward_test_data): New array.
248         (exp10_test_upward): New function.
249         (main): Call the new functions.
250         * sysdeps/i386/fpu/libm-test-ulps: Update.
251         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
252
253 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
254
255         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
256         asinh, atan, atan2, atanh, cbrt, cos and cosh.
257         * math/auto-libm-test-out: Regenerated.
258         * math/libm-test.inc (acosh_test_data): Add more tests.
259         (atanh_test_data): Likewise.
260         (ceil_test_data): Likewise.
261         (copysign_test_data): Likewise.
262         * sysdeps/i386/fpu/libm-test-ulps: Update.
263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
264
265         * timezone/checktab.awk: Update from tzcode 2013i.
266         * timezone/private.h: Likewise.
267         * timezone/scheck.c: Likewise.
268         * timezone/tzfile.h: Likewise.
269         * timezone/tzselect.ksh: Likewise.
270         * timezone/zdump.c: Likewise.
271         * timezone/zic.c: Likewise.
272
273         * math/auto-libm-test-in: Add tests of cpow.
274         * math/auto-libm-test-out: Regenerated.
275         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
276         * * math/gen-auto-libm-tests.c (func_calc_method): Add value
277         mpc_cc_c.
278         (func_calc_desc): Add mpc_cc_c union field.
279         (test_functions): Add cpow.
280         (special_fill_2pi): New function.
281         (special_real_inputs): Add 2pi.
282         (calc_generic_results): Handle mpc_cc_c.
283         * sysdeps/i386/fpu/libm-test-ulps: Update.
284         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
285
286         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
287         csqrt, ctan and ctanh.
288         * math/auto-libm-test-out: Regenerated.
289         * math/libm-test.inc (TEST_COND_x86_64): New macro.
290         (TEST_COND_x86): Likewise.
291         (ccos_test_data): Use AUTO_TESTS_c_c.
292         (ccosh_test_data): Likewise.
293         (cexp_test_data): Likewise.
294         (clog_test_data): Likewise.
295         (csqrt_test_data): Likewise.
296         (ctan_test_data): Likewise.
297         (ctan_tonearest_test_data): Likewise.
298         (ctan_towardzero_test_data): Likewise.
299         (ctan_downward_test_data): Likewise.
300         (ctan_upward_test_data): Likewise.
301         (ctanh_test_data): Likewise.
302         (ctanh_tonearest_test_data): Likewise.
303         (ctanh_towardzero_test_data): Likewise.
304         (ctanh_downward_test_data): Likewise.
305         (ctanh_upward_test_data): Likewise.
306         * math/gen-auto-libm-tests.c (func_calc_method): Add value
307         mpc_c_c.
308         (func_calc_desc): Add mpc_c_c union field.
309         (FUNC_mpc_c_c): New macro.
310         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
311         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
312         ctanh.
313         (special_fill_min_subnorm_p120): New function.
314         (special_real_inputs): Add min_subnorm_p120.
315         (calc_generic_results): Handle mpc_c_c.
316         * sysdeps/i386/fpu/libm-test-ulps: Update.
317         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
318
319 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
320
321         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin,
322         do_sin_slow): New functions.
323         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2,
324         cslow2, csloww1, csloww2): Use the new functions.
325
326         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
327         Use M to change sign of result instead of X.  Assume X is
328         positive.
329         (csloww1): Likewise.
330         (__sin): Adjust.
331         (__cos): Adjust.
332
333         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
334         arguments A and DA.
335         (__sin): Adjust.
336         (__cos): Likewise.
337
338         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
339         (__cos): Likewise.
340         (sloww1): Don't adjust sign of DX.
341         (csloww1): Likewise.
342         (sloww2): Use X directly and don't adjust sign of DX.
343         (csloww2): Likewise.
344
345 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
346
347         * math/auto-libm-test-in: Add tests of cabs and carg.
348         * math/auto-libm-test-out: Regenerated.
349         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
350         (carg_test_data): Likewise.
351         * math/gen-auto-libm-tests.c (func_calc_method): Add value
352         mpc_c_f.
353         (func_calc_desc): Add mpc_c_f union field.
354         (test_functions): Add cabs and carg.
355         (calc_generic_results): Handle mpc_c_f.
356
357         * sysdeps/powerpc/powerpc32/libgcc-compat.S
358         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
359         as a macro and a compat symbol.
360         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
361         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
362         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
363         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
364         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
365         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
366         not use .hidden.
367         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
368         Likewise.
369         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
370         Likewise.
371         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
372         Likewise.
373         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
374         Likewise.
375         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
376         Likewise.
377         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
378         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
379         from GLIBC_2.3.2.
380
381 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
382
383         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
384
385 2013-12-19  Paul Pluzhnikov  <ppluzhnikov@google.com>
386
387         * elf/dl-misc.c (ptr_to_signal_safe_allocator_header): New function.
388         (__signal_safe_memalign, __signal_safe_free): Use it.
389         (__signal_safe_realloc): Likewise.
390
391 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
392
393         * manual/texinfo.tex: Update to version 2013-11-26.10 with
394         trailing whitespace removed.
395         * scripts/config.guess: Update to version 2013-11-29.
396         * scripts/config.sub: Update to version 2013-10-01.
397
398         * math/auto-libm-test-in: Add tests of sincos.
399         * math/auto-libm-test-out: Regenerated.
400         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
401         * math/gen-auto-libm-tests.c (func_calc_method): Add value
402         mpfr_f_11.
403         (func_calc_desc): Add mpfr_f_11 union field.
404         (test_functions): Add sincos.
405         (calc_generic_results): Handle mpfr_f_11.
406         * sysdeps/i386/fpu/libm-test-ulps: Update.
407         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
408
409 2013-12-19  Andreas Schwab  <schwab@suse.de>
410
411         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
412         CALL_MCOUNT.
413         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
414         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
415         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
416
417 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
418
419         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
420         * sysdeps/i386/fpu/libm-test-ulps: Update.
421         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
422
423         [BZ #16293]
424         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
425         round-to-nearest mode when using frndint.
426         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
427         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
428         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
429         Likewise.
430         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
431         sinh test to fail.
432         * math/auto-libm-test-out: Regenerated.
433         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
434         (TEST_COND_x86): Likewise.
435         (expm1_tonearest_test_data): New array.
436         (expm1_test_tonearest): New function.
437         (expm1_towardzero_test_data): New array.
438         (expm1_test_towardzero): New function.
439         (expm1_downward_test_data): New array.
440         (expm1_test_downward): New function.
441         (expm1_upward_test_data): New array.
442         (expm1_test_upward): New function.
443         (main): Run the new test functions.
444         * sysdeps/i386/fpu/libm-test-ulps: Update.
445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
446
447         * include/features.h: Update comment documenting feature test
448         macros.  Mention _DEFAULT_SOURCE in comment.
449         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
450         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
451         _BSD_SOURCE and _SVID_SOURCE.
452         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
453         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
454         !_SVID_SOURCE]: Likewise.
455         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
456         (__USE_POSIX_IMPLICITLY): Define.
457         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
458         (_POSIX_SOURCE): Undefine and redefine.
459         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
460         (_POSIX_C_SOURCE): Likewise.
461         * manual/creature.texi (_DEFAULT_SOURCE): Document.
462         (Feature Test Macros): Update documentation of default features.
463
464 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
465
466         * benchtests/Makefile: Add bench-strtok.
467         * benchtests/bench-strtok.c: New file: strtok benchtest.
468
469 2013-12-19  Allan McRae  <allan@archlinux.org>
470
471         * manual/install.texi: Suppress menu for plain text output.
472         * INSTALL: Regenerated.
473
474 2013-12-18  Andrew Hunter  <ahh@google.com>
475
476         * sysdeps/generic/ldsodefs.h (__signal_safe_memalign): New prototype.
477         (__signal_safe_malloc, __signal_safe_free): Likewise.
478         (__signal_safe_realloc, __signal_safe_calloc): Likewise.
479         * elf/dl-misc.c (__signal_safe_allocator_header): New struct.
480         (__signal_safe_memalign, __signal_safe_malloc): New function.
481         (__signal_safe_free, __signal_safe_realloc): Likewise.
482         (__signal_safe_calloc): Likewise.
483         * elf/dl-tls.c (allocate_dtv, _dl_clear_dtv): Call signal-safe
484         functions.
485         (_dl_deallocate_tls, _dl_update_slotinfo): Likewise.
486
487 2013-12-18  Andrew Hunter  <ahh@google.com>
488
489         * elf/Versions (ld): Add _dl_clear_dtv.
490         * sysdeps/generic/ldsodefs.h (_dl_clear_dtv): New prototype.
491         * elf/dl-tls.c (_dl_clear_dtv): New function.
492         * nptl/allocatestack.c (get_cached_stack): Call _dl_clear_dtv.
493
494 2013-12-18  Andrew Hunter  <ahh@google.com>
495
496         * sysdeps/generic/ldsodefs.h (_dl_mask_all_signals): New prototype.
497         (_dl_unmask_signals): Likewise.
498         * sysdeps/mach/hurd/dl-sysdep.h (_dl_mask_all_signals): New stub.
499         (_dl_unmask_all_signals): Likewise.
500         * sysdeps/unix/sysv/linux/dl-sysdep.h (_dl_mask_all_signals): New prototype.
501         (_dl_unmask_all_signals): Likewise.
502         * sysdeps/unix/sysv/linux/dl-sysdep.c (_dl_mask_all_signals): New function.
503         (_dl_unmask_signals): Likewise.
504
505 2013-12-18  Brooks Moses  <bmoses@google.com>
506
507         [BZ #15846]
508         * misc/getauxval.c: Include errno.h.
509         (__getauxval): Set errno to ENOENT if the requested type is not
510         found.
511         * misc/sys/auxv.h (getauxval): Document that it may set errno;
512         don't declare with __attribute_const__.
513         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
514         * manual/startup.texi: Document that getauxval sets errno.
515
516 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
517
518         * math/auto-libm-test-in: Add tests of jn and yn.
519         * math/auto-libm-test-out: Regenerated.
520         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
521         (yn_test_data): Likewise.
522         * math/gen-auto-libm-tests.c (func_calc_method): Add value
523         mpfr_if_f.
524         (func_calc_desc): Add mpfr_if_f union field.
525         (FUNC_mpfr_if_f): New macro.
526         (test_functions): Add jn and yn.
527         (calc_generic_results): Assert type of second input for
528         mpfr_ff_f.  Handle mpfr_if_f.
529         (output_for_one_input_case): Disable all checking for arguments
530         fitting floating-point types in case of an integer argument.
531         * sysdeps/i386/fpu/libm-test-ulps: Update.
532         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
533
534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
535         Don't expect fegetround reference in libm.so.
536
537 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
538
539         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
540         $(config-cflags-nofma).
541
542 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
543
544         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
545         * math/auto-libm-test-out: Regenerated.
546
547         [BZ #16338]
548         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
549         to determine exponent and adjust argument to have exponent of -1.
550         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
551         log2.
552         * math/auto-libm-test-out: Regenerated.
553         * sysdeps/i386/fpu/libm-test-ulps: Update.
554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
555
556 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
557
558         * manual/probes.texi: Remove cases when per-thread arenas are
559         disabled.
560
561 2013-12-18  Andreas Schwab  <schwab@suse.de>
562
563         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
564         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
565         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
566         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
567         * sysdeps/i386/i686/multiarch/Makefile: Update.
568         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
569
570 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
571
572         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
573         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
574
575 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
576
577         Support TZ transition times < 00:00:00.
578         This is needed for version-3 tz-format files; it supports time
579         stamps past 2037 for America/Godthab (the only entry in the tz
580         database for which this change is relevant).
581         * manual/time.texi (TZ Variable): Document transition times
582         from -167:59:59 through -00:00:01.
583         * time/tzset.c (tz_rule): Time of day is now signed.
584         (__tzset_parse_tz): Parse negative time of day.
585
586         Document TZ transition times >= 25:00:00.
587         * manual/time.texi (TZ Variable): Document transition times from
588         25:00:00 through 167:59:59.  These are already supported, and this
589         support will help with version-3 tz-format files.
590
591         * manual/time.texi (TZ Variable): Modernize North America example
592         to reflect current (i.e., 2007-and-later) daylight saving rules.
593
594         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
595
596 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
597
598         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
599         * sysdeps/unix/bsd/bits/stat.h: Likewise.
600         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
601         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
602         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
603         * sysdeps/unix/bsd/bsdstat.h: Likewise.
604         * sysdeps/unix/bsd/clock.c: Likewise.
605         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
606         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
607         * sysdeps/unix/bsd/init-posix.c: Likewise.
608         * sysdeps/unix/bsd/poll.c: Likewise.
609         * sysdeps/unix/bsd/ptsname.c: Likewise.
610         * sysdeps/unix/bsd/seekdir.c: Likewise.
611         * sysdeps/unix/bsd/setegid.c: Likewise.
612         * sysdeps/unix/bsd/seteuid.c: Likewise.
613         * sysdeps/unix/bsd/setgid.c: Likewise.
614         * sysdeps/unix/bsd/setrgid.c: Likewise.
615         * sysdeps/unix/bsd/setruid.c: Likewise.
616         * sysdeps/unix/bsd/setsid.c: Likewise.
617         * sysdeps/unix/bsd/setuid.c: Likewise.
618         * sysdeps/unix/bsd/sigaction.c: Likewise.
619         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
620         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
621         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
622         * sysdeps/unix/bsd/telldir.c: Likewise.
623         * sysdeps/unix/bsd/times.c: Likewise.
624         * sysdeps/unix/bsd/usleep.c: Likewise.
625
626         * misc/Makefile (install-lib): Remove libbsd-compat.a.
627         ($(objpfx)libbsd-compat.a): Remove rule.
628
629         * include/features.h (__FAVOR_BSD): Do not define.
630         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
631         features conflicting with POSIX.
632         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
633         (_BSD_SOURCE): Remove description of not being a subset of other
634         feature test macros.
635         * manual/job.texi (getpgrp): Do not document BSD version.
636         (getpgid): Do not document by reference to BSD getpgrp.
637         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
638         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
639         * signal/signal.h [__FAVOR_BSD]: Likewise.
640         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
641         instead of making contents conditional on [__FAVOR_BSD].
642         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
643
644 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
645
646         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
647
648 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
649
650         [BZ #16314]
651         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
652         values below 2**-450, not 2**-500.
653         * math/auto-libm-test-in: Don't allow spurious underflow from
654         hypot.
655         * math/auto-libm-test-out: Regenerated.
656
657         [BZ #16316]
658         [BZ #16330]
659         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
660         values of ha and hb and sort them after adjusting subnormal
661         arguments.
662         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
663         Likewise.
664         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
665         values of ea and eb and sort them after adjusting subnormal
666         arguments.
667         * math/auto-libm-test-in: Do not expect some hypot tests of
668         subnormals to fail.  Add more hypot tests.
669         * math/auto-libm-test-out: Regenerated.
670
671 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
672
673         [BZ #13304]
674         * sysdeps/sh/s_fma.c: New file.
675         * sysdeps/sh/s_fmaf.c: New file.
676         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
677         version.
678         * sysdeps/sh/Implies: Add sh/soft-fp.
679
680 2013-12-16  Roland McGrath  <roland@hack.frob.com>
681
682         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
683         level of indirection to members `objname', `errstring', `malloced'.
684         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
685         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
686         it as the __longjmp argument (just pass 1 instead).
687         (_dl_catch_error): Initialize C with argument pointers and address of
688         volatile local ERRCODE rather than copying values out of C at return.
689
690 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
691
692         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
693         * math/auto-libm-test-out: Regenerated.
694         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
695         (hypot_test_data): Likewise.
696         (pow_test_data): Likewise.
697         (pow_tonearest_test_data): Likewise.
698         * math/gen-auto-libm-tests.c (func_calc_method): Add value
699         mpfr_ff_f.
700         (func_calc_desc): Add mpfr_ff_f union field.
701         (FUNC_mpfr_ff_f): New macro.
702         (test_functions): Add atan2, hypot and pow.
703         (special_fill_min): New function.
704         (special_fill_minus_min): Likewise.
705         (special_fill_min_subnorm): Likewise.
706         (special_fill_minus_min_subnorm): Likewise.
707         (special_real_inputs): Add min, -min, min_subnorm and
708         -min_subnorm.
709         (calc_generic_results): Handle mpfr_ff_f.
710         * sysdeps/i386/fpu/libm-test-ulps: Update.
711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
712
713 2013-12-16  Will Newton  <will.newton@linaro.org>
714
715         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
716         (Aligned Memory Blocks): Add documentation for aligned_alloc
717         and suggest it as an alternative to posix_memalign.
718         (Hooks for Malloc): Document __memalign_hook is also called
719         for aligned_alloc.  (Summary of Malloc): Add summary for
720         aligned alloc.  Document __memalign_hook is also called
721         for aligned_alloc.
722
723 2013-12-16  Will Newton  <will.newton@linaro.org>
724
725         * manual/memory.texi (Malloc Examples): Clarify default
726         alignment documentation.  Suggest posix_memalign rather
727         than memalign or valloc.
728         (Aligned Memory Blocks): Remove suggestion to use memalign
729         or valloc.  Remove obsolete comment about BSD.
730         Document memalign errno values and mark the function obsolete.
731         Document posix_memalign returned error codes.  Mark valloc
732         as obsolete.  (Hooks for Malloc): __memalign_hook is also
733         called for posix_memalign and valloc.
734         (Summary of Malloc): Add posix_memalign to function summary.
735         __memalign_hook is also called for posix_memalign and valloc.
736
737 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
738
739         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
740         TAYLOR_SIN.
741         (__sin): Adjust.
742         (__cos): Likewise.
743         (sloww): Use mynumber union.  Expand ternary operator into
744         if-else statements.
745         (cslow): use mynumber union.
746
747 2013-12-16  Allan McRae  <allan@archlinux.org>
748
749         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
750         * configure: Regenerated.
751
752         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
753
754         [BZ #14120]
755         * configure.ac: Added --enable-maintainer-mode. Check for
756         autoconf when enabled.
757         * configure: Regenerated.
758
759         * nscd/nscd.service: New file.
760         * nscd/nscd.tmpfiles: New file.
761
762 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
763
764         [BZ #12100]
765         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
766         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
767         * sysdeps/x86_64/multiarch/strstr.c: ... here.
768         (strstr): Add __strstr_sse2_unaligned ifunc.
769         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
770         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
771         (strcasestr): Remove __strcasestr_sse42 ifunc.
772         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
773         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
774         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
775
776 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
777
778         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
779         * sysdeps/sh/bits/fenv.h: ... here.
780         * sysdeps/sh/sh4/fpu/bits: Remove directory.
781
782 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
783
784         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
785
786 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
787
788         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
789         hypotf multiarch implementations.
790         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
791         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
792         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
793         multiarch hypot for PPC64.
794         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
795         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
796         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
797         multiarch hypotf for PPC64.
798
799 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
800
801         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
802         modff multiarch implementations.
803         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
804         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
805         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
806         multiarch modf for PPC64.
807         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
808         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
809         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
810         multiarch modff for PPC64.
811
812 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
813
814         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
815         and logl multiarch implementations.
816         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
817         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
818         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
819         multiarch logb for PPC64.
820         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
821         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
822         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
823         multiarch logb for PPC64.
824         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
825         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
826         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
827         multiarch logb for PPC64.
828
829 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
830
831         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
832         isinff multiarch implementation.
833         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
834         file.
835         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
836         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
837         multiarch isinf for PPC64.
838         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
839         file.
840         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
841         multiarch isinff for PPC64.
842
843 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
844
845         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
846         finitef multiarch implementation.
847         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
848         file.
849         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
850         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
851         multiarch finite for PPC64.
852         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
853         file.
854         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
855         multiarch finitef for PPC64.
856
857 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
858
859         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
860         lrint multiarch implementation.
861         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
862         file.
863         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
864         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
865         multiarch llrint for PPC64.
866         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
867         multiarch lrint for PPC64.
868
869 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
870
871         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
872         copysignf multiarch implementation.
873         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
874         file.
875         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
876         file.
877         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
878         multiarch copysign for PPC64.
879         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
880         multiarch copysignf for PPC64.
881
882 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
883
884         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
885         multiarch implementation.
886         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
887         file.
888         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
889         file.
890         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
891         file.
892         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
893         file.
894         multiarch llround for PPC64.
895         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
896         multiarch trunc for PPC64.
897         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
898         multiarch truncf for PPC64.
899
900 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
901
902         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
903         multiarch implementation.
904         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
905         file.
906         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
907         file.
908         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
909         file.
910         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
911         file.
912         multiarch llround for PPC64.
913         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
914         multiarch round for PPC64.
915         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
916         multiarch roundf for PPC64.
917
918 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
919
920         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
921         multiarch implementation.
922         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
923         file.
924         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
925         file.
926         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
927         file.
928         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
929         file.
930         multiarch llround for PPC64.
931         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
932         multiarch floor for PPC64.
933         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
934         multiarch floorf for PPC64.
935
936 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
937
938         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
939         multiarch implementation.
940         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
941         file.
942         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
943         file.
944         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
945         file.
946         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
947         file.
948         multiarch llround for PPC64.
949         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
950         multiarch ceil for PPC64.
951         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
952         multiarch ceilf for PPC64.
953
954 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
955
956         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
957         multiarch implementation.
958         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
959         file.
960         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
961         file.
962         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
963         file.
964         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
965         multiarch llround for PPC64.
966         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
967         multiarch lround for PPC64.
968
969 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
970
971         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
972         multiarch implementation.
973         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
974         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
975         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
976         file.
977         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
979         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
980         multiarch isnan for PPC64.
981         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
982         multiarch isnanf for PPC64.
983
984 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
985
986         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
987         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
988         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
989         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
990         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
992
993 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
994
995         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
996         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
997         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
998         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
999
1000 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1001
1002         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
1003         multiarch implementations.
1004         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1005         (__libc_ifunc_impl_list): Likewise.
1006         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
1007         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
1008         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
1009         multiarch stpcpy for PPC64.
1010
1011 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1012
1013         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
1014         multiarch implementations.
1015         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1016         (__libc_ifunc_impl_list): Likewise.
1017         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
1018         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
1019         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
1020         multiarch strcpy for PPC64.
1021
1022 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1023
1024         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
1025         redefine function name.
1026         (_wordcopy_fwd_dest_aligned): Likewise.
1027         (_wordcopy_bwd_aligned): Likewise.
1028         (_wordcopy_bwd_dest_aligned): Likewise.
1029         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
1030         multiarch implementations.
1031         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1032         (__libc_ifunc_impl_list): Likewise.
1033         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
1034         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
1035         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
1036         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
1037         multiarch wcscpy for PPC64.
1038
1039 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1040
1041         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
1042         multiarch implementations.
1043         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1044         (__libc_ifunc_impl_list): Likewise.
1045         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
1046         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
1047         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
1048         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
1049         multiarch wcscpy for PPC64.
1050
1051 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1052
1053         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
1054         multiarch implementations.
1055         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1056         (__libc_ifunc_impl_list): Likewise.
1057         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
1058         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
1059         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
1060         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
1061         multiarch wcsrchr for PPC64.
1062
1063 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1064
1065         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
1066         multiarch implementations.
1067         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1068         (__libc_ifunc_impl_list): Likewise.
1069         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
1070         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
1071         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
1072         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
1073         multiarch wcschr for PPC64.
1074
1075 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1076
1077         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
1078         multiarch implementations.
1079         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1080         (__libc_ifunc_impl_list): Likewise.
1081         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
1082         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
1083         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
1084         multiarch strchrnul for PPC64.
1085
1086 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1087
1088         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
1089         implementations.
1090         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1091         (__libc_ifunc_impl_list): Likewise.
1092         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
1093         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
1094         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
1095         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
1096         strchr for PPC64.
1097
1098 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1099
1100         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
1101         implementations.
1102         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1103         (__libc_ifunc_impl_list): Likewise.
1104         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
1105         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
1106         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
1107         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
1108         strncmp for PPC64.
1109
1110 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1111
1112         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
1113         multiarch implementations.
1114         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1115         (__libc_ifunc_impl_list): Likewise.
1116         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
1117         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
1118         strncasecmp for PPC64.
1119         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
1120         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
1121         multiarch strncasecmp_l for PPC64.
1122
1123 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1124
1125         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
1126         multiarch implementations.
1127         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1128         (__libc_ifunc_impl_list): Likewise.
1129         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
1130         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
1131         multiarch strcasecmp for PPC64.
1132         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
1133         file.
1134         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
1135         multiarch strcasecmp_l for PPC64.
1136
1137 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1138
1139         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
1140         implementations.
1141         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1142         (__libc_ifunc_impl_list): Likewise.
1143         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
1144         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
1145         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
1146         strnlen for PPC64.
1147
1148 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1149
1150         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
1151         implementations.
1152         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1153         (__libc_ifunc_impl_list): Likewise.
1154         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
1155         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
1156         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
1157         strlen for PPC64.
1158
1159 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1160
1161         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
1162         implementations.
1163         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1164         (__libc_ifunc_impl_list): Likewise.
1165         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
1166         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
1167         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
1168         rawmemrchr for PPC64.
1169
1170 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1171
1172         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
1173         implementation.
1174         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1175         (__libc_ifunc_impl_list): Likewise.
1176         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
1177         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
1178         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
1179         memrchr for PPC64.
1180
1181 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1182
1183         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
1184         implementation.
1185         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1186         (__libc_ifunc_impl_list): Likewise.
1187         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
1188         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
1189         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
1190         memchr for PPC64.
1191
1192 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1193
1194         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
1195         implementation.
1196         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1197         (__libc_ifunc_impl_list): Likewise.
1198         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
1199         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
1200         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
1201         mempcpy for PPC64.
1202
1203 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1204
1205         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
1206         avoid cretion of __bzero symbol.
1207         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
1208         Likewise.
1209         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
1210         Likewise.
1211         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
1212         Likewise.
1213         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
1214         multiarch implementations.
1215         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1216         (__libc_ifunc_impl_list): Likewise.
1217         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
1218         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
1219         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
1220         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
1221         bzero for PPC32.
1222         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
1223         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
1224         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
1225         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
1226         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
1227         memset for PPC64.
1228         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
1229
1230 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1231
1232         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
1233         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
1234         implementations.
1235         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1236         (__libc_ifunc_impl_list): Likewise.
1237         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
1238         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
1239         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
1240         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
1241         memcmp for PPC64.
1242
1243 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1244
1245         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
1246         multiarch for POWER/PPC64.
1247         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1248         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
1249         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
1250         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
1251         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
1252         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
1253         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
1254         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
1255         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
1256         memcpy for PPC64.
1257
1258 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1259
1260         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
1261         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
1262         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
1263         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
1264         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
1265         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
1266         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
1267         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
1268         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
1269         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
1270         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
1271         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
1272         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
1273         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
1274         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
1275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
1276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
1277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
1278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
1279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
1280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
1281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
1282
1283 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1284
1285         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
1286
1287 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1288
1289         * benchtests/Makefile (bench): Add exp2 and log2.
1290         (LDLIBS-bench-exp2): Add -lm.
1291         (LDLIBS-bench-log2): Likewise.
1292         * benchtests/exp2-inputs: New inputs file.
1293         * benchtests/log2-inputs: New inputs file.
1294         * benchtests/log-inputs: Add new inputs.
1295         * benchtests/tan-inputs: Likewise.
1296
1297 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1298
1299         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
1300         definition...
1301         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2,
1302         csloww1, csloww2): ... from here.
1303
1304         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
1305         instead of structures.
1306         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
1307         (POLYNOMIAL): Likewise.
1308         (TAYLOR_SLOW): Likewise.
1309         (__sin): Likewise.
1310         (__cos): Likewise.
1311         (slow1): Likewise.
1312         (slow2): Likewise.
1313         (sloww): Likewise.
1314         (sloww1); Likewise.
1315         (sloww2): Likewise.
1316         (bsloww1): Likewise.
1317         (bsloww2): Likewise.
1318         (cslow2): Likewise.
1319         (csloww): Likewise.
1320         (csloww1): Likewise.
1321         (csloww2): Likewise.
1322
1323 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1324
1325         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
1326         (__malloc_assert, __libc_realloc, __libc_calloc,
1327         _int_realloc): Expand MALLOC_COPY and MALLOC_ZERO to
1328         memcpy and memset.
1329         * malloc/hooks.c (realloc_check): Likewise.
1330
1331 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1332
1333         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
1334         * malloc/arena.c: Remove PER_THREAD conditional.
1335         [!PER_THREAD]: Remove code.
1336         (ptmalloc_unlock_all2): Likewise.
1337         (ptmalloc_init): Likewise.
1338         (_int_new_arena): Likewise.
1339         (arena_get2): Likewise.
1340         * malloc/hooks.c (__malloc_get_state): Likewise.
1341         (__malloc_set_state): Likewise.
1342         * malloc/malloc.c: Likewise.
1343         (struct malloc_state): Likewise.
1344         (struct malloc_par): Likewise.
1345         (__libc_realloc): Likewise.
1346         (__libc_mallopt): Likewise.
1347
1348 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1349
1350         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
1351
1352 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1353
1354         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
1355         macro to a function.  Check for zero perturb_byte.
1356         (_int_malloc, _int_free): Remove zero perturb_byte checks.
1357
1358 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1359
1360         * malloc/malloc.c: (force_reg): Remove.
1361         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
1362         _mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
1363         force_reg by atomic_forced_read.
1364         * malloc/arena.c (ptmalloc_init): Likewise.
1365         * malloc/hooks.c (top_check): Likewise.
1366
1367 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1368
1369         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1370
1371 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
1372
1373         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1374
1375 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
1376
1377         * math/auto-libm-test-in: Add tests of lgamma.
1378         * math/auto-libm-test-out: Regenerated.
1379         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
1380         (M_LOG_2_SQRT_PIl): Likewise.
1381         (lgamma_test_data): Use AUTO_TESTS_f_f1.
1382         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1383         mpfr_f_f1.
1384         (func_calc_desc): Add mpfr_f_f1 union field.
1385         (ARGS1): New macro.
1386         (ARGS2): Likewise.
1387         (ARGS3): Likewise.
1388         (ARGS4): Likewise.
1389         (RET1): Likewise.
1390         (RET2): Likewise.
1391         (CALC): Likewise.
1392         (FUNC): Likewise.
1393         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
1394         (test_functions): Add lgamma.
1395         (calc_generic_results): Handle mpfr_f_f1.
1396         * sysdeps/i386/fpu/libm-test-ulps: Update.
1397         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1398
1399 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1400
1401         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
1402         __mpn_add_n for PowerPC64/POWER7.
1403         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
1404         __mpn_sub_n for PowerPC64/POWER7.
1405
1406 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1407
1408         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
1409         __mpn_addmul_1 for PowerPC64.
1410         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
1411         __mpn_submul_1 for PowerPC64.
1412         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
1413         for PowerPC64.
1414         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
1415         for PowerPC64.
1416
1417 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
1418
1419         [BZ #15089]
1420         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
1421
1422 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1423
1424         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
1425
1426 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1427
1428         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
1429         add multiarch folders.
1430         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
1431         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
1432         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
1433         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
1434         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
1435         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
1436         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
1437         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
1438         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
1439         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
1440         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
1441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
1442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
1443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
1444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
1445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
1446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
1447
1448 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1449
1450         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
1451         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
1452         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
1453         New file.
1454         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
1455         New file.
1456         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
1457         multiarch __ieee754_hypot for PowerPC32.
1458         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
1459         New file.
1460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
1461         New file.
1462         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
1463         multiarch __ieee754_hypotf for PowerPC32.
1464
1465 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1466
1467         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
1468         long_double_symbol only if __logbl is defined.
1469         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
1470         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
1471         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
1472         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
1473         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
1474         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
1475         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
1476         path for implementation.
1477         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
1478         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
1479         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
1480         logb, and logbl multiarch implementations for PowerPC32.
1481         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
1482         file.
1483         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
1484         file.
1485         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
1486         multiarch logb for PowerPC32.
1487         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
1488         file.
1489         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
1490         file.
1491         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
1492         multiarch logbf for PowerPC32.
1493         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
1494         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
1495         file.
1496         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
1497         multiarch logbl implementation for PowerPC32.
1498
1499 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1500
1501         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
1502         and modff multiarch implementations.
1503         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
1504         New file.
1505         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
1506         New file.
1507         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
1508         multiarch modf for PowerPC32.
1509         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
1510         New file.
1511         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
1512         New file.
1513         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
1514         multiarch modff for PowerPC32.
1515
1516 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1517
1518         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
1519         and lrintf multiarch implementations.
1520         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
1521         New file.
1522         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
1523         New file.
1524         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
1525         multiarch lrint for PowerPC32.
1526         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
1527         file: multiarch lrintf for PowerPC32.
1528
1529 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1530
1531         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
1532         and lroundf multiarch implementations.
1533         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
1534         New file.
1535         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
1536         New file.
1537         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
1538         New file.
1539         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
1540         multiarch lround for PowerPC32.
1541         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
1542         file: multiarch lroundf for PowerPC32.
1543
1544 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1545
1546         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
1547         copysign and copysignf multiarch implementations.
1548         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
1549         New file.
1550         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
1551         New file.
1552         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
1553         file: multiarch copysign for PowerPC32.
1554         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
1555         file: multiarch copysignf for PowerPC32.
1556
1557 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1558
1559         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
1560         and truncf multiarch implementations.
1561         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
1562         New file.
1563         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
1564         file.
1565         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
1566         multiarch trunc for PowerPC32.
1567         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
1568         New file.
1569         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
1570         New file.
1571         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
1572         multiarch truncf for PowerPC32.
1573
1574 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1575
1576         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
1577         and roundf multiarch implementations.
1578         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
1579         New file.
1580         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
1581         file.
1582         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
1583         multiarch round for PowerPC32.
1584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
1585         New file.
1586         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
1587         New file.
1588         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
1589         multiarch roundf for PowerPC32.
1590
1591 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1592
1593         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
1594         and floorf multiarch implementations.
1595         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1596         New file.
1597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
1598         file.
1599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
1600         multiarch floor for PowerPC32.
1601         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1602         New file.
1603         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1604         New file.
1605         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
1606         multiarch floorf for PowerPC32.
1607
1608 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1609
1610         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
1611         and ceilf multiarch implementations.
1612         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1613         New file.
1614         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
1615         file.
1616         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
1617         multiarch ceil for PowerPC32.
1618         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1619         New file.
1620         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
1621         file.
1622         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
1623         multiarch ceilf for PowerPC32.
1624
1625 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1626
1627         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
1628         is defined.
1629         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
1630         FINITEF is defined.
1631         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
1632         and finitef multiarch implementations.
1633         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
1634         New file.
1635         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
1636         file.
1637         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
1638         multiarch finite for PowerPC32.
1639         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
1640         New file.
1641         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
1642         file: multiarch finitef for PowerPC32.
1643
1644 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1645
1646         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
1647         and isinff multiarch implementations.
1648         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
1649         file.
1650         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
1651         file.
1652         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
1653         multiarch isinf for PowerPC32.
1654         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
1655         New file.
1656         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
1657         multiarch isinff for PowerPC32.
1658
1659 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1660
1661         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
1662         alias when __isnan is defined.
1663         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
1664         and isnanf multiarch implementations.
1665         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
1666         file.
1667         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
1668         file.
1669         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
1670         file.
1671         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
1672         file.
1673         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
1674         multiarch isnan for PowerPC32.
1675         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
1676         New file.
1677         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
1678         New file.
1679         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
1680         multiarch isnanf for PowerPC32.
1681
1682 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1683
1684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
1685         and sqrtf multiarch implementations.
1686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
1687         file.
1688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
1689         file.
1690         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
1691         multiarch sqrt for PowerPC32.
1692         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
1693         file.
1694         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
1695         file.
1696         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
1697         multiarch sqrtf for PowerPC32.
1698
1699 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1700
1701         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
1702         and llroundf multiarch implementations.
1703         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
1704         New file.
1705         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
1706         New file.
1707         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
1708         New file.
1709         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
1710         file: multiarch llround for PowerPC32.
1711         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
1712         file: multiarch llroundf for PowerPC32.
1713
1714 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1715
1716         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
1717         multiarch PowerPC32 fpu implementations.
1718         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
1719         New file.
1720         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
1721         New file.
1722         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
1723         multiarch llrint for PowerPC32.
1724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
1725         New file.
1726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
1727         New file.
1728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
1729         file.
1730
1731 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1732
1733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
1734
1735 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1736
1737         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
1738         file.
1739         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
1740         file.
1741         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
1742         file.
1743         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
1744         multiarch wordcopy for PPC32.
1745         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
1746         wordcopy objects.
1747         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1748         (__libc_ifunc_impl_list): Likewise.
1749         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
1750         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
1751         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
1752         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
1753         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
1754         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
1755
1756 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1757
1758         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
1759         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
1760         file.
1761         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
1762         file.
1763         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
1764         file.
1765         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
1766         multiarch wcscpy for PPC32.
1767         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
1768         multiarch objects.
1769         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1770         (__libc_ifunc_impl_list): Likewise.
1771         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
1772         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
1773         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
1774         sysdeps/powerpc/power6/wcscpy.c.
1775
1776 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1777
1778         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
1779         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
1780         file.
1781         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
1782         file.
1783         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
1784         file.
1785         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
1786         multiarch wcsrchr for PPC32.
1787         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
1788         multiarch objects.
1789         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1790         (__libc_ifunc_impl_list): Likewise.
1791         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
1792         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
1793         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
1794         sysdeps/powerpc/power6/wcsrchr.c.
1795
1796 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1797
1798         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
1799         file.
1800         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
1801         file.
1802         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
1803         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
1804         multiarch wcschr for PPc32.
1805         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
1806         multiarch objects.
1807         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1808         (__libc_ifunc_impl_list): Likewise.
1809         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
1810         * sysdeps/powerpc/power6/wcschr.c: ... to here.
1811         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
1812         sysdeps/powerpc/power6/wcschr.c.
1813
1814 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1815
1816         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
1817         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
1818         file.
1819         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
1820         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
1821         file: multiarch strchr for PPC32.
1822         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
1823         multiarch objects.
1824         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1825         (__libc_ifunc_impl_list): Likewise.
1826
1827 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1828
1829         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
1830         name.
1831         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
1832         file.
1833         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
1834         file.
1835         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
1836         multiarch strchrnul for PPC32.
1837         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
1838         multiarch objects.
1839         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1840         (__libc_ifunc_impl_list): Likewise.
1841
1842 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1843
1844         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
1845         file.
1846         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
1847         multiarch strncasecmp for PPC32.
1848         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
1849         file.
1850         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
1851         multiarch strncasecmp_l for PPC32.
1852         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
1853         strncasecmp multiarch objects.
1854         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1855         (__libc_ifunc_impl_list): Likewise.
1856
1857 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1858
1859         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
1860         file.
1861         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
1862         multiarch strncasecmp for PPC32.
1863         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
1864         New file.
1865         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
1866         multiarch strcasecmp_l for PPC32.
1867         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
1868         multiarch objects.
1869         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1870         (__libc_ifunc_impl_list): Likewise.
1871
1872 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1873
1874         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
1875         file.
1876         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
1877         file.
1878         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
1879         multiarch strncmp for PPC32.
1880         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
1881         multiarch objects.
1882         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1883         (__libc_ifunc_impl_list): Likewise.
1884
1885 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1886
1887         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
1888         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
1889         file.
1890         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
1891         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
1892         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
1893         multiarch objects.
1894         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1895         (__libc_ifunc_impl_list): Likewise.
1896
1897 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1898
1899         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
1900         file.
1901         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
1902         file.
1903         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
1904         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
1905         multiarch objects.
1906         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1907         (__libc_ifunc_impl_list): Likewise.
1908
1909 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1910
1911         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
1912         file.
1913         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
1914         file.
1915         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
1916         multiarch rawmemchr for PPC32.
1917         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
1918         multiarch objects.
1919         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1920         (__libc_ifunc_impl_list): Likewise.
1921
1922 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1923
1924         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
1925         file.
1926         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
1927         file.
1928         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
1929         file: memrchr multiarch for PPC32.
1930         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
1931         multiarch objects.
1932         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1933         (__libc_ifunc_impl_list): Likewise.
1934
1935 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1936
1937         * string/memchr.c (__memchr): Using macro to redefine symbol name.
1938         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
1939         file.
1940         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
1941         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
1942         multiarch memchr for PPC32.
1943         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
1944         multiarch objects.
1945         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1946         (__libc_ifunc_impl_list): Likewise.
1947
1948 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1949
1950         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
1951         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
1952         file.
1953         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
1954         file.
1955         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
1956         file: multiarch mempcpy for PPC32.
1957         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
1958         multiarch objects.
1959         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1960         (__libc_ifunc_impl_list): Likewise.
1961
1962 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1963
1964         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
1965         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
1966         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
1967         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
1968         multiarch bzero for PPC32.
1969         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
1970         file.
1971         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
1972         file.
1973         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
1974         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
1975         file: multiarch memset for PPC32.
1976         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
1977         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
1978         memset multiarch objects.
1979         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1980         (__libc_ifunc_impl_list): Likewise.
1981
1982 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1983
1984         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
1985         file.
1986         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
1987         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
1988         memcmp for PPC32.
1989         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
1990         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
1991         multiarch objects.
1992         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1993         (__libc_ifunc_impl_list): Likewise.
1994
1995 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1996
1997         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
1998         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
1999         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
2000         file.
2001         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
2002         file.
2003         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
2004         file.
2005         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
2006         multiarch memcpy for PPC32.
2007         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
2008         multiarch objects.
2009         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2010         (__libc_ifunc_impl_list): Likewise.
2011
2012 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2013
2014         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
2015         support multiarch for POWER/PPC32.
2016         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2017         Likewise.
2018         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
2019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
2020         Implies file to make multiarch folder appers before the fpu and
2021         default folder for power4 configuration.
2022
2023 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2024
2025         * scripts/bench.pl: Append volatile keyword to type.
2026
2027 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2028
2029         * sysdeps/sh/sotruss-lib.c: New file.
2030         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
2031
2032 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2033
2034         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2035
2036 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
2037
2038         [BZ #6810]
2039         * math/w_tgamma.c: Include <errno.h>.
2040         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
2041         * math/w_tgammaf.c: Include <errno.h>.
2042         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
2043         * math/w_tgammal.c: Include <errno.h>.
2044         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
2045         * math/auto-libm-test-in: Do not allow missing errno on tgamma
2046         underflow.  Add more tgamma tests.
2047         * math/auto-libm-test-out: Regenerated.
2048         * sysdeps/i386/fpu/libm-test-ulps: Update.
2049         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2050
2051         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
2052         sin, sinh, tan, tanh, tgamma, y0 and y1.
2053         * math/auto-libm-test-out: Regenerated.
2054         * math/libm-test.inc (TEST_COND_x86_64): New macro.
2055         (TEST_COND_x86): Likewise.
2056         (M_E2l): Remove macro.
2057         (M_E3l): Likewise.
2058         (M_2_SQRT_PIl): Likewise.
2059         (M_SQRT_PIl): Likewise.
2060         (M_1_DIV_El): Likewise.
2061         (log_test_data): Use AUTO_TESTS_f_f.
2062         (log10_test_data): Likewise.
2063         (log1p_test_data): Likewise.
2064         (log2_test_data): Likewise.
2065         (sin_test_data): Likewise.
2066         (sin_tonearest_test_data): Likewise.
2067         (sin_towardzero_test_data): Likewise.
2068         (sin_downward_test_data): Likewise.
2069         (sin_upward_test_data): Likewise.
2070         (sinh_test_data): Likewise.
2071         (sinh_tonearest_test_data): Likewise.
2072         (sinh_towardzero_test_data): Likewise.
2073         (sinh_downward_test_data): Likewise.
2074         (sinh_upward_test_data): Likewise.
2075         (tan_test_data): Likewise.
2076         (tan_tonearest_test_data): Likewise.
2077         (tan_towardzero_test_data): Likewise.
2078         (tan_downward_test_data): Likewise.
2079         (tan_upward_test_data): Likewise.
2080         (tanh_test_data): Likewise.
2081         (tgamma_test_data): Likewise.
2082         (y0_test_data): Likewise.
2083         (y1_test_data): Likewise.
2084         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
2085         (special_real_inputs): Add pi/4.
2086         * sysdeps/i386/fpu/libm-test-ulps: Update.
2087         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2088
2089 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2090
2091         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
2092         "longjmp_target" static probes.
2093         (__longjmp): Rename to __longjmp_symbol.
2094         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2095         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
2096         on which longjmp to generate.
2097         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
2098         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
2099         probe.
2100         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2101         (__sigjmp_save): Rename to __sigjmp_save_symbol.
2102         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
2103         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
2104         and __sigjmp_save_symbol based on which sigsetjmp to generated.
2105         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
2106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
2107         __longjmp_symbol based on which __longjmp to generate.
2108         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
2109         probe.
2110         (setjmp): Rename to setjmp_symbol.
2111         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2112         (_setjmp): Rename to _setjmp_symbol.
2113         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2114         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
2115         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
2116         which setjmp to generate.
2117         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
2118         "longjmp_target" static probes.
2119
2120 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2121
2122         * benchtests/README: Add note about output arguments.
2123         * benchtests/bench-sincos.c: Remove file.
2124         * benchtests/sincos-inputs: New file.
2125         * scripts/bench.pl: Identify output arguments and define
2126         static variables for them.
2127
2128         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
2129
2130         [BZ #15941]
2131         * Makefile (INSTALL): Add install-plain.texi as the primary
2132         dependency.
2133         * manual/install-plain.texi: New file.
2134         * manual/install.texi: Include node directive only for
2135         non-plaintext output.
2136
2137 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
2138
2139         * stdlib/longlong.h: Update from GCC.
2140
2141         [BZ #6807]
2142         [BZ #15901]
2143         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
2144         * math/w_j0f.c (y0f): Likewise.
2145         * math/w_j0l.c (__y0l): Likewise.
2146         * math/w_j1.c (y1): Likewise.
2147         * math/w_j1f.c (y1f): Likewise.
2148         * math/w_j1l.c (__y1l): Likewise
2149         * math/w_jn.c (yn): Likewise.
2150         * math/w_jnf.c (ynf): Likewise.
2151         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
2152         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
2153         value for Bessel function domain errors outside _SVID_ mode.
2154         Adjust sign of return value for yn (negative integer, 0).
2155         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
2156         by zero in return for negative x and set sign appropriately for
2157         negative n.
2158         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
2159         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2160         * math/libm-test.inc (y0_test_data): Add more tests and adjust
2161         expectations in error cases.
2162         (y1_test_data): Likewise.
2163         (yn_test_data): Likewise.
2164         * sysdeps/i386/fpu/libm-test-ulps: Update.
2165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2166
2167 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2168
2169         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
2170         "64" to "64-v1".  Add "64-v2".
2171         (abi-64-options): Rename to ...
2172         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
2173         (abi-64-condition): Rename to ...
2174         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
2175         (abi-64-ld-soname): Rename to ...
2176         (abi-64-v1-ld-soname): ... this.
2177         (abi-64-v2-options): Define.
2178         (abi-64-v2-condition): Likewise.
2179         (abi-64-v2-ld-soname): Likewise.
2180         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
2181         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
2182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
2183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
2184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
2185
2186 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2187             Alan Modra  <amodra@gmail.com>
2188
2189         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
2190         New versions for use with the ELFv2 ABI.
2191         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
2192         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
2193         declaration.
2194         (struct La_ppc64v2_retval): Likewise.
2195         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
2196         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
2197         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
2198         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
2199         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
2200         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
2201         Do not save or restore CR.
2202         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
2203         (_dl_profile_resolve): Do no save or restore CR.  Support extended
2204         return values for ELFv2 ABI.  Fix location of FPR return registers.
2205         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
2206         updated values for _CALL_ELF == 2.
2207         (La_regs, La_retval, int_retval): Likewise.
2208
2209 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2210
2211         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
2212         (FRAME_MIN_SIZE_PARM): Likewise.
2213         (FRAME_BACKCHAIN): Likewise.
2214         (FRAME_CR_SAVE): Likewise.
2215         (FRAME_LR_SAVE): Likewise.
2216         (FRAME_TOC_SAVE): Likewise.
2217         (FRAME_PARM_SAVE): Likewise.
2218         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2219         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2220         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2221         (call_mcount_parm_offset): New macro.
2222         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
2223         (PROF): Use symbolic stack frame offsets.
2224         (TAIL_CALL_SYSCALL_ERROR): Likewise.
2225         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
2226         Redefine in terms of FRAME_MIN_SIZE.
2227         (_dl_runtime_resolve): Use symbolic stack frame offsets.
2228         (_dl_profile_resolve): Likewise.  Update comment.
2229         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
2230         symbols stack frame offsets.
2231         (__sigsetjmp): Likewise.
2232         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
2233         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
2234         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
2235         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
2236
2237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
2238         (FRAME_BACKCHAIN): Remove.
2239         (FRAME_CR_SAVE): Likewise.
2240         (FRAME_LR_SAVE): Likewise.
2241         (FRAME_COMPILER_DW): Likewise.
2242         (FRAME_LINKER_DW): Likewise.
2243         (FRAME_TOC_SAVE): Likewise.
2244         (FRAME_PARM_SAVE): Likewise.
2245         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2246         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2247         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
2249         (CHECK_SP): Use symbolic stack frame offsets.
2250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
2251         zone" instead of caller's parameter save area for temp storage.
2252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2253         Likewise.  Also, use symbolic stack frame offsets.
2254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
2255         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
2256         our own stack frame instead of the caller's.
2257         (__socket): Use symbolic stack frame offsets.
2258
2259 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2260             Alan Modra  <amodra@gmail.com>
2261
2262         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
2263         Define.
2264         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
2265         PPC64_LOCAL_ENTRY_OFFSET): Define.
2266         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
2267         New function.
2268         (elf_machine_fixup_plt): Call it.
2269         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
2270         reloc arguments.
2271         (elf_machine_rela): Update call to elf_machine_plt_conflict.
2272         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2273         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
2274         r2 before calling target.
2275
2276 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2277             Alan Modra  <amodra@gmail.com>
2278
2279         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
2280         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
2281         versions of macros to support ELFv2 ABI.
2282         (LOCALENTRY): New macro.
2283         (ENTRY, EALIGN): Use it.
2284         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
2285         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
2286         fall through into ENTRY entry point.
2287         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
2288         Only define if _CALL_ELF != 2.
2289
2290         (elf_machine_matches_host): Verify ABI version matches.
2291         (RTLD_START): Use LOCALENTRY.
2292         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
2293         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
2294         (PLT_ENTRY_WORDS): New macro.
2295         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
2296         (elf_machine_runtime_setup): Support ELFv2 ABI.
2297         (elf_machine_fixup_plt): Likewise.
2298         (elf_machine_plt_conflict): Likewise.
2299         (resolve_ifunc): Likewise.
2300         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
2301         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
2302         Likewise.
2303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
2304         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
2305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2306         (makecontext): Support ELFv2 ABI.
2307         * elf/elf.h (EF_PPC64_ABI): Define.
2308
2309 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2310
2311         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
2312         New assembler macro.
2313         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
2314         [ASSEMBLER] (ENTRY): ... but instead here ...
2315         [ASSEMBLER] (EALIGN): ... and here.
2316         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
2317         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
2318         [!ASSEMBLER] (ENTRY_2): Use it.
2319         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
2320         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
2321         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2322         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
2323         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
2324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
2325         Use PPC64_LOAD_FUNCPTR.
2326
2327 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2328
2329         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
2330
2331 2013-12-04  Alan Modra  <amodra@gmail.com>
2332
2333         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
2334         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
2335         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
2336         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
2337
2338         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
2339         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
2340         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
2341         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
2342         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
2343         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
2344
2345 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2346
2347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2348         (__makecontext): Fix incorrect CFI when backtracing out of
2349         context created via makecontext.
2350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
2351         (__setcontext): Fix incorrect CFI during switch to new context.
2352         (__novec_setcontext): Likewise.
2353
2354 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2355
2356         [BZ #4772]
2357         * time/strptime_l.c (__strptime_internal): Allow modifiers
2358         in strptime.
2359         * time/tst-strptime.c (day_tests): Add testcase.
2360
2361
2362 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2363
2364         * scripts/bench.pl: Skip over blank lines.
2365
2366 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
2367
2368         [BZ #926]
2369         * manual/time.texi (Calendar Time): Clarify what timezone functions
2370         use.
2371
2372 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2373
2374         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2375
2376 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2377
2378         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
2379         implementation.
2380         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
2381         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
2382         * debug/memset_chk.c (__memset_chk): Likewise.
2383         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
2384         * debug/strncpy_chk.c: Likewise.
2385
2386 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2387
2388         [BZ #15268]
2389         [BZ #15425]
2390         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
2391         (__ieee754_exp): For possibly underflowing results, check size of
2392         result and force underflow exception if required.
2393         * math/auto-libm-test-in: Add more tests of exp.
2394         * math/auto-libm-test-out: Regenerated.
2395         * sysdeps/i386/fpu/libm-test-ulps: Update.
2396         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2397
2398         [BZ #16283]
2399         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
2400         * math/w_exp2f.c (__exp2f): Likewise.
2401         * math/w_exp2l.c (__exp2l): Likewise.
2402         * math/auto-libm-test-in: Do not allow missing errno on exp2
2403         underflow.
2404         * math/auto-libm-test-out: Regenerated.
2405
2406 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
2407
2408         [BZ #16274]
2409         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
2410         handle filename validation.
2411         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
2412         (do_open): Delete.
2413
2414 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2415
2416         [BZ #6786]
2417         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
2418         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
2419         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
2420         <float.h>.
2421         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
2422         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
2423         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2424         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
2425         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2426         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
2427         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2428         * math/auto-libm-test-in: Don't allow missing errno from erfc.
2429         Add more erfc tests.
2430         * math/auto-libm-test-out: Regenerated.
2431         * sysdeps/i386/fpu/libm-test-ulps: Update.
2432         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2433
2434         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
2435         exp2, expm1, j0 and j1.
2436         * math/auto-libm-test-out: Regenerated.
2437         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
2438         (erfc_test_data): Likewise.
2439         (exp_test_data): Likewise.
2440         (exp_tonearest_test_data): Likewise.
2441         (exp_towardzero_test_data): Likewise.
2442         (exp_downward_test_data): Likewise.
2443         (exp_upward_test_data): Likewise.
2444         (exp10_test_data): Likewise.
2445         (exp2_test_data): Likewise.
2446         (expm1_test_data): Likewise.
2447         (j0_test_data): Likewise.
2448         (j1_test_data): Likewise.
2449         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
2450         (input_flag_type): Add flag_xfail_rounding.
2451         (input_flags): Add xfail-rounding.
2452         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
2453         (output_for_one_input_case): Handle flag_xfail_rounding.
2454         * sysdeps/i386/fpu/libm-test-ulps: Update.
2455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2456
2457 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
2458
2459         [BZ #16289]
2460         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
2461         division by 0.
2462
2463 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2464
2465         [BZ #16195]
2466         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2467         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
2468         (STAP_PROBE0): New macro.
2469         (STAP_PROBE1): Likewise.
2470         (STAP_PROBE2): Likewise.
2471         (STAP_PROBE3): Likewise.
2472         (STAP_PROBE4): Likewise.
2473
2474 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
2475
2476         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
2477
2478 2013-12-02  Steve Ellcey  <sellcey@mips.com>
2479
2480         * benchtests/Makefile (bench): Add sqrt.
2481         (LDLIBS-bench-sqrt): New.
2482         * benchtests/sqrt-input: New.
2483
2484 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
2485
2486         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
2487         (GAIH_EAI): Likewise.
2488         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
2489         (gaih_inet): Likewise.
2490         (getaddrinfo): Don't use GAIH_EAI.
2491
2492         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
2493         (struct gaih): Remove definition.
2494
2495 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2496
2497         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
2498         Use HERRNOP directly.
2499
2500 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2501
2502         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2503
2504 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
2505
2506         * math/gen-auto-libm-tests.c (test_functions): Add more
2507         single-argument functions.
2508         (special_fill_pi_2): New function.
2509         (special_fill_minus_pi_2): Likewise.
2510         (special_fill_pi_6): Likewise.
2511         (special_fill_minus_pi_6): Likewise.
2512         (special_fill_pi_3): Likewise.
2513         (special_fill_2pi_3): Likewise.
2514         (special_fill_e): Likewise.
2515         (special_fill_1_e): Likewise.
2516         (special_fill_e_minus_1): Likewise.
2517         (special_real_inputs): Add more special inputs.
2518         (output_for_one_input_case): Do not require ERANGE on underflow to
2519         zero if round-to-nearest result does not underflow to zero, unless
2520         exact results required.
2521         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
2522         atan, atanh, cbrt, cos and cosh.
2523         * math/auto-libm-test-out: Regenerated.
2524         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
2525         (acos_tonearest_test_data): Likewise.
2526         (acos_towardzero_test_data): Likewise.
2527         (acos_downward_test_data): Likewise.
2528         (acos_upward_test_data): Likewise.
2529         (acosh_test_data): Likewise.
2530         (asin_test_data): Likewise.
2531         (asin_tonearest_test_data): Likewise.
2532         (asin_towardzero_test_data): Likewise.
2533         (asin_upward_test_data): Likewise.
2534         (asinh_test_data): Likewise.
2535         (atan_test_data): Likewise.
2536         (atanh_test_data): Likewise.
2537         (cbrt_test_data): Likewise.
2538         (cos_test_data): Likewise.
2539         (cos_tonearest_test_data): Likewise.
2540         (cos_towardzero_test_data): Likewise.
2541         (cos_downward_test_data): Likewise.
2542         (cos_upward_test_data): Likewise.
2543         (cosh_test_data): Likewise.
2544         (cosh_tonearest_test_data): Likewise.
2545         (cosh_towardzero_test_data): Likewise.
2546         (cosh_downward_test_data): Likewise.
2547         (cosh_upward_test_data): Likewise.
2548         * sysdeps/i386/fpu/libm-test-ulps: Update.
2549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2550
2551 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
2552
2553         [BZ #6787]
2554         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
2555         * math/w_exp10f.c (__exp10f): Likewise.
2556         * math/w_exp10l.c (__exp10l): Likewise.
2557         * math/libm-test.inc (exp10_test_data): Add more tests and expect
2558         errno settings in existing tests.
2559
2560         [BZ #14032]
2561         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
2562         precision control set to double precision.
2563         * sysdeps/i386/fpu/w_sqrt.c: New file.
2564         * math/auto-libm-test-in: Add more tests.
2565         * math/auto-libm-test-out: Update.
2566
2567         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
2568         (sqrt_test_tonearest): New function.
2569         (sqrt_towardzero_test_data): New variable.
2570         (sqrt_test_towardzero): New function.
2571         (sqrt_downward_test_data): New variable.
2572         (sqrt_test_downward): New function.
2573         (sqrt_upward_test_data): New variable.
2574         (sqrt_test_upward): New function.
2575         (main): Call the new functions.
2576
2577         * math/gen-auto-libm-tests.c: New file.
2578         * math/auto-libm-test-in: Likewise.
2579         * math/auto-libm-test-out: New generated file.
2580         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
2581         variables.
2582         (%beautify): Add generated representations of zero.
2583         (top level): Set $auto_input and call parse_auto_input.
2584         (beautify): Remove trailing "f" from hex float constants.
2585         (parse_args): Handle XFAIL_TEST.
2586         (convert_condition): New function.
2587         (or_value): Likewise.
2588         (or_cond_value): Likewise.
2589         (generate_testfile): Handle AUTO_TESTS_* lines.
2590         (parse_auto_input): New function.
2591         * math/libm-test.inc (XFAIL_TEST): New macro.
2592         (ERRNO_UNCHANGED): Update value.
2593         (ERRNO_EDOM): Likewise.
2594         (ERRNO_ERANGE): Likewise.
2595         (IGNORE_RESULT): Likewise.
2596         (TEST_COND_flt_32): New macro.
2597         (TEST_COND_dbl_64): Likewise.
2598         (TEST_COND_ldbl_96_intel): Likewise.
2599         (TEST_COND_ldbl_96_m68k): Likewise.
2600         (TEST_COND_ldbl_128): Likewise.
2601         (TEST_COND_ldbl_128ibm): Likewise.
2602         (TEST_COND_long32): Likewise.
2603         (TEST_COND_long64): Likewise.
2604         (TEST_COND_before_rounding): Likewise.
2605         (TEST_COND_after_rounding): Likewise.
2606         (enable_test): Handle XFAIL_TEST flag.
2607         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
2608         with finite results.
2609         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
2610         auto-libm-test-out.
2611
2612 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2613             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2614
2615         [BZ #16214]
2616         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
2617         __tls_get_addr_internal instead of __tls_get_offset in order to
2618         avoid GOT pointer dependency.  Make rtld export
2619         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
2620         __tls_get_addr since we are a __tls_get_offset platform.
2621         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
2622         GOT pointer being set up before.
2623         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
2624
2625 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
2626
2627         * manual/math.texi (Errors in Math Functions): Document accuracy
2628         goals.
2629
2630         [BZ #15004]
2631         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
2632         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
2633         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2634         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2635         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2636         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2637         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2638         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2639         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2640         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2641         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2642         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2643         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2644         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2645         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2646         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2647
2648         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
2649         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
2650         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
2651         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
2652         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
2653         Likewise.
2654         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
2655         Likewise.
2656         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
2657         Likewise.
2658         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
2659         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
2660         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
2661         atomic-feupdateenv and flt-rounds.
2662         * sysdeps/powerpc/nofpu/Versions (libc): Add
2663         __atomic_feholdexcept, __atomic_feclearexcept,
2664         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
2665         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
2666         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
2667         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
2668         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
2669         here.
2670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
2671         Update.
2672
2673         * manual/arith.texi (FP Exceptions): Document that exceptions may
2674         not be raised when matherr is used.
2675         (Math Error Reporting): Document overflow in directed rounding
2676         modes.  Document that errno may not be set when finite values are
2677         returned on overflow.  Document intent to set errno on underflow
2678         only for underflow to zero.
2679
2680         [BZ #16271]
2681         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
2682         round-to-nearest then adjust result for other rounding modes.
2683         * include/fenv.h (fegetround): Use libm_hidden_proto.
2684         * math/fegetround.c (fegetround): Use libm_hidden_def.
2685         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
2686         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
2687         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
2688         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
2689         Likewise.
2690         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
2691         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
2692         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
2693         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
2694
2695 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2696
2697         [BZ #16077]
2698         * nss/Versions (libnss_files): Add
2699         _nss_files_gethostbyname3_r.
2700         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
2701         New function.
2702         (HOST_DB_LOOKUP): Remove macro.
2703         (_nss_files_gethostbyname_r): Implement function without the
2704         HOST_DB_LOOKUP macro.
2705         (_nss_files_gethostbyname2_r): Likewise.
2706
2707 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
2708
2709         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
2710
2711 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
2712
2713         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
2714         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
2715         warning.
2716
2717 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2718
2719         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
2720         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
2721         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
2722         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
2723         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
2724         __fe_nomask_env_priv and attribute_hidden.
2725         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
2726         (libc_feupdateenv_test_ppc): Likewise.
2727         (libc_feresetround_ppc): Likewise.
2728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2729         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
2730         compat_symbol macro.
2731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2732         (__fe_nomask_env): Likewise.
2733         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
2734
2735 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2736
2737         * string/Makefile: Remove ifunc tests.
2738         * string/test-string.h: Define TEST_IFUNC.
2739         * string/test-bcopy-ifunc.c: Remove.
2740         * string/test-bzero-ifunc.c: Likewise.
2741         * string/test-memccpy-ifunc.c: Likewise.
2742         * string/test-memchr-ifunc.c: Likewise.
2743         * string/test-memcmp-ifunc.c: Likewise.
2744         * string/test-memcpy-ifunc.c: Likewise.
2745         * string/test-memmem-ifunc.c: Likewise.
2746         * string/test-memmove-ifunc.c: Likewise.
2747         * string/test-mempcpy-ifunc.c: Likewise.
2748         * string/test-memrchr-ifunc.c: Likewise.
2749         * string/test-memset-ifunc.c: Likewise.
2750         * string/test-rawmemchr-ifunc.c: Likewise.
2751         * string/test-stpcpy-ifunc.c: Likewise.
2752         * string/test-stpncpy-ifunc.c: Likewise.
2753         * string/test-strcasecmp-ifunc.c: Likewise.
2754         * string/test-strcasestr-ifunc.c: Likewise.
2755         * string/test-strcat-ifunc.c: Likewise.
2756         * string/test-strchr-ifunc.c: Likewise.
2757         * string/test-strchrnul-ifunc.c: Likewise.
2758         * string/test-strcmp-ifunc.c: Likewise.
2759         * string/test-strcpy-ifunc.c: Likewise.
2760         * string/test-strcspn-ifunc.c: Likewise.
2761         * string/test-strlen-ifunc.c: Likewise.
2762         * string/test-strncasecmp-ifunc.c: Likewise.
2763         * string/test-strncat-ifunc.c: Likewise.
2764         * string/test-strncmp-ifunc.c: Likewise.
2765         * string/test-strncpy-ifunc.c: Likewise.
2766         * string/test-strnlen-ifunc.c: Likewise.
2767         * string/test-strpbrk-ifunc.c: Likewise.
2768         * string/test-strrchr-ifunc.c: Likewise.
2769         * string/test-strspn-ifunc.c: Likewise.
2770         * string/test-strstr-ifunc.c: Likewise.
2771
2772 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2773
2774         * benchtests/Makefile: Remove ifunc tests.
2775         * benchtests/bench-string.h: Define TEST_IFUNC.
2776         * benchtests/bench-bcopy-ifunc.c: Remove.
2777         * benchtests/bench-bzero-ifunc.c: Likewise.
2778         * benchtests/bench-memccpy-ifunc.c: Likewise.
2779         * benchtests/bench-memchr-ifunc.c: Likewise.
2780         * benchtests/bench-memcmp-ifunc.c: Likewise.
2781         * benchtests/bench-memcpy-ifunc.c: Likewise.
2782         * benchtests/bench-memmem-ifunc.c: Likewise.
2783         * benchtests/bench-memmove-ifunc.c: Likewise.
2784         * benchtests/bench-mempcpy-ifunc.c: Likewise.
2785         * benchtests/bench-memrchr-ifunc.c: Likewise.
2786         * benchtests/bench-memset-ifunc.c: Likewise.
2787         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
2788         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
2789         * benchtests/bench-stpcpy-ifunc.c: Likewise.
2790         * benchtests/bench-stpncpy-ifunc.c: Likewise.
2791         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
2792         * benchtests/bench-strcasestr-ifunc.c: Likewise.
2793         * benchtests/bench-strcat-ifunc.c: Likewise.
2794         * benchtests/bench-strchr-ifunc.c: Likewise.
2795         * benchtests/bench-strchrnul-ifunc.c: Likewise.
2796         * benchtests/bench-strcmp-ifunc.c: Likewise.
2797         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
2798         * benchtests/bench-strcpy-ifunc.c: Likewise.
2799         * benchtests/bench-strcspn-ifunc.c: Likewise.
2800         * benchtests/bench-strlen-ifunc.c: Likewise.
2801         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
2802         * benchtests/bench-strncat-ifunc.c: Likewise.
2803         * benchtests/bench-strncmp-ifunc.c: Likewise.
2804         * benchtests/bench-strncpy-ifunc.c: Likewise.
2805         * benchtests/bench-strnlen-ifunc.c: Likewise.
2806         * benchtests/bench-strpbrk-ifunc.c: Likewise.
2807         * benchtests/bench-strrchr-ifunc.c: Likewise.
2808         * benchtests/bench-strsep-ifunc.c: Likewise.
2809         * benchtests/bench-strspn-ifunc.c: Likewise.
2810         * benchtests/bench-strstr-ifunc.c: Likewise.
2811
2812 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2813
2814         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
2815
2816 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2817
2818         * resolv/netdb.h: Use __glibc_reserved instead __unused.
2819         * rt/aio.h: Likewise.
2820         * sysdeps/gnu/bits/utmp.h: Likewise.
2821         * sysdeps/gnu/bits/utmpx.h: Likewise.
2822         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
2823         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
2824         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
2825         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
2826         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2827         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2828         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
2829         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
2830         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
2831         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
2832         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
2833         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2834         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
2836         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
2837         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
2838         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
2839         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
2840         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2841         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2842         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
2843         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
2844         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
2845         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
2846         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2847         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2848         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
2849         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
2850         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
2851         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2852         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2853         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
2854         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
2855         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
2856         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
2857         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
2858         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
2859         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
2860         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
2861         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
2862         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
2863         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
2864
2865 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
2866
2867         [BZ #16245]
2868         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
2869         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
2870
2871 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
2872
2873         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
2874         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
2875         Likewise.
2876
2877 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2878
2879         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2880         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
2881         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
2882         (__fesetround): Remove define.
2883         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
2884         rounding and exceptions handling.
2885         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
2886         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
2887         (__fe_nomask_env): Likewise.
2888         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
2889         __fegetround instead of fegetround.
2890         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
2891         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
2892
2893 2013-11-21  Roland McGrath  <roland@hack.frob.com>
2894
2895         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
2896         it's there.
2897
2898         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
2899
2900 2013-11-21  Meador Inge  <meadori@codesourcery.com>
2901
2902         [BZ #11157]
2903         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
2904         (encrypt_r): Likewise.
2905         * malloc/obstack.h (obstack_free): Likewise.
2906         * posix/unistd.h (encrypt): Likewise.
2907
2908 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
2909
2910         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
2911         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
2912         DL_CALL_DT_FINI() that call the functions directly.
2913         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
2914         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
2915         * elf/dl-fini.c: Likewise.
2916
2917 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
2918
2919         * malloc/hooks.c (memalign_check): Add alignment rounding.
2920         * malloc/malloc.c (_mid_memalign): New function.
2921         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
2922         Implement by calling _mid_memalign.
2923         * manual/probes.texi (Memory Allocation Probes): Remove
2924         memory_valloc_retry and memory_pvalloc_retry.
2925
2926 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2927
2928         * locale/programs/locarchive.c (open_archive): Add const
2929         qualifier to ARCHIVEFNAME and copy default fname to
2930         DEFAULT_FNAME.
2931
2932         [BZ #15601]
2933         * libio/tst-widetext.input: Rename Oriya to Odia.
2934         * locale/iso-639.def: Likewise.
2935
2936         * manual/probes.texi (Mathematical Function Probes): Add
2937         documentation for sin, cos, asin and acos probes.
2938         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
2939         (__sin32): Add slowasin probe.
2940         (__cos32): Add slowacos probe.
2941         (__mpsin): Add slowsin probe.
2942         (__mpcos): Add slowcos probe.
2943
2944 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
2945
2946         [BZ #15483]
2947         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
2948         thread-local __sim_exceptions_thread and global
2949         __sim_exceptions_global.
2950         (__sim_disabled_exceptions): Change to thread-local
2951         __sim_disabled_exceptions_thread and global
2952         __sim_disabled_exceptions_global.
2953         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
2954         and global __sim_round_mode_global.
2955         (__simulate_exceptions): Use thread-local floating-point state and
2956         set global state from it as needed.
2957         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
2958         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
2959         __sim_round_mode_thread.
2960         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
2961         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
2962         and global __sim_exceptions_global.
2963         (__sim_disabled_exceptions): Change to thread-local
2964         __sim_disabled_exceptions_thread and global
2965         __sim_disabled_exceptions_global.
2966         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
2967         and global __sim_round_mode_global.
2968         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
2969         (SIM_SET_GLOBAL): Likewise.
2970         * sysdeps/powerpc/soft-fp/sfp-machine.h
2971         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
2972         __sim_round_mode_thread.
2973         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
2974         __sim_disabled_exceptions_thread.
2975         (__sim_exceptions): Change to __sim_exceptions_thread.
2976         (__sim_disabled_exceptions): Change to
2977         __sim_disabled_exceptions_thread.
2978         (__sim_round_mode): Change to __sim_round_mode_thread.
2979         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
2980         thread-local floating-point state and set global state from it as
2981         needed.
2982         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
2983         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
2984         (__sim_disabled_exceptions): Remove extern declaration.
2985         (feenableexcept): Use thread-local floating-point state and set
2986         global state from it as needed.
2987         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
2988         extern declaration.
2989         (__sim_disabled_exceptions): Likewise.
2990         (__sim_round_mode): Likewise.
2991         (__fegetenv): Use thread-local floating-point state.
2992         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
2993         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
2994         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
2995         floating-point state and set global state from it as needed.
2996         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
2997         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
2998         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
2999         Likewise.
3000         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
3001         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
3002         Likewise.
3003         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
3004         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
3005         Use __sim_round_mode_thread.
3006         * math/test-fenv-tls.c: New file.
3007         * math/Makefile (tests): Add test-fenv-tls.
3008         ($(objpfx)test-fenv-tls): Depend on
3009         $(common-objpfx)nptl/libpthread.so.
3010
3011 2013-11-19  Andreas Schwab  <schwab@suse.de>
3012
3013         * locale/programs/locale.c (show_info): Decode wordarray elements.
3014         * locale/categories.def (LC_MONETARY): Add element for
3015         _NL_MONETARY_CRNCYSTR.
3016         * locale/C-monetary.c (conversion_rate): New variable.
3017         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
3018         element.
3019
3020 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
3021
3022         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
3023         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
3024
3025 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
3026
3027         * elf/Makefile (tst-auxv): New test.
3028         * elf/tst-auxv.c: New
3029         * elf/rtld.c (dl_main): Adjust AT_EXECFN
3030
3031 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
3032
3033         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
3034         (hidden_proto): Caller changed.
3035         (hidden_tls_proto): New macro.
3036         (libc_hidden_tls_proto): Likewise.
3037         (rtld_hidden_tls_proto): Likewise.
3038         (libm_hidden_tls_proto): Likewise.
3039         (libresolv_hidden_tls_proto): Likewise.
3040         (librt_hidden_tls_proto): Likewise.
3041         (libdl_hidden_tls_proto): Likewise.
3042         (libnss_files_hidden_tls_proto): Likewise.
3043         (libnsl_hidden_tls_proto): Likewise.
3044         (libnss_nisplus_hidden_tls_proto): Likewise.
3045         (libutil_hidden_tls_proto): Likewise.
3046
3047 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
3048
3049         [BZ #10253]
3050         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
3051         (decompose_rpath): Defer expansion to fillin_rpath.
3052         (_dl_init_paths): Pass linkmap to fillin_rpath.
3053
3054 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3055
3056         * benchtests/Makefile: Add strsep.
3057         * benchtests/bench-strsep.c: New file: strsep benchtest.
3058         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
3059
3060 2013-11-18  Andreas Schwab  <schwab@suse.de>
3061
3062         * locale/programs/locale.c (show_info) [case byte]: Check for
3063         '\377' instead of '\177'.
3064         * locale/C-monetary.c (not_available): Always use "\377".
3065         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
3066         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
3067         detect unavailable sign_posn locale elements.
3068         * locale/localeconv.c (__localeconv): For grouping and
3069         mon_grouping handle "\177" and "\377" like no grouping.
3070         (INT_ELEM): New macro.  Use it to set all numeric members.
3071         * locale/programs/ld-monetary.c (monetary_read)
3072         <tok_mon_grouping>: Normalize single -1 to the empty string.
3073         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
3074         Likewise.
3075
3076 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3077
3078         [BZ #16055]
3079         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
3080         when we match (nil).
3081         * stdio-common/tst-sscanf.c (struct test): Add testcase.
3082
3083 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
3084
3085         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
3086         (NO_TEST_INLINE): Update value.
3087         (ERRNO_UNCHANGED): Likewise.
3088         (ERRNO_EDOM): Likewise.
3089         (ERRNO_ERANGE): Likewise.
3090         (IGNORE_RESULT): Likewise.
3091         (check_float_internal): Check signs of NaN results if
3092         TEST_NAN_SIGN used.
3093         (check_complex): Pass TEST_NAN_SIGN flag through to second
3094         check_float_internal call.
3095         (copysign_test_data): Add tests with quiet NaNs as second
3096         argument.  Use TEST_NAN_SIGN.
3097         (fabs_test_data): Add test of negative quiet NaN argument.  Use
3098         TEST_NAN_SIGN.
3099         (signbit_test_data): Add tests of quiet NaN argument.
3100         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
3101
3102         * math/gen-libm-test.pl (show_exceptions): Take extra argument
3103         $ignore_result.
3104         (parse_args): Handle function results specified as IGNORE.
3105         * math/libm-test.inc (IGNORE_RESULT): New macro.
3106         (check_float_internal): Do not check numerical result if flag
3107         IGNORE_RESULT set.
3108         (check_complex): Pass through IGNORE_RESULT to second
3109         check_float_internal call.
3110         (check_int): Do not check numerical result if flag IGNORE_RESULT
3111         set.
3112         (check_long): Likewise.
3113         (check_bool): Likewise.
3114         (check_longlong): Likewise.
3115         (lrint_test_data): Add tests of infinite and NaN arguments.
3116         (lrint_tonearest_test_data): Likewise.
3117         (lrint_towardzero_test_data): Likewise.
3118         (lrint_downward_test_data): Likewise.
3119         (lrint_upward_test_data): Likewise.
3120         (llrint_test_data): Likewise.
3121         (llrint_tonearest_test_data): Likewise.
3122         (llrint_towardzero_test_data): Likewise.
3123         (llrint_downward_test_data): Likewise.
3124         (llrint_upward_test_data): Likewise.
3125         (lround_test_data): Likewise.
3126         (llround_test_data): Likewise.
3127
3128         * math/libm-test.inc (NO_TEST_INLINE): New macro.
3129         (ERRNO_UNCHANGED): Update value.
3130         (ERRNO_EDOM): Likewise.
3131         (ERRNO_ERANGE): Likewise.
3132         (NO_TEST_INLINE_FLOAT): New macro.
3133         (NO_TEST_INLINE_DOUBLE): Likewise.
3134         (enable_test): New function.
3135         (RUN_TEST_f_f): Check enable_test before running test.
3136         (RUN_TEST_2_f): Likewise.
3137         (RUN_TEST_fff_f): Likewise.
3138         (RUN_TEST_c_f): Likewise.
3139         (RUN_TEST_f_f1): Likewise.
3140         (RUN_TEST_fF_f1): Likewise.
3141         (RUN_TEST_fI_f1): Likewise.
3142         (RUN_TEST_ffI_f1): Likewise.
3143         (RUN_TEST_c_c): Likewise.
3144         (RUN_TEST_cc_c): Likewise.
3145         (RUN_TEST_f_i): Likewise.
3146         (RUN_TEST_f_i_tg): Likewise.
3147         (RUN_TEST_ff_i_tg): Likewise.
3148         (RUN_TEST_f_b): Likewise.
3149         (RUN_TEST_f_b_tg): Likewise.
3150         (RUN_TEST_f_l): Likewise.
3151         (RUN_TEST_f_L): Likewise.
3152         (RUN_TEST_fFF_11): Likewise.
3153         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
3154         conditionals.
3155         (cosh_test_data): Likewise.
3156         (exp_test_data): Likewise.
3157         (expm1_test_data): Likewise.
3158         (hypot_test_data): Likewise.
3159         (pow_test_data): Likewise.
3160         (sinh_test_data): Likewise.
3161         (tanh_test_data): Likewise.
3162         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
3163         flags argument.
3164
3165         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
3166         tests with quiet NaN input and output.
3167         (acosh_test_data): Likewise.
3168         (asin_test_data): Likewise.
3169         (asinh_test_data): Likewise.
3170         (atan_test_data): Likewise.
3171         (atanh_test_data): Likewise.
3172         (atan2_test_data): Likewise.
3173         (cbrt_test_data): Likewise.
3174         (cos_test_data): Likewise.
3175         (cosh_test_data): Likewise.
3176         (erf_test_data): Likewise.
3177         (erfc_test_data): Likewise.
3178         (exp_test_data): Likewise.
3179         (exp10_test_data): Likewise.
3180         (exp2_test_data): Likewise.
3181         (expm1_test_data): Likewise.
3182         (hypot_test_data): Likewise.
3183         (j0_test_data): Likewise.
3184         (j1_test_data): Likewise.
3185         (jn_test_data): Likewise.
3186         (lgamma_test_data): Likewise.
3187         (log_test_data): Likewise.
3188         (log10_test_data): Likewise.
3189         (log1p_test_data): Likewise.
3190         (log2_test_data): Likewise.
3191         (pow_test_data): Likewise.
3192         (scalb_test_data): Likewise.
3193         (sin_test_data): Likewise.
3194         (sincos_test_data): Likewise.
3195         (sinh_test_data): Likewise.
3196         (tan_test_data): Likewise.
3197         (tanh_test_data): Likewise.
3198         (tgamma_test_data): Likewise.
3199         (y0_test_data): Likewise.
3200         (y1_test_data): Likewise.
3201         (yn_test_data): Likewise.
3202
3203         [BZ #16167]
3204         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
3205         argument being NaN and avoid computations with second argument in
3206         that case.
3207         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3208         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3209         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3210
3211 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
3212
3213         * locale/iso-639.def: Add Chitwani Tharu (the).
3214
3215 2013-11-14  Andreas Schwab  <schwab@suse.de>
3216
3217         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
3218         word instead of empty string.
3219
3220 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3221
3222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3223         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
3224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3225         (__fe_nomask_env): Likewise.
3226
3227 2013-11-13  Steve Ellcey  <sellcey@mips.com>
3228
3229         * benchtests/bench-timing.h: Include time.h.
3230
3231 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
3232
3233         [BZ #15997]
3234         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
3235         to 3.4.0 for x32.
3236         * sysdeps/unix/sysv/linux/configure: Regenerated.
3237
3238 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
3239
3240         [BZ #16151]
3241         * stdlib/strtod_l.c (round_and_return): Do not consider
3242         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
3243         exponent one less than half the least subnormal exponent.
3244         * stdlib/test-strtod-round-data: Add more tests.
3245         * stdlib/tst-strtod-round.c (tests): Regenerated.
3246
3247 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3248
3249         [BZ #14143]
3250         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
3251         (__fe_mask_env): Likewise.
3252         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
3253         libm_hidden_proto and add function prototype.
3254         (__fe_mask_env): Add function prototype.
3255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3256         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
3257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3258         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
3259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3260         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
3261
3262 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3263
3264         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
3265         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
3266
3267 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3268
3269         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
3270         of htab_find_slot().
3271
3272 2013-11-11  David S. Miller  <davem@davemloft.net>
3273
3274         [BZ #16150]
3275         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
3276         symbol in the non-vis3 case in static builds.
3277         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
3278         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
3279         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
3280         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
3281
3282 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3283
3284         [BZ #387]
3285         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
3286         it is empty.
3287
3288 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3289
3290         * benchtests/Makefile: Add bench-strtod.
3291         * benchtests/bench-strtod.c: New file: strtod benchtest
3292
3293 2013-11-11  Andreas Schwab  <schwab@suse.de>
3294
3295         [BZ #16153]
3296         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
3297         terminating NUL in key length.
3298
3299 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3300
3301         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
3302         Add artificial ODP entry for vDSO symbol for PPC64.
3303         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
3304         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
3305
3306 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3307
3308         [BZ #15374]
3309         * nss/getent.c (services_keys): Recognize services starting with digit.
3310
3311 2013-11-06  David S. Miller  <davem@davemloft.net>
3312
3313         [BZ #15985]
3314         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
3315         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
3316
3317 2013-11-06  Will Newton  <will.newton@linaro.org>
3318
3319         * manual/memory.texi (Malloc Examples): Remove register
3320         keyword from examples.
3321
3322 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
3323
3324         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
3325
3326 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
3327
3328         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
3329         depending on [__GCC_IEC_559 > 0].
3330         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
3331         depending on [__GCC_IEC_559_COMPLEX > 0].
3332
3333 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
3334
3335         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
3336         to iso-639.def.
3337
3338 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
3339
3340         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
3341
3342 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
3343
3344         [BZ #16112]
3345         * malloc/malloc (malloc_info): Do not handle first bin as
3346         special case.
3347
3348 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
3349
3350         * locale/iso-639.def: Add Central Nahuatl (nhn).
3351
3352 2013-11-01  Bruno Haible  <bruno@clisp.org>
3353
3354         [BZ #7003]
3355         * manual/math.texi (BSD Random): Specify range upper bound as
3356         in POSIX.
3357
3358 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
3359
3360         * locale/iso-639.def: Add Meadow Mari (mhr).
3361
3362 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
3363
3364         [BZ #14752], [BZ #15763]
3365         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
3366         Validate name.
3367         * rt/tst_shm.c: Add test for escaping directory.
3368
3369 2013-10-31  Andreas Schwab  <schwab@suse.de>
3370
3371         [BZ #15917]
3372         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
3373         followed by 'x' as part of digit sequence.
3374         * stdio-common/tst-sscanf.c (double_tests2): New tests.
3375
3376 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
3377
3378         [BZ #16037]
3379         * configure.ac: allow GNU Make 4.0 and greater.
3380         * configure: Regenerated.
3381
3382 2013-10-30  Will Newton  <will.newton@linaro.org>
3383
3384         [BZ #16038]
3385         * malloc/hooks.c (memalign_check): Limit alignment to the
3386         maximum representable power of two.
3387         * malloc/malloc.c (__libc_memalign): Likewise.
3388         * malloc/tst-memalign.c (do_test): Add test for very
3389         large alignment values.
3390         * malloc/tst-posix_memalign.c (do_test): Likewise.
3391
3392 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3393
3394         [BZ #11087]
3395         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
3396         (munmap_chunk): Likewise.
3397         (mremap_chunk): Likewise.
3398
3399 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3400
3401         [BZ #15799]
3402         * stdlib/div.c (div): Remove obsolete code.
3403         * stdlib/ldiv.c (ldiv): Likewise.
3404         * stdlib/lldiv.c (lldiv): Likewise.
3405
3406 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3407
3408         [BZ #16071]
3409         * nss/nss_files/files-XXX.c (get_contents_ret): New
3410         enumerator.
3411         (get_contents): New function.
3412         (internal_getent): Use it.  Expand size of LINEBUFLEN.
3413
3414 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
3415
3416         * configure.in: Moved to ...
3417         * configure.ac: ... here. Change reference to configure.in
3418         to configure.ac.
3419         * sysdeps/arm/preconfigure.ac: ... here.
3420         configure.in to configure.ac.
3421         * sysdeps/gnu/configure.in: Moved to ...
3422         * sysdeps/gnu/configure.ac: ... here.
3423         * sysdeps/i386/configure.in: Moved to ...
3424         * sysdeps/i386/configure.ac: ... here.
3425         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
3426         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
3427         * sysdeps/mach/configure.in: Moved to ...
3428         * sysdeps/mach/configure.ac: ... here.
3429         * sysdeps/mach/hurd/configure.in: Moved to ...
3430         * sysdeps/mach/hurd/configure.ac: ... here.
3431         * sysdeps/powerpc/configure.in: Moved to ...
3432         * sysdeps/powerpc/configure.ac: ... here.
3433         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
3434         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
3435         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
3436         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
3437         * sysdeps/s390/s390-32/configure.in: Moved to ...
3438         * sysdeps/s390/s390-32/configure.ac: ... here.
3439         * sysdeps/s390/s390-64/configure.in: Moved to ...
3440         * sysdeps/s390/s390-64/configure.ac: ... here.
3441         * sysdeps/sh/configure.in: Moved to ...
3442         * sysdeps/sh/configure.ac: ... here.
3443         * sysdeps/sparc/configure.in: Moved to ...
3444         * sysdeps/sparc/configure.ac: ... here.
3445         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
3446         * sysdeps/unix/sysv/linux/configure.ac: ... here.
3447         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
3448         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
3449         * sysdeps/x86_64/configure.in: Moved to ...
3450         * sysdeps/x86_64/configure.ac: ... here.
3451         * sysdeps/x86_64/preconfigure.in: Moved to ...
3452         * sysdeps/x86_64/preconfigure.ac: ... here.
3453         * aclocal.m4: Change reference to configure.in to configure.ac.
3454         * config.h.in: Likewise.
3455         * manual/install.texi: Likewise.
3456         * manual/maint.texi: Likewise.
3457         * Makefile: Likewise.
3458         * malloc/Makefile: Likewise.
3459         * nscd/Makefile: Likewise.
3460         * Makeconfig: Change reference to configure.in and
3461         preconfigure.in to configure.ac and preconfigure.ac
3462         respectively.
3463         * INSTALL: Regenerated.
3464         * configure: Likewise.
3465         * sysdeps/gnu/configure: Likewise.
3466         * sysdeps/i386/configure: Likewise.
3467         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
3468         * sysdeps/mach/configure: Likewise.
3469         * sysdeps/mach/hurd/configure: Likewise.
3470         * sysdeps/powerpc/configure: Likewise.
3471         * sysdeps/powerpc/powerpc32/configure: Likewise.
3472         * sysdeps/powerpc/powerpc64/configure: Likewise.
3473         * sysdeps/s390/s390-32/configure: Likewise.
3474         * sysdeps/s390/s390-64/configure: Likewise.
3475         * sysdeps/sh/configure: Likewise.
3476         * sysdeps/sparc/configure: Likewise.
3477         * sysdeps/unix/sysv/linux/configure: Likewise.
3478         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
3479         * sysdeps/x86_64/configure: Likewise.
3480         * sysdeps/x86_64/preconfigure: Likewise.
3481
3482 2013-10-29  Andreas Schwab  <schwab@suse.de>
3483
3484         * stdio-common/Makefile (tst-swscanf-ENV): Define.
3485
3486 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3487
3488         * benchtests/pow-inputs: Add new inputs.
3489
3490         * benchtests/exp-inputs: Add new inputs.
3491
3492         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
3493         conditional check for return value.
3494         (__cos32): Likewise.
3495
3496 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3497
3498         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
3499         to provide a boost for large inputs with word alignment.
3500         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
3501         implementation based on optimized PPC64 strcpy.
3502         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
3503         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
3504         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
3505         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
3506
3507 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3508
3509         [BZ #2801]
3510         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
3511
3512 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3513
3514         [BZ #14876]
3515         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
3516         * time/tst-strptime.c (day_tests): Add testcase.
3517
3518 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3519
3520         [BZ #14029]
3521         * manual/pattern.texi: Acknowledge that fnmatch can fail.
3522
3523 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
3524
3525         [BZ #16074]
3526         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
3527         MAP_FAILED on error.
3528
3529 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3530
3531         [BZ #16072]
3532         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
3533         heap for large requests.
3534
3535 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
3536
3537         [BZ #9954]
3538         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
3539         result if the result has no associated interface.
3540         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
3541         interface for all 127.X.Y.Z addresses.
3542
3543 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
3544
3545         * locale/iso-639.def: Add Ligurian (lij)
3546
3547 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
3548
3549         [BZ #15825]
3550         * sunrpc/rpc_main.c: Document rpcgen -5.
3551
3552 2013-10-19  Michael Stahl  <mstahl@redhat.com>
3553
3554         * elf/rtld.c (do_preload): Print the reason why preloading failed.
3555
3556 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
3557
3558         [BZ #10278]
3559         * posix/glob.c: Match only directories when trailing slash is present.
3560         * posix/tst-gnuglob.c (my_opendir): Do not open files.
3561         (main): Add testcase.
3562
3563 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
3564
3565         [BZ #15670]
3566         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
3567
3568 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
3569
3570         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
3571         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
3572         AUTH_DES and cindex for FIPS 140-2.
3573         (DES Encryption): Add cindex FIPS 46-3.
3574
3575         * locale/locarchive.h (struct locarhandle): Add fname.
3576         * locale/programs/localedef.c (main): Pass ARGV[remaining]
3577         if an optional argument was specified to --list-archive,
3578         otherwise NULL.
3579         * locale/programs/locarchive.c (show_archive_content): Take new
3580         argument fname and pass it via ah.fname to open_archive.
3581         * locale/programs/localedef.h: Update decl.
3582         (open_archive): If AH->fname is non-null, open that file
3583         rather than the default file name, and don't ignore ENOENT.
3584         (create_archive): Set AH.fname to NULL.
3585         (delete_locales_from_archive): Likewise.
3586         (add_locales_to_archive): Likewise.
3587         * locale/programs/locfile.c (write_all_categories): Likewise.
3588
3589 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
3590             Aldy Hernandez  <aldyh@redhat.com>
3591
3592         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
3593         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
3594         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
3595         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
3596         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
3597         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
3598         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
3599         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
3600         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
3601         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
3602         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
3603         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
3604         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
3605         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
3606         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
3607         Likewise.
3608         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
3609         Likewise.
3610         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
3611         Likewise.
3612         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
3613         Likewise.
3614         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
3615         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
3616         Likewise.
3617         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
3618         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
3619         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
3620         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
3621         Likewise.
3622         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
3623         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
3624         * sysdeps/powerpc/preconfigure: Likewise.
3625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
3626         Likewise.
3627         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
3628         Replace contents of file by #include of <fenv_libc.h>.
3629         * sysdeps/powerpc/soft-fp/sfp-machine.h
3630         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
3631         and <sys/prctl.h>.
3632         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
3633         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
3634         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
3635         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
3636         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
3637         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
3638         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
3639         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
3640         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
3641         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
3642         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
3643         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
3644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
3645         Allow copysignl PLT reference to be missing.
3646
3647 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
3648             Joseph Myers  <joseph@codesourcery.com
3649
3650         [BZ #15948]
3651         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
3652         single character.
3653         (add_to_tablewc): Assert sequence of wide characters is nonempty.
3654
3655 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3656
3657         * elf/tst-tls-dlinfo.c: Don't include tls.h.
3658         * elf/tst-tls1.c: Likewise.
3659         * elf/tst-tls10.h: Likewise.
3660         * elf/tst-tls14.c: Likewise.
3661         * elf/tst-tls2.c: Likewise.
3662         * elf/tst-tls3.c: Likewise.
3663         * elf/tst-tls4.c: Likewise.
3664         * elf/tst-tls5.c: Likewise.
3665         * elf/tst-tls6.c: Likewise.
3666         * elf/tst-tls7.c: Likewise.
3667         * elf/tst-tls8.c: Likewise.
3668         * elf/tst-tls9.c: Likewise.
3669         * elf/tst-tlsmod1.c: Likewise.
3670         * elf/tst-tlsmod13.c: Likewise.
3671         * elf/tst-tlsmod13a.c: Likewise.
3672         * elf/tst-tlsmod14a.c: Likewise.
3673         * elf/tst-tlsmod16a.c: Likewise.
3674         * elf/tst-tlsmod16b.c: Likewise.
3675         * elf/tst-tlsmod2.c: Likewise.
3676         * elf/tst-tlsmod3.c: Likewise.
3677         * elf/tst-tlsmod4.c: Likewise.
3678         * elf/tst-tlsmod5.c: Likewise.
3679         * elf/tst-tlsmod6.c: Likewise.
3680
3681 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
3682
3683         [BZ #12486]
3684         * malloc/malloc.c: remove checks for statistics.
3685
3686 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
3687
3688         [BZ #15277]
3689         * inet/inet_net.c (inet_network): Detect additional invalid strings.
3690         * inet/tst-network.c: Add testcase.
3691
3692 2013-10-17  Andreas Schwab  <schwab@suse.de>
3693
3694         [BZ #15218]
3695         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
3696         to determine canonical name.
3697
3698 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
3699
3700         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
3701         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3702         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3703         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
3704         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3705         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
3706         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
3707         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
3708         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
3709         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
3710         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3711         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
3712         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
3713         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3714         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
3715         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
3716         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3717         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3718         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
3719         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
3720         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3721         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3722         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3723         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
3724         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
3725         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3726         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3727         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
3728         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3729         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3730         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
3731         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3732         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
3733         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3734         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
3735         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
3736         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
3737         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
3738         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3739         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3740         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
3741         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3742         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
3743         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3744         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3745         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
3746         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
3747         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3748         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
3749         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3750         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
3751         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3752         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
3753         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
3754         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3755         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
3756         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3757         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
3758
3759 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
3760
3761         [BZ #16041]
3762         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
3763         make result into a quiet NaN.
3764
3765 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
3766
3767         * soft-fp/adddf3.c: Fix horizontal whitespace.
3768         * soft-fp/addsf3.c: Likewise.
3769         * soft-fp/addtf3.c: Likewise.
3770         * soft-fp/divdf3.c: Likewise.
3771         * soft-fp/divsf3.c: Likewise.
3772         * soft-fp/divtf3.c: Likewise.
3773         * soft-fp/double.h: Likewise.
3774         * soft-fp/eqdf2.c: Likewise.
3775         * soft-fp/eqsf2.c: Likewise.
3776         * soft-fp/eqtf2.c: Likewise.
3777         * soft-fp/extenddftf2.c: Likewise.
3778         * soft-fp/extended.h: Likewise.
3779         * soft-fp/extendsfdf2.c: Likewise.
3780         * soft-fp/extendsftf2.c: Likewise.
3781         * soft-fp/extendxftf2.c: Likewise.
3782         * soft-fp/fixdfdi.c: Likewise.
3783         * soft-fp/fixdfsi.c: Likewise.
3784         * soft-fp/fixdfti.c: Likewise.
3785         * soft-fp/fixsfdi.c: Likewise.
3786         * soft-fp/fixsfsi.c: Likewise.
3787         * soft-fp/fixsfti.c: Likewise.
3788         * soft-fp/fixtfdi.c: Likewise.
3789         * soft-fp/fixtfsi.c: Likewise.
3790         * soft-fp/fixtfti.c: Likewise.
3791         * soft-fp/fixunsdfdi.c: Likewise.
3792         * soft-fp/fixunsdfsi.c: Likewise.
3793         * soft-fp/fixunsdfti.c: Likewise.
3794         * soft-fp/fixunssfdi.c: Likewise.
3795         * soft-fp/fixunssfsi.c: Likewise.
3796         * soft-fp/fixunssfti.c: Likewise.
3797         * soft-fp/fixunstfdi.c: Likewise.
3798         * soft-fp/fixunstfsi.c: Likewise.
3799         * soft-fp/fixunstfti.c: Likewise.
3800         * soft-fp/floatdidf.c: Likewise.
3801         * soft-fp/floatdisf.c: Likewise.
3802         * soft-fp/floatditf.c: Likewise.
3803         * soft-fp/floatsidf.c: Likewise.
3804         * soft-fp/floatsisf.c: Likewise.
3805         * soft-fp/floatsitf.c: Likewise.
3806         * soft-fp/floattidf.c: Likewise.
3807         * soft-fp/floattisf.c: Likewise.
3808         * soft-fp/floattitf.c: Likewise.
3809         * soft-fp/floatundidf.c: Likewise.
3810         * soft-fp/floatundisf.c: Likewise.
3811         * soft-fp/floatunditf.c: Likewise.
3812         * soft-fp/floatunsidf.c: Likewise.
3813         * soft-fp/floatunsisf.c: Likewise.
3814         * soft-fp/floatunsitf.c: Likewise.
3815         * soft-fp/floatuntidf.c: Likewise.
3816         * soft-fp/floatuntisf.c: Likewise.
3817         * soft-fp/floatuntitf.c: Likewise.
3818         * soft-fp/fmadf4.c: Likewise.
3819         * soft-fp/fmasf4.c: Likewise.
3820         * soft-fp/fmatf4.c: Likewise.
3821         * soft-fp/gedf2.c: Likewise.
3822         * soft-fp/gesf2.c: Likewise.
3823         * soft-fp/getf2.c: Likewise.
3824         * soft-fp/ledf2.c: Likewise.
3825         * soft-fp/lesf2.c: Likewise.
3826         * soft-fp/letf2.c: Likewise.
3827         * soft-fp/muldf3.c: Likewise.
3828         * soft-fp/mulsf3.c: Likewise.
3829         * soft-fp/multf3.c: Likewise.
3830         * soft-fp/negdf2.c: Likewise.
3831         * soft-fp/negsf2.c: Likewise.
3832         * soft-fp/negtf2.c: Likewise.
3833         * soft-fp/op-1.h: Likewise.
3834         * soft-fp/op-2.h: Likewise.
3835         * soft-fp/op-4.h: Likewise.
3836         * soft-fp/op-8.h: Likewise.
3837         * soft-fp/op-common.h: Likewise.
3838         * soft-fp/quad.h: Likewise.
3839         * soft-fp/single.h: Likewise.
3840         * soft-fp/soft-fp.h: Likewise.
3841         * soft-fp/sqrtdf2.c: Likewise.
3842         * soft-fp/sqrtsf2.c: Likewise.
3843         * soft-fp/sqrttf2.c: Likewise.
3844         * soft-fp/subdf3.c: Likewise.
3845         * soft-fp/subsf3.c: Likewise.
3846         * soft-fp/subtf3.c: Likewise.
3847         * soft-fp/truncdfsf2.c: Likewise.
3848         * soft-fp/trunctfdf2.c: Likewise.
3849         * soft-fp/trunctfsf2.c: Likewise.
3850         * soft-fp/trunctfxf2.c: Likewise.
3851         * soft-fp/unorddf2.c: Likewise.
3852         * soft-fp/unordsf2.c: Likewise.
3853         * soft-fp/unordtf2.c: Likewise.
3854
3855 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
3856
3857         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
3858         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
3859
3860 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
3861
3862         * elf/dl-libc.c: Clear initfini list after freeing.
3863
3864 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
3865
3866         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
3867         * soft-fp/addsf3.c: Likewise.
3868         * soft-fp/addtf3.c: Likewise.
3869         * soft-fp/divdf3.c: Likewise.
3870         * soft-fp/divsf3.c: Likewise.
3871         * soft-fp/divtf3.c: Likewise.
3872         * soft-fp/double.h: Likewise.
3873         * soft-fp/eqdf2.c: Likewise.
3874         * soft-fp/eqsf2.c: Likewise.
3875         * soft-fp/eqtf2.c: Likewise.
3876         * soft-fp/extenddftf2.c: Likewise.
3877         * soft-fp/extended.h: Likewise.
3878         * soft-fp/extendsfdf2.c: Likewise.
3879         * soft-fp/extendsftf2.c: Likewise.
3880         * soft-fp/extendxftf2.c: Likewise.
3881         * soft-fp/fixdfdi.c: Likewise.
3882         * soft-fp/fixdfsi.c: Likewise.
3883         * soft-fp/fixdfti.c: Likewise.
3884         * soft-fp/fixsfdi.c: Likewise.
3885         * soft-fp/fixsfsi.c: Likewise.
3886         * soft-fp/fixsfti.c: Likewise.
3887         * soft-fp/fixtfdi.c: Likewise.
3888         * soft-fp/fixtfsi.c: Likewise.
3889         * soft-fp/fixtfti.c: Likewise.
3890         * soft-fp/fixunsdfdi.c: Likewise.
3891         * soft-fp/fixunsdfsi.c: Likewise.
3892         * soft-fp/fixunsdfti.c: Likewise.
3893         * soft-fp/fixunssfdi.c: Likewise.
3894         * soft-fp/fixunssfsi.c: Likewise.
3895         * soft-fp/fixunssfti.c: Likewise.
3896         * soft-fp/fixunstfdi.c: Likewise.
3897         * soft-fp/fixunstfsi.c: Likewise.
3898         * soft-fp/fixunstfti.c: Likewise.
3899         * soft-fp/floatdidf.c: Likewise.
3900         * soft-fp/floatdisf.c: Likewise.
3901         * soft-fp/floatditf.c: Likewise.
3902         * soft-fp/floatsidf.c: Likewise.
3903         * soft-fp/floatsisf.c: Likewise.
3904         * soft-fp/floatsitf.c: Likewise.
3905         * soft-fp/floattidf.c: Likewise.
3906         * soft-fp/floattisf.c: Likewise.
3907         * soft-fp/floattitf.c: Likewise.
3908         * soft-fp/floatundidf.c: Likewise.
3909         * soft-fp/floatundisf.c: Likewise.
3910         * soft-fp/floatunsidf.c: Likewise.
3911         * soft-fp/floatunsisf.c: Likewise.
3912         * soft-fp/floatuntidf.c: Likewise.
3913         * soft-fp/floatuntisf.c: Likewise.
3914         * soft-fp/floatuntitf.c: Likewise.
3915         * soft-fp/fmadf4.c: Likewise.
3916         * soft-fp/fmasf4.c: Likewise.
3917         * soft-fp/fmatf4.c: Likewise.
3918         * soft-fp/gedf2.c: Likewise.
3919         * soft-fp/gesf2.c: Likewise.
3920         * soft-fp/getf2.c: Likewise.
3921         * soft-fp/ledf2.c: Likewise.
3922         * soft-fp/lesf2.c: Likewise.
3923         * soft-fp/letf2.c: Likewise.
3924         * soft-fp/muldf3.c: Likewise.
3925         * soft-fp/mulsf3.c: Likewise.
3926         * soft-fp/multf3.c: Likewise.
3927         * soft-fp/negdf2.c: Likewise.
3928         * soft-fp/negsf2.c: Likewise.
3929         * soft-fp/negtf2.c: Likewise.
3930         * soft-fp/op-1.h: Likewise.
3931         * soft-fp/op-2.h: Likewise.
3932         * soft-fp/op-4.h: Likewise.
3933         * soft-fp/op-8.h: Likewise.
3934         * soft-fp/op-common.h: Likewise.
3935         * soft-fp/quad.h: Likewise.
3936         * soft-fp/single.h: Likewise.
3937         * soft-fp/soft-fp.h: Likewise.
3938         * soft-fp/sqrtdf2.c: Likewise.
3939         * soft-fp/sqrtsf2.c: Likewise.
3940         * soft-fp/sqrttf2.c: Likewise.
3941         * soft-fp/subdf3.c: Likewise.
3942         * soft-fp/subsf3.c: Likewise.
3943         * soft-fp/subtf3.c: Likewise.
3944         * soft-fp/truncdfsf2.c: Likewise.
3945         * soft-fp/trunctfdf2.c: Likewise.
3946         * soft-fp/trunctfsf2.c: Likewise.
3947         * soft-fp/trunctfxf2.c: Likewise.
3948         * soft-fp/unorddf2.c: Likewise.
3949         * soft-fp/unordsf2.c: Likewise.
3950         * soft-fp/unordtf2.c: Likewise.
3951
3952 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
3953
3954         [BZ #15672]
3955         * misc/error.c (error_tail): Fix possible buffer overflow.
3956
3957 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
3958
3959         [BZ #13028]
3960         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
3961         address.
3962
3963 2013-10-14  P. J. McDermott  <pj@pehjota.net>
3964
3965         [BZ #832]
3966         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
3967         testing pipefail option.
3968
3969 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
3970
3971         * soft-fp/double.h: Indent preprocessor directives inside #if.
3972         * soft-fp/extended.h: Likewise.
3973         * soft-fp/op-2.h: Likewise.
3974         * soft-fp/op-4.h: Likewise.
3975         * soft-fp/op-common.h: Likewise.
3976         * soft-fp/quad.h: Likewise.
3977         * soft-fp/single.h: Likewise.
3978         * soft-fp/soft-fp.h: Likewise.
3979
3980 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
3981
3982         * iconv/iconv_prog.c: Fix typos.
3983         * stdio-common/psiginfo-data.h: Likewise.
3984
3985 2013-10-12   Reuben Thomas <rrt@sc3d.org>
3986
3987         [BZ #15764]
3988         * locale/setlocale.c: Fix typo.
3989
3990 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
3991
3992         [BZ #16036]
3993         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
3994         signaling NaN arguments.
3995         * soft-fp/unordsf2.c (__unordsf2): Likewise.
3996         * soft-fp/unordtf2.c (__unordtf2): Likewise.
3997
3998         [BZ #14910]
3999         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
4000         unordered operands.
4001         * soft-fp/gesf2.c (__gesf2): Likewise.
4002         * soft-fp/getf2.c (__getf2): Likewise.
4003         * soft-fp/ledf2.c (__ledf2): Likewise.
4004         * soft-fp/lesf2.c (__lesf2): Likewise.
4005         * soft-fp/letf2.c (__letf2): Likewise.
4006
4007         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
4008         * soft-fp/eqsf2.c (__eqsf2): Likewise.
4009         * soft-fp/eqtf2.c (__eqtf2): Likewise.
4010         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
4011         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
4012         * soft-fp/fixdfti.c (__fixdfti): Likewise.
4013         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
4014         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
4015         * soft-fp/fixsfti.c (__fixsfti): Likewise.
4016         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
4017         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
4018         * soft-fp/fixtfti.c (__fixtfti): Likewise.
4019         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
4020         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
4021         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
4022         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
4023         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
4024         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
4025         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
4026         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
4027         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
4028         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
4029         * soft-fp/floatdisf.c (__floatdisf): Likewise.
4030         * soft-fp/floatsisf.c (__floatsisf): Likewise.
4031         * soft-fp/floattidf.c (__floattidf): Likewise.
4032         * soft-fp/floattisf.c (__floattisf): Likewise.
4033         * soft-fp/floattitf.c (__floattitf): Likewise.
4034         * soft-fp/floatundidf.c (__floatundidf): Likewise.
4035         * soft-fp/floatundisf.c (__floatundisf): Likewise.
4036         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
4037         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
4038         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
4039         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
4040         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
4041         * soft-fp/gesf2.c (__gesf2): Likewise.
4042         * soft-fp/getf2.c (__getf2): Likewise.
4043         * soft-fp/ledf2.c (__ledf2): Likewise.
4044         * soft-fp/lesf2.c (__lesf2): Likewise.
4045         * soft-fp/letf2.c (__letf2): Likewise.
4046
4047         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
4048         Undefine and redefine.
4049         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
4050         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
4051         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
4052         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
4053         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4054         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
4055         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4056         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
4057         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4058         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
4059         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4060         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
4061         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4062         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
4063         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4064
4065         [BZ #16032]
4066         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
4067         without decrementing exponent if mantissa >= that for the
4068         denominator, not >.
4069         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
4070         denominator, not >.  Decrement exponent in < case instead of
4071         incrementing in >= case.
4072         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
4073         without decrementing exponent if mantissa >= that for the
4074         denominator, not >.
4075
4076         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
4077         computing saturated result for unsigned overflow.
4078
4079 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4080             Jeff Law  <law@redhat.com>
4081
4082         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
4083         (atan2Mp): Add systemtap probe marker.
4084         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
4085         (__ieee754_log): Add systemtap probe marker.
4086         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
4087         (atanMp): Add systemtap probe marker.
4088         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
4089         (tanMp): Add systemtap probe marker.
4090         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
4091         (__slowexp): Add systemtap probe marker.
4092         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
4093         (__slowpow): Add systemtap probe marker.
4094         * manual/probes.texi: Document probes.
4095
4096 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
4097
4098         [BZ #15362]
4099         * libio/fileops.c (_IO_new_file_write): Return count of bytes
4100         written.
4101         (_IO_new_file_xsputn): Don't return EOF if nothing has been
4102         written.
4103         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
4104         written to buffer but not flushed.
4105         * libio/iofwrite_u.c:  Likewise.
4106         * libio/iopadn.c:  Return bytes returned even if EOF was
4107         encountered.
4108         * libio/iowpadn.c:  Likewise.
4109         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
4110         if _IO_padn does not write the whole buffer.
4111         [!COMPILE_WPRINTF] (PAD): Likewise.
4112
4113 2013-10-10  David S. Miller  <davem@davemloft.net>
4114
4115         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
4116         directory block.
4117
4118 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4119
4120         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
4121         instead of FSF address.
4122         * soft-fp/fixdfti.c: Likewise.
4123         * soft-fp/fixsfti.c: Likewise.
4124         * soft-fp/fixtfti.c: Likewise.
4125         * soft-fp/fixunsdfti.c: Likewise.
4126         * soft-fp/fixunssfti.c: Likewise.
4127         * soft-fp/fixunstfti.c: Likewise.
4128         * soft-fp/floattidf.c: Likewise.
4129         * soft-fp/floattisf.c: Likewise.
4130         * soft-fp/floattitf.c: Likewise.
4131         * soft-fp/floatuntidf.c: Likewise.
4132         * soft-fp/floatuntisf.c: Likewise.
4133         * soft-fp/floatuntitf.c: Likewise.
4134         * soft-fp/trunctfxf2.c: Likewise.
4135
4136         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
4137         * soft-fp/fixdfti.c: Likewise.
4138         * soft-fp/fixsfti.c: Likewise.
4139         * soft-fp/fixtfti.c: Likewise.
4140         * soft-fp/fixunsdfti.c: Likewise.
4141         * soft-fp/fixunssfti.c: Likewise.
4142         * soft-fp/fixunstfti.c: Likewise.
4143         * soft-fp/floattidf.c: Likewise.
4144         * soft-fp/floattisf.c: Likewise.
4145         * soft-fp/floattitf.c: Likewise.
4146         * soft-fp/floatuntidf.c: Likewise.
4147         * soft-fp/floatuntisf.c: Likewise.
4148         * soft-fp/floatuntitf.c: Likewise.
4149         * soft-fp/trunctfxf2.c: Likewise.
4150
4151 2013-10-10  David S. Miller  <davem@davemloft.net>
4152
4153         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4154
4155 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
4156
4157         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4158         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
4159         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
4160         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
4161         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
4162         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
4163         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
4164
4165         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
4166         for NaNs before doing comparisons on argument.
4167         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
4168         Likewise.
4169
4170 2013-10-10  Will Newton  <will.newton@linaro.org>
4171
4172         * malloc/hooks.c (memalign_check): Ensure the value of bytes
4173         passed to _int_memalign does not overflow.
4174
4175 2013-10-10  Torvald Riegel  <triegel@redhat.com>
4176
4177         * scripts/bench.pl: Add include-sources directive.
4178         * benchtests/README: Update documentation.
4179
4180 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4181
4182         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
4183         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
4184         instead of FP_INIT_ROUNDMODE.
4185         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
4186         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
4187
4188         [BZ #16034]
4189         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
4190         copy class of input value.
4191         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
4192         not handle exceptions.
4193         * soft-fp/negsf2.c (__negsf2): Likewise.
4194         * soft-fp/negtf2.c (__negtf2): Likewise.
4195         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
4196
4197 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
4198
4199         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
4200         semicolon.  From Linux kernel.
4201
4202 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
4203
4204         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
4205
4206 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
4207
4208         [BZ #156]
4209         * manual/socket.texi: Added statement about buffer
4210         for gethostbyname2_r.
4211
4212 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
4213
4214         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
4215         Use .p2align directive instead, throughout.
4216         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4217         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4218         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
4219         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4220         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4221         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
4222         * sysdeps/x86_64/strchr.S: Likewise.
4223         * sysdeps/x86_64/strrchr.S: Likewise.
4224
4225 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
4226
4227         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
4228
4229         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
4230
4231         * sysdeps/generic/math_private.h (__mpsin1): Remove
4232         declaration.
4233         (__mpcos1): Likewise.
4234         (__mpsin): New argument __range_reduce.
4235         (__mpcos): Likewise.
4236         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4237         (slow): Use __mpsin and __mpcos.
4238         (slow1): Likewise.
4239         (slow2): Likewise.
4240         (sloww): Likewise.
4241         (sloww1): Likewise.
4242         (sloww2): Likewise.
4243         (bsloww): Likewise.
4244         (bsloww1): Likewise.
4245         (bsloww2): Likewise.
4246         (cslow2): Likewise.
4247         (csloww): Likewise.
4248         (csloww1): Likewise.
4249         (csloww2): Likewise.
4250         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
4251         range_reduce.  Merge in __mpsin1.
4252         (__mpcos): Likewise.
4253         (__mpsin1): Remove.
4254         (__mpcos1): Likewise.
4255
4256 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
4257
4258         * locale/loadlocale.c (_nl_intern_locale_data): Use
4259         LOCFILE_ALIGNED_P.
4260         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
4261         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
4262         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
4263         obstack data is appropriately aligned.
4264         (obstack_int32_grow_fast): Likewise.
4265         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
4266         * locale/programs/locfile.c (add_locale_uint32): Likewise.
4267         (add_locale_uint32_array): Likewise.
4268
4269 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
4270
4271         * benchtests/Makefile: Remove ARGLIST and RET variables.
4272         ($(objpfx)bench-%.c): Pass only function name to the script.
4273         * benchtests/README: Update documentation.
4274         * benchtests/acos-inputs: Add new directives.
4275         * benchtests/acosh-inputs: Likewise.
4276         * benchtests/asin-inputs: Likewise.
4277         * benchtests/asinh-inputs: Likewise.
4278         * benchtests/atan-inputs: Likewise.
4279         * benchtests/atanh-inputs: Likewise.
4280         * benchtests/cos-inputs: Likewise.
4281         * benchtests/cosh-inputs: Likewise.
4282         * benchtests/exp-inputs: Likewise.
4283         * benchtests/log-inputs: Likewise.
4284         * benchtests/pow-inputs: Likewise.
4285         * benchtests/rint-inputs: Likewise.
4286         * benchtests/sin-inputs: Likewise.
4287         * benchtests/sinh-inputs: Likewise.
4288         * benchtests/tan-inputs: Likewise.
4289         * benchtests/tanh-inputs: Likewise.
4290         * scripts/bench.pl: Add support for new directives.
4291
4292 2013-10-07  Alan Modra  <amodra@gmail.com>
4293
4294         * README: Fix careless merge.
4295
4296 2013-10-05  Alan Modra  <amodra@gmail.com>
4297
4298         * NEWS: Mention powerpc64le support and bugs fixed.
4299         * README: Both big-endian and little-endian powerpc64 supported.
4300
4301 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4302
4303         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
4304         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
4305         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
4306         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
4307
4308 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
4309
4310         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
4311         match prototype.
4312
4313 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
4314
4315         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
4316         Move -mhard-float appending from
4317         ports/sysdeps/powerpc/powerpc32/Makefile.
4318         [$(with-fp) = yes] (ASFLAGS): Likewise.
4319         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
4320         * sysdeps/powerpc/nofpu: Move directory from
4321         ports/sysdeps/powerpc/nofpu.
4322         * sysdeps/powerpc/soft-fp: Move directory from
4323         ports/sysdeps/powerpc/soft-fp.
4324         * sysdeps/powerpc/powerpc32/405: Move directory from
4325         ports/sysdeps/powerpc/powerpc32/405.
4326         * sysdeps/powerpc/powerpc32/440: Move directory from
4327         ports/sysdeps/powerpc/powerpc32/440.
4328         * sysdeps/powerpc/powerpc32/464: Move directory from
4329         ports/sysdeps/powerpc/powerpc32/464.
4330         * sysdeps/powerpc/powerpc32/476: Move directory from
4331         ports/sysdeps/powerpc/powerpc32/476.
4332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
4333         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
4334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
4335         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
4336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
4337         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
4338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
4339         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
4340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
4341         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
4342         * README: Update for powerpc-*-linux-gnu software floating point
4343         support in libc.
4344
4345         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
4346         case to powerpc/powerpc32*.
4347         * sysdeps/unix/sysv/linux/configure: Regenerated.
4348
4349         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
4350         (_FPU_MASK_OM): Define as 0x04.
4351         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
4352         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
4353         0x00c10080.
4354         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
4355         0x0000003c.
4356         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
4357
4358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4359         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4360         getcontext_e500.
4361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4362         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4363         setcontext_e500.
4364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4365         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
4366         and setcontext_e500.
4367
4368 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
4369
4370         * locale/iso-3166.def: Update iso-1366.def and related occurrences
4371
4372 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4373
4374         * manual/threads.texi (Default Thread Attributes): Fix typo.
4375
4376 2013-10-04  Will Newton  <will.newton@linaro.org>
4377
4378         * malloc/Makefile: Add tst-memalign.
4379         * malloc/tst-memalign.c: New file.
4380
4381         * malloc/tst-posix_memalign.c: Add comments.
4382         (do_test): Add comments and call free on all potentially
4383         allocated pointers. Add space after cast.
4384
4385         * malloc/tst-pvalloc.c: Add comments.
4386         (do_test): Add comments and call free on all potentially
4387         allocated pointers. Remove duplicate check for NULL pointer.
4388         Add space after cast.
4389
4390         * malloc/tst-valloc.c: Add comments.
4391         (do_test): Add comments and call free on all potentially
4392         allocated pointers. Remove duplicate check for NULL pointer.
4393         Add space after cast.
4394
4395 2013-10-04  Alan Modra  <amodra@gmail.com>
4396
4397         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4398         Use stdint types in rather than __attribute__((mode())).
4399         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4400
4401 2013-10-04  Alan Modra  <amodra@gmail.com>
4402
4403         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4404         Correct handling of unaligned relocs for little-endian.
4405         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4406
4407 2013-10-04  Alan Modra  <amodra@gmail.com>
4408
4409         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
4410         * configure: Regenerate.
4411         * nptl/shlib-versions: Powerpc*le starts at 2.18.
4412         * shlib-versions: Likewise.
4413
4414 2013-10-04  Alan Modra  <amodra@gmail.com>
4415
4416         * string/tester.c (test_memrchr): Increment reported test cycle.
4417
4418 2013-10-04  Alan Modra  <amodra@gmail.com>
4419
4420         * string/test-memcpy.c (do_one_test): When reporting errors, print
4421         string address and don't overrun end of string.
4422
4423 2013-10-04  Alan Modra  <amodra@gmail.com>
4424
4425         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
4426         insrdi.  Make better use of reg selection to speed exit slightly.
4427         Schedule entry path a little better.  Remove useless "are we done"
4428         checks on entry to main loop.  Handle wrapping around zero address.
4429         Correct main loop count.  Handle single left-over word from main
4430         loop inline rather than by using loop_small.  Remove extra word
4431         case in loop_small caused by wrong loop count.  Add little-endian
4432         support.
4433         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
4434         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
4435         cache hint.
4436         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
4437         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
4438         support.  Avoid rlwimi.
4439         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
4440
4441 2013-10-04  Alan Modra  <amodra@gmail.com>
4442
4443         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
4444         insrdi.  Formatting.
4445         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
4446         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
4447         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
4448         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
4449         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
4450         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
4451
4452 2013-10-04  Alan Modra  <amodra@gmail.com>
4453
4454         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
4455         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4456         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
4457         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
4458         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
4459         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4460         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4461         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
4462         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
4463         use of regs.  Use power7 mtocrf.  Tidy function tails.
4464
4465 2013-10-04  Alan Modra  <amodra@gmail.com>
4466
4467         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
4468         Formatting.  Consistently use rXXX register defines or rN defines.
4469         Use early exit labels that avoid restoring unused non-volatile regs.
4470         Make cr field use more consistent with rWORDn compares.  Rename
4471         regs used as shift registers for unaligned loop, using rN defines
4472         for short lifetime/multiple use regs.
4473         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4474         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
4475         addi 1,1,64 to pop stack frame.  Simplify return value code.
4476         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4477
4478 2013-10-04  Alan Modra  <amodra@gmail.com>
4479
4480         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
4481         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
4482         rather than rlwimi.
4483         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
4484         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
4485         little-endian support.  Correct typos.
4486         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
4487         rather than rlwimi.
4488         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
4489         in loop and entry code to keep "and." results.
4490         (strchr): Add little-endian support.  Comment.  Move cntlzd
4491         earlier in tail.
4492         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
4493
4494 2013-10-04  Alan Modra  <amodra@gmail.com>
4495
4496         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
4497         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
4498         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
4499         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
4500
4501 2013-10-04  Alan Modra  <amodra@gmail.com>
4502
4503         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
4504         (rTMP): Define as r11.
4505         (strcmp): Add little-endian support.  Optimise tail.
4506         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
4507         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4508         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
4509         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
4510         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
4511         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4512         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
4513
4514 2013-10-04  Alan Modra  <amodra@gmail.com>
4515
4516         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
4517         little-endian support.  Remove unnecessary "are we done" tests.
4518         Handle "s" wrapping around zero and extremely large "size".
4519         Correct main loop count.  Handle single left-over word from main
4520         loop inline rather than by using small_loop.  Correct comments.
4521         Delete "zero" tail, use "end_max" instead.
4522         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
4523
4524 2013-10-04  Alan Modra  <amodra@gmail.com>
4525
4526         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
4527         support.  Don't branch over align.
4528         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
4529         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
4530         support.  Rearrange tmp reg use to suit.  Comment.
4531         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
4532
4533 2013-10-04  Alan Modra  <amodra@gmail.com>
4534
4535         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
4536
4537 2013-10-04  Alan Modra  <amodra@gmail.com>
4538
4539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
4540         conditional form of branch and link when obtaining pc.
4541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
4542
4543 2013-10-04  Alan Modra  <amodra@gmail.com>
4544
4545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
4546         HIWORD/LOWORD.
4547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
4548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
4549
4550 2013-10-04  Alan Modra  <amodra@gmail.com>
4551
4552         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
4553         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
4554         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
4555         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
4556         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
4557         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
4558         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
4559         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
4560         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
4561         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
4562
4563 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4564             Alistair Popple <alistair@ozlabs.au.ibm.com>
4565             Alan Modra <amodra@gmail.com>
4566
4567         [BZ #15723]
4568         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
4569         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
4570         _dl_hwcap access for little-endian.
4571         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
4572         destroy vmx regs when saving unaligned.
4573         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
4574         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
4575         destroy vmx regs when saving unaligned.
4576
4577 2013-10-04  Alan Modra  <amodra@gmail.com>
4578
4579         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
4580         Don't use a union to pack hi/low value.
4581
4582 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4583
4584         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
4585         for little-endian.
4586         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4587         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
4588         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
4589         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4590         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4591
4592 2013-10-04  Alan Modra  <amodra@gmail.com>
4593
4594         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
4595         constants to usual value for .cst8 section, and remove redundant
4596         high address load.
4597         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
4598         constant for 0x1p52.  Load little-endian words of double from
4599         correct stack offsets.
4600
4601 2013-10-04  Alan Modra  <amodra@gmail.com>
4602
4603         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
4604         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
4605         words of double from correct stack offsets.
4606         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
4607         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
4608         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
4609         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
4610         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
4611         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
4612         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
4613         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
4614         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
4615         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
4616         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
4617         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
4618         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
4619         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
4620         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
4621         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
4622         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
4623
4624 2013-10-04  Alan Modra  <amodra@gmail.com>
4625
4626         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
4627         64-bit int/double union.
4628         (_FPU_SETCW): Likewise.
4629         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
4630         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
4631
4632 2013-10-04  Alan Modra  <amodra@gmail.com>
4633
4634         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
4635         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
4636
4637 2013-10-04  Alan Modra  <amodra@gmail.com>
4638
4639         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
4640         use vector int constants.
4641         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
4642
4643 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4644
4645         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
4646         array with long long.
4647         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
4648         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
4649         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
4650         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
4651         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
4652         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
4653         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
4654         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
4655         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
4656         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
4657         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
4658         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
4659         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
4660
4661 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4662
4663         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
4664         (__signbit): Likewise.  Correct for little-endian.
4665         (__signbitl): Call __signbit.
4666         (lrint): Correct for little-endian.
4667         (lrintf): Call lrint.
4668
4669 2013-10-04  Alan Modra  <amodra@gmail.com>
4670
4671         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
4672         union 32-bit int array member with 64-bit int array.
4673         (t515, tm256): Double rather than long double.
4674         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
4675
4676 2013-10-04  Alan Modra  <amodra@gmail.com>
4677
4678         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
4679         Delete.
4680         (IEEE854_LONG_DOUBLE_BIAS): Delete.
4681         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
4682         version of math_ldbl.h.
4683
4684 2013-10-04  Alan Modra  <amodra@gmail.com>
4685
4686         [BZ #15734], [BZ #15735]
4687         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
4688         all uses of ieee875 long double macros and unions.  Simplify test
4689         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
4690         ldbl_extract_mantissa value for ix,iy exponents.  Properly
4691         normalize after ldbl_extract_mantissa, and don't add hidden bit
4692         already handled.  Don't treat low word of ieee854 mantissa like
4693         low word of IBM long double and mask off bit when testing for
4694         zero.
4695         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
4696         all uses of ieee875 long double macros and unions.  Simplify tests
4697         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
4698         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
4699         two1022, instead use their values.  Recognise that tests for large
4700         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
4701         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
4702         Rewrite all uses of ieee875 long double macros and unions.  Simplify
4703         test for 0.0L and nan.  Correct negation.
4704         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
4705         ieee875 long double macros and unions.  Correct output for large
4706         magnitude x.  Correct absolute value calculation.
4707         (__erfcl): Likewise.
4708         * math/libm-test.inc: Add tests for errors discovered in IBM long
4709         double versions of fmodl, remainderl, erfl and erfcl.
4710
4711 2013-10-04  Alan Modra  <amodra@gmail.com>
4712
4713         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
4714         all uses of ieee854 long double macros and unions.  Simplify tests
4715         for long doubles that are fully specified by the high double.
4716         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
4717         Likewise.
4718         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
4719         Remove dead code too.
4720         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4721         (__ieee754_ynl): Likewise.
4722         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4723         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
4724         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
4725         Remove dead code too.
4726         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
4727         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
4728         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
4729         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
4730         Simplify.
4731         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
4732         Simplify.
4733         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
4734         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
4735         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
4736         Comment on variable precision.
4737         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
4738         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
4739         Likewise.
4740         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4741         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
4742         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
4743         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
4744         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
4745
4746 2013-10-04  Alan Modra  <amodra@gmail.com>
4747
4748         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
4749         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
4750         all uses of ieee854 long double macros and unions.
4751         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
4752         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
4753         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
4754         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
4755         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4756         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
4757         Likewise.
4758         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
4759         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4760         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
4761         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4762         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
4763         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
4764         Simplify sign and nan test too.
4765         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
4766         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
4767         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
4768         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
4769         Likewise.
4770         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
4771         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
4772         Likewise.
4773         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4774         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
4775         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
4776         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
4777         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
4778         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
4779
4780 2013-10-04  Alan Modra  <amodra@gmail.com>
4781
4782         * stdio-common/printf_size.c (__printf_size): Don't use
4783         union ieee854_long_double in fpnum union.
4784         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
4785         signbit macro to retrieve sign from long double.
4786         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
4787         retrieve sign from long double.
4788         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
4789         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
4790         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
4791         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
4792         * math/test-misc.c (main): Don't use union ieee854_long_double.
4793
4794 2013-10-04  Alan Modra  <amodra@gmail.com>
4795
4796         [BZ #15680]
4797         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
4798         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
4799         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
4800         calculation.  Remove unnecessary test for denormal exponent.
4801         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
4802         Correct handling of denormals.  Avoid undefined shift behaviour.
4803         Correct normalisation of low mantissa when low double is denormal.
4804         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
4805         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
4806         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
4807         Correct normalisation of low mantissa.  Test for overflow of high
4808         mantissa and normalise.
4809         (ldbl_nearbyint): Use more readable constant for two52.
4810         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
4811         (__mpn_construct_long_double): Fix test for overflow of high
4812         mantissa and correct normalisation.  Avoid undefined shift.
4813
4814 2013-10-04  Alan Modra  <amodra@gmail.com>
4815
4816         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
4817         (union ibm_extended_long_double): Define as an array of ieee754_double.
4818         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
4819         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
4820         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
4821         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
4822         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
4823         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
4824         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
4825         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
4826         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4827         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
4828         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
4829
4830 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
4831
4832         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
4833         page size instead of calling getpagesize.
4834
4835         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
4836         (LOCFILE_ALIGN_MASK): Likewise.
4837         (LOCFILE_ALIGN_UP): Likewise.
4838         (LOCFILE_ALIGNED_P): Likewise.
4839         * locale/programs/ld-collate.c (collate_output): Use the new
4840         macros instead of __alignof__ (int32_t).
4841         * locale/weight.h (findidx): Likewise.
4842
4843 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
4844
4845         [BZ #431]
4846         * manual/string.texi: Fix strncat and wcsncat.
4847
4848 2013-10-03  Brooks Moses  <bmoses@google.com>
4849
4850         [BZ #15915]
4851         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
4852         * Makerules: ...here, and adjust associated comments.
4853
4854 2013-10-02  Will Newton  <will.newton@linaro.org>
4855
4856         * malloc/Makefile: Add tst-pvalloc.
4857         * malloc/tst-pvalloc.c: New file.
4858
4859 2013-10-02  Will Newton  <will.newton@linaro.org>
4860
4861         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
4862         improve test coverage.
4863
4864 2013-10-02  Will Newton  <will.newton@linaro.org>
4865
4866         * malloc/Makefile: Add tst-posix_memalign.
4867         * malloc/tst-posix_memalign.c: New file.
4868
4869 2013-10-01  Eric Blake  <eblake@redhat.com>
4870
4871         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
4872         Use __THROWNL rather than __THROW on static functions.
4873
4874 2013-09-30  Petr Machata  <pmachata@redhat.com>
4875
4876         * elf/elf.h (R_AARCH64_ABS16): New macro.
4877         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
4878         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
4879         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
4880         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
4881         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
4882         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
4883         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
4884         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
4885         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
4886         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
4887         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
4888         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
4889         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
4890         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
4891         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
4892         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
4893         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
4894         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
4895         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
4896         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
4897         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
4898         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
4899         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
4900         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
4901         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
4902         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
4903         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
4904         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
4905         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
4906         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
4907         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
4908         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
4909         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
4910         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
4911         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
4912         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
4913         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
4914         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
4915         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
4916         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
4917         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
4918         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
4919         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
4920         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
4921         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
4922         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
4923         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
4924         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
4925         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
4926         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
4927         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
4928         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
4929         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
4930         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
4931         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
4932         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
4933         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
4934         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
4935         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
4936         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
4937         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
4938         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
4939         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
4940         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
4941         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
4942         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
4943         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
4944         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
4945         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
4946         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
4947         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
4948         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
4949         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
4950         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
4951         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
4952         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
4953         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
4954         (R_AARCH64_TLSDESC_LDR): Likewise.
4955         (R_AARCH64_TLSDESC_ADD): Likewise.
4956         (R_AARCH64_TLSDESC_CALL): Likewise.
4957
4958 2013-09-30  Andreas Schwab  <schwab@suse.de>
4959
4960         [BZ #15048]
4961         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
4962         the nss database lookup.
4963         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4964         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4965
4966 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
4967
4968         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
4969
4970 2013-09-28  P. J. McDermott  <pj@pehjota.net>
4971
4972         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
4973         ${Bash-specific parameter/pattern/string} parameter expansion.
4974         * sysdeps/unix/make-syscalls.sh: Likewise.
4975
4976 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4977
4978         * sysdeps/sh/stackguard-macros.h: New file.
4979
4980 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
4981
4982         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
4983         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
4984         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
4985         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
4986         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
4987         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
4988
4989 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4990
4991         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
4992         Fix thread ID register.
4993
4994 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
4995
4996         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
4997         [POSIX || UNIX98]: Require rather than permitting all symbols from
4998         <time.h>.
4999         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
5000         element of struct sched_param.
5001         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
5002         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
5003         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
5004         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
5005         constant.
5006
5007 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
5008
5009         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
5010         argument calculation.
5011
5012 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5013
5014         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
5015         Expect macro.
5016         [POSIX] (pthread_attr_t): Do not require type.
5017         [POSIX] (pthread_cond_t): Likewise.
5018         [POSIX] (pthread_condattr_t): Likewise.
5019         [POSIX] (pthread_key_t): Likewise.
5020         [POSIX] (pthread_mutex_t): Likewise.
5021         [POSIX] (pthread_mutexattr_t): Likewise.
5022         [POSIX] (pthread_once_t): Likewise.
5023         [POSIX] (pthread_t): Likewise.
5024         [POSIX-based standards] (pthread_atfork): Expect function.
5025
5026 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5027             Richard Sandiford  <richard@codesourcery.com>
5028
5029         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
5030         (swap_endianness_p): New extern variable.
5031         (set_big_endian): New inline function.
5032         (maybe_swap_uint32): Likewise.
5033         (maybe_swap_uint32_array): Likewise.
5034         (maybe_swap_uint32_obstack): Likewise.
5035         * locale/programs/locfile.c: Include <stdbool.h>.
5036         (swap_endianness_p): New variable.
5037         (add_locale_uint32): Call maybe_swap_uint32.
5038         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
5039         (write_locale_data): Call maybe_swap_uint32_array.
5040         * locale/programs/ld-collate.c (obstack_int32_grow): Call
5041         maybe_swap_uint32.
5042         (obstack_int32_grow_fast): Likewise.
5043         (output_weightwc): Call maybe_swap_uint32_obstack.
5044         (collate_output): Likewise.
5045         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
5046         (OPT_LITTLE_ENDIAN): Likewise.
5047         (options): Add --little-endian and --big-endian options.
5048         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
5049         * locale/programs/locarchive.c: Include "locfile.h".
5050         (GET): New macro.
5051         (SET): Likewise.
5052         (INC): Likewise.
5053         (create_archive): Use the new macros to access fields of
5054         structures directly mapped from or written to locale archives.
5055         (oldlocrecentcmp): Likewise.
5056         (enlarge_archive): Likewise.
5057         (insert_name): Likewise.
5058         (add_alias): Likewise.
5059         (add_locale): Likewise.
5060         (delete_locales_from_archive): Likewise.
5061         (show_archive_content): Likewise.
5062         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
5063         locale data.
5064
5065 2013-09-24  Roland McGrath  <roland@hack.frob.com>
5066
5067         * manual/freemanuals.texi: Updated from (newly) canonical copy at
5068         http://www.gnu.org/doc/freemanuals.texi.
5069         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
5070
5071 2013-09-24  Will Newton  <will.newton@linaro.org>
5072
5073         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
5074         macro.
5075
5076 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
5077
5078         * locale/hashval.h (compute_hashval): Interpret bytes of key as
5079         unsigned char.
5080
5081 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
5082
5083         * manual/threads.texi (POSIX Threads): Fix a typo.
5084
5085 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
5086
5087         [BZ #14547]
5088         * string/tst-strcoll-overflow.c: New test case.
5089         * string/Makefile (xtests): Add tst-strcoll-overflow.
5090         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
5091         cache if string sizes may cause integer overflow.
5092
5093         [BZ #14547]
5094         * string/strcoll_l.c (coll_seq): New members rule, idx,
5095         save_idx and back_us.
5096         (get_next_seq_nocache): New function.
5097         (do_compare_nocache): New function.
5098         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
5099         when malloc fails.
5100
5101 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
5102
5103         [BZ #15754]
5104         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
5105         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
5106         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
5107
5108         [BZ #15754]
5109         * elf/Makefile (tests): Add tst-ptrguard1.
5110         (tests-static): Add tst-ptrguard1-static.
5111         (tst-ptrguard1-ARGS): Define.
5112         (tst-ptrguard1-static-ARGS): Define.
5113         * elf/tst-ptrguard1.c: New file.
5114         * elf/tst-ptrguard1-static.c: New file.
5115         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
5116         * sysdeps/i386/stackguard-macros.h: Likewise.
5117         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5118         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5119         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5120         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5121         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5122         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5123
5124 2013-09-23  Hector Marco  <hecmargi@upv.es>
5125             Ismael Ripoll  <iripoll@disca.upv.es>
5126             Carlos O'Donell  <carlos@redhat.com>
5127
5128         [BZ #15754]
5129         * sysdeps/generic/stackguard-macros.h: Define
5130         __pointer_chk_guard_local and POINTER_CHK_GUARD.
5131         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
5132         Define __pointer_chk_guard_local.
5133         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
5134         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
5135
5136 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
5137
5138         [BZ #15859]
5139         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
5140
5141 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
5142
5143         * include/string.h (__ffs): Declare as hidden.
5144         * string/ffs.c (__ffs): Define as hidden.
5145         * sysdeps/i386/ffs.c (__ffs): Likewise.
5146         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
5147         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
5148         * sysdeps/s390/ffs.c (__ffs): Likewise.
5149         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
5150
5151 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
5152
5153         * NEWS: Mention malloc probes.
5154
5155         * malloc/arena.c (new_heap): New memory_heap_new probe.
5156         (grow_heap): New memory_heap_more probe.
5157         (shrink_heap): New memory_heap_less probe.
5158         (heap_trim): New memory_heap_free probe.
5159         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
5160         (systrim): New memory_sbrk_less probe.
5161         * manual/probes.texi: Document them.
5162
5163         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
5164         * manual/probes.texi: Document it.
5165
5166         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
5167         (__libc_realloc): Add memory_realloc_retry probe.
5168         (__libc_memalign): Add memory_memalign_retry probe.
5169         (__libc_valloc): Add memory_valloc_retry probe.
5170         (__libc_pvalloc): Add memory_pvalloc_retry probe.
5171         (__libc_calloc): Add memory_calloc_retry probe.
5172         * manual/probes.texi: Document them.
5173
5174         * malloc/arena.c (get_free_list): Add probe
5175         memory_arena_reuse_free_list.
5176         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
5177         and memory_arena_reuse.
5178         (arena_get2) [!PER_THREAD]: Likewise.
5179         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
5180         memory_arena_reuse_realloc.
5181         * manual/probes.texi: Document them.
5182
5183         * malloc/malloc.c (__libc_free): Add
5184         memory_mallopt_free_dyn_thresholds probe.
5185         (__libc_mallopt): Add multiple memory_mallopt probes.
5186         * manual/probes.texi: Document them.
5187
5188         * malloc/malloc.c: Include stap-probe.h.
5189         (__libc_mallopt): Add memory_mallopt probe.
5190         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
5191         * manual/probes.texi: New.
5192         * manual/Makefile (chapters): Add probes.
5193         * manual/threads.texi: Set next node.
5194
5195 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
5196
5197         [BZ #15963, #13985]
5198         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
5199         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
5200         Add `Chinese' to `nan' entry name.
5201
5202 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5203
5204         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
5205         (POLYNOMIAL): Likewise.
5206         (TAYLOR_SINCOS): Likewise.
5207         (TAYLOR_SLOW): Likewise.
5208         (__sin): Use TAYLOR_SINCOS.
5209         (__cos): Likewise.
5210         (slow): Use TAYLOR_SLOW.
5211         (sloww): Likewise.
5212         (bsloww): Likewise.
5213         (csloww): Likewise.
5214
5215 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5216
5217         * stdlib/strtod_l.c: Fix buffer overrun.
5218
5219 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5220
5221         * benchtests/Makefile (bench): Add sincos.
5222         * benchtests/bench-sincos.c: New file.
5223
5224         * math/libm-test.inc (cos_test_data): New test inputs.
5225         (sin_test_data): Likewise.
5226
5227         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
5228         macro.
5229         (__sin): Use it.
5230         (__cos): Likewise.
5231         (slow1): Likewise.
5232         (slow2): Likewise.
5233         (sloww1): Likewise.
5234         (sloww2): Likewise.
5235         (bsloww1): Likewise.
5236         (bsloww2): Likewise.
5237         (cslow2): Likewise.
5238         (csloww1): Likewise.
5239         (csloww2): Likewise.
5240
5241         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
5242         function.
5243         (__sin): Use it.
5244         (__cos): Likewise.
5245
5246         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
5247         gotos.
5248         (__cos): Likewise.
5249
5250 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
5251
5252         * config.h.in (HAVE_MIPS_NAN2008): New macro.
5253         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
5254         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
5255         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
5256         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
5257         * elf/cache.c (print_entry): Handle the new cache flags.
5258
5259 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5260             Aldy Hernandez  <aldyh@redhat.com>
5261
5262         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
5263         Change condition to [_SOFT_FLOAT].
5264         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
5265         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
5266         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
5267         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
5268         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
5269         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
5270         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
5271         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
5272         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
5273         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
5274         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
5275         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
5276         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
5277         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
5278         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
5279         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
5280         declaration.
5281
5282 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5283
5284         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
5285         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5286         (__longjmp): Use LOAD_GP to load saved GPRs.
5287         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
5288         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5289         (__sigsetjmp): Use SAVE_GP to save GPRs.
5290
5291         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
5292         Do not append -msoft-float.
5293         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
5294
5295 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5296
5297         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
5298
5299 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
5300
5301         [BZ #15966]
5302         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
5303         (_FPU_GETCW): Use initial "__" on variable and field names but not
5304         on macro parameter name.
5305         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
5306         parentheses around reference to macro parameter.
5307
5308 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
5309
5310         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
5311         prototype.
5312         (ctype_startup): Use uint32_t in cast and sizeof for
5313         ctype->charnames.
5314
5315 2013-09-11  Jia Liu  <proljc@gmail.com>
5316
5317         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
5318         __daddr_t_defined.
5319         [__FreeBSD__]: Likewise.
5320
5321 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
5322
5323         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
5324         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
5325         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
5326         (strchr): Remove __strchr_sse42 ifunc selection.
5327         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
5328         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
5329
5330 2013-09-11  Will Newton  <will.newton@linaro.org>
5331
5332         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
5333         parameter to RES. Remove hardcoded 1000 value.
5334         * benchtests/bench-skeleton.c (main): Pass RES parameter
5335         to TIMING_INIT and multiply result by 1000.
5336
5337 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5338
5339         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5340
5341 2013-09-11  Andreas Schwab  <schwab@suse.de>
5342
5343         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
5344         if not defined.
5345         (O_TMPFILE) [__USE_GNU]: Define.
5346         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
5347         Define.
5348
5349 2013-09-11  Will Newton  <will.newton@linaro.org>
5350
5351         [BZ #15857]
5352         * malloc/malloc.c (__libc_memalign): Check the value of bytes
5353         does not overflow.
5354
5355 2013-09-11  Will Newton  <will.newton@linaro.org>
5356
5357         [BZ #15856]
5358         * malloc/malloc.c (__libc_valloc): Check the value of bytes
5359         does not overflow.
5360
5361 2013-09-11  Will Newton  <will.newton@linaro.org>
5362
5363         [BZ #15855]
5364         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
5365         does not overflow.
5366
5367 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
5368
5369         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
5370         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5371         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5372         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5373         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5374
5375 2013-09-10  Allan McRae  <allan@archlinux.org>
5376
5377         [BZ #15748]
5378         * manual/arith.texi (Parsing of Floats): Clarify
5379         cross-reference.
5380
5381         [BZ #15849]
5382         * manual/install.texi (Running make install): Mention
5383         --enable-pt-chown.
5384         * INSTALL: Regenerated.
5385
5386 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
5387
5388         * csu/init-first.c (_init): Remove the !SHARED condition around
5389         FPU control word initialization.
5390         * elf/dl-support.c (_dl_fpu_control): New variable.
5391         (_dl_aux_init) <AT_FPUCW>: Initialize it.
5392         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
5393         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
5394         * math/test-fpucw-static.c: New file.
5395         * math/test-fpucw-ieee.c: New file.
5396         * math/test-fpucw-ieee-static.c: New file.
5397         * math/Makefile (tests): Add `test-fpucw-ieee' and
5398         `$(tests-static)'.
5399         (tests-static): New variable.
5400         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
5401         dependency to...
5402         [($(build-shared),yes)]
5403         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
5404         ... this.
5405         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
5406         New dependency.
5407
5408 2013-09-09  Allan McRae  <allan@archlinux.org>
5409
5410         [BZ #15939]
5411         * manual/string.texi (Collation Functions): Fix typo in
5412         strcoll example.
5413         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
5414
5415         [BZ #15893]
5416         * stdlib/isomac.c (get_null_defines): Fix memory leak.
5417
5418         [BZ #15892]
5419         * libio/memstream.c (open_memstream): Fix memory leak.
5420         * libio/wmemstream.c (open_wmemstream): Likewise.
5421
5422         [BZ #15895]
5423         * nscd/netgroupcache.c: Fix nesting of ifdefs.
5424
5425 2013-09-09  Will Newton  <will.newton@linaro.org>
5426
5427         * malloc/Makefile: Add tst-realloc to tests.
5428         * malloc/tst-realloc.c: New file.
5429
5430 2013-09-09  Allan McRae  <allan@archlinux.org>
5431
5432         [BZ #15844]
5433         * COPYING: Update from GNU website to fix FSF address.
5434         * COPYING.LIB: Likewise.
5435
5436 2013-09-06  David S. Miller  <davem@davemloft.net>
5437
5438         * po/zh_TW.po: Update Chinese (traditional) translation from
5439         translation project.
5440
5441 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
5442             Joseph Myers  <joseph@codesourcery.com>
5443
5444         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
5445         "localeinfo.h".
5446         (obstack_chunk_alloc): New macro.
5447         (obstack_chunk_free): Likewise.
5448         (record_offset): New function.
5449         (init_locale_data): Likewise.
5450         (align_locale_data): Likewise.
5451         (add_locale_empty): Likewise.
5452         (add_locale_raw_data): Likewise.
5453         (add_locale_raw_obstack): Likewise.
5454         (add_locale_string): Likewise.
5455         (add_locale_wstring): Likewise.
5456         (add_locale_uint32): Likewise.
5457         (add_locale_uint32_array): Likewise.
5458         (add_locale_char): Likewise.
5459         (start_locale_structure): Likewise.
5460         (end_locale_structure): Likewise.
5461         (start_locale_prelude): Likewise.
5462         (end_locale_prelude): Likewise.
5463         (write_locale_data): Take locale_file structure rather than an
5464         iovec.
5465         * locale/programs/locfile.h: Include "obstack.h".
5466         (struct locale_file): Change to store locale file contents instead
5467         of header.
5468         (init_locale_data): New prototype.
5469         (align_locale_data): Likewise.
5470         (add_locale_empty): Likewise.
5471         (add_locale_raw_data): Likewise.
5472         (add_locale_raw_obstack): Likewise.
5473         (add_locale_string): Likewise.
5474         (add_locale_wstring): Likewise.
5475         (add_locale_uint32): Likewise.
5476         (add_locale_uint32_array): Likewise.
5477         (add_locale_char): Likewise.
5478         (start_locale_structure): Likewise.
5479         (end_locale_structure): Likewise.
5480         (start_locale_prelude): Likewise.
5481         (end_locale_prelude): Likewise.
5482         (write_locale_data): Update prototype.
5483         * locale/programs/3level.h (struct TABLE): Remove result field.
5484         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
5485         Use new locale_file interface.
5486         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
5487         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
5488         * locale/programs/ld-address.c (address_output): Use new
5489         locale_file interface.
5490         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
5491         NO_ADD_LOCALE.
5492         (collate_finish): Don't call collseq_table_finalize.
5493         (collate_output): Use new locale_file interface.
5494         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
5495         in file.
5496         (NO_FINALIZE): Change to NO_ADD_LOCALE.
5497         (TABLE): Move defines earlier in file.
5498         (ELEMENT): Likewise.
5499         (DEFAULT): Likewise.
5500         (wctrans_table_add): Move macro and inline function earlier in
5501         file.
5502         (struct wctype_table): Move type earlier in file.
5503         (add_locale_wctype_table): New static prototype.
5504         (struct locale_ctype_t): Use logical types instead of struct iovec
5505         pointers for members.
5506         (ctype_output): Use new locale_file interface.
5507         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
5508         new locale_file interface.
5509         (allocate_arrays): Update for use of new locale_file interface.
5510         * locale/programs/ld-identification.c (identification_output): Use
5511         new locale_file interface.
5512         * locale/programs/ld-measurement.c (measurement_output): Likewise.
5513         * locale/programs/ld-messages.c (messages_output): Likewise.
5514         * locale/programs/ld-monetary.c (monetary_output): Likewise.
5515         * locale/programs/ld-name.c (name_output): Likewise.
5516         * locale/programs/ld-numeric.c (numeric_output): Likewise.
5517         * locale/programs/ld-paper.c (paper_output): Likewise.
5518         * locale/programs/ld-telephone.c (telephone_output): Likewise.
5519         * locale/programs/ld-time.c (time_output): Likewise.
5520
5521 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5522
5523         * benchtests/Makefile: Add memrchr benchmark.
5524         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
5525         benchmark as memrchr.
5526         * benchtests/bench-memrchr-ifunc.c: New file.
5527         * benchtests/bench-memrchr.c: New file.
5528
5529 2013-09-06   Will Newton  <will.newton@linaro.org>
5530
5531         * benchtests/Makefile (string-bench): Add memcpy.
5532
5533 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
5534             Cong Wang  <amwang@redhat.com>
5535
5536         * sysdeps/unix/sysv/linux/bits/in.h
5537         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
5538         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
5539         before __USE_KERNEL_IPV6_DEFS uses.
5540         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
5541         IPPROTO_BEETPH.
5542         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
5543         sockaddr_in6, or ipv6_mreq.
5544
5545 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5546
5547         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
5548         memory access for final bytes in some large inputs.
5549         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
5550
5551 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5552
5553         * string/test-memrchr.c: New file.
5554         * string/test-memrchr-ifunc.c: New file.
5555         * string/Makefile: Add new memrchr testcase.
5556
5557 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
5558
5559         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
5560         fanotify_init returns EPERM.
5561
5562 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
5563
5564         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
5565         errors.
5566         (top level): Treat second token from macro or constant entries for
5567         allowed headers as allowed.
5568         * include/complex.h: Condition internal declarations on
5569         [!_ISOMAC].
5570         * include/fenv.h: Condition include of <stdbool.h> and internal
5571         declarations on [!_ISOMAC].
5572
5573 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
5574
5575         [BZ #15923]
5576         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
5577
5578 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
5579
5580         * configure.in (--enable-versioning): Remove configure option.
5581         (libc_cv_asm_symver_directive): Remove configure test.
5582         (libc_cv_ld_version_script_option): Likewise.
5583         (VERSIONING): Remove variable and AC_SUBST.
5584         (DO_VERSIONING): Remove AC_DEFINE.
5585         * configure: Regenerated.
5586         * config.h.in (DO_VERSIONING): Remove macro.
5587         * Makerules [$(versioning) = yes]: Change conditionals to
5588         [$(build-shared) = yes].
5589         * config.make.in (versioning): Remove variable.
5590         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
5591         [$(build-shared) = yes].
5592         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
5593         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
5594         * elf/Makefile [$(versioning) = yes]: Change conditionals to
5595         [$(build-shared) = yes].
5596         * extra-lib.mk [$(versioning) = yes]: Likewise.
5597         * hurd/Makefile [$(versioning) = yes]: Likewise.
5598         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
5599         [SHARED].
5600         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
5601         [SHARED].
5602         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
5603         [SHARED && !NO_HIDDEN].
5604         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
5605         [SHARED].
5606         [SHARED && DO_VERSIONING]: Likewise..
5607         * libio/Makefile [$(versioning) = yes]: Change conditionals to
5608         [$(build-shared) = yes].
5609         * manual/install.texi (--disable-versioning): Remove
5610         documentation.
5611         * INSTALL: Regenerated.
5612         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
5613         to [SHARED].
5614         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
5615         [$(build-shared) = yes].
5616         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
5617         * sysdeps/i386/i686/multiarch/strstr-c.c
5618         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
5619         [SHARED && !NO_HIDDEN].
5620         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
5621         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
5622         * sysdeps/powerpc/powerpc32/dl-machine.c
5623         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
5624         * sysdeps/powerpc/powerpc32/sysdep.h
5625         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
5626         to [SHARED && PIC && !NO_HIDDEN].
5627         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
5628         conditional to [SHARED].
5629
5630 2013-09-04   Will Newton  <will.newton@linaro.org>
5631
5632         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
5633         * benchtests/bench-string.h: Include bench-timing.h instead
5634         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
5635         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
5636         call to HP_TIMING_DIFF_INIT.
5637         * benchtests/bench-memccpy.c: Use bench-timing.h macros
5638         instead of hp-timing.h macros.
5639         * benchtests/bench-memchr.c: Likewise.
5640         * benchtests/bench-memcmp.c: Likewise.
5641         * benchtests/bench-memcpy.c: Likewise.
5642         * benchtests/bench-memmem.c: Likewise.
5643         * benchtests/bench-memmove.c: Likewise.
5644         * benchtests/bench-memset.c: Likewise.
5645         * benchtests/bench-rawmemchr.c: Likewise.
5646         * benchtests/bench-strcasecmp.c: Likewise.
5647         * benchtests/bench-strcasestr.c: Likewise.
5648         * benchtests/bench-strcat.c: Likewise.
5649         * benchtests/bench-strchr.c: Likewise.
5650         * benchtests/bench-strcmp.c: Likewise.
5651         * benchtests/bench-strcpy.c: Likewise.
5652         * benchtests/bench-strcpy_chk.c: Likewise.
5653         * benchtests/bench-strlen.c: Likewise.
5654         * benchtests/bench-strncasecmp.c: Likewise.
5655         * benchtests/bench-strncat.c: Likewise.
5656         * benchtests/bench-strncmp.c: Likewise.
5657         * benchtests/bench-strncpy.c: Likewise.
5658         * benchtests/bench-strnlen.c: Likewise.
5659         * benchtests/bench-strpbrk.c: Likewise.
5660         * benchtests/bench-strrchr.c: Likewise.
5661         * benchtests/bench-strspn.c: Likewise.
5662         * benchtests/bench-strstr.c: Likewise.
5663
5664 2013-09-04  Will Newton  <will.newton@linaro.org>
5665
5666         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
5667
5668 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
5669
5670         [BZ #15427]
5671         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
5672         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
5673         * math/libm-test.inc (lgamma_test_data): Add more tests.
5674         * sysdeps/i386/fpu/libm-test-ulps: Update.
5675         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5676
5677 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
5678
5679         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
5680         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
5681         Add ifunc.
5682         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
5683         Add strcmp-sse2-unaligned
5684         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
5685
5686 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
5687
5688         * Versions.def (libc): Add GLIBC_2.19.
5689
5690 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
5691
5692         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
5693         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
5694
5695 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
5696
5697         [BZ #14155]
5698         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
5699         intermediate calculations in recurrence.
5700         (__ieee754_ynf): Likewise.
5701         * math/libm-test.inc (jn_test_data): Do not allow spurious
5702         underflow exception.  Add more tests.
5703         (yn_test_data): Add more tests.
5704         * sysdeps/i386/fpu/libm-test-ulps: Update.
5705         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5706
5707 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
5708
5709         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
5710
5711 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
5712
5713         * csu/init-first.c: Fix then/than typos.
5714         * locale/programs/ld-collate.c: Likewise.
5715         * locale/programs/linereader.h: Likewise.
5716         * manual/charset.texi: Likewise.
5717         * manual/filesys.texi: Likewise.
5718         * manual/stdio.texi: Likewise.
5719         * manual/string.texi: Likewise.
5720         * stdlib/fmtmsg.c: Likewise.
5721         * sysdeps/i386/stpncpy.S: Likewise.
5722         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5723         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
5724         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5725         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5726
5727 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
5728
5729         * elf/dl-open.c: Fix typos.
5730         * iconvdata/gbbig5.c: Likewise.
5731         * iconvdata/iso-2022-jp.c: Likewise.
5732         * iconv/gconv_int.h: Likewise.
5733         * iconv/loop.c: Likewise.
5734         * nis/rpcsvc/nis.h: Likewise.
5735         * resolv/ns_name.c: Likewise.
5736         * stdio-common/vfscanf.c: Likewise.
5737         * streams/stropts.h: Likewise.
5738         * sunrpc/rpc_thread.c: Likewise.
5739         * sysdeps/i386/strpbrk.S: Likewise.
5740         * sysdeps/ieee754/k_standard.c: Likewise.
5741         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
5742         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5743         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5744         * sysdeps/mach/hurd/profil.c: Likewise.
5745         * sysdeps/s390/dl-procinfo.h: Likewise.
5746         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5747         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
5748         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5749         * sysdeps/x86_64/dl-trampoline.S: Likewise.
5750         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5751
5752 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
5753
5754         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
5755         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
5756
5757 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
5758
5759         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
5760         aix specific files.
5761         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
5762         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
5763         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
5764         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
5765         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
5766         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
5767         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
5768         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
5769
5770 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
5771             Roland McGrath  <roland@hack.frob.com>
5772
5773         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
5774         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5775
5776 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5777
5778         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
5779         __executable_start symbol instead of _start.
5780
5781 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
5782
5783         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
5784         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
5785         Move macros to...
5786         * sysdeps/gnu/ldsodefs.h: ... this new file.
5787
5788         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
5789         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
5790         instead of ELFOSABI_LINUX.
5791
5792         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
5793         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
5794         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
5795         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
5796         Likewise.
5797         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
5798         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
5799         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
5800         Likewise.
5801         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
5802         (ibm_extended_long_double): Add ieee_nan member.
5803         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
5804         (do_test): New function.
5805
5806         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
5807         TEST_TRUNC.
5808         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
5809         functions, renamed from truncdfsf_test, trunctfsf_test,
5810         trunctfdf_test.
5811         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
5812         functions.
5813         (do_test): Run all these.
5814
5815 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
5816
5817         * argp/argp-help.c: Fix typos.
5818         * argp/argp-parse.c: Likewise.
5819         * debug/backtracesyms.c: Likewise.
5820         * elf/elf.h: Likewise.
5821         * malloc/malloc.c: Likewise.
5822         * nis/nis_print.c: Likewise.
5823         * resolv/res_comp.c: Likewise.
5824         * stdlib/stdlib.h: Likewise.
5825         * sunrpc/clnt_tcp.c: Likewise.
5826         * sunrpc/clnt_udp.c: Likewise.
5827         * sunrpc/clnt_unix.c: Likewise.
5828         * sysdeps/unix/bsd/ptsname.c: Likewise.
5829         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5830         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
5831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
5832         Likewise.
5833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
5834         Likewise.
5835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
5836         Likewise.
5837         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
5838
5839 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5840
5841         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
5842         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5843
5844 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
5845
5846         [BZ #15897]
5847         * dlfcn/Makefile (tests): Add bug-dl-leaf.
5848         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
5849         ($(objpfx)bug-dl-leaf): New rule.
5850         ($(objpfx)bug-dl-leaf.so): Likewise.
5851         ($(objpfx)bug-dl-leaf.out): Likewise.
5852         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
5853         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
5854         * dlfcn/bug-dl-leaf.c: New test.
5855         * dlfcn/bug-dl-leaf-lib.c: Likewise.
5856         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
5857         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
5858         (dlclose): Likewise.
5859         (dlmopen): Likewise.
5860
5861 2013-08-27  Roland McGrath  <roland@hack.frob.com>
5862
5863         * include/netdb.h [!_ISOMAC]:
5864         Don't include <tls.h>.
5865         (h_errno, __libc_h_errno): Move declaration and macros out of
5866         [_LIBC_REENTRANT].
5867
5868         * include/resolv.h [_RESOLV_H_]:
5869         Don't include <tls.h>.
5870         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
5871         * resolv/res_libc.c: Don't include <tls.h>.
5872         (_res): Use __attribute__ ((nocommon)) in place of
5873         __attribute__ ((section (".bss"))).
5874
5875         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
5876         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
5877
5878         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
5879
5880         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
5881         only under [SIOCGIFCONF && SIOCGIFNETMASK].
5882
5883         * resolv/res_mkquery.c: Include <sys/time.h>.
5884
5885         * inet/ifreq.c: Moved to ...
5886         * sysdeps/unix/ifreq.c: ... here.
5887         * inet/ifreq.c: New file, true stub version.
5888
5889         * socket/sa_len.c: New file.
5890         * socket/Makefile (aux): Add it.
5891         * sysdeps/unix/sysv/linux/Makefile
5892         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
5893         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
5894         and #include <socket/sa_len.c>.
5895         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
5896         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
5897
5898         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
5899         * bits/socket.h: ... here.
5900
5901         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
5902         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
5903         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
5904
5905 2013-08-27  Andreas Schwab  <schwab@suse.de>
5906
5907         [BZ #15736]
5908         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
5909         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
5910         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
5911         * string/test-strcasecmp.c (test_main): Run tests in several
5912         locales.
5913         * string/test-strncasecmp.c (test_main): Likewise.
5914
5915         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
5916         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
5917         to __strcasecmp_nonascii and __strncasecmp_nonascii.
5918         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
5919         (__strncasecmp_ssse3) [PIC]: Likewise.
5920
5921 2013-08-26  Roland McGrath  <roland@hack.frob.com>
5922
5923         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
5924
5925         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
5926         instead of explicitly declaring xdecrypt.
5927         * nis/nss_nis/nis-publickey.c: Likewise.
5928
5929 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5930
5931         [BZ #15890]
5932         * nscd/aicache.c: Include res_hconf.h.
5933         (addhstaiX): Initialize res_hconf.
5934
5935 2013-08-26  Andreas Schwab  <schwab@suse.de>
5936
5937         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
5938         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
5939
5940 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5941
5942         * nscd/aicache.c (addhstaiX): Fix indentation.
5943
5944 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
5945
5946         * configure.ac: Quote $build_pt_chown test.
5947         * configure: Regenerated.
5948
5949 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
5950
5951         [BZ #15532]
5952         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
5953         * math/s_cexpf.c (__cexpf): Likewise.
5954         * math/s_cexpl.c (__cexpl): Likewise.
5955         * math/libm-test.inc (cexp_test_data): Correct expected return
5956         value for NaN + i0.  Add another test.
5957
5958 2013-08-22  David S. Miller  <davem@davemloft.net>
5959
5960         * po/ca.po: Update Catalan translation from translation project.
5961         * po/uk.po: Add Ukrainian translations from translation project.
5962
5963 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
5964
5965         [BZ #15797]
5966         * math/s_fdim.c (__fdim): Check for infinite arguments if result
5967         is infinite, not alongside NaN test.
5968         * math/s_fdimf.c (__fdimf): Likewise.
5969         * math/s_fdiml.c (__fdiml): Likewise.
5970         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
5971         errno is unchanged.
5972
5973 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
5974
5975         * argp/argp-help.c: Fix typos.
5976         * crypt/speeds.c: Likewise.
5977         * csu/check_fds.c: Likewise.
5978         * elf/dl-load.c: Likewise.
5979         * elf/dl-open.c: Likewise.
5980         * elf/reldep3.c: Likewise.
5981         * elf/reldep.c: Likewise.
5982         * elf/sprof.c: Likewise.
5983         * iconv/iconv_charmap.c: Likewise.
5984         * iconv/skeleton.c: Likewise.
5985         * iconv/strtab.c: Likewise.
5986         * io/lockf64.c: Likewise.
5987         * libio/libioP.h: Likewise.
5988         * resolv/gai_notify.c: Likewise.
5989         * resolv/ns_name.c: Likewise.
5990         * resolv/ns_samedomain.c: Likewise.
5991         * resolv/res_send.c: Likewise.
5992         * stdlib/random.c: Likewise.
5993         * sunrpc/rpc/xdr.h: Likewise.
5994         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
5995         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
5996         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
5997         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
5998         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
5999         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
6000         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
6001         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6002         * sysdeps/mach/hurd/check_fds.c: Likewise.
6003         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
6004         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6005         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6006         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
6007         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6008         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
6009         * sysdeps/pthread/aio_notify.c: Likewise.
6010         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6011         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
6012         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
6013         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6014         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
6015
6016 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6017
6018         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
6019         version if bit_Slow_SSE4_2 is set.
6020         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6021         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6022
6023 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6024
6025         [BZ #15867]
6026         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
6027         trampoline stack frame information.
6028         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
6029         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
6030         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
6031         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
6032         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
6033         * sysdeps/unix/sysv/linux/powerpc/init-first.c
6034         (_libc_vdso_platform_setup): Initialize the signal trampolines.
6035         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
6036         sa_flags value.
6037         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
6038         interrupting a syscall and set with option SA_SIGINFO.
6039
6040 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6041
6042         [BZ #15531]
6043         * math/s_cproj.c (__cproj): Only return an infinity if one part of
6044         argument is infinite.
6045         * math/s_cprojf.c (__cprojf): Likewise.
6046         * math/s_cprojl.c (__cprojl): Likewise.
6047         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
6048         * math/libm-test.inc (cproj_test_data): Add more tests.
6049
6050         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
6051
6052         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
6053         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
6054         size.  Use __ffs to determine corresponding shift.
6055
6056 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6057             Roland McGrath  <roland@hack.frob.com>
6058
6059         * Makefile (INSTALL): Remove trailing blank lines from output of
6060         makeinfo.
6061
6062 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6063
6064         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
6065         Align 32 bit compat elf_greg to 8 bytes.
6066
6067 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6068
6069         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
6070
6071 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6072
6073         * string/strcoll_l.c (coll_seq): New structure.
6074         (get_next_seq_cached): New function.
6075         (get_next_seq): New function.
6076         (do_compare): New function.
6077         (STRCOLL): Use GNU style definition.  Simplify implementation
6078         by using get_next_seq, get_next_seq_cached and do_compare.
6079
6080 2013-08-16  Florian Weimer  <fweimer@redhat.com>
6081
6082         [BZ #14699]
6083         CVE-2013-4237
6084         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
6085         member.
6086         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
6087         member.
6088         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
6089         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
6090         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
6091         conditional.
6092         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
6093         GETDENTS_64BIT_ALIGNED.
6094         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6095         * manual/filesys.texi (Reading/Closing Directory): Document
6096         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
6097         strongly.
6098         * manual/conf.texi (Limits for Files): Add portability note to
6099         NAME_MAX, PATH_MAX.
6100         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
6101
6102 2013-08-13  Andreas Schwab  <schwab@suse.de>
6103
6104         [BZ #15749]
6105         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
6106         of fabs.
6107         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
6108         LDBL_MAX_EXP >= 16384]: Add tests for it.
6109
6110 2013-08-12  David S. Miller  <davem@davemloft.net>
6111
6112         * version.h (RELEASE): Set to "development".
6113         (VERSION): Set to "2.18.90".
6114         * NEWS: Add 2.19 section.
6115
6116 2013-08-03  David S. Miller  <davem@davemloft.net>
6117
6118         * po/ko.po: Update Korean translation from translation project.
6119
6120 2013-08-01  David S. Miller  <davem@davemloft.net>
6121
6122         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
6123         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
6124         Bilka.
6125
6126 2013-07-30  David S. Miller  <davem@davemloft.net>
6127
6128         * po/fr.po: Update French translation from translation project.
6129
6130 2013-07-28  David S. Miller  <davem@davemloft.net>
6131
6132         * po/cs.po: Update Czech translation from translation project.
6133
6134         * po/sv.po: Update Swedish translation from translation project.
6135
6136 2013-07-27  David S. Miller  <davem@davemloft.net>
6137
6138         * po/eo.po: Update Esperanto translation from translation project.
6139
6140         * po/vi.po: Update Vietnamese translation from translation project.
6141
6142         * po/de.po: Update German translation from translation project.
6143
6144 2013-07-26  David S. Miller  <davem@davemloft.net>
6145
6146         * po/bg.po: Update Bulgarian translation from translation project.
6147
6148         * po/nl.po: Update Dutch translation from translation project.
6149         * po/pl.po: Update Polish translation from translation project.
6150         * po/ru.po: Update Russian translation from translation project.
6151
6152 2013-07-24  David S. Miller  <davem@davemloft.net>
6153
6154         * po/libc.pot: Update.
6155
6156 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6157
6158         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
6159         variable page size.
6160         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
6161         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
6162         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
6163
6164 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6165
6166         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
6167
6168 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6169             Andreas Schwab  <schwab@suse.de>
6170             Roland McGrath  <roland@hack.frob.com>
6171             Joseph Myers  <joseph@codesourcery.com>
6172             Carlos O'Donell  <carlos@redhat.com>
6173
6174         [BZ #15755]
6175         * config.h.in: Define HAVE_PT_CHOWN.
6176         * config.make.in (build-pt-chown): New variable.
6177         * configure.in (--enable-pt_chown): New configure option.
6178         * configure: Regenerate.
6179         * login/Makefile: Include Makeconfig.  Build pt_chown only if
6180         build-pt-chown is enabled.
6181         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
6182         pt_chown to fix pty ownership.
6183         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
6184         CLOSE_ALL_FDS.
6185         * manual/install.texi (Configuring and compiling): Mention
6186         --enable-pt_chown. Add @findex for grantpt.
6187         * INSTALL: Regenerate.
6188
6189 2013-07-20  David S. Miller  <davem@davemloft.net>
6190
6191         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
6192         difference between 32-bit and 64-bit.
6193
6194 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
6195
6196         [BZ #15711]
6197         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
6198         Avoid system header dependency with -ffreestanding.
6199         ($(objpfx)bits/syscall%d): Likewise.
6200
6201 2013-07-13  David S. Miller  <davem@davemloft.net>
6202
6203         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
6204         underflows from atanl/atan2l due to bug 15319.
6205         (casinh_test_data): Likewise.
6206
6207 2013-07-07  David S. Miller  <davem@davemloft.net>
6208
6209         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
6210
6211 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
6212
6213         * sysdeps/i386/fpu/libm-test-ulps: Update.
6214         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6215
6216 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6217
6218         * configure.in (--enable-lock-elision): Fix message text.
6219         * INSTALL: Regenerate.
6220         * configure: Regenerate.
6221
6222 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6223
6224         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6225
6226 2013-07-03  Andreas Jaeger  <aj@suse.de>
6227
6228         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
6229         define.
6230         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
6231         (ptrace_peeksiginfo_args): Add.
6232         (__ptrace_peeksiginfo_flags): Add.
6233         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6234         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6235         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6236
6237 2013-07-03  Allan McRae  <allan@archlinux.org>
6238
6239         * sysdeps/i386/fpu/libm-test-ulps: Update.
6240
6241 2013-07-02  David S. Miller  <davem@davemloft.net>
6242
6243         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6244
6245 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
6246
6247         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6248
6249 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6250
6251         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6252         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6253
6254 2013-07-02  Andi Kleen <ak@linux.intel.com>
6255
6256         * config.h.in (ENABLE_LOCK_ELISION): Add.
6257         * configure.in (--enable-lock-elision): Add option.
6258         * manual/install.texi: Document --enable lock elision.
6259         * configure: Regenerate
6260         * INSTALL: Regenerate.
6261
6262 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
6263
6264         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
6265         SSE4.2 strcasecmp for libc.a.
6266         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
6267
6268 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6269
6270         [BZ #13304]
6271         * soft-fp/op-common.h (_FP_FMA): New macro.
6272         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
6273         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
6274         (_FP_MUL_MEAT_1_imm): ... here.
6275         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
6276         (_FP_MUL_MEAT_1_wide): ... here.
6277         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
6278         (_FP_MUL_MEAT_1_hard): ... here.
6279         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
6280         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
6281         (_FP_MUL_MEAT_2_wide): ... here.
6282         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
6283         (_FP_MUL_MEAT_2_wide_3mul): ... here.
6284         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
6285         (_FP_MUL_MEAT_2_gmp): ... here.
6286         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
6287         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
6288         (_FP_MUL_MEAT_4_wide): ... here.
6289         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
6290         (_FP_MUL_MEAT_4_gmp): ... here.
6291         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
6292         (_FP_WFRACBITS_DW_S): Likewise.
6293         (_FP_WFRACXBITS_DW_S): Likewise.
6294         (_FP_HIGHBIT_DW_S): Likewise.
6295         (FP_FMA_S): Likewise.
6296         (_FP_FRAC_HIGH_DW_S): Likewise.
6297         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
6298         (_FP_WFRACBITS_DW_D): Likewise.
6299         (_FP_WFRACXBITS_DW_D): Likewise.
6300         (_FP_HIGHBIT_DW_D): Likewise.
6301         (FP_FMA_D): Likewise.
6302         (_FP_FRAC_HIGH_DW_D): Likewise.
6303         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
6304         (_FP_WFRACBITS_DW_E): Likewise.
6305         (_FP_WFRACXBITS_DW_E): Likewise.
6306         (_FP_HIGHBIT_DW_E): Likewise.
6307         (FP_FMA_E): Likewise.
6308         (_FP_FRAC_HIGH_DW_E): Likewise.
6309         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
6310         (_FP_WFRACBITS_DW_Q): Likewise.
6311         (_FP_WFRACXBITS_DW_Q): Likewise.
6312         (_FP_HIGHBIT_DW_Q): Likewise.
6313         (FP_FMA_Q): Likewise.
6314         (_FP_FRAC_HIGH_DW_Q): Likewise.
6315         * soft-fp/fmasf4.c: New file.
6316         * soft-fp/fmadf4.c: Likewise.
6317         * soft-fp/fmatf4.c: Likewise.
6318
6319 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6320
6321         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
6322         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
6323         Silvermont.
6324         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
6325         macro.
6326         (index_Slow_SSE4_2): Likewise.
6327         (index_Prefer_PMINUB_for_stringop): Likewise.
6328         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
6329         bit_Slow_SSE4_2 is set.
6330         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
6331         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
6332
6333 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6334
6335         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
6336         rtld_global._dl_hwcap2.
6337         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
6338         POWER8.
6339         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
6340         POWER8 feature descriptions defined in _dl_hwcap2.
6341         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
6342         string handling for POWER8 feature bits.
6343         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
6344         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
6345         _dl_powerpc_cap_flags.
6346         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
6347         * sysdeps/powerpc/rtld-global-offsets.sym
6348         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
6349         _dl_hwcap2 in the rtld_global_ro structure.
6350
6351 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6352
6353         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
6354         hardware capabilities in support of AT_HWCAP2.
6355         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
6356         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
6357         GLRO(dl_hwcap2).
6358         (_dl_show_auxv): Add support for calling _dl_procinfo to display
6359         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
6360         explicitly the unknown a_type display mechanism is used.
6361         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
6362         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
6363         struct member.
6364         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
6365         to macro prototype for AT_HWCAP2 support.
6366         * sysdeps/i386/dl-procinfo.h: Likewise.
6367         * sysdeps/s390/dl-procinfo.h: Likewise.
6368         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
6369         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
6370         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
6371         return -1 for unknown a_type display fallback.
6372         * sysdeps/sparc/dl-procinfo.h: Likewise.
6373         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
6374         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
6375
6376 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
6377
6378         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
6379         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
6380
6381 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
6382
6383         [BZ #12492]
6384         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
6385         mprotect making __stack_prot writable.
6386
6387 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
6388             Joseph Myers  <joseph@codesourcery.com>
6389
6390         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
6391         as being properly aligned.
6392
6393 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
6394
6395         * dlfcn/modstatic5.c: New file.
6396         * dlfcn/tststatic5.c: New file.
6397         * dlfcn/Makefile (tests): Add tststatic5.
6398         (tests-static): Likewise.
6399         (modules-names): Add modstatic5.
6400         (tststatic5-ENV): New variable.
6401         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
6402
6403         [BZ #15022]
6404         * elf/dl-support.c (_dl_main_map): New variable.
6405         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
6406         (_dl_nns, _dl_load_adds): Set to 1.
6407         (_dl_initial_searchlist): Refer to _dl_main_map.
6408         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
6409         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
6410         call to _dl_get_origin.
6411         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
6412         around call_map.
6413         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
6414         * dlfcn/modstatic3.c: New file.
6415         * dlfcn/tststatic3.c: New file.
6416         * dlfcn/tststatic4.c: New file.
6417         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
6418         (tests-static): Likewise.
6419         (modules-names): Add modstatic3.
6420         (tststatic3-ENV, tststatic4-ENV): New variables.
6421         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
6422         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
6423
6424 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
6425
6426         * configure.in (CC): Require GCC version 4.4 or later.
6427         * configure: Regenerated.
6428         * manual/install.texi (Tools for Compilation): Update GCC version
6429         requirement.
6430         * INSTALL: Regenerated.
6431
6432 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6433
6434         [BZ #15674]
6435         * string/test-memcmp.c (check2): New.
6436         (main): Call check2.
6437
6438         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
6439
6440 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
6441
6442         [BZ #15022]
6443         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
6444         over to...
6445         (dl_open_worker) [!SHARED]: ... here.
6446
6447 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6448
6449         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
6450
6451 2013-06-25  Richard Henderson  <rth@redhat.com>
6452
6453         * locale/programs/locarchive.c: Include <libc-internal.h>
6454
6455 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
6456
6457         * manual/texinfo.tex: Update to version 2013-06-21.17, with
6458         trailing whitespace removed.
6459
6460 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
6461
6462         [BZ #10283]
6463         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
6464         * locale/programs/locarchive.c: Include libc-mmap.h.
6465         (prepare_address_space): Take two new outputs (the mmap base and len).
6466         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
6467         values.
6468         (create_archive): Declare new mmap base and len values for
6469         prepare_address_space, and store the result in ah.
6470         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
6471         (enlarge_archive): If ah->mmap_base is not NULL, use that and
6472         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
6473         Declare new mmap base and len values for
6474         prepare_address_space, and store the result in new_ah.
6475         (open_archive): Declare new mmap base and len values for
6476         prepare_address_space, and store the result in ah.
6477         (close_archive): If ah->mmap_base is not NULL, use that and
6478         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
6479         * sysdeps/generic/libc-mmap.h: New file.
6480
6481 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
6482
6483         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
6484         (ALIGN_UP): Likewise.
6485         (PTR_ALIGN_DOWN): Likewise.
6486         (PTR_ALIGN_UP): Likewise.
6487
6488 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6489
6490         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
6491         entry mapped to PPC_PLATFORM_POWER8.
6492         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
6493         POWER8.
6494         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
6495         (_dl_string_platform): Add case for exporting platform position for
6496         POWER8.
6497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
6498         search path to sysdeps/powerpc/powerpc32/power8 directory.
6499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
6500         search path to sysdeps/powerpc/powerpc64/power8 directory.
6501         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
6502         power7 directories.
6503         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
6504         power7 directories.
6505
6506 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6507
6508         * INSTALL: Regenerate.
6509
6510         * nscd/connections.c (nscd_init): Fix comment.
6511
6512 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
6513
6514         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
6515
6516         [BZ #15667]
6517         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
6518         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
6519
6520 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
6521
6522         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
6523         DL_DST_REQ_STATIC.
6524         (DL_DST_REQ_STATIC): Remove macro.
6525
6526 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
6527
6528         [BZ #7006]
6529         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
6530         with a shift of 0 bits.
6531
6532 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
6533
6534         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
6535         $(tststatic-ENV).
6536
6537 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6538
6539         [BZ #15655]
6540         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
6541
6542 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6543
6544         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
6545         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
6546         accepts -fno-tree-loop-distribute-patterns.
6547         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
6548         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
6549         recursive call.
6550         * string/memset.c (memset): Likewise.
6551         * string/test-memmove.c (simple_memmove): Disable loop transformation
6552         to library calls.
6553         * string/test-memset.c (simple_memset): Likewise.
6554         * benchtests/bench-memmove.c (simple_memmove): Likewise.
6555         * benchtests/bench-memset.c (simple_memset): Likewise.
6556         * configure: Regenerated.
6557
6558 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
6559
6560         * math/test-misc.c (main): Ignore fesetround failure when failures
6561         of subsequent rounding tests would be ignored.
6562
6563         [BZ #15654]
6564         * math/fedisblxcpt.c (fedisableexcept): Return 0.
6565         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
6566         * math/fegetenv.c (__fegetenv): Return 0.
6567         * math/fegetexcept.c (fegetexcept): Return 0.
6568         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
6569         FE_TONEAREST.
6570         * math/feholdexcpt.c (feholdexcept): Return 0.
6571         * math/fesetenv.c (__fesetenv): Return 0.
6572         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
6573         argument FE_TONEAREST.
6574         * math/feupdateenv.c (__feupdateenv): Return 0.
6575         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
6576
6577 2013-06-18  Roland McGrath  <roland@hack.frob.com>
6578
6579         * elf/rtld-Rules (rtld-compile-command.S): New variable.
6580         (rtld-compile-command.s, rtld-compile-command.c): New variables.
6581         ($(objpfx)rtld-%.os rules): Use them.
6582
6583 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6584
6585         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
6586         fields.
6587
6588 2013-06-17  Roland McGrath  <roland@hack.frob.com>
6589
6590         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
6591         length of target pattern, then descending length of dependency pattern.
6592         * configure.in (AWK): Require gawk 3.1.2 or newer.
6593         * manual/install.texi (Tools for Compilation): Say that we do.
6594         * configure: Regenerated.
6595
6596         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
6597         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
6598         * scripts/sysd-rules.awk: ... this new script.
6599         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
6600         than a glob-style pattern.
6601
6602 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
6603
6604         * math/test-misc.c (main): Do not treat incorrectly rounded
6605         conversions as failure unless ROUNDING_TESTS passes.
6606
6607 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
6608
6609         [BZ #15631]
6610         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
6611         restore exception state around main square root computation, then
6612         check for inexactness explicitly.
6613
6614         * math/libm-test.inc (fma_test_data): Add another test.
6615
6616 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6617
6618         * manual/threads.texi (Non-POSIX Extensions): New document
6619         node.  Document pthread_getattr_default_np and
6620         pthread_setattr_default_np.
6621
6622         * Versions.def (libpthread): Add GLIBC_2.18.
6623         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
6624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6625         Likewise.
6626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6627         Likewise.
6628         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6629         Likewise.
6630         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6631         Likewise.
6632         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
6633         Likewise.
6634         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
6635         Likewise.
6636         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
6637         Likewise.
6638         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6639         Likewise.
6640         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6641         Likewise.
6642
6643 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6644
6645         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6646         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
6647
6648 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
6649             H.J. Lu  <hjl.tools@gmail.com>
6650
6651         [BZ #15627]
6652         * sysdeps/x86_64/rtld-memset.c: Remove file.
6653         * sysdeps/x86_64/rtld-memset.S: New file.
6654
6655 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
6656
6657         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
6658         (test_in_one_mode): Take arguments for whether the rounding mode
6659         is supported for each floating-point type.
6660         (do_test): Pass new arguments to test_in_one_mode using
6661         ROUNDING_TESTS.
6662
6663 2013-06-13  Roland McGrath  <roland@hack.frob.com>
6664
6665         * posix/tst-waitid.c (do_test): Distinguish different instances of
6666         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
6667         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
6668         before entering the kernel for waitpid.
6669
6670 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
6671
6672         * NEWS: Fix note on clock function precision.  Text by Roland
6673         McGrath.
6674
6675 2013-06-13  Roland McGrath  <roland@hack.frob.com>
6676
6677         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
6678         it into place only when and if the sanity check passes.
6679
6680 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
6681
6682         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
6683         output for whether conversion result is exact.  Take argument
6684         indicating whether type is IBM long double.
6685         (round_for_all): Change need_exact field to ibm_ld.
6686         * stdlib/tst-strtod-round.c (struct exactness): New type.
6687         (struct test): Change bool ld_ok field to struct exactness exact.
6688         (TEST): Update all definitions for change to field.
6689         (tests): Regenerate array contents.
6690         (test_in_one_mode): Take pointer to new field instead of old ld_ok
6691         field value.  Check for IBM long double here.
6692         (do_test): Update calls to test_in_one_mode.
6693
6694 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
6695
6696         [BZ #12515]
6697         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
6698         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
6699
6700 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6701
6702         [BZ #15605]
6703         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
6704         generated by the compiler on loop optimizations.
6705         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
6706         general definitions.
6707
6708 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
6709
6710         * math/bug-nextafter.c: Include <math-tests.h>.
6711         (main): Only test for exceptions if EXCEPTION_TESTS is true for
6712         the relevant type.
6713         * math/bug-nexttoward.c: Include <math-tests.h>.
6714         (main): Only test for exceptions if EXCEPTION_TESTS is true for
6715         the relevant type.
6716         * math/test-misc.c: Include <math-tests.h>.
6717         (main): Only test for exceptions if EXCEPTION_TESTS is true for
6718         the relevant type.
6719
6720 2013-06-12  Andreas Jaeger  <aj@suse.de>
6721
6722         * po/ia.po: Update Interlingua translation from translation
6723         project.
6724
6725 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6726
6727         * include/fenv.h: Include stdbool.h.
6728         (struct rm_ctx): New structure.
6729         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
6730         Define macro.
6731         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
6732         (SET_RESTORE_ROUNDF): Likewise.
6733         (SET_RESTORE_ROUNDL): Likewise.
6734         (SET_RESTORE_ROUND_NOEX): Likewise.
6735         (SET_RESTORE_ROUND_NOEXF): Likewise.
6736         (SET_RESTORE_ROUND_NOEXL): Likewise.
6737         (SET_RESTORE_ROUND_53BIT): Likewise.
6738         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
6739         (libc_feresetround_noexf_ctx): Likewise.
6740         (libc_feresetround_noexl_ctx): Likewise.
6741         (libc_feholdsetround_53bit_ctx): Likewise.
6742         (libc_feresetround_53bit_ctx): Likewise.
6743         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
6744         (libc_feholdexcept_setround_sse_ctx): New function.
6745         (libc_fesetenv_sse_ctx): Likewise.
6746         (libc_feupdateenv_sse_ctx): Likewise.
6747         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
6748         (libc_feholdexcept_setround_387_ctx): Likewise.
6749         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
6750         (libc_feholdsetround_387_prec_ctx): Likewise.
6751         (libc_feholdsetround_387_ctx): Likewise.
6752         (libc_feholdsetround_387_53bit_ctx): Likewise.
6753         (libc_feholdsetround_sse_ctx): Likewise.
6754         (libc_feresetround_sse_ctx): Likewise.
6755         (libc_feresetround_387_ctx): Likewise.
6756         (libc_feupdateenv_387_ctx): Likewise.
6757         (libc_feholdexcept_setroundf_ctx): Define macro.
6758         (libc_fesetenvf_ctx): Likewise.
6759         (libc_feupdateenvf_ctx): Likewise.
6760         (libc_feholdsetroundf_ctx): Likewise.
6761         (libc_feresetroundf_ctx): Likewise.
6762         (libc_feholdexcept_setround_ctx): Likewise.
6763         (libc_fesetenv_ctx): Likewise.
6764         (libc_feupdateenv_ctx): Likewise.
6765         (libc_feholdsetround_ctx): Likewise.
6766         (libc_feresetround_ctx): Likewise.
6767         (libc_feholdexcept_setroundl_ctx): Likewise.
6768         (libc_feupdateenvl_ctx): Likewise.
6769         (libc_feholdsetroundl_ctx): Likewise.
6770         (libc_feresetroundl_ctx): Likewise.
6771         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
6772         (libc_feresetround_53bit_ctx): Likewise.
6773
6774 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6775
6776         * locale/iso-639.def: Convert to UTF-8.
6777
6778 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
6779
6780         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
6781         (EXCEPTION_TESTS_double): Likewise.
6782         (EXCEPTION_TESTS_long_double): Likewise.
6783         (EXCEPTION_TESTS): Likewise.
6784         * math/libm-test.inc (test_exceptions): Only test exceptions if
6785         EXCEPTION_TESTS (FLOAT).
6786
6787 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6788
6789         * benchtests/Makefile (string-bench): Add strcpy_chk and
6790         stpcpy_chk.
6791         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
6792         * benchtests/bench-stpcpy_chk.c: New file.
6793         * benchtests/bench-strcpy_chk-ifunc.c: New file.
6794         * benchtests/bench-strcpy_chk.c: New file.
6795         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
6796         code.
6797         (do_test): Likewise.
6798
6799 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6800
6801         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
6802         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
6803         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
6804         with tabs where appropriate.
6805         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
6806         dl-procinfo.h.
6807         [PPC_PLATFORM_PPC440]: Likewise.
6808         [PPC_PLATFORM_PPC464]: Likewise.
6809         [PPC_PLATFORM_PPC476]: Likewise.
6810         (_dl_string_platform): Add support for detecting ppc405, ppc440,
6811         ppc464, and ppc476 platform strings merging from ports/
6812         dl-procinfo.h.
6813
6814 2013-06-11  Andreas Schwab  <schwab@suse.de>
6815
6816         [BZ #14991]
6817         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
6818         (from_ucs4_idx): Regenerate.
6819         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
6820         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
6821         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
6822         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
6823         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
6824         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
6825         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
6826         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
6827         from FROM_LOOP and TO_LOOP specific macros.
6828         (BODY): Handle combining characters.
6829         * iconvdata/BIG5HKSCS.irreversible: Update.
6830         * iconvdata/BIG5HKSCS.precomposed: New file.
6831         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
6832         characters.
6833         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
6834
6835 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6836
6837         * include/sys/time.h: Fix indentation and add copyright header.
6838
6839         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
6840         (do_test): Likewise.
6841         * string/test-memchr.c (do_one_test): Likewise.
6842         (do_test): Likewise.
6843         * string/test-memcmp.c (do_one_test): Likewise.
6844         (do_test): Likewise.
6845         * string/test-memcpy.c (do_one_test): Likewise.
6846         (do_test): Likewise.
6847         * string/test-memmem.c (do_one_test): Likewise.
6848         (do_test): Likewise.
6849         (do_random_tests): Likewise.
6850         * string/test-memmove.c (do_one_test): Likewise.
6851         (do_test): Likewise.
6852         * string/test-memset.c (do_one_test): Likewise.
6853         (do_test): Likewise.
6854         * string/test-rawmemchr.c (do_one_test): Likewise.
6855         (do_test): Likewise.
6856         * string/test-strcasecmp.c (do_one_test): Likewise.
6857         (do_test): Likewise.
6858         * string/test-strcasestr.c (do_one_test): Likewise.
6859         (do_test): Likewise.
6860         * string/test-strcat.c (do_one_test): Likewise.
6861         (do_test): Likewise.
6862         * string/test-strchr.c (do_one_test): Likewise.
6863         (do_test): Likewise.
6864         * string/test-strcmp.c (do_one_test): Likewise.
6865         (do_test): Likewise.
6866         * string/test-strcpy.c (do_one_test): Likewise.
6867         (do_test): Likewise.
6868         * string/test-string.h: Likewise.
6869         (test_init): Likewise.
6870         * string/test-strlen.c (do_one_test): Likewise.
6871         (do_test): Likewise.
6872         * string/test-strncasecmp.c (do_one_test): Likewise.
6873         (do_test): Likewise.
6874         * string/test-strncat.c (do_one_test): Likewise.
6875         (do_test): Likewise.
6876         * string/test-strncmp.c (do_one_test): Likewise.
6877         (do_test_limit): Likewise.
6878         (do_test): Likewise.
6879         * string/test-strncpy.c (do_one_test): Likewise.
6880         (do_test): Likewise.
6881         * string/test-strnlen.c (do_one_test): Likewise.
6882         (do_test): Likewise.
6883         * string/test-strpbrk.c (do_one_test): Likewise.
6884         (do_test): Likewise.
6885         * string/test-strrchr.c (do_one_test): Likewise.
6886         (do_test): Likewise.
6887         * string/test-strspn.c (do_one_test): Likewise.
6888         (do_test): Likewise.
6889         * string/test-strstr.c (do_one_test): Likewise.
6890         (do_test): Likewise.
6891
6892         * benchtests/Makefile (string-bench): Add string benchmarks.
6893         * benchtests/bench-bcopy-ifunc.c: New file.
6894         * benchtests/bench-bcopy.c: New file.
6895         * benchtests/bench-bzero-ifunc.c: New file.
6896         * benchtests/bench-bzero.c: New file.
6897         * benchtests/bench-memccpy-ifunc.c: New file.
6898         * benchtests/bench-memccpy.c: New file.
6899         * benchtests/bench-memchr-ifunc.c: New file.
6900         * benchtests/bench-memchr.c: New file.
6901         * benchtests/bench-memcmp-ifunc.c: New file.
6902         * benchtests/bench-memcmp.c: New file.
6903         * benchtests/bench-memmem-ifunc.c: New file.
6904         * benchtests/bench-memmem.c: New file.
6905         * benchtests/bench-memmove-ifunc.c: New file.
6906         * benchtests/bench-memmove.c: New file.
6907         * benchtests/bench-mempcpy-ifunc.c: New file.
6908         * benchtests/bench-mempcpy.c: New file.
6909         * benchtests/bench-memset-ifunc.c: New file.
6910         * benchtests/bench-memset.c: New file.
6911         * benchtests/bench-rawmemchr-ifunc.c: New file.
6912         * benchtests/bench-rawmemchr.c: New file.
6913         * benchtests/bench-stpcpy-ifunc.c: New file.
6914         * benchtests/bench-stpcpy.c: New file.
6915         * benchtests/bench-stpncpy-ifunc.c: New file.
6916         * benchtests/bench-stpncpy.c: New file.
6917         * benchtests/bench-strcasecmp-ifunc.c: New file.
6918         * benchtests/bench-strcasecmp.c: New file.
6919         * benchtests/bench-strcasestr-ifunc.c: New file.
6920         * benchtests/bench-strcasestr.c: New file.
6921         * benchtests/bench-strcat-ifunc.c: New file.
6922         * benchtests/bench-strcat.c: New file.
6923         * benchtests/bench-strchr-ifunc.c: New file.
6924         * benchtests/bench-strchr.c: New file.
6925         * benchtests/bench-strchrnul-ifunc.c: New file.
6926         * benchtests/bench-strchrnul.c: New file.
6927         * benchtests/bench-strcmp-ifunc.c: New file.
6928         * benchtests/bench-strcmp.c: New file.
6929         * benchtests/bench-strcpy-ifunc.c: New file.
6930         * benchtests/bench-strcpy.c: New file.
6931         * benchtests/bench-strcspn-ifunc.c: New file.
6932         * benchtests/bench-strcspn.c: New file.
6933         * benchtests/bench-strlen-ifunc.c: New file.
6934         * benchtests/bench-strlen.c: New file.
6935         * benchtests/bench-strncasecmp-ifunc.c: New file.
6936         * benchtests/bench-strncasecmp.c: New file.
6937         * benchtests/bench-strncat-ifunc.c: New file.
6938         * benchtests/bench-strncat.c: New file.
6939         * benchtests/bench-strncmp-ifunc.c: New file.
6940         * benchtests/bench-strncmp.c: New file.
6941         * benchtests/bench-strncpy-ifunc.c: New file.
6942         * benchtests/bench-strncpy.c: New file.
6943         * benchtests/bench-strnlen-ifunc.c: New file.
6944         * benchtests/bench-strnlen.c: New file.
6945         * benchtests/bench-strpbrk-ifunc.c: New file.
6946         * benchtests/bench-strpbrk.c: New file.
6947         * benchtests/bench-strrchr-ifunc.c: New file.
6948         * benchtests/bench-strrchr.c: New file.
6949         * benchtests/bench-strspn-ifunc.c: New file.
6950         * benchtests/bench-strspn.c: New file.
6951         * benchtests/bench-strstr-ifunc.c: New file.
6952         * benchtests/bench-strstr.c: New file.
6953
6954         * benchtests/Makefile: Disable parallel execution of targets.
6955         (string-bench): Add memcpy.
6956         (benchset): New variable to store a list of benchmark sets.
6957         (bench-func): Renamed from bench.
6958         (bench-set): New target.
6959         (bench): Depend on bench-func and bench-set.
6960         * benchtests/README: Add section on benchmark sets.
6961         * benchtests/bench-memcpy-ifunc.c: New file.
6962         * benchtests/bench-memcpy.c: New file.
6963         * benchtests/bench-string.h: New file.
6964
6965 2013-06-11  Andreas Schwab  <schwab@suse.de>
6966
6967         [BZ #15577]
6968         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
6969         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
6970         values in the triple.
6971         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
6972         terminator in the group key.
6973
6974 2013-06-11  Andreas Jaeger  <aj@suse.de>
6975
6976         * po/zh_TW.po: Update Chinese (traditional) translation from
6977         translation project.
6978
6979 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6980
6981         * include/time.h (__clock_gettime): Add libc_hidden_proto.
6982         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
6983         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
6984         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
6985         (clock_getcpuclockid): Likewise.
6986         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
6987         Add weak_alias and libc_hidden_def.
6988         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
6989         * rt/clock_gettime.c (clock_gettime): Rename to
6990         __clock_gettime.  Add weak_alias and libc_hidden_def.
6991         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
6992         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
6993         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
6994         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
6995         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
6996         Likewise.
6997         * rt/clock_settime.c (clock_settime): Rename to
6998         __clock_settime.  Add weak_alias and libc_hidden_def.
6999         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
7000
7001 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
7002
7003         * mach/err_boot.sub: Remove trailing whitespace.
7004         * mach/err_ipc.sub: Likewise.
7005         * mach/err_mach.sub: Likewise.
7006
7007         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
7008         (ROUNDING_TESTS_double): Likewise.
7009         (ROUNDING_TESTS_long_double): Likewise.
7010         (ROUNDING_TESTS): Likewise.
7011         * math/libm-test.inc: Include <math-tests.h>.
7012         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
7013         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
7014         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7015         (IF_ROUND_INIT_FE_UPWARD): Likewise.
7016
7017 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7018
7019         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
7020         of assigning.
7021
7022 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
7023
7024         * sysdeps/gnu/errlist.awk: Do not generate space at end of
7025         otherwise empty TRANS lines.
7026         * sysdeps/gnu/errlist.c: Regenerated.
7027
7028         * catgets/gencat.c (error_print): Use (void) in function
7029         definition.
7030         * crypt/crypt_util.c (__init_des): Likewise.
7031         * crypt/speeds.c (Stop): Likewise.
7032         (main): Likewise.
7033         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
7034         * inet/ruserpass.c (token): Likewise.
7035         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
7036         * intl/localealias.c (extend_alias_table): Likewise.
7037         * intl/plural-exp.c (init_germanic_plural): Likewise.
7038         * libio/fcloseall.c (__fcloseall): Likewise.
7039         * libio/genops.c (_IO_flush_all): Likewise.
7040         (_IO_flush_all_linebuffered): Likewise.
7041         (_IO_cleanup): Likewise.
7042         (_IO_iter_begin): Likewise.
7043         (_IO_iter_end): Likewise.
7044         (_IO_list_lock): Likewise.
7045         (_IO_list_unlock): Likewise.
7046         (_IO_list_resetlock): Likewise.
7047         * libio/getchar.c (getchar): Likewise.
7048         * libio/getchar_u.c (getchar_unlocked): Likewise.
7049         * libio/getwchar.c (getwchar): Likewise.
7050         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7051         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
7052         * login/getpt.c (__getpt): Likewise.
7053         * login/tst-utmp.c (main): Likewise.
7054         * malloc/hooks.c (__malloc_check_init): Likewise.
7055         * malloc/malloc.c (__malloc_stats): Likewise.
7056         * malloc/mtrace.c (tr_break): Likewise.
7057         (mtrace): Likewise.
7058         (muntrace): Likewise.
7059         * misc/fstab.c (endfsent): Likewise.
7060         * misc/getclktck.c (__getclktck): Likewise.
7061         * misc/getdtsz.c (__getdtablesize): Likewise.
7062         * misc/gethostid.c (gethostid): Likewise.
7063         * misc/getpagesize.c (__getpagesize): Likewise.
7064         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
7065         (__get_nprocs): Likewise.
7066         (__get_phys_pages): Likewise.
7067         (__get_avphys_pages): Likewise.
7068         * misc/getttyent.c (getttyent): Likewise.
7069         (setttyent): Likewise.
7070         (endttyent): Likewise.
7071         * misc/getusershell.c (getusershell): Likewise.
7072         (endusershell): Likewise.
7073         (setusershell): Likewise.
7074         (initshells): Likewise.
7075         * misc/hsearch.c (__hdestroy): Likewise.
7076         * misc/sync.c (sync): Likewise.
7077         * misc/syslog.c (closelog_internal): Likewise.
7078         (closelog): Likewise.
7079         * misc/ttyslot.c (ttyslot): Likewise.
7080         * misc/vhangup.c (vhangup): Likewise.
7081         * posix/fork.c (__fork): Likewise.
7082         * posix/getegid.c (__getegid): Likewise.
7083         * posix/geteuid.c (__geteuid): Likewise.
7084         * posix/getgid.c (__getgid): Likewise.
7085         * posix/getpid.c (__getpid): Likewise.
7086         * posix/getppid.c (__getppid): Likewise.
7087         * posix/getuid.c (__getuid): Likewise.
7088         * posix/pause.c (pause): Likewise.
7089         * posix/setpgrp.c (setpgrp): Likewise.
7090         * posix/setsid.c (__setsid): Likewise.
7091         * posix/test-vfork.c (noop): Likewise.
7092         * resolv/gethnamaddr.c (_endhtent): Likewise.
7093         (_gethtent): Likewise.
7094         (ht_endhostent): Likewise.
7095         (gethostent): Likewise.
7096         (dns_service): Likewise.
7097         * stdlib/drand48.c (drand48): Likewise.
7098         * stdlib/lrand48.c (lrand48): Likewise.
7099         * stdlib/mrand48.c (mrand48): Likewise.
7100         * stdlib/rand.c (rand): Likewise.
7101         * stdlib/random.c (__random): Likewise.
7102         * stdlib/setenv.c (clearenv): Likewise.
7103         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
7104         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
7105         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
7106         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
7107         (__get_nprocs): Likewise.
7108         (__get_phys_pages): Likewise.
7109         (__get_avphys_pages): Likewise.
7110         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
7111         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
7112         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
7113         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
7114         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
7115         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
7116         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
7117         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
7118         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
7119         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
7120         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
7121         * sysdeps/mach/hurd/sync.c (sync): Likewise.
7122         * sysdeps/posix/clock.c (clock): Likewise.
7123         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
7124         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
7125         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
7126         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7127         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
7128         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7129         (__get_nprocs_conf): Likewise.
7130         (__get_phys_pages): Likewise.
7131         (__get_avphys_pages): Likewise.
7132         * time/clock.c (clock): Likewise.
7133         * time/tzset.c (__tzname_max): Likewise.
7134
7135 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
7136
7137         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
7138         (__bswap_32): Do not use "register".
7139         * crypt/crypt.c (_ufc_doit_r): Likewise.
7140         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7141         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7142         * gmon/gmon.c (__monstartup): Likewise.
7143         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
7144         * hurd/hurdmalloc.c (more_memory): Likewise.
7145         (malloc): Likewise.
7146         (free): Likewise.
7147         (realloc): Likewise.
7148         (malloc_fork_prepare): Likewise.
7149         (malloc_fork_parent): Likewise.
7150         (malloc_fork_child): Likewise.
7151         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
7152         (_svcauth_des): Likewise.
7153         * inet/inet_lnaof.c (inet_lnaof): Likewise.
7154         * inet/inet_net.c (inet_network): Likewise.
7155         * inet/inet_netof.c (inet_netof): Likewise.
7156         * inet/rcmd.c (__validuser2_sa): Likewise.
7157         * io/fts.c (fts_open): Likewise.
7158         (fts_load): Likewise.
7159         (fts_close): Likewise.
7160         (fts_read): Likewise.
7161         (fts_children): Likewise.
7162         (fts_build): Likewise.
7163         (fts_stat): Likewise.
7164         (fts_sort): Likewise.
7165         (fts_alloc): Likewise.
7166         (fts_lfree): Likewise.
7167         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
7168         (_IO_file_xsgetn): Likewise.
7169         (_IO_file_xsgetn_mmap): Likewise.
7170         * libio/iofopncook.c (_IO_cookie_read): Likewise.
7171         (_IO_cookie_write): Likewise.
7172         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
7173         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
7174         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
7175         * malloc/obstack.c (_obstack_begin): Likewise.
7176         (_obstack_begin_1): Likewise.
7177         (_obstack_newchunk): Likewise.
7178         (_obstack_allocated_p): Likewise.
7179         (obstack_free): Likewise.
7180         (_obstack_memory_used): Likewise.
7181         * misc/getttyent.c (getttynam): Likewise.
7182         (getttyent): Likewise.
7183         (skip): Likewise.
7184         (value): Likewise.
7185         * misc/getusershell.c (initshells): Likewise.
7186         * misc/syslog.c (__vsyslog_chk): Likewise.
7187         * misc/ttyslot.c (ttyslot): Likewise.
7188         * nis/nis_hash.c (__nis_hash): Likewise.
7189         * posix/fnmatch_loop.c (FCT): Likewise.
7190         * posix/getconf.c (print_all): Likewise.
7191         (main): Likewise.
7192         * posix/getopt.c (exchange): Likewise.
7193         * posix/glob.c (globfree): Likewise.
7194         (prefix_array): Likewise.
7195         (__glob_pattern_type): Likewise.
7196         * resolv/arpa/nameser.h (NS_GET16): Likewise.
7197         (NS_GET32): Likewise.
7198         (NS_PUT16): Likewise.
7199         (NS_PUT32): Likewise.
7200         * resolv/gethnamaddr.c (getanswer): Likewise.
7201         (gethostbyname2): Likewise.
7202         (gethostbyaddr): Likewise.
7203         (_gethtent): Likewise.
7204         (_gethtbyname2): Likewise.
7205         (_gethtbyaddr): Likewise.
7206         * resolv/ns_print.c (dst_s_get_int16): Likewise.
7207         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
7208         * resolv/res_init.c (__res_vinit): Likewise.
7209         (net_mask): Likewise.
7210         * resolv/res_mkquery.c (outchar): Likewise.
7211         (PRINT): Likewise.
7212         * stdio-common/printf_fp.c (outchar): Likewise.
7213         (PRINT): Likewise.
7214         * stdio-common/printf_fphex.c (outchar): Likewise.
7215         (PRINT): Likewise.
7216         * stdio-common/printf_size.c (outchar): Likewise.
7217         (PRINT): Likewise.
7218         * stdio-common/test_rdwr.c (main): Likewise.
7219         * stdio-common/tfformat.c (matches): Likewise.
7220         * stdio-common/vfprintf.c (outchar): Likewise.
7221         (printf_unknown): Likewise.
7222         (buffered_vfprintf): Likewise.
7223         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7224         * stdio-common/xbug.c (AppendToBuffer): Likewise.
7225         (ReadFile): Likewise.
7226         * stdlib/qsort.c (SWAP): Likewise.
7227         (_quicksort): Likewise.
7228         * stdlib/setenv.c (__add_to_environ): Likewise.
7229         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7230         * stdlib/strtol_l.c (__strtol_l): Likewise.
7231         * stdlib/tst-strtod.c (main): Likewise.
7232         * stdlib/tst-strtol.c (main): Likewise.
7233         * stdlib/tst-strtoll.c (main): Likewise.
7234         * string/bits/string2.h (__strcmp_cc): Likewise.
7235         (__strcmp_cg): Likewise.
7236         (__strcspn_c1): Likewise.
7237         (__strcspn_c2): Likewise.
7238         (__strcspn_c3): Likewise.
7239         (__strspn_c1): Likewise.
7240         (__strspn_c2): Likewise.
7241         (__strspn_c3): Likewise.
7242         (__strsep_1c): Likewise.
7243         (__strsep_2c): Likewise.
7244         (__strsep_3c): Likewise.
7245         * string/memccpy.c (__memccpy): Likewise.
7246         * string/stpcpy.c (__stpcpy): Likewise.
7247         * string/strcmp.c (strcmp): Likewise.
7248         * string/strrchr.c (strrchr): Likewise.
7249         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
7250         Likewise.
7251         * sysdeps/mach/hurd/getcwd.c
7252         (_hurd_canonicalize_directory_name_internal): Likewise.
7253         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
7254         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
7255         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
7256         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
7257         Likewise, in both definitions.
7258         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
7259         definitions.
7260         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
7261         64] (__bswap_64): Likewise.
7262         * time/test_time.c (main): Likewise.
7263         * time/tzfile.c (__tzfile_read): Likewise.
7264         (__tzfile_compute): Likewise.
7265         * time/tzset.c (__tzset_parse_tz): Likewise.
7266         (tzset_internal): Likewise.
7267         (compute_change): Likewise.
7268         * wcsmbs/wcscat.c (__wcscat): Likewise.
7269         * wcsmbs/wcschr.c (wcschr): Likewise.
7270         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
7271         * wcsmbs/wcscspn.c (wcscspn): Likewise.
7272         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
7273         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
7274         * wcsmbs/wcsspn.c (wcsspn): Likewise.
7275         * wcsmbs/wcsstr.c (wcsstr): Likewise.
7276         * wcsmbs/wmemchr.c (wmemchr): Likewise.
7277         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7278         * wcsmbs/wmemset.c (wmemset): Likewise.
7279
7280 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
7281
7282         * scripts/config.guess: Update to version 2013-05-16.
7283         * scripts/config.sub: Update to version 2013-04-24.
7284         * scripts/install-sh: Update to version 2011-11-20.07.
7285         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
7286         * scripts/move-if-change: Update to version 2012-01-06 07:23.
7287
7288 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
7289
7290         * debug/fgetws_u_chk.c: Fix leading whitespaces.
7291         * elf/sln.c: Likewise.
7292         * hurd/hurd/ioctl.h: Likewise.
7293         * hurd/hurdmalloc.c: Likewise.
7294         * hurd/xattr.c: Likewise.
7295         * include/shlib-compat.h: Likewise.
7296         * inet/ruserpass.c: Likewise.
7297         * libio/iofgets_u.c: Likewise.
7298         * libio/iofgetws_u.c: Likewise.
7299         * locale/programs/ld-identification.c: Likewise.
7300         * locale/programs/ld-time.c: Likewise.
7301         * mach/msg-destroy.c: Likewise.
7302         * nss/nss_files/files-netgrp.c: Likewise.
7303         * resolv/res_data.c: Likewise.
7304         * soft-fp/op-1.h: Likewise.
7305         * soft-fp/op-2.h: Likewise.
7306         * soft-fp/op-4.h: Likewise.
7307         * soft-fp/op-common.h: Likewise.
7308         * stdio-common/printf_fphex.c: Likewise.
7309         * stdlib/strtod_l.c: Likewise.
7310         * sunrpc/rpc/clnt.h: Likewise.
7311         * sysdeps/generic/framestate.c: Likewise.
7312         * sysdeps/i386/bsd-_setjmp.S: Likewise.
7313         * sysdeps/i386/bsd-setjmp.S: Likewise.
7314         * sysdeps/i386/__longjmp.S: Likewise.
7315         * sysdeps/i386/setjmp.S: Likewise.
7316         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7317         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7318         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7319         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7320         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7321         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
7322         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7323         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7324         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7325         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
7326         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
7327         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7328         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7329         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7330         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7331         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7332         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7333         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
7334         * sysdeps/ieee754/support.c: Likewise.
7335         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7336         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
7337         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
7338         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
7339         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
7340         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
7341         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
7342         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
7343         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
7344         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
7345         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
7346         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
7347         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
7348         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
7349         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
7350         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
7351         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
7353
7354 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
7355
7356         * posix/transbug.c: Remove executable mode.
7357
7358 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
7359
7360         * crypt/speeds.c: Remove trailing whitespace.
7361         * dlfcn/default.c: Likewise.
7362         * elf/ifuncdep2.c: Likewise.
7363         * elf/ifuncmain1.c: Likewise.
7364         * elf/ifuncmain1vis.c: Likewise.
7365         * elf/testobj.h: Likewise.
7366         * elf/tst-stackguard1.c: Likewise.
7367         * gmon/sys/gmon.h: Likewise.
7368         * hurd/hurdmsg.c: Likewise.
7369         * hurd/new-fd.c: Likewise.
7370         * hurd/ports-get.c: Likewise.
7371         * iconvdata/ibm1008_420.c: Likewise.
7372         * inet/tst-getni1.c: Likewise.
7373         * inet/tst-getni2.c: Likewise.
7374         * libio/ioungetc.c: Likewise.
7375         * libio/wfiledoalloc.c: Likewise.
7376         * manual/libm-err-tab.pl: Likewise.
7377         * math/w_dremf.c: Likewise.
7378         * misc/ftruncate.c: Likewise.
7379         * posix/bug-glob2.c: Likewise.
7380         * posix/tst-pcre.c: Likewise.
7381         * posix/wait4.c: Likewise.
7382         * resolv/README: Likewise.
7383         * resolv/res_debug.h: Likewise.
7384         * resolv/tst-inet_ntop.c: Likewise.
7385         * setjmp/bug269-setjmp.c: Likewise.
7386         * soft-fp/extended.h: Likewise.
7387         * soft-fp/op-1.h: Likewise.
7388         * soft-fp/op-2.h: Likewise.
7389         * soft-fp/op-4.h: Likewise.
7390         * soft-fp/op-8.h: Likewise.
7391         * soft-fp/testit.c: Likewise.
7392         * stdio-common/bug16.c: Likewise.
7393         * stdlib/random.c: Likewise.
7394         * sunrpc/rpcsvc/rquota.x: Likewise.
7395         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
7396         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7397         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7398         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7399         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7400         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7401         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7402         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7403         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7404         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7405         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7406         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
7407         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7408         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
7409         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7410         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
7411         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
7412         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7413         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
7414         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7415         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7416         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7417         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
7418         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
7419         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
7420         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
7421         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
7422         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7423         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7424         * sysdeps/ieee754/s_lib_version.c: Likewise.
7425         * sysdeps/mach/hurd/check_fds.c: Likewise.
7426         * sysdeps/mach/hurd/getsockname.c: Likewise.
7427         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
7428         * sysdeps/mach/hurd/recvfrom.c: Likewise.
7429         * sysdeps/powerpc/bits/link.h: Likewise.
7430         * sysdeps/powerpc/dl-procinfo.c: Likewise.
7431         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
7432         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
7433         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
7434         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
7435         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7436         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
7437         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
7438         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
7439         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
7440         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
7441         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
7442         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
7443         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
7444         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
7445         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
7446         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
7447         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
7448         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
7449         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
7450         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
7451         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
7452         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
7453         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
7454         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7455         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
7456         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
7457         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
7458         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
7459         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
7460         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
7461         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
7462         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7463         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7464         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
7465         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
7466         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
7467         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
7468         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
7469         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
7470         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
7471         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
7472         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
7473         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
7474         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
7475         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
7476         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
7477         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
7478         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
7479         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
7480         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7481         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7482         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7483         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7484         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
7485         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
7486         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
7487         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
7488         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
7489         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
7490         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
7491         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
7492         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
7493         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
7494         * sysdeps/powerpc/sysdep.h: Likewise.
7495         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
7496         * sysdeps/s390/s390-64/sub_n.S: Likewise.
7497         * sysdeps/sh/dl-trampoline.S: Likewise.
7498         * sysdeps/sh/memset.S: Likewise.
7499         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
7500         * sysdeps/sh/strlen.S: Likewise.
7501         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
7502         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
7503         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
7504         * sysdeps/sparc/sparc32/rem.S: Likewise.
7505         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
7506         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
7507         * sysdeps/sparc/sparc32/strchr.S: Likewise.
7508         * sysdeps/sparc/sparc32/udiv.S: Likewise.
7509         * sysdeps/sparc/sparc32/urem.S: Likewise.
7510         * sysdeps/sparc/sparc64/add_n.S: Likewise.
7511         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7512         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
7513         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
7514         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
7515         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
7516         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
7517         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
7518         * sysdeps/unix/bsd/times.c: Likewise.
7519         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
7520         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
7521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
7522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
7523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
7524         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7525         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
7526         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
7527         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
7528         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
7529         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
7530         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
7531         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
7532         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
7533         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
7534         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7535         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7536         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
7537         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
7538         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
7539         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
7540         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
7541         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
7542         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
7543         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
7544         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7545         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
7546         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
7547         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
7548         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
7549         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
7550         * sysdeps/x86_64/strcspn.S: Likewise.
7551
7552 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7553
7554         * locale/C-translit.h: Revert #include <stdint.h> because this is a
7555         generated file.  Regenerate properly from gen-translit.pl.
7556         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
7557         locale/C-translit.h.
7558
7559 2013-06-05  Andreas Schwab  <schwab@suse.de>
7560
7561         [BZ #15100]
7562         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
7563         week as 6 instead of -1.
7564         * time/tst-strptime.c (day_tests): Add test case.
7565
7566 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7567
7568         * sysdeps/generic/math_private.h
7569         (libc_feholdexcept_setround_53bit): Replace with
7570         libc_feholdsetround_53bit.
7571         (libc_feupdateenv_53bit): Replace with
7572         libc_feresetround_53bit.
7573         (SET_RESTORE_ROUND_53BIT): Adjust.
7574
7575 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
7576
7577         * string/test-strchrnul.c: Add copyright header.
7578
7579         * posix/tst-getaddrinfo4.c: Increase test timeout.
7580
7581 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
7582
7583         [BZ #15536]
7584         * math/libm-test.inc (MAX_EXP): Remove
7585         (MIN_EXP): Define.
7586         (ulp): Use MIN_EXP - MANT_DIG.
7587         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
7588
7589 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
7590
7591         * po/be.po: Revert last change.
7592         * po/zh_CN.po: Likewise.
7593         * po/header.pot: Likewise.
7594
7595 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
7596
7597         * Makefile ($(common-objpfx)linkobj/libc.so): Define
7598         link-libc-deps to empty as target-specific variable.
7599         * Makerules (link-libc-args): New variable.
7600         (libc-for-link): Likewise.
7601         (link-libc-deps): Likewise.
7602         (lib%.so): Depend on $(link-libc-deps).  Link with
7603         $(link-libc-args).
7604         (build-module): Link with $(link-libc-args).
7605         (build-module-asneeded): Likewise.
7606         (build-module-helper-objlist): Filter out $(link-libc-deps) from
7607         list of objects.
7608         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
7609         target-specific variable.
7610         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
7611         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
7612         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
7613         libc.
7614         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
7615         libc and ld.so.
7616         ($(objpfx)libpcprofile.so): Likewise.
7617         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
7618         libc_nonshared.a.
7619         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
7620         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
7621         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
7622         $(link-libc-deps).
7623         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
7624         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
7625         * login/Makefile ($(objpfx)libutil.so): Likewise.
7626         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
7627         * math/Makefile ($(objpfx)libm.so): Likewise.
7628         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
7629         $(objpfx)libnsl.so): Define libc-for-link as target-specific
7630         variable instead of depending directly on libc.
7631         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
7632         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
7633         $(link-libc-deps).
7634         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
7635         libc.
7636         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
7637         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
7638         ($(objpfx)libanl.so): Likewise.
7639         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
7640         ld.so.
7641         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
7642         $(link-libc-deps).
7643         * sysdeps/i386/fpu/Makefile: Remove file.
7644         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
7645         ($(objpfx)libm.so): Remove dependency on ld.so.
7646
7647 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
7648
7649         [BZ # 15553]
7650         * nis/yp_xdr.c (XDRMAXNAME): Define.
7651         (XDRMAXRECORD): Define.
7652         (xdr_domainname): Use XDRMAXNAME.
7653         (xdr_mapname): Likewise.
7654         (xdr_peername): Likewise.
7655         (xdr_keydat): Use XDRMAXRECORD.
7656         (xdr_valdat): Likewise.
7657
7658 2013-05-30  Jeff Law  <law@redhat.com>
7659
7660         [BZ #14256]
7661         * manual/errno.texi (ESTALE): Update to account for more than
7662         just NFS file systems.
7663         * sysdeps/gnu/errlist.c: Regenerated.
7664
7665 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7666
7667         [BZ #15465]
7668         * elf/Makefile (tests): Add tst-null-argv.
7669         (modules-names):  Add tst-null-argv-lib.
7670         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
7671         (tst-null-argv-ENV): Set environment for tst-null-argv.
7672         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
7673         (RTLD_PROGNAME): New macro.
7674         * elf/tst-null-argv.c: New test case.
7675         * elf/tst-null-argv-lib.c: Library for test case.
7676         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
7677         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
7678         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
7679         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
7680         * elf/dl-init.c (call_init): Likewise.
7681         (_dl_init): Likewise.
7682         * elf/dl-load.c (print_search_path): Likewise.
7683         (_dl_map_object): Likewise.
7684         * elf/dl-lookup.c (do_lookup_x): Likewise.
7685         (add_dependency): Likewise.
7686         (_dl_lookup_symbol_x): Likewise.
7687         (_dl_debug_bindings): Likewise.
7688         * elf/dl-open.c (_dl_show_scope): Likewise.
7689         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7690         * elf/dl-version.c (match_symbol): Likewise.
7691         (_dl_check_map_versions): Likewise.
7692         * elf/rtld.c (dl_main): Likewise.
7693         (print_unresolved): Use RTLD_PROGNAME.
7694         (print_missing_version): Likewise.
7695         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
7696         (elf_machine_rela): Likewise.
7697         * sysdeps/powerpc/powerpc32/dl-machine.c
7698         (__process_machine_rela): Likewise.
7699         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7700         Likewise.
7701         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
7702         Likewise.
7703         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
7704         Likewise.
7705         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7706         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
7707         Likewise.
7708         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
7709         Likewise.
7710         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7711
7712 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
7713
7714         * po/be.po: Add descriptive title.
7715         * po/zh_CN.po: Likewise.
7716         * po/header.pot: Likewise.
7717
7718 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
7719
7720         * locale/programs/locarchive.c (create_archive): Inlucde fname in
7721         error message.
7722         (enlarge_archive): Likewise.
7723
7724 2013-05-28  Ben North  <ben@redfrontdoor.org>
7725
7726         * manual/arith.texi (frexp): It is the magnitude of the return
7727         value which lies in [0.5, 1), not the return value itself.
7728
7729 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7730
7731         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7732
7733 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
7734
7735         * stdio-common/bug26.c (main): Correct fscanf template.
7736
7737         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
7738         declare _dl_skip_args.
7739
7740         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
7741         Don't declare.
7742
7743         * manual/platform.texi: Add missing @end deftypefun.
7744
7745 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
7746
7747         [BZ #15529]
7748         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
7749         bit of mantissa of 2^16382.
7750         * math/libm-test.inc (hypot_test_data): Add more tests.
7751
7752         * math/libm-test.inc: Add drem and pow10 to list of tested
7753         functions.
7754         (pow10_test): New function.
7755         (drem_test): Likewise.
7756         (drem_test_tonearest): Likewise.
7757         (drem_test_towardzero): Likewise.
7758         (drem_test_downward): Likewise.
7759         (drem_test_upward): Likewise.
7760         (main): Call the new functions.
7761
7762         * math/libm-test.inc (finite_test_data): Remove.
7763         (finite_test): Run tests from isfinite_test_data.
7764         (gamma_test_data): Remove.
7765         (gamma_test): Run tests from lgamma_test_data.
7766         * sysdeps/i386/fpu/libm-test-ulps: Update.
7767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7768
7769 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7770
7771         * manual/platform.texi: Add PowerPC PPR function set documentation.
7772         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
7773         implementation.
7774
7775 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
7776
7777         * math/libm-test.inc (MAX_EXP): Define.
7778         (ULPDIFF): Define.
7779         (ulp): New function.
7780         (check_float_internal): Use ULPDIFF.
7781         (cpow_test): Disable failing test.
7782         (check_ulp): Test ulp() implemetnation.
7783         (main): Call check_ulp before starting tests.
7784
7785 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
7786
7787         * math/gen-libm-test.pl (generate_testfile): Do not handle
7788         START_DATA and END_DATA.
7789         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
7790         END_DATA.
7791         (acos_tonearest_test_data): Likewise.
7792         (acos_towardzero_test_data): Likewise.
7793         (acos_downward_test_data): Likewise.
7794         (acos_upward_test_data): Likewise.
7795         (acosh_test_data): Likewise.
7796         (asin_test_data): Likewise.
7797         (asin_tonearest_test_data): Likewise.
7798         (asin_towardzero_test_data): Likewise.
7799         (asin_downward_test_data): Likewise.
7800         (asin_upward_test_data): Likewise.
7801         (asinh_test_data): Likewise.
7802         (atan_test_data): Likewise.
7803         (atanh_test_data): Likewise.
7804         (atan2_test_data): Likewise.
7805         (cabs_test_data): Likewise.
7806         (cacos_test_data): Likewise.
7807         (cacosh_test_data): Likewise.
7808         (carg_test_data): Likewise.
7809         (casin_test_data): Likewise.
7810         (casinh_test_data): Likewise.
7811         (catan_test_data): Likewise.
7812         (catanh_test_data): Likewise.
7813         (cbrt_test_data): Likewise.
7814         (ccos_test_data): Likewise.
7815         (ccosh_test_data): Likewise.
7816         (ceil_test_data): Likewise.
7817         (cexp_test_data): Likewise.
7818         (cimag_test_data): Likewise.
7819         (clog_test_data): Likewise.
7820         (clog10_test_data): Likewise.
7821         (conj_test_data): Likewise.
7822         (copysign_test_data): Likewise.
7823         (cos_test_data): Likewise.
7824         (cos_tonearest_test_data): Likewise.
7825         (cos_towardzero_test_data): Likewise.
7826         (cos_downward_test_data): Likewise.
7827         (cos_upward_test_data): Likewise.
7828         (cosh_test_data): Likewise.
7829         (cosh_tonearest_test_data): Likewise.
7830         (cosh_towardzero_test_data): Likewise.
7831         (cosh_downward_test_data): Likewise.
7832         (cosh_upward_test_data): Likewise.
7833         (cpow_test_data): Likewise.
7834         (cproj_test_data): Likewise.
7835         (creal_test_data): Likewise.
7836         (csin_test_data): Likewise.
7837         (csinh_test_data): Likewise.
7838         (csqrt_test_data): Likewise.
7839         (ctan_test_data): Likewise.
7840         (ctan_tonearest_test_data): Likewise.
7841         (ctan_towardzero_test_data): Likewise.
7842         (ctan_downward_test_data): Likewise.
7843         (ctan_upward_test_data): Likewise.
7844         (ctanh_test_data): Likewise.
7845         (ctanh_tonearest_test_data): Likewise.
7846         (ctanh_towardzero_test_data): Likewise.
7847         (ctanh_downward_test_data): Likewise.
7848         (ctanh_upward_test_data): Likewise.
7849         (erf_test_data): Likewise.
7850         (erfc_test_data): Likewise.
7851         (exp_test_data): Likewise.
7852         (exp_tonearest_test_data): Likewise.
7853         (exp_towardzero_test_data): Likewise.
7854         (exp_downward_test_data): Likewise.
7855         (exp_upward_test_data): Likewise.
7856         (exp10_test_data): Likewise.
7857         (exp2_test_data): Likewise.
7858         (expm1_test_data): Likewise.
7859         (fabs_test_data): Likewise.
7860         (fdim_test_data): Likewise.
7861         (finite_test_data): Likewise.
7862         (floor_test_data): Likewise.
7863         (fma_test_data): Likewise.
7864         (fma_towardzero_test_data): Likewise.
7865         (fma_downward_test_data): Likewise.
7866         (fma_upward_test_data): Likewise.
7867         (fmax_test_data): Likewise.
7868         (fmin_test_data): Likewise.
7869         (fmod_test_data): Likewise.
7870         (fpclassify_test_data): Likewise.
7871         (frexp_test_data): Likewise.
7872         (gamma_test_data): Likewise.
7873         (hypot_test_data): Likewise.
7874         (ilogb_test_data): Likewise.
7875         (isfinite_test_data): Likewise.
7876         (isgreater_test_data): Likewise.
7877         (isgreaterequal_test_data): Likewise.
7878         (isinf_test_data): Likewise.
7879         (isless_test_data): Likewise.
7880         (islessequal_test_data): Likewise.
7881         (islessgreater_test_data): Likewise.
7882         (isnan_test_data): Likewise.
7883         (isnormal_test_data): Likewise.
7884         (issignaling_test_data): Likewise.
7885         (isunordered_test_data): Likewise.
7886         (j0_test_data): Likewise.
7887         (j1_test_data): Likewise.
7888         (jn_test_data): Likewise.
7889         (ldexp_test_data): Likewise.
7890         (lgamma_test_data): Likewise.
7891         (lrint_test_data): Likewise.
7892         (lrint_tonearest_test_data): Likewise.
7893         (lrint_towardzero_test_data): Likewise.
7894         (lrint_downward_test_data): Likewise.
7895         (lrint_upward_test_data): Likewise.
7896         (llrint_test_data): Likewise.
7897         (llrint_tonearest_test_data): Likewise.
7898         (llrint_towardzero_test_data): Likewise.
7899         (llrint_downward_test_data): Likewise.
7900         (llrint_upward_test_data): Likewise.
7901         (log_test_data): Likewise.
7902         (log10_test_data): Likewise.
7903         (log1p_test_data): Likewise.
7904         (log2_test_data): Likewise.
7905         (logb_test_data): Likewise.
7906         (logb_downward_test_data): Likewise.
7907         (lround_test_data): Likewise.
7908         (llround_test_data): Likewise.
7909         (modf_test_data): Likewise.
7910         (nearbyint_test_data): Likewise.
7911         (nextafter_test_data): Likewise.
7912         (nexttoward_test_data): Likewise.
7913         (pow_test_data): Likewise.
7914         (pow_tonearest_test_data): Likewise.
7915         (pow_towardzero_test_data): Likewise.
7916         (pow_downward_test_data): Likewise.
7917         (pow_upward_test_data): Likewise.
7918         (remainder_test_data): Likewise.
7919         (remainder_tonearest_test_data): Likewise.
7920         (remainder_towardzero_test_data): Likewise.
7921         (remainder_downward_test_data): Likewise.
7922         (remainder_upward_test_data): Likewise.
7923         (remquo_test_data): Likewise.
7924         (rint_test_data): Likewise.
7925         (rint_tonearest_test_data): Likewise.
7926         (rint_towardzero_test_data): Likewise.
7927         (rint_downward_test_data): Likewise.
7928         (rint_upward_test_data): Likewise.
7929         (round_test_data): Likewise.
7930         (scalb_test_data): Likewise.
7931         (scalbn_test_data): Likewise.
7932         (scalbln_test_data): Likewise.
7933         (signbit_test_data): Likewise.
7934         (sin_test_data): Likewise.
7935         (sin_tonearest_test_data): Likewise.
7936         (sin_towardzero_test_data): Likewise.
7937         (sin_downward_test_data): Likewise.
7938         (sin_upward_test_data): Likewise.
7939         (sincos_test_data): Likewise.
7940         (sinh_test_data): Likewise.
7941         (sinh_tonearest_test_data): Likewise.
7942         (sinh_towardzero_test_data): Likewise.
7943         (sinh_downward_test_data): Likewise.
7944         (sinh_upward_test_data): Likewise.
7945         (sqrt_test_data): Likewise.
7946         (tan_test_data): Likewise.
7947         (tan_tonearest_test_data): Likewise.
7948         (tan_towardzero_test_data): Likewise.
7949         (tan_downward_test_data): Likewise.
7950         (tan_upward_test_data): Likewise.
7951         (tanh_test_data): Likewise.
7952         (tgamma_test_data): Likewise.
7953         (trunc_test_data): Likewise.
7954         (y0_test_data): Likewise.
7955         (y1_test_data): Likewise.
7956         (yn_test_data): Likewise.
7957         (significand_test_data): Likewise.
7958
7959         * math/gen-libm-test.pl (@functions): Remove variable.
7960         (generate_testfile): Don't handle START and END lines.
7961         * math/libm-test.inc (START): New macro.
7962         (END): Likewise.
7963         (END_COMPLEX): Likewise.
7964         (acos_test): Use END macro without arguments.
7965         (acos_test_tonearest): Likewise.
7966         (acos_test_towardzero): Likewise.
7967         (acos_test_downward): Likewise.
7968         (acos_test_upward): Likewise.
7969         (acosh_test): Likewise.
7970         (asin_test): Likewise.
7971         (asin_test_tonearest): Likewise.
7972         (asin_test_towardzero): Likewise.
7973         (asin_test_downward): Likewise.
7974         (asin_test_upward): Likewise.
7975         (asinh_test): Likewise.
7976         (atan_test): Likewise.
7977         (atanh_test): Likewise.
7978         (atan2_test): Likewise.
7979         (cabs_test): Likewise.
7980         (cacos_test): Use END_COMPLEX macro without arguments.
7981         (cacosh_test): Likewise.
7982         (carg_test): Use END macro without arguments.
7983         (casin_test): Use END_COMPLEX macro without arguments.
7984         (casinh_test): Likewise.
7985         (catan_test): Likewise.
7986         (catanh_test): Likewise.
7987         (cbrt_test): Use END macro without arguments.
7988         (ccos_test): Use END_COMPLEX macro without arguments.
7989         (ccosh_test): Likewise.
7990         (ceil_test): Use END macro without arguments.
7991         (cexp_test): Use END_COMPLEX macro without arguments.
7992         (cimag_test): Use END macro without arguments.
7993         (clog_test): Use END_COMPLEX macro without arguments.
7994         (clog10_test): Likewise.
7995         (conj_test): Likewise.
7996         (copysign_test): Use END macro without arguments.
7997         (cos_test): Likewise.
7998         (cos_test_tonearest): Likewise.
7999         (cos_test_towardzero): Likewise.
8000         (cos_test_downward): Likewise.
8001         (cos_test_upward): Likewise.
8002         (cosh_test): Likewise.
8003         (cosh_test_tonearest): Likewise.
8004         (cosh_test_towardzero): Likewise.
8005         (cosh_test_downward): Likewise.
8006         (cosh_test_upward): Likewise.
8007         (cpow_test): Use END_COMPLEX macro without arguments.
8008         (cproj_test): Likewise.
8009         (creal_test): Use END macro without arguments.
8010         (csin_test): Use END_COMPLEX macro without arguments.
8011         (csinh_test): Likewise.
8012         (csqrt_test): Likewise.
8013         (ctan_test): Likewise.
8014         (ctan_test_tonearest): Likewise.
8015         (ctan_test_towardzero): Likewise.
8016         (ctan_test_downward): Likewise.
8017         (ctan_test_upward): Likewise.
8018         (ctanh_test): Likewise.
8019         (ctanh_test_tonearest): Likewise.
8020         (ctanh_test_towardzero): Likewise.
8021         (ctanh_test_downward): Likewise.
8022         (ctanh_test_upward): Likewise.
8023         (erf_test): Use END macro without arguments.
8024         (erfc_test): Likewise.
8025         (exp_test): Likewise.
8026         (exp_test_tonearest): Likewise.
8027         (exp_test_towardzero): Likewise.
8028         (exp_test_downward): Likewise.
8029         (exp_test_upward): Likewise.
8030         (exp10_test): Likewise.
8031         (exp2_test): Likewise.
8032         (expm1_test): Likewise.
8033         (fabs_test): Likewise.
8034         (fdim_test): Likewise.
8035         (finite_test): Likewise.
8036         (floor_test): Likewise.
8037         (fma_test): Likewise.
8038         (fma_test_towardzero): Likewise.
8039         (fma_test_downward): Likewise.
8040         (fma_test_upward): Likewise.
8041         (fmax_test): Likewise.
8042         (fmin_test): Likewise.
8043         (fmod_test): Likewise.
8044         (fpclassify_test): Likewise.
8045         (frexp_test): Likewise.
8046         (gamma_test): Likewise.
8047         (hypot_test): Likewise.
8048         (ilogb_test): Likewise.
8049         (isfinite_test): Likewise.
8050         (isgreater_test): Likewise.
8051         (isgreaterequal_test): Likewise.
8052         (isinf_test): Likewise.
8053         (isless_test): Likewise.
8054         (islessequal_test): Likewise.
8055         (islessgreater_test): Likewise.
8056         (isnan_test): Likewise.
8057         (isnormal_test): Likewise.
8058         (issignaling_test): Likewise.
8059         (isunordered_test): Likewise.
8060         (j0_test): Likewise.
8061         (j1_test): Likewise.
8062         (jn_test): Likewise.
8063         (ldexp_test): Likewise.
8064         (lgamma_test): Likewise.
8065         (lrint_test): Likewise.
8066         (lrint_test_tonearest): Likewise.
8067         (lrint_test_towardzero): Likewise.
8068         (lrint_test_downward): Likewise.
8069         (lrint_test_upward): Likewise.
8070         (llrint_test): Likewise.
8071         (llrint_test_tonearest): Likewise.
8072         (llrint_test_towardzero): Likewise.
8073         (llrint_test_downward): Likewise.
8074         (llrint_test_upward): Likewise.
8075         (log_test): Likewise.
8076         (log10_test): Likewise.
8077         (log1p_test): Likewise.
8078         (log2_test): Likewise.
8079         (logb_test): Likewise.
8080         (logb_test_downward): Likewise.
8081         (lround_test): Likewise.
8082         (llround_test): Likewise.
8083         (modf_test): Likewise.
8084         (nearbyint_test): Likewise.
8085         (nextafter_test): Likewise.
8086         (nexttoward_test): Likewise.
8087         (pow_test): Likewise.
8088         (pow_test_tonearest): Likewise.
8089         (pow_test_towardzero): Likewise.
8090         (pow_test_downward): Likewise.
8091         (pow_test_upward): Likewise.
8092         (remainder_test): Likewise.
8093         (remainder_test_tonearest): Likewise.
8094         (remainder_test_towardzero): Likewise.
8095         (remainder_test_downward): Likewise.
8096         (remainder_test_upward): Likewise.
8097         (remquo_test): Likewise.
8098         (rint_test): Likewise.
8099         (rint_test_tonearest): Likewise.
8100         (rint_test_towardzero): Likewise.
8101         (rint_test_downward): Likewise.
8102         (rint_test_upward): Likewise.
8103         (round_test): Likewise.
8104         (scalb_test): Likewise.
8105         (scalbn_test): Likewise.
8106         (scalbln_test): Likewise.
8107         (signbit_test): Likewise.
8108         (sin_test): Likewise.
8109         (sin_test_tonearest): Likewise.
8110         (sin_test_towardzero): Likewise.
8111         (sin_test_downward): Likewise.
8112         (sin_test_upward): Likewise.
8113         (sincos_test): Likewise.
8114         (sinh_test): Likewise.
8115         (sinh_test_tonearest): Likewise.
8116         (sinh_test_towardzero): Likewise.
8117         (sinh_test_downward): Likewise.
8118         (sinh_test_upward): Likewise.
8119         (sqrt_test): Likewise.
8120         (tan_test): Likewise.
8121         (tan_test_tonearest): Likewise.
8122         (tan_test_towardzero): Likewise.
8123         (tan_test_downward): Likewise.
8124         (tan_test_upward): Likewise.
8125         (tanh_test): Likewise.
8126         (tgamma_test): Likewise.
8127         (trunc_test): Likewise.
8128         (y0_test): Likewise.
8129         (y1_test): Likewise.
8130         (yn_test): Likewise.
8131         (significand_test): Likewise.
8132
8133 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
8134
8135         [BZ #15381]
8136         * libio/genops.c (_IO_no_init): Initialize wide struct info.
8137
8138 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8139
8140         [BZ #14894]
8141         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
8142         __ppc_mdoio and __ppc_mdoom.
8143         * manual/platform.texi: Document new functions __ppc_yield,
8144         __ppc_mdoio and __ppc_mdoom.
8145
8146 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
8147
8148         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
8149         (main): Mention "tls" pseudo-hwcap is legacy.
8150         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
8151
8152 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8153
8154         * math/gen-libm-test.pl (parse_args): Output only string of
8155         arguments as text for test name, not full call or descriptions of
8156         tests for extra outputs.
8157         (generate_testfile): Do not pass function name to parse_args.
8158         Generate this_func variable from START.
8159         * math/libm-test.inc (struct test_f_f_data): Rename test_name
8160         field to arg_str.
8161         (struct test_ff_f_data): Likewise.
8162         (test_ff_f_data_nexttoward): Likewise.
8163         (struct test_fi_f_data): Likewise.
8164         (struct test_fl_f_data): Likewise.
8165         (struct test_if_f_data): Likewise.
8166         (struct test_fff_f_data): Likewise.
8167         (struct test_c_f_data): Likewise.
8168         (struct test_f_f1_data): Likewise.  Remove field extra_name.
8169         (struct test_fF_f1_data): Likewise.
8170         (struct test_ffI_f1_data): Likewise.
8171         (struct test_c_c_data): Rename test_name field to arg_str.
8172         (struct test_cc_c_data): Likewise.
8173         (struct test_f_i_data): Likewise.
8174         (struct test_ff_i_data): Likewise.
8175         (struct test_f_l_data): Likewise.
8176         (struct test_f_L_data): Likewise.
8177         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
8178         and extra2_name.
8179         (COMMON_TEST_SETUP): New macro.
8180         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
8181         (COMMON_TEST_CLEANUP): Likewise.
8182         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
8183         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
8184         macros.
8185         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
8186         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
8187         macros.
8188         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
8189         (RUN_TEST_fff_f): Take argument string.  Call new setup and
8190         cleanup macros.
8191         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
8192         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
8193         macros.
8194         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
8195         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
8196         macros.
8197         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8198         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
8199         cleanup macros.
8200         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8201         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
8202         cleanup macros.
8203         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8204         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
8205         cleanup macros.
8206         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8207         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
8208         macros.
8209         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
8210         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
8211         macros.
8212         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
8213         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
8214         macros.
8215         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
8216         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
8217         cleanup macros.
8218         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
8219         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
8220         cleanup macros.
8221         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
8222         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
8223         macros.
8224         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
8225         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
8226         cleanup macros.
8227         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
8228         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
8229         macros.
8230         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
8231         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
8232         macros.
8233         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
8234         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
8235         cleanup macros.
8236         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
8237
8238 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
8239
8240         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
8241         to _sifields.sigfault.
8242         (si_addr_lsb): Define new macro.
8243         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
8244         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8245         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
8246
8247 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
8248
8249         [BZ #15441]
8250         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
8251         returns -1.
8252         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
8253         null return -1.
8254         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
8255         loading the domain.
8256
8257 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8258
8259         * math/gen-libm-test.pl (parse_args): Do not include expected
8260         result in test name.
8261         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
8262         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8263         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8264         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8265         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8267
8268 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8269
8270         * benchtests/Makefile: Sort function entries.
8271
8272         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
8273         tanh, asinh, acosh, atanh.
8274         * benchtests/acos-inputs: New file.
8275         * benchtests/acosh-inputs: New file.
8276         * benchtests/asin-inputs: New file.
8277         * benchtests/asinh-inputs: New file.
8278         * benchtests/atanh-inputs: New file.
8279         * benchtests/cosh-inputs: New file.
8280         * benchtests/log-inputs: New file.
8281         * benchtests/sinh-inputs: New file.
8282         * benchtests/tanh-inputs: New file.
8283
8284 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
8285
8286         [BZ #15339]
8287         * posix/tst-getaddrinfo4.c: New test.
8288         * posix/Makefile (tests): Add it.
8289
8290 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8291
8292         [BZ #15339]
8293         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
8294         when no services were used.
8295         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
8296         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
8297
8298 2013-05-21  Andreas Schwab  <schwab@suse.de>
8299
8300         [BZ #15014]
8301         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
8302         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
8303         successful.
8304         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
8305         redundant variable declarations and reallocation of buffer when
8306         parsing as IPv6 address.  Always set NSS status when called from
8307         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
8308         buffer too small.  Correct computation of needed size.
8309         * nss/Makefile (tests): Add test-digits-dots.
8310         * nss/test-digits-dots.c: New test.
8311
8312 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8313
8314         * benchtests/Makefile: Remove instructions for adding
8315         benchmark tests.
8316         * benchtests/README: New file to explain how to execute and
8317         enhance the benchmark tests.
8318
8319 2013-05-21  Andreas Schwab  <schwab@suse.de>
8320
8321         [BZ #15493]
8322         * setjmp/Makefile (tests): Add tst-sigsetjmp.
8323         * setjmp/tst-sigsetjmp.c: New test.
8324
8325 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8326
8327         * sysdeps/x86_64/memset.S (memset): New implementation.
8328         (__bzero): Likewise.
8329         (__memset_tail): New function.
8330
8331 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8332
8333         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
8334         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
8335         __memcpy_sse2_unaligned ifunc selection.
8336         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
8337         Add memcpy-sse2-unaligned.S.
8338         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8339         Add: __memcpy_sse2_unaligned.
8340
8341 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
8342
8343         [BZ #15490]
8344         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
8345         math_force_eval before restoring floating-point envrionment.
8346         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
8347         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
8348         Likewise.
8349         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
8350         <math_private.h>.
8351         (__nearbyintl): Use math_force_eval before restoring
8352         floating-point environment.
8353         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
8354
8355         * math/gen-libm-test.pl (special_functions): Remove.
8356         (parse_args): Don't handle TEST_extra.  Handle functions with no
8357         return value.
8358         * math/libm-test.inc (struct test_sincos_data): Replace with
8359         struct test_fFF_11_data.
8360         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
8361         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
8362         (sincos_test_data): Change element type to struct
8363         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
8364         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
8365         RUN_TEST_LOOP_sincos.
8366         * math/README.libm-test: Don't mention special handling of
8367         individual functions.
8368         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
8369         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8370         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8371         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8372         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8373         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8374
8375         * math/gen-libm-test.pl (get_variable): Remove function.
8376         (parse_args): Don't show pointer parameters to call in test
8377         names.  Use "extra output N" in test names for extra outputs
8378         rather than naming variables.
8379
8380 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
8381
8382         [BZ #15488]
8383         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
8384         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
8385         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
8386         double tests.
8387         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
8388         disable.
8389         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
8390         check_long_double.
8391
8392         * math/gen-libm-test.pl (@tests): Remove variable.
8393         ($count): Likewise.
8394         (new_test): Remove function.
8395         (show_exceptions): New function.
8396         (special_functions): Use show_exceptions instead of new_test.
8397         (parse_args): Likewise.
8398         (generate_testfile): Pass only function name in generated call to
8399         print_max_error or print_complex_max_error.
8400         (get_ulps): Do not handle complex tests specially.
8401         (output_test): Rename to ...
8402         (get_all_ulps_for_test): ... this.  Return a string rather than
8403         printing to a file.  Require ulps to be present.
8404         (output_ulps): Generate arrays rather than #defines.
8405         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
8406         (struct ulp_data): New type.
8407         (BUILD_COMPLEX_ULP): Remove macro.
8408         (compare_ulp_data): New function.
8409         (find_ulps): Likewise.
8410         (find_test_ulps): Likewise.
8411         (find_function_ulps): Likewise.
8412         (find_complex_function_ulps): Likewise.
8413         (print_max_error): Determine allowed ulps using
8414         find_function_ulps.
8415         (print_complex_max_error): Determine allowed ulps using
8416         find_complex_function_ulps.
8417         (check_float_internal): Determine max ulps using find_test_ulps.
8418         (check_float): Do not take max_ulp parameter.  Update call to
8419         check_float_internal.
8420         (check_complex): Likewise.
8421         (check_int): Do not take max_ulp parameter.
8422         (check_long): Likewise.
8423         (check_bool): Likewise.
8424         (check_longlong): Likewise.
8425         (struct test_f_f_data): Remove max_ulp field.
8426         (struct test_ff_f_data): Likewise.
8427         (struct test_ff_f_data_nexttoward): Likewise.
8428         (struct test_fi_f_data): Likewise.
8429         (struct test_fl_f_data): Likewise.
8430         (struct test_if_f_data): Likewise.
8431         (struct test_fff_f_data): Likewise.
8432         (struct test_c_f_data): Likewise.
8433         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
8434         (struct test_fF_f1_data): Likewise.
8435         (struct test_ffI_f1_data): Likewise.
8436         (struct test_c_c_data): Remove max_ulp field.
8437         (struct test_cc_c_data): Likewise.
8438         (struct test_f_i_data): Likewise.
8439         (struct test_ff_i_data): Likewise.
8440         (struct test_f_l_data): Likewise.
8441         (struct test_f_L_data): Likewise.
8442         (struct test_sincos_data): Likewise.
8443         (RUN_TEST_f_f): Do not handle ulps.
8444         (RUN_TEST_LOOP_f_f): Likewise.
8445         (RUN_TEST_2_f): Likewise.
8446         (RUN_TEST_LOOP_2_f): Likewise.
8447         (RUN_TEST_fff_f): Likewise.
8448         (RUN_TEST_LOOP_fff_f): Likewise.
8449         (RUN_TEST_c_f): Likewise.
8450         (RUN_TEST_LOOP_c_f): Likewise.
8451         (RUN_TEST_f_f1): Likewise.
8452         (RUN_TEST_LOOP_f_f1): Likewise.
8453         (RUN_TEST_fF_f1): Likewise.
8454         (RUN_TEST_LOOP_fF_f1): Likewise.
8455         (RUN_TEST_fI_f1): Likewise.
8456         (RUN_TEST_LOOP_fI_f1): Likewise.
8457         (RUN_TEST_ffI_f1): Likewise.
8458         (RUN_TEST_LOOP_ffI_f1): Likewise.
8459         (RUN_TEST_c_c): Likewise.
8460         (RUN_TEST_LOOP_c_c): Likewise.
8461         (RUN_TEST_cc_c): Likewise.
8462         (RUN_TEST_LOOP_cc_c): Likewise.
8463         (RUN_TEST_f_i): Likewise.
8464         (RUN_TEST_LOOP_f_i): Likewise.
8465         (RUN_TEST_f_i_tg): Likewise.
8466         (RUN_TEST_LOOP_f_i_tg): Likewise.
8467         (RUN_TEST_ff_i_tg): Likewise.
8468         (RUN_TEST_LOOP_ff_i_tg): Likewise.
8469         (RUN_TEST_f_b): Likewise.
8470         (RUN_TEST_LOOP_f_b): Likewise.
8471         (RUN_TEST_f_b_tg): Likewise.
8472         (RUN_TEST_LOOP_f_b_tg): Likewise.
8473         (RUN_TEST_f_l): Likewise.
8474         (RUN_TEST_LOOP_f_l): Likewise.
8475         (RUN_TEST_f_L): Likewise.
8476         (RUN_TEST_LOOP_f_L): Likewise.
8477         (RUN_TEST_sincos): Likewise.
8478         (RUN_TEST_LOOP_sincos): Likewise.
8479
8480 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
8481
8482         [BZ #15480]
8483         [BZ #15485]
8484         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
8485         main case of finite arguments, set rounding mode to FE_TONEAREST
8486         and discard exceptions.
8487         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
8488         exceptions.
8489         (remainder_tonearest_test_data): New variable.
8490         (remainder_test_tonearest): New function.
8491         (remainder_towardzero_test_data): New variable.
8492         (remainder_test_towardzero): New function.
8493         (remainder_downward_test_data): New variable.
8494         (remainder_test_downward): New function.
8495         (remainder_upward_test_data): New variable.
8496         (remainder_test_upward): New function.
8497         (main): Call the new test functions.
8498
8499         * math/libm-test.inc (struct test_f_f1_data): Remove field
8500         extra_init.
8501         (struct test_fF_f1_data): Likewise.
8502         (struct test_ffI_f1_data): Likewise.
8503         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
8504         based on value of EXTRA_EXPECTED.
8505         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8506         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
8507         EXTRA_VAR based on value of EXTRA_EXPECTED.
8508         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8509         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
8510         EXTRA_VAR based on value of EXTRA_EXPECTED.
8511         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8512         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
8513         EXTRA_VAR based on value of EXTRA_EXPECTED.
8514         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8515         * math/gen-libm-test.pl (parse_args): Don't output initializers
8516         for extra output values.
8517
8518         * math/libm-test.inc (check_int): Expect result to be exactly
8519         equal to expected value and do not handle ulps.
8520         (check_long): Likewise.
8521         (check_longlong): Likewise.
8522
8523         * math/libm-test.inc (ceil_test_data): Test for "inexact"
8524         exceptions.
8525         (cimag_test_data): Likewise.
8526         (conj_test_data): Likewise.
8527         (copysign_test_data): Likewise.
8528         (cproj_test_data): Likewise.
8529         (creal_test_data): Likewise.
8530         (fabs_test_data): Likewise.
8531         (fdim_test_data): Likewise.
8532         (finite_test_data): Likewise.
8533         (floor_test_data): Likewise.
8534         (fmax_test_data): Likewise.
8535         (fmin_test_data): Likewise.
8536         (fmod_test_data): Likewise.
8537         (fpclassify_test_data): Likewise.
8538         (frexp_test_data): Likewise.
8539         (ilogb_test_data): Likewise.
8540         (isfinite_test_data): Likewise.
8541         (isgreater_test_data): Likewise.
8542         (isgreaterequal_test_data): Likewise.
8543         (isinf_test_data): Likewise.
8544         (isless_test_data): Likewise.
8545         (islessequal_test_data): Likewise.
8546         (islessgreater_test_data): Likewise.
8547         (isnan_test_data): Likewise.
8548         (isnormal_test_data): Likewise.
8549         (issignaling_test_data): Likewise.
8550         (isunordered_test_data): Likewise.
8551         (ldexp_test_data): Likewise.
8552         (lrint_test_data): Likewise.
8553         (lrint_test_data) [TEST_FLOAT]: Disable one test.
8554         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
8555         (lrint_tonearest_test_data): Test for "inexact" exceptions.
8556         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
8557         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
8558         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
8559         test input.
8560         (lrint_towardzero_test_data): Test for "inexact" exceptions.
8561         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
8562         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
8563         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
8564         that test input.
8565         (lrint_downward_test_data): Test for "inexact" exceptions.
8566         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
8567         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
8568         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
8569         test input.
8570         (lrint_upward_test_data): Test for "inexact" exceptions.
8571         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
8572         test input.
8573         (llrint_test_data): Test for "inexact" exceptions.
8574         (llrint_test_data) [TEST_FLOAT]: Disable one test.
8575         (llrint_tonearest_test_data): Test for "inexact" exceptions.
8576         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
8577         (llrint_towardzero_test_data): Test for "inexact" exceptions.
8578         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
8579         (llrint_downward_test_data): Test for "inexact" exceptions.
8580         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
8581         (llrint_upward_test_data): Test for "inexact" exceptions.
8582         (logb_test_data): Likewise.
8583         (logb_downward_test_data): Likewise.
8584         (nextafter_test_data): Likewise.
8585         (nexttoward_test_data): Likewise.
8586         (remainder_test_data): Likewise.
8587         (remquo_test_data): Likewise.
8588         (scalbn_test_data): Likewise.
8589         (scalbln_test_data): Likewise.
8590         (signbit_test_data): Likewise.
8591         (sqrt_test_data): Likewise.
8592         (significand_test_data): Likewise.
8593
8594 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
8595
8596         [BZ #15424]
8597         * benchtests/bench-modf.c (struct args): Mark arg0 as
8598         volatile.
8599         * scripts/bench.pl: Mark members of struct args as volatile.
8600
8601 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8602
8603         [BZ # 15497]
8604         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
8605         negative infinity on POWER6 or lower.
8606         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
8607
8608 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
8609
8610         [BZ #15442]
8611         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
8612         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
8613         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
8614         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
8615         (_FP_SETQNAN): New macro.
8616         (_FP_SETQNAN_SEMIRAW): Likewise.
8617         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
8618         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
8619         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
8620         (FP_EXTEND): Use _FP_FRAC_SNANP.
8621         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
8622         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
8623         into account.
8624         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
8625         New macro.
8626         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
8627         Likewise.
8628
8629 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8630
8631         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
8632         with DIVIDE_BY_ZERO_EXCEPTION.
8633         (gamma_test_data): Likewise.
8634         (lgamma_test_data): Likewise.
8635         (log_test_data): Likewise.
8636         (log10_test_data): Likewise.
8637         (log2_test_data): Likewise.
8638         (tgamma_test_data): Likewise.
8639
8640         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
8641         (acos_test_tonearest): Likewise.
8642         (acos_test_towardzero): Likewise.
8643         (acos_test_downward): Likewise.
8644         (acos_test_upward): Likewise.
8645         (acosh_test): Likewise.
8646         (asin_test): Likewise.
8647         (asin_test_tonearest): Likewise.
8648         (asin_test_towardzero): Likewise.
8649         (asin_test_downward): Likewise.
8650         (asin_test_upward): Likewise.
8651         (asinh_test): Likewise.
8652         (atan_test): Likewise.
8653         (atanh_test): Likewise.
8654         (atan2_test): Likewise.
8655         (cabs_test): Likewise.
8656         (cacos_test): Likewise.
8657         (cacosh_test): Likewise.
8658         (casin_test): Likewise.
8659         (casinh_test): Likewise.
8660         (catan_test): Likewise.
8661         (catanh_test): Likewise.
8662         (cbrt_test): Likewise.
8663         (ccos_test): Likewise.
8664         (ccosh_test): Likewise.
8665         (cexp_test): Likewise.
8666         (clog_test): Likewise.
8667         (clog10_test): Likewise.
8668         (cos_test): Likewise.
8669         (cos_test_tonearest): Likewise.
8670         (cos_test_towardzero): Likewise.
8671         (cos_test_downward): Likewise.
8672         (cos_test_upward): Likewise.
8673         (cosh_test): Likewise.
8674         (cosh_test_tonearest): Likewise.
8675         (cosh_test_towardzero): Likewise.
8676         (cosh_test_downward): Likewise.
8677         (cosh_test_upward): Likewise.
8678         (cpow_test): Likewise.
8679         (csin_test): Likewise.
8680         (csinh_test): Likewise.
8681         (csqrt_test): Likewise.
8682         (ctan_test): Likewise.
8683         (ctan_test_tonearest): Likewise.
8684         (ctan_test_towardzero): Likewise.
8685         (ctan_test_downward): Likewise.
8686         (ctan_test_upward): Likewise.
8687         (ctanh_test): Likewise.
8688         (ctanh_test_tonearest): Likewise.
8689         (ctanh_test_towardzero): Likewise.
8690         (ctanh_test_downward): Likewise.
8691         (ctanh_test_upward): Likewise.
8692         (erf_test): Likewise.
8693         (erfc_test): Likewise.
8694         (exp_test): Likewise.
8695         (exp_test_tonearest): Likewise.
8696         (exp_test_towardzero): Likewise.
8697         (exp_test_downward): Likewise.
8698         (exp_test_upward): Likewise.
8699         (exp10_test): Likewise.
8700         (exp2_test): Likewise.
8701         (expm1_test): Likewise.
8702         (fmod_test): Likewise.
8703         (gamma_test): Likewise.
8704         (hypot_test): Likewise.
8705         (j0_test): Likewise.
8706         (j1_test): Likewise.
8707         (jn_test): Likewise.
8708         (lgamma_test): Likewise.
8709         (log_test): Likewise.
8710         (log10_test): Likewise.
8711         (log1p_test): Likewise.
8712         (log2_test): Likewise.
8713         (logb_test_downward): Likewise.
8714         (pow_test): Likewise.
8715         (pow_test_tonearest): Likewise.
8716         (pow_test_towardzero): Likewise.
8717         (pow_test_downward): Likewise.
8718         (pow_test_upward): Likewise.
8719         (remainder_test): Likewise.
8720         (remquo_test): Likewise.
8721         (sin_test): Likewise.
8722         (sin_test_tonearest): Likewise.
8723         (sin_test_towardzero): Likewise.
8724         (sin_test_downward): Likewise.
8725         (sin_test_upward): Likewise.
8726         (sincos_test): Likewise.
8727         (sinh_test): Likewise.
8728         (sinh_test_tonearest): Likewise.
8729         (sinh_test_towardzero): Likewise.
8730         (sinh_test_downward): Likewise.
8731         (sinh_test_upward): Likewise.
8732         (sqrt_test): Likewise.
8733         (tan_test): Likewise.
8734         (tan_test_tonearest): Likewise.
8735         (tan_test_towardzero): Likewise.
8736         (tan_test_downward): Likewise.
8737         (tan_test_upward): Likewise.
8738         (tanh_test): Likewise.
8739         (tgamma_test): Likewise.
8740         (y0_test): Likewise.
8741         (y1_test): Likewise.
8742         (yn_test): Likewise.
8743
8744         * math/gen-libm-test.pl (adjust_arg): Remove function.
8745         (special_function): Remove argument $in_func.  Only handle
8746         generating output for tables of tests, not inside functions.
8747         (parse_args): Likewise.
8748         (generate_testfile): Remove variable $in_func.  Update call to
8749         parse_args.
8750         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
8751         (MINUS_ZERO_INIT): Rename macro to minus_zero.
8752         (PLUS_INFTY_INIT): Rename macro to plus_infty.
8753         (MINUS_INFTY_INIT): Rename macro to minus_infty.
8754         (QNAN_VALUE_INIT): Rename macro to qnan_value.
8755         (MAX_VALUE_INIT): Rename macro to max_value.
8756         (MIN_VALUE_INIT): Rename macro to min_value.
8757         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
8758         (plus_zero): Remove variable.
8759         (minus_zero): Likewise.
8760         (plus_infty): Likewise.
8761         (minus_infty): Likewise.
8762         (qnan_value): Likewise.
8763         (max_value): Likewise.
8764         (min_value): Likewise.
8765         (min_subnorm_value): Likewise.
8766
8767 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8768
8769         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
8770         uint64_t or uint32_t usage.
8771         * crypt/sha256-block.c: Likewise.
8772         * crypt/sha256-crypt.c: Likewise.
8773         * crypt/sha256.c: Likewise.
8774         * crypt/sha512-block.c: Likewise.
8775         * crypt/sha512-crypt.c: Likewise.
8776         * crypt/sha512.c: Likewise.
8777         * debug/backtrace-tst.c: Likewise.
8778         * debug/pcprofiledump.c: Likewise.
8779         * elf/cache.c: Likewise.
8780         * elf/dl-cache.c: Likewise.
8781         * elf/dl-misc.c: Likewise.
8782         * elf/dl-profile.c: Likewise.
8783         * elf/dl-support.c: Likewise.
8784         * elf/ldconfig.c: Likewise.
8785         * elf/sprof.c: Likewise.
8786         * iconv/dummy-repertoire.c: Likewise.
8787         * iconv/iconv_charmap.c: Likewise.
8788         * iconv/skeleton.c: Likewise.
8789         * iconvdata/8bit-generic.c: Likewise.
8790         * iconvdata/cp737.h: Likewise.
8791         * iconvdata/cp775.h: Likewise.
8792         * iconvdata/ibm1008.h: Likewise.
8793         * iconvdata/ibm1025.h: Likewise.
8794         * iconvdata/ibm1046.h: Likewise.
8795         * iconvdata/ibm1097.h: Likewise.
8796         * iconvdata/ibm1112.h: Likewise.
8797         * iconvdata/ibm1122.h: Likewise.
8798         * iconvdata/ibm1123.h: Likewise.
8799         * iconvdata/ibm1124.h: Likewise.
8800         * iconvdata/ibm1129.h: Likewise.
8801         * iconvdata/ibm1130.h: Likewise.
8802         * iconvdata/ibm1132.h: Likewise.
8803         * iconvdata/ibm1133.h: Likewise.
8804         * iconvdata/ibm1137.h: Likewise.
8805         * iconvdata/ibm1140.h: Likewise.
8806         * iconvdata/ibm1141.h: Likewise.
8807         * iconvdata/ibm1142.h: Likewise.
8808         * iconvdata/ibm1143.h: Likewise.
8809         * iconvdata/ibm1144.h: Likewise.
8810         * iconvdata/ibm1145.h: Likewise.
8811         * iconvdata/ibm1146.h: Likewise.
8812         * iconvdata/ibm1147.h: Likewise.
8813         * iconvdata/ibm1148.h: Likewise.
8814         * iconvdata/ibm1149.h: Likewise.
8815         * iconvdata/ibm1153.h: Likewise.
8816         * iconvdata/ibm1154.h: Likewise.
8817         * iconvdata/ibm1155.h: Likewise.
8818         * iconvdata/ibm1156.h: Likewise.
8819         * iconvdata/ibm1157.h: Likewise.
8820         * iconvdata/ibm1158.h: Likewise.
8821         * iconvdata/ibm1160.h: Likewise.
8822         * iconvdata/ibm1161.h: Likewise.
8823         * iconvdata/ibm1162.h: Likewise.
8824         * iconvdata/ibm1163.h: Likewise.
8825         * iconvdata/ibm1164.h: Likewise.
8826         * iconvdata/ibm1166.h: Likewise.
8827         * iconvdata/ibm1167.h: Likewise.
8828         * iconvdata/ibm12712.h: Likewise.
8829         * iconvdata/ibm1390.h: Likewise.
8830         * iconvdata/ibm1399.h: Likewise.
8831         * iconvdata/ibm16804.h: Likewise.
8832         * iconvdata/ibm4517.h: Likewise.
8833         * iconvdata/ibm4899.h: Likewise.
8834         * iconvdata/ibm4909.h: Likewise.
8835         * iconvdata/ibm4971.h: Likewise.
8836         * iconvdata/ibm5347.h: Likewise.
8837         * iconvdata/ibm803.h: Likewise.
8838         * iconvdata/ibm856.h: Likewise.
8839         * iconvdata/ibm901.h: Likewise.
8840         * iconvdata/ibm902.h: Likewise.
8841         * iconvdata/ibm9030.h: Likewise.
8842         * iconvdata/ibm9066.h: Likewise.
8843         * iconvdata/ibm921.h: Likewise.
8844         * iconvdata/ibm922.h: Likewise.
8845         * iconvdata/ibm9448.h: Likewise.
8846         * iconvdata/isiri-3342.h: Likewise.
8847         * iconvdata/jis0201.h: Likewise.
8848         * include/link.h: Likewise.
8849         * include/netdb.h: Likewise.
8850         * inet/check_native.c: Likewise.
8851         * inet/check_pf.c: Likewise.
8852         * inet/getipv4sourcefilter.c: Likewise.
8853         * inet/getnameinfo.c: Likewise.
8854         * inet/getsourcefilter.c: Likewise.
8855         * inet/htonl.c: Likewise.
8856         * inet/setipv4sourcefilter.c: Likewise.
8857         * inet/setsourcefilter.c: Likewise.
8858         * inet/test-inet6_opt.c: Likewise.
8859         * inet/tst-network.c: Likewise.
8860         * locale/C-collate.c: Likewise.
8861         * locale/C-ctype.c: Likewise.
8862         * locale/C-time.c: Likewise.
8863         * locale/C-translit.h: Likewise.
8864         * locale/loadarchive.c: Likewise.
8865         * locale/programs/3level.h: Likewise.
8866         * locale/programs/charmap.c: Likewise.
8867         * locale/programs/charmap.h: Likewise.
8868         * locale/programs/ld-address.c: Likewise.
8869         * locale/programs/ld-collate.c: Likewise.
8870         * locale/programs/ld-ctype.c: Likewise.
8871         * locale/programs/ld-identification.c: Likewise.
8872         * locale/programs/ld-measurement.c: Likewise.
8873         * locale/programs/ld-messages.c: Likewise.
8874         * locale/programs/ld-monetary.c: Likewise.
8875         * locale/programs/ld-name.c: Likewise.
8876         * locale/programs/ld-numeric.c: Likewise.
8877         * locale/programs/ld-paper.c: Likewise.
8878         * locale/programs/ld-telephone.c: Likewise.
8879         * locale/programs/ld-time.c: Likewise.
8880         * locale/programs/linereader.c: Likewise.
8881         * locale/programs/locale.c: Likewise.
8882         * locale/programs/locarchive.c: Likewise.
8883         * locale/programs/locfile.h: Likewise.
8884         * locale/programs/repertoire.c: Likewise.
8885         * locale/programs/simple-hash.c: Likewise.
8886         * locale/programs/simple-hash.h: Likewise.
8887         * malloc/memusage.c: Likewise.
8888         * malloc/memusagestat.c: Likewise.
8889         * nis/nis_defaults.c: Likewise.
8890         * nis/nis_hash.c: Likewise.
8891         * nis/nis_print.c: Likewise.
8892         * nis/nis_xdr.c: Likewise.
8893         * nscd/connections.c: Likewise.
8894         * nscd/hstcache.c: Likewise.
8895         * nscd/nscd_gethst_r.c: Likewise.
8896         * nscd/nscd_getserv_r.c: Likewise.
8897         * nscd/nscd_helper.c: Likewise.
8898         * nscd/servicescache.c: Likewise.
8899         * nss/makedb.c: Likewise.
8900         * nss/nss_db/db-XXX.c: Likewise.
8901         * nss/nss_db/db-initgroups.c: Likewise.
8902         * nss/nss_db/db-netgrp.c: Likewise.
8903         * nss/nss_files/files-network.c: Likewise.
8904         * nss/nss_files/files-parse.c: Likewise.
8905         * posix/bug-regex5.c: Likewise.
8906         * posix/fnmatch_loop.c: Likewise.
8907         * posix/regcomp.c: Likewise.
8908         * posix/regexec.c: Likewise.
8909         * posix/tst-rfc3484-2.c: Likewise.
8910         * posix/tst-rfc3484-3.c: Likewise.
8911         * posix/tst-rfc3484.c: Likewise.
8912         * resolv/nss_dns/dns-canon.c: Likewise.
8913         * resolv/nss_dns/dns-network.c: Likewise.
8914         * resolv/res_init.c: Likewise.
8915         * resolv/res_mkquery.c: Likewise.
8916         * resolv/tst-aton.c: Likewise.
8917         * stdlib/cxa_atexit.c: Likewise.
8918         * stdlib/cxa_finalize.c: Likewise.
8919         * stdlib/gen-fpioconst.c: Likewise.
8920         * stdlib/strtol_l.c: Likewise.
8921         * string/tst-endian.c: Likewise.
8922         * sunrpc/auth_des.c: Likewise.
8923         * sunrpc/clnt_udp.c: Likewise.
8924         * sunrpc/rtime.c: Likewise.
8925         * sunrpc/svcauth_des.c: Likewise.
8926         * sunrpc/xdr.c: Likewise.
8927         * sunrpc/xdr_intXX_t.c: Likewise.
8928         * sunrpc/xdr_rec.c: Likewise.
8929         * sysdeps/generic/ldconfig.h: Likewise.
8930         * sysdeps/generic/ldsodefs.h: Likewise.
8931         * sysdeps/generic/memusage.h: Likewise.
8932         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
8933         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
8934         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
8935         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
8936         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8937         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8938         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
8939         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
8940         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8941         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
8942         * sysdeps/posix/getaddrinfo.c: Likewise.
8943         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8944         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8945         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8946         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8947         * sysdeps/powerpc/test-gettimebase.c: Likewise.
8948         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
8949         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
8950         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
8951         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
8952         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
8953         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
8954         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
8955         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
8956         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
8957         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
8958         * sysdeps/x86_64/dl-tls.h: Likewise.
8959         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
8960         * time/alt_digit.c: Likewise.
8961         * time/era.c: Likewise.
8962         * wcsmbs/tst-c16c32-1.c: Likewise.
8963
8964 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8965
8966         * math/libm-test.inc (struct test_sincos_data): New type.
8967         (RUN_TEST_LOOP_sincos): New macro.
8968         (sincos_test_data): New variable.
8969         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
8970
8971 2013-05-16  Richard Henderson  <rth@redhat.com>
8972
8973         * math/atest-exp2.c (LIMB64): New macro.
8974         (CONSTSZ): New macro.
8975         (mp_exp1, mp_exp_m1, mp_log2): New variables.
8976         (hexdig): Move ...
8977         (print_mpn_fp): ... to function scope.
8978         (read_mpn_hex): Remove.
8979         (get_log2): Remove.
8980         (exp2_mpn): Use mp_log2.
8981         (main): Use mp_exp1.
8982
8983 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8984
8985         * math/libm-test.inc: Remove comment about not testing "inexact"
8986         exceptions.
8987         (INEXACT_EXCEPTION): New macro.
8988         (NO_INEXACT_EXCEPTION): Likewise.
8989         (INVALID_EXCEPTION_OK): Update value.
8990         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8991         (OVERFLOW_EXCEPTION_OK): Likewise.
8992         (UNDERFLOW_EXCEPTION_OK): Likewise.
8993         (IGNORE_ZERO_INF_SIGN): Likewise.
8994         (ERRNO_UNCHANGED): Likewise.
8995         (ERRNO_EDOM): Likewise.
8996         (ERRNO_ERANGE): Likewise.
8997         (test_exceptions): Handle testing "inexact" exceptions.
8998         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
8999         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
9000         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
9001         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
9002         INEXACT_EXCEPTION.
9003         (rint_towardzero_test_data): Likewise.
9004         (rint_downward_test_data): Likewise.
9005         (rint_upward_test_data): Likewise.
9006
9007         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
9008         with OVERFLOW_EXCEPTION.
9009         (exp10_test_data): Likewise.
9010         (exp2_test_data): Likewise.
9011         (expm1_test_data): Likewise.
9012         (lgamma_test_data): Likewise.
9013         (pow_test_data): Likewise.
9014         (tgamma_test_data): Likewise.
9015         (yn_test_data): Remove duplicate test of overflow.
9016
9017         * math/libm-test.inc (struct test_cc_c_data): New type.
9018         (RUN_TEST_LOOP_cc_c): New macro.
9019         (cpow_test_data): New variable.
9020         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
9021
9022         * math/libm-test.inc (struct test_f_L_data): New type.
9023         (RUN_TEST_LOOP_f_L): New macro.
9024         (llrint_test_data): New variable.
9025         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
9026         (llrint_tonearest_test_data): New variable.
9027         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
9028         (llrint_towardzero_test_data): New variable.
9029         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
9030         (llrint_downward_test_data): New variable.
9031         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
9032         (llrint_upward_test_data): New variable.
9033         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
9034         (llround_test_data): New variable.
9035         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
9036
9037 2013-05-13  Peter Collingbourne  <pcc@google.com>
9038
9039         * math/atest-exp2.c (get_log2): Remove const attribute.
9040
9041 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9042
9043         * math/libm-test.inc (struct test_f_l_data): New type.
9044         (RUN_TEST_LOOP_f_l): New macro.
9045         (lrint_test_data): New variable.
9046         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
9047         (lrint_tonearest_test_data): New variable.
9048         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
9049         (lrint_towardzero_test_data): New variable.
9050         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
9051         (lrint_downward_test_data): New variable.
9052         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
9053         (lrint_upward_test_data): New variable.
9054         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
9055         (lround_test_data): New variable.
9056         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
9057
9058 2013-05-15  Peter Collingbourne  <pcc@google.com>
9059
9060         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
9061         (EXTRACT_WORDS64) Use where appropriate.
9062         (INSERT_WORDS64) Likewise.
9063
9064         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
9065         constraints with x constraints.
9066         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
9067
9068         * malloc/obstack.c (_obstack_compat): Add initializer.
9069
9070 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
9071
9072         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
9073         si_trapno and add si_addr_lsb to _sifields.sigfault.
9074         (si_trapno): Remove macro.
9075         (si_addr_lsb): Define new macro.
9076         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
9077
9078 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9079
9080         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
9081         instead of TEST_f_l.
9082         (llrint_test_tonearest): Likewise.
9083         (llrint_test_towardzero): Likewise.
9084         (llrint_test_downward): Likewise.
9085         (llrint_test_upward): Likewise.
9086         (llround_test): Likewise.
9087
9088         * math/libm-test.inc (struct test_f_i_data): Add comment.
9089         (RUN_TEST_LOOP_f_b): New macro.
9090         (RUN_TEST_LOOP_f_b_tg): Likewise.
9091         (finite_test_data): New variable.
9092         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
9093         (isfinite_test_data): New variable.
9094         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9095         (isinf_test_data): New variable.
9096         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9097         (isnan_test_data): New variable.
9098         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9099         (isnormal_test_data): New variable.
9100         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9101         (issignaling_test_data): New variable.
9102         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9103         (signbit_test_data): New variable.
9104         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9105
9106         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
9107         with INVALID_EXCEPTION.
9108         (acosh_test_data): Likewise.
9109         (asin_test_data): Likewise.
9110         (atanh_test_data): Likewise.
9111         (fmod_test_data): Likewise.
9112         (log_test_data): Likewise.
9113         (log10_test_data): Likewise.
9114         (log2_test_data): Likewise.
9115         (pow_test_data): Likewise.
9116         (sqrt_test_data): Likewise.
9117         (y0_test_data): Likewise.
9118         (y1_test_data): Likewise.
9119         (yn_test_data): Likewise.
9120
9121         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
9122         function contents.
9123
9124         * math/libm-test.inc (struct test_ff_i_data): New type.
9125         (RUN_TEST_LOOP_ff_i_tg): New macro.
9126         (isgreater_test_data): New variable.
9127         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9128         (isgreaterequal_test_data): New variable.
9129         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9130         (isless_test_data): New variable.
9131         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9132         (islessequal_test_data): New variable.
9133         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9134         (islessgreater_test_data): New variable.
9135         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9136         (isunordered_test_data): New variable.
9137         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9138
9139 2013-05-14  David S. Miller  <davem@davemloft.net>
9140
9141         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9142
9143 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
9144
9145         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
9146
9147         * math/libm-test.inc (struct test_fF_f1_data): Change type of
9148         extra_test to int.
9149         (struct test_f_i_data): Change type of max_ulp to int.
9150
9151         * math/libm-test.inc (test_ffI_f1_data): New type.
9152         (RUN_TEST_LOOP_ffI_f1): New macro.
9153         (remquo_test_data): New variable.
9154         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
9155
9156         * setjmp/tst-setjmp-fp.c: New file.
9157         * setjmp/Makefile (tests): Add tst-setjmp-fp.
9158         (link-libm): New variable.
9159         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
9160
9161         * math/libm-test.inc (struct test_f_i_data): New type.
9162         (RUN_TEST_LOOP_f_i): New macro.
9163         (RUN_TEST_LOOP_f_i_tg): Likewise.
9164         (fpclassify_test_data): New variable.
9165         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
9166         (ilogb_test_data): New variable.
9167         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
9168
9169         * math/libm-test.inc (scalbln_test): Correct function name in END
9170         call.
9171
9172         * math/libm-test.inc (struct test_f_f1_data): Add comment.
9173         (RUN_TEST_LOOP_fI_f1): New macro.
9174         (frexp_test_data): New variable.
9175         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
9176
9177         * math/libm-test.inc (struct test_fF_f1_data): New type.
9178         (RUN_TEST_LOOP_fF_f1): New macro.
9179         (modf_test_data): New variable.
9180         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
9181
9182         * math/libm-test.inc (struct test_f_f1_data): New type.
9183         (RUN_TEST_LOOP_f_f1): New macro.
9184         (gamma_test_data): New variable.
9185         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9186         (lgamma_test_data): New variable.
9187         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9188
9189 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
9190
9191         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
9192         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
9193         (main): Comment "tls" pseudo-hwcap.
9194
9195 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
9196
9197         * math/libm-test.inc (struct test_fl_f_data): New type.
9198         (RUN_TEST_LOOP_fl_f): New variable.
9199         (scalbln_test_data): New variable.
9200         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
9201
9202         * math/libm-test.inc (struct test_fi_f_data): New type.
9203         (RUN_TEST_LOOP_fi_f): New macro.
9204         (ldexp_test_data): New variable.
9205         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
9206         (scalbn_test_data): New variable.
9207         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
9208
9209         * math/libm-test.inc (struct test_c_f_data): New type.
9210         (RUN_TEST_LOOP_c_f): New macro.
9211         (cabs_test_data): New variable.
9212         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
9213         (carg_test_data): New variable.
9214         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
9215         (cimag_test_data): New variable.
9216         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
9217         (creal_test_data): New variable.
9218         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
9219
9220         * math/libm-test.inc (struct test_if_f_data): New type.
9221         (RUN_TEST_LOOP_if_f): New macro.
9222         (jn_test_data): New variable.
9223         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
9224         (yn_test_data): New variable.
9225         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
9226
9227         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
9228
9229 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9230
9231         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
9232         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
9233
9234 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9235
9236         * benchtests/Makefile (CPPFLAGS-nonlib): Add
9237         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
9238         (bench-deps): Add bench-timing.h.
9239         * benchtests-bench-skeleton.c: Include bench-timing.h.
9240         (main): Use TIMING_* macros instead of clock_gettime.
9241         * benchtests/bench-timing.h: New file.
9242
9243         [BZ #14582]
9244         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
9245         Renamed from _LIB_VERSION.
9246         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
9247
9248 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
9249
9250         * math/libm-test.inc (struct test_fff_f_data): New type.
9251         (RUN_TEST_LOOP_fff_f): New macro.
9252         (fma_test_data): New variable.
9253         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
9254         (fma_towardzero_test_data): New variable.
9255         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
9256         (fma_downward_test_data): New variable.
9257         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
9258         (fma_upward_test_data): New variable.
9259         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
9260
9261         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
9262         (struct test_c_c_data): New type.
9263         (RUN_TEST_LOOP_c_c): New macro.
9264         (cacos_test_data): New variable.
9265         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
9266         (cacosh_test_data): New variable.
9267         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
9268         (casin_test_data): New variable.
9269         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
9270         (casinh_test_data): New variable.
9271         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
9272         (catan_test_data): New variable.
9273         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
9274         (catanh_test_data): New variable.
9275         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
9276         (ccos_test_data): New variable.
9277         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
9278         (ccosh_test_data): New variable.
9279         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
9280         (cexp_test_data): New variable.
9281         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
9282         (clog_test_data): New variable.
9283         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
9284         (clog10_test_data): New variable.
9285         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
9286         (conj_test_data): New variable.
9287         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
9288         (cproj_test_data): New variable.
9289         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
9290         (csin_test_data): New variable.
9291         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
9292         (csinh_test_data): New variable.
9293         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
9294         (csqrt_test_data): New variable.
9295         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
9296         (ctan_test_data): New variable.
9297         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
9298         (ctan_tonearest_test_data): New variable.
9299         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9300         (ctan_towardzero_test_data): New variable.
9301         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9302         (ctan_downward_test_data): New variable.
9303         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9304         (ctan_upward_test_data): New variable.
9305         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9306         (ctanh_test_data): New variable.
9307         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
9308         (ctanh_tonearest_test_data): New variable.
9309         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9310         (ctanh_towardzero_test_data): New variable.
9311         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9312         (ctanh_downward_test_data): New variable.
9313         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9314         (ctanh_upward_test_data): New variable.
9315         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9316         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
9317         of BUILD_COMPLEX.
9318
9319         * math/libm-test.inc (struct test_ff_f_data): New type.
9320         (struct test_ff_f_data_nexttoward): Likewise.
9321         (RUN_TEST_LOOP_2_f): New macro.
9322         (RUN_TEST_LOOP_ff_f): Likewise.
9323         (atan2_test_data): New variable.
9324         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
9325         (copysign_test_data): New variable.
9326         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
9327         (fdim_test_data): New variable.
9328         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
9329         (fmax_test_data): New variable.
9330         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
9331         (fmin_test_data): New variable.
9332         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
9333         (fmod_test_data): New variable.
9334         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
9335         (hypot_test_data): New variable.
9336         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
9337         (nextafter_test_data): New variable.
9338         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
9339         (nexttoward_test_data): New variable.
9340         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
9341         (pow_test_data): New variable.
9342         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
9343         (pow_tonearest_test_data): New variable.
9344         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
9345         (pow_towardzero_test_data): New variable.
9346         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
9347         (pow_downward_test_data): New variable.
9348         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
9349         (pow_upward_test_data): New variable.
9350         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
9351         (remainder_test_data): New variable.
9352         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
9353         (scalb_test_data): New variable.
9354         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
9355         * sysdeps/i386/fpu/libm-test-ulps: Update.
9356
9357 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
9358
9359         * math/libm-test.inc (fma_test): Use max_value instead of local
9360         variable fltmax.
9361         (nextafter_test): Likewise.
9362
9363         * math/libm-test.inc (acos_towardzero_test_data): New variable.
9364         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9365         (acos_downward_test_data): New variable.
9366         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9367         (acos_upward_test_data): New variable.
9368         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9369         (acosh_test_data): New variable.
9370         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
9371         (asin_test_data): New variable.
9372         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
9373         (asin_tonearest_test_data): New variable.
9374         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9375         (asin_towardzero_test_data): New variable.
9376         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9377         (asin_downward_test_data): New variable.
9378         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9379         (asin_upward_test_data): New variable.
9380         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9381         (asinh_test_data): New variable.
9382         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
9383         (atan_test_data): New variable.
9384         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
9385         (atanh_test_data): New variable.
9386         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
9387         (cbrt_test_data): New variable.
9388         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
9389         (ceil_test_data): New variable.
9390         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
9391         (cos_test_data): New variable.
9392         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
9393         (cos_tonearest_test_data): New variable.
9394         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9395         (cos_towardzero_test_data): New variable.
9396         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9397         (cos_downward_test_data): New variable.
9398         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9399         (cos_upward_test_data): New variable.
9400         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9401         (cosh_test_data): New variable.
9402         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
9403         (cosh_tonearest_test_data): New variable.
9404         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9405         (cosh_towardzero_test_data): New variable.
9406         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9407         (cosh_downward_test_data): New variable.
9408         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9409         (cosh_upward_test_data): New variable.
9410         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9411         (erf_test_data): New variable.
9412         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
9413         (erfc_test_data): New variable.
9414         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
9415         (exp_test_data): New variable.
9416         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
9417         (exp_tonearest_test_data): New variable.
9418         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9419         (exp_towardzero_test_data): New variable.
9420         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9421         (exp_downward_test_data): New variable.
9422         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9423         (exp_upward_test_data): New variable.
9424         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9425         (exp10_test_data): New variable.
9426         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
9427         (exp2_test_data): New variable.
9428         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
9429         (expm1_test_data): New variable.
9430         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
9431         (fabs_test_data): New variable.
9432         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
9433         (floor_test_data): New variable.
9434         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
9435         (j0_test_data): New variable.
9436         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
9437         (j1_test_data): New variable.
9438         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
9439         (log_test_data): New variable.
9440         (log_test): Run tests with RUN_TEST_LOOP_f_f.
9441         (log10_test_data): New variable.
9442         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
9443         (log1p_test_data): New variable.
9444         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
9445         (log2_test_data): New variable.
9446         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
9447         (logb_test_data): New variable.
9448         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
9449         (logb_downward_test_data): New variable.
9450         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9451         (nearbyint_test_data): New variable.
9452         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
9453         (rint_test_data): New variable.
9454         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
9455         (rint_tonearest_test_data): New variable.
9456         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9457         (rint_towardzero_test_data): New variable.
9458         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9459         (rint_downward_test_data): New variable.
9460         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9461         (rint_upward_test_data): New variable.
9462         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9463         (round_test_data): New variable.
9464         (round_test): Run tests with RUN_TEST_LOOP_f_f.
9465         (sin_test_data): New variable.
9466         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
9467         (sin_tonearest_test_data): New variable.
9468         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9469         (sin_towardzero_test_data): New variable.
9470         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9471         (sin_downward_test_data): New variable.
9472         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9473         (sin_upward_test_data): New variable.
9474         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9475         (sinh_test_data): New variable.
9476         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
9477         (sinh_tonearest_test_data): New variable.
9478         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9479         (sinh_towardzero_test_data): New variable.
9480         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9481         (sinh_downward_test_data): New variable.
9482         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9483         (sinh_upward_test_data): New variable.
9484         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9485         (sqrt_test_data): New variable.
9486         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
9487         (tan_test_data): New variable.
9488         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
9489         (tan_tonearest_test_data): New variable.
9490         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9491         (tan_towardzero_test_data): New variable.
9492         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9493         (tan_downward_test_data): New variable.
9494         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9495         (tan_upward_test_data): New variable.
9496         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9497         (tanh_test_data): New variable.
9498         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
9499         (tgamma_test_data): New variable.
9500         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
9501         (trunc_test_data): New variable.
9502         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
9503         (y0_test_data): New variable.
9504         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
9505         (y1_test_data): New variable.
9506         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
9507         (significand_test_data): New variable.
9508         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
9509
9510 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
9511
9512         [BZ #12387]
9513         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
9514
9515 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9516
9517         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
9518
9519 2013-05-10  Andreas Jaeger  <aj@suse.de>
9520
9521         [BZ #15448]
9522         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
9523         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
9524
9525 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
9526
9527         * math/gen-libm-test.pl (adjust_arg): New function.
9528         (special_functions): Handle generating output in both functions
9529         and arrays.
9530         (parse_args): Likewise.
9531         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
9532         $in_func argument to parse_args.
9533         * math/libm-test.inc (struct test_f_f_data): New type.
9534         (IF_ROUND_INIT_): New macro.
9535         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
9536         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
9537         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9538         (IF_ROUND_INIT_FE_UPWARD): Likewise.
9539         (ROUND_RESTORE_): Likewise.
9540         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
9541         (ROUND_RESTORE_FE_TONEAREST): Likewise.
9542         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
9543         (ROUND_RESTORE_FE_UPWARD): Likewise.
9544         (RUN_TEST_LOOP_f_f): New macro.
9545         (acos_test_data): New variable.
9546         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
9547         (acos_tonearest_test_data): New variable.
9548         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9549
9550 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9551
9552         * benchtests/bench-skeleton.c (startup): Fix coding style.
9553
9554 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
9555
9556         [BZ #6809]
9557         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
9558         negative infinity argument.
9559         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
9560         negative infinity argument.
9561         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
9562         negative infinity argument.
9563         * math/libm-test.inc (tgamma_test): Expect errno to be set for
9564         domain errors.
9565
9566 2013-05-10  Florian Weimer  <fweimer@redhat.com>
9567
9568         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
9569         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
9570         * iconv/iconv_prog.c (main): Likewise.
9571         * locale/programs/charmap-dir.c (charmap_readdir)
9572         (fopen_uncompressed): Likewise.
9573         * locale/programs/locfile.c (siblings_uncached)
9574         (write_locale_data): Use lstat64 instead of lstat.
9575         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
9576         stat.
9577
9578 2013-05-10  Andreas Jaeger  <aj@suse.de>
9579
9580         [BZ #15395]
9581         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
9582         localization.
9583         Include <locale.h>.
9584
9585 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
9586
9587         * elf/dl-close.c (_dl_close_worker): Add comments.
9588
9589 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
9590
9591         [BZ #15359]
9592         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
9593         high part of pi/2.
9594         (__ieee754_rem_pio2l): Update comments.
9595
9596         [BZ #15429]
9597         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
9598         high part of pi/2.
9599         (__ieee754_rem_pio2l): Update comments.
9600
9601         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
9602         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
9603
9604         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
9605         M_PI_4l.
9606
9607         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
9608         (M_PI_34_LOG10El): Likewise.
9609         (M_PI2_LOG10El): Likewise.
9610         (M_PI4_LOG10El): Likewise.
9611         (M_PI_LOG10El): Likewise.
9612
9613 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9614
9615         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9616
9617 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
9618
9619         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
9620         (MINUS_ZERO_INIT): Likewise.
9621         (PLUS_INFTY_INIT): Likewise.
9622         (MINUS_INFTY_INIT): Likewise.
9623         (QNAN_VALUE_INIT): Likewise.
9624         (MAX_VALUE_INIT): Likewise.
9625         (MIN_VALUE_INIT): Likewise.
9626         (MIN_SUBNORM_VALUE_INIT): Likewise.
9627         (plus_zero): Initialize with PLUS_ZERO_INIT.
9628         (minus_zero): Initialize with MINUS_ZERO_INIT.
9629         (plus_infty): Initialize with PLUS_INFTY_INIT.
9630         (minus_infty): Initialize with MINUS_INFTY_INIT.
9631         (qnan_value): Initialize with QNAN_VALUE_INIT.
9632         (max_value): Initialize with MAX_VALUE_INIT.
9633         (min_value): Initialize with MIN_VALUE_INIT.
9634         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
9635
9636         * math/libm-test.inc (RUN_TEST_if_f): New macro.
9637         (jn_test): Use TEST_if_f instead of TEST_ff_f.
9638         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
9639         (yn_test): Use TEST_if_f instead of TEST_ff_f.
9640
9641         * math/libm-test.inc (RUN_TEST_f_f): New macro.
9642         (RUN_TEST_2_f): Likewise.
9643         (RUN_TEST_ff_f): Likewise.
9644         (RUN_TEST_fi_f): Likewise.
9645         (RUN_TEST_fl_f): Likewise.
9646         (RUN_TEST_fff_f): Likewise.
9647         (RUN_TEST_c_f): Likewise.
9648         (RUN_TEST_f_f1): Likewise.
9649         (RUN_TEST_fF_f1): Likewise.
9650         (RUN_TEST_fI_f1): Likewise.
9651         (RUN_TEST_ffI_f1): Likewise.
9652         (RUN_TEST_c_c): Likewise.
9653         (RUN_TEST_cc_c): Likewise.
9654         (RUN_TEST_f_i): Likewise.
9655         (RUN_TEST_f_i_tg): Likewise.
9656         (RUN_TEST_ff_i_tg): Likewise.
9657         (RUN_TEST_f_b): Likewise.
9658         (RUN_TEST_f_b_tg): Likewise.
9659         (RUN_TEST_f_l): Likewise.
9660         (RUN_TEST_f_L): Likewise.
9661         (RUN_TEST_sincos): Likewise.
9662         * math/gen-libm-test.pl (new_test): Take new argument to indicate
9663         whether to show exceptions.  Do not include ");\n" in return
9664         value.
9665         (special_functions): Output call to RUN_TEST_sincos instead of
9666         check_float calls.  Update calls to new_test.
9667         (parse_args): Output call to single RUN_TEST_* macro instead of
9668         check_* calls and other assignments.  Update calls to new_test.
9669
9670         [BZ #2546]
9671         [BZ #2560]
9672         [BZ #5159]
9673         [BZ #15426]
9674         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
9675         input to result for tgamma overflow.
9676         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
9677         (gamma_coeff): New variable.
9678         (NCOEFF): New macro.
9679         (gamma_positive): New function.
9680         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
9681         underflow here.  Use gamma_positive instead of exp (lgamma) for
9682         other arguments.
9683         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
9684         (gamma_coeff): New variable.
9685         (NCOEFF): New macro.
9686         (gammaf_positive): New function.
9687         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
9688         underflow here.  Use gamma_positive instead of exp (lgamma) for
9689         other arguments.
9690         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
9691         (gamma_coeff): New variable.
9692         (NCOEFF): New macro.
9693         (gammal_positive): New function.
9694         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
9695         underflow here.  Use gamma_positive instead of exp (lgamma) for
9696         other arguments.
9697         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
9698         (gamma_coeff): New variable.
9699         (NCOEFF): New macro.
9700         (gammal_positive): New function.
9701         (__ieee754_gammal_r): Handle positive infinity, overflow and
9702         underflow here.  Handle NaN the same as positive infinity.  Remove
9703         check x < 0xffffffff for negative integers.  Use gamma_positive
9704         instead of exp (lgamma) for other arguments.
9705         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
9706         (gamma_coeff): New variable.
9707         (NCOEFF): New macro.
9708         (gammal_positive): New function.
9709         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
9710         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
9711         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9712         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
9713         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
9714         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9715         * sysdeps/generic/math_private.h (__gamma_productf): New
9716         prototype.
9717         (__gamma_product): Likewise.
9718         (__gamma_productl): Likewise.
9719         * math/Makefile (libm-calls): Add gamma_product.
9720         * math/libm-test.inc (tgamma_test): Add more tests.
9721         * sysdeps/i386/fpu/libm-test-ulps: Update.
9722         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9723
9724 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
9725
9726         * benchtests/bench-skeleton.c (main): Preheat CPU.
9727
9728 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
9729
9730         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
9731
9732 2013-05-07  Roland McGrath  <roland@hack.frob.com>
9733
9734         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
9735         and _dl_skip_args_internal.
9736
9737 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
9738
9739         * manual/message.texi (Message Translation): Talk about users.
9740         Message to key mapping impacts design.
9741
9742 2013-05-06  Roland McGrath  <roland@hack.frob.com>
9743
9744         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
9745
9746         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
9747
9748         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
9749         * sysdeps/wordsize-64/glob64.c: ... here.
9750
9751         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
9752         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
9753         New macros.
9754
9755         * debug/getlogin_r_chk.c: Moved to ...
9756         * login/getlogin_r_chk.c: ... here.
9757         * debug/Makefile (routines): Move getlogin_r_chk to ...
9758         * login/Makefile (routines): ... here.
9759         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
9760         * login/Versions (libc: GLIBC_2.4): ... here.
9761
9762         * io/poll.c (__poll): Renamed from poll.
9763         Add libc_hidden_def.
9764         (poll): Define as weak alias.
9765
9766         * debug/ptsname_r_chk.c: Moved to ...
9767         * login/ptsname_r_chk.c: ... here.
9768         * debug/Makefile (routines): Move ptsname_r_chk to ...
9769         * login/Makefile (routines): ... here.
9770         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
9771         * login/Versions (libc: GLIBC_2.4): ... here.
9772
9773         * posix/getlogin.c: Moved to ...
9774         * login/getlogin.c: ... here.
9775         * posix/getlogin_r.c: Moved to ...
9776         * login/getlogin_r.c: ... here.
9777         * posix/getlogin_r.c: Moved to ...
9778         * login/getlogin_r.c: ... here.
9779         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
9780         * login/Makefile (routines): ... here.
9781         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
9782         * login/Versions (libc: GLIBC_2.0): ... here.
9783
9784         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
9785         (setrlimit): Define as weak alias.
9786
9787         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
9788         Call __ names for open, ftruncate, and close.
9789         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
9790         (truncate): Define as weak alias.
9791
9792 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
9793
9794         * math/gen-libm-test.pl (parse_args): Initialize x before each
9795         test of frexp, modf and remquo.
9796
9797         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
9798         test signgam value.
9799
9800 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9801
9802         [BZ #15418]
9803         [BZ #15419]
9804         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
9805         internal tests.
9806         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9807
9808 2013-05-06  Roland McGrath  <roland@hack.frob.com>
9809
9810         * elf/dl-writev.h: New file.
9811         * elf/dl-misc.c: Include it.
9812         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
9813         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
9814
9815 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
9816
9817         * math/libm-test.inc (noXFails): Remove variable.
9818         (noXPasses): Likewise.
9819         (BUILD_COMPLEX_INT): Remove macro.
9820         (print_screen): Remove xfail argument.
9821         (print_screen_max_error): Likewise.
9822         (update_stats): Likewise.
9823         (print_max_error): Likewise.  Update calls to other affected
9824         functions.
9825         (print_complex_max_error): Likewise.
9826         (test_single_exception): Update calls to print_screen.
9827         (test_single_errno): Likewise.
9828         (check_float_internal): Remove xfail argument.  Update calls to
9829         other affected functions.
9830         (check_float): Likewise.
9831         (check_complex): Likewise.
9832         (check_int): Likewise.
9833         (check_long): Likewise.
9834         (check_bool): Likewise.
9835         (check_longlong): Likewise.
9836         (main): Don't print noXFails and noXPasses.
9837         * math/gen-libm-test.pl (top level): Don't mention expected
9838         failure handling in comment.
9839         (new_test): Don't handle expected failures.
9840         (parse_args): Don't mention expected failure handling in comment.
9841         (generate_testfile): Don't handle expected failures.
9842         (parse_ulps): Likewise.
9843         (print_ulps_file): Likewise.
9844         (get_failure): Remove function.
9845         (output_test): Don't handle expected failures.
9846         * make/README.libm-test: Don't mention expected failure handling.
9847
9848         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
9849         (minus_zero): Likewise.
9850         (plus_infty): Likewise.
9851         (minus_infty): Likewise.
9852         (qnan_value): Likewise.
9853         (max_value): Likewise.
9854         (min_value): Likewise.
9855         (min_subnorm_value): Likewise.
9856         (initialize): Do not initialize those variables dynamically.
9857
9858 2013-05-03  Roland McGrath  <roland@hack.frob.com>
9859
9860         * io/open.c (__open_2): Moved to ...
9861         * io/open_2.c: ... this new file.
9862         * io/open64.c (__open64_2): Moved to ...
9863         * io/open64_2.c: ... this new file.
9864         * io/openat.c (__openat_2): Moved to ...
9865         * io/openat_2.c: ... this new file.
9866         * io/openat64.c (__openat64_2): Moved to ...
9867         * io/openat64_2.c: ... this new file.
9868         * io/Makefile (routines): Add them.
9869         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
9870         * sysdeps/unix/sysv/linux/open_2.c: File removed.
9871         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
9872         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
9873         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
9874         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
9875         (__openat64): Add hidden_ver.
9876         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
9877         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
9878
9879         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
9880         Separately conditionalize setting of GLRO(dl_sysinfo) so
9881         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
9882         as well, but the actual setting is only under [NEED_DL_SYSINFO].
9883
9884 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9885
9886         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
9887         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
9888         definition.
9889         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
9890         * sysdeps/unix/sysv/linux/powerpc/init-first.c
9891         (_libc_vdso_platform_setup): Add __vdso_time initialization.
9892         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
9893         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
9894
9895 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
9896
9897         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
9898         test signgam value.
9899
9900         * math/libm-test.inc (hypot_test): Do not use
9901         IGNORE_ZERO_INF_SIGN.
9902
9903 2013-05-03  Andreas Jaeger  <aj@suse.de>
9904
9905         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
9906         Linux 3.9.
9907         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
9908         (PF_MAX): Adjust for VSOCK change.
9909
9910 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9911
9912         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9913
9914 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
9915
9916         [BZ #15264]
9917         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
9918         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
9919         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
9920
9921 2013-05-02  David S. Miller  <davem@davemloft.net>
9922
9923         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9924
9925 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
9926
9927         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
9928
9929 2013-05-01  Roland McGrath  <roland@hack.frob.com>
9930
9931         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
9932
9933 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
9934
9935         [BZ #14952]
9936         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
9937         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
9938         Use __attribute__ ((__gnu_inline__)).
9939         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
9940         Don't use __attribute__ ((__gnu_inline__)).
9941
9942 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
9943
9944         [BZ #15423]
9945         * math/s_catan.c (__catan): Handle small real or imaginary part of
9946         input specially to avoid spurious underflow.
9947         * math/s_catanf.c (__catanf): Likewise.
9948         * math/s_catanh.c (__catanh): Likewise.
9949         * math/s_catanhf.c (__catanhf): Likewise.
9950         * math/s_catanhl.c (__catanhl): Likewise.
9951         * math/s_catanl.c (__catanl): Likewise.
9952         * math/libm-test.inc (catan_test): Add more tests.
9953         (catanh_test): Likewise.
9954         * sysdeps/i386/fpu/libm-test-ulps: Update.
9955         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9956
9957 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9958
9959         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9960
9961 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
9962
9963         [BZ #15416]
9964         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
9965         accurately for denominator in atan2.
9966         * math/s_catanf.c (__catanf): Likewise.
9967         * math/s_catanh.c (__catanh): Likewise.
9968         * math/s_catanhf.c (__catanhf): Likewise.
9969         * math/s_catanhl.c (__catanhl): Likewise.
9970         * math/s_catanl.c (__catanl): Likewise.
9971         * math/libm-test.inc (catan_test): Add more tests.
9972         (catanh_test): Likewise.
9973         * sysdeps/i386/fpu/libm-test-ulps: Update.
9974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9975
9976 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9977
9978         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
9979
9980         * benchtests/Makefile (bench): Remove slow benchmarks.
9981         * benchtests/atan-inputs: Add slow benchmark inputs.
9982         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
9983         (BENCH_FUNC): Accept variant offset.
9984         (VARIANT): Define.
9985         * benchtests/bench-skeleton.c (main): Run benchmark for each
9986         variant.
9987         * benchtests/cos-inputs: Add slow benchmark inputs.
9988         * benchtests/exp-inputs: Likewise.
9989         * benchtests/pow-inputs: Likewise.
9990         * benchtests/sin-inputs: Likewise.
9991         * benchtests/slowatan-inputs: Remove.
9992         * benchtests/slowatan.c: Remove.
9993         * benchtests/slowcos-inputs: Remove.
9994         * benchtests/slowcos.c: Remove.
9995         * benchtests/slowexp-inputs: Remove.
9996         * benchtests/slowexp.c: Remove.
9997         * benchtests/slowpow-inputs: Remove.
9998         * benchtests/slowpow.c: Remove.
9999         * benchtests/slowsin-inputs: Remove.
10000         * benchtests/slowsin.c: Remove.
10001         * benchtests/slowtan-inputs: Remove.
10002         * benchtests/slowtan.c: Remove.
10003         * benchtests/tan-inputs: Add slow benchmark inputs.
10004         * scripts/bench.pl: Parse comments and directives.
10005
10006         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
10007         in CPPFLAGS.
10008         ($(objpfx)bench-%.c): Remove *-ITER.
10009         * benchtests/bench-modf.c: Remove definition of ITER.
10010         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
10011         (main): Loop for DURATION seconds instead of fixed number of
10012         iterations.
10013         * scripts/bench.pl: Don't expect iterations in parameters.
10014
10015 2013-04-29  Roland McGrath  <roland@hack.frob.com>
10016
10017         * io/fchdir.c (__fchdir): Renamed from fchdir.
10018         (fchdir): Define as weak alias.
10019
10020 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10021
10022         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
10023         (ERRNO_EDOM): Likewise.
10024         (ERRNO_ERANGE): Likewise.
10025         (noErrnoTests): New variable.
10026         (init_max_error): Set errno to 0.
10027         (test_single_errno): New function.
10028         (test_errno): Likewise.
10029         (check_float_internal): Call test_errno.  Set errno to 0.
10030         (check_complex): Refer to errno tests in comment.
10031         (check_int): Call test_errno.  Set errno to 0.
10032         (check_long): Likewise.
10033         (check_bool): Likewise.
10034         (check_longlong): Likewise.
10035         (cos_test): Use ERRNO_* flags for errno tests instead of
10036         check_int.
10037         (expm1_test): Likewise.
10038         (fmod_test): Likewise.
10039         (ilogb_test): Likewise.
10040         (lgamma_test): Likewise.
10041         (pow_test): Likewise.
10042         (remainder_test): Likewise.
10043         (sin_test): Likewise.
10044         (tan_test): Likewise.
10045         (yn_test): Likewise.
10046         (initialize): Set errno to 0.
10047         (main): Print number of errno tests.
10048         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
10049
10050 2013-04-29  Andreas Jaeger  <aj@suse.de>
10051
10052         [BZ #15084]
10053         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
10054         and RES_USEVC.
10055
10056         [BZ #15085]
10057         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
10058         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
10059         unimplemented.
10060
10061         [BZ #15380]
10062         * stdlib/random.c (__initstate): Return NULL if
10063         __initstate fails.
10064
10065         [BZ #15086]
10066         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
10067         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
10068         RES_SNGLKUPREOP.
10069
10070 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10071
10072         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10073
10074 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10075
10076         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
10077         of individual tests.
10078         (casin_test): Likewise.
10079         (casinh_test): Likewise.
10080
10081 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
10082
10083         [BZ #15409]
10084         * math/s_catan.c (__catan): Handle arguments with large real or
10085         imaginary part separately without squaring.
10086         * math/s_catanf.c (__catanf): Likewise.
10087         * math/s_catanh.c (__catanh): Likewise.
10088         * math/s_catanhf.c (__catanhf): Likewise.
10089         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10090         and redefine.
10091         (__catanhl): Handle arguments with large real or imaginary part
10092         separately without squaring.
10093         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10094         and redefine.
10095         (__catanl): Handle arguments with large real or imaginary part
10096         separately without squaring.
10097         * math/libm-test.inc (catan_test): Add more tests.
10098         (catanh_test): Likewise.
10099         * sysdeps/i386/fpu/libm-test-ulps: Update.
10100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10101
10102 2013-04-27  Andreas Jaeger  <aj@suse.de>
10103
10104         [BZ #15007]
10105         * stdlib/stdlib.h: Update guards for qecvt.
10106         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
10107         <stdlib.h>.
10108
10109 2013-04-27  Allan McRae  <allan@archlinux.org>
10110
10111         * sysdeps/i386/fpu/libm-test-ulps: Update.
10112
10113 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
10114
10115         [BZ #15406]
10116         * math/s_catan.c: Include <float.h>.
10117         (__catan): Ensure underflow exception occurs for underflowed
10118         result.
10119         * math/s_catanf.c: Include <float.h>.
10120         (__catanf): Ensure underflow exception occurs for underflowed
10121         result.
10122         * math/s_catanh.c: Include <float.h>.
10123         (__catanh): Ensure underflow exception occurs for underflowed
10124         result.
10125         * math/s_catanhf.c: Include <float.h>.
10126         (__catanhf): Ensure underflow exception occurs for underflowed
10127         result.
10128         * math/s_catanhl.c: Include <float.h>.
10129         (__catanhl): Ensure underflow exception occurs for underflowed
10130         result.
10131         * math/s_catanl.c: Include <float.h>.
10132         (__catanl): Ensure underflow exception occurs for underflowed
10133         result.
10134         * math/libm-test.inc (catan_test): Add more tests.
10135         (catanh_test): Likewise.
10136
10137         [BZ #15405]
10138         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
10139         underflowed result.
10140         * math/s_ccoshf.c (__ccoshf): Likewise.
10141         * math/s_ccoshl.c (__ccoshl): Likewise.
10142         * math/s_csin.c (__csin): Likewise.
10143         * math/s_csinf.c (__csinf): Likewise.
10144         * math/s_csinh.c (__csinh): Likewise.
10145         * math/s_csinhf.c (__csinhf): Likewise.
10146         * math/s_csinhl.c (__csinhl): Likewise.
10147         * math/s_csinl.c (__csinl): Likewise.
10148         * math/libm-test.inc (ccos_test): Add more tests.
10149         (ccosh_test): Likewise.
10150         (csin_test): Likewise.
10151         (csinh_test): Likewise.
10152
10153 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10154
10155         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
10156         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
10157         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
10158         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
10159         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
10160         powerpc/power5+/fpu folders.
10161         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
10162
10163
10164 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10165
10166         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10167
10168 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
10169
10170         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
10171         additions to variable.
10172         [$(config-machine) = x86_64] (modules-names): Likewise.
10173         ($(objpfx)tst-audit3): Remove dependency.
10174         ($(objpfx)tst-audit3.out): Likewise.
10175         ($(objpfx)tst-audit4): Likewise.
10176         ($(objpfx)tst-audit4.out): Likewise.
10177         ($(objpfx)tst-audit5): Likewise.
10178         ($(objpfx)tst-audit5.out): Likewise.
10179         ($(objpfx)tst-audit6): Likewise.
10180         ($(objpfx)tst-audit6.out): Likewise.
10181         ($(objpfx)tst-audit7): Likewise.
10182         ($(objpfx)tst-audit7.out): Likewise.
10183         (tst-audit3-ENV): Remove variable.
10184         (tst-audit4-ENV): Likewise.
10185         (tst-audit5-ENV): Likewise.
10186         (tst-audit6-ENV): Likewise.
10187         (tst-audit7-ENV): Likewise.
10188         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
10189         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
10190         addition to variable.
10191         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
10192         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
10193         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
10194         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
10195         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
10196         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
10197         tst-audit3, tst-audit4 and tst-audit5.
10198         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
10199         tst-audit6 and tst-audit7.
10200         [$(subdir) = elf] (modules-names): Add audit modules for those
10201         tests.
10202         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
10203         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
10204         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
10205         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
10206         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
10207         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
10208         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
10209         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
10210         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
10211         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
10212         [$(subdir) = elf] (tst-audit3-ENV): New variable.
10213         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
10214         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
10215         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
10216         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
10217         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
10218         Likewise.
10219         [$(subdir) = elf && $(config-cflags-avx) = yes]
10220         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
10221         [$(subdir) = elf && $(config-cflags-avx) = yes]
10222         (CFLAGS-tst-auditmod4a.c): Likewise.
10223         [$(subdir) = elf && $(config-cflags-avx) = yes]
10224         (CFLAGS-tst-auditmod4b.c): Likewise.
10225         [$(subdir) = elf && $(config-cflags-avx) = yes]
10226         (CFLAGS-tst-auditmod6b.c): Likewise.
10227         [$(subdir) = elf && $(config-cflags-avx) = yes]
10228         (CFLAGS-tst-auditmod6c.c): Likewise.
10229         [$(subdir) = elf && $(config-cflags-avx) = yes]
10230         (CFLAGS-tst-auditmod7b.c): Likewise.
10231         * elf/tst-audit3.c: Move to ...
10232         * sysdeps/x86_64/tst-audit3.c: ... here.
10233         * elf/tst-audit4.c: Move to ...
10234         * sysdeps/x86_64/tst-audit4.c: ... here.
10235         * elf/tst-audit5.c: Move to ...
10236         * sysdeps/x86_64/tst-audit5.c: ... here.
10237         * elf/tst-audit6.c: Move to ...
10238         * sysdeps/x86_64/tst-audit6.c: ... here.
10239         * elf/tst-audit7.c: Move to ...
10240         * sysdeps/x86_64/tst-audit7.c: ... here.
10241         * elf/tst-auditmod3a.c: Move to ...
10242         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
10243         * elf/tst-auditmod3b.c: Move to ...
10244         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
10245         * elf/tst-auditmod4a.c: Move to ...
10246         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
10247         * elf/tst-auditmod4b.c: Move to ...
10248         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
10249         * elf/tst-auditmod5a.c: Move to ...
10250         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
10251         * elf/tst-auditmod5b.c: Move to ...
10252         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
10253         * elf/tst-auditmod6a.c: Move to ...
10254         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
10255         * elf/tst-auditmod6b.c: Move to ...
10256         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
10257         * elf/tst-auditmod6c.c: Move to ...
10258         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
10259         * elf/tst-auditmod7a.c: Move to ...
10260         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
10261         * elf/tst-auditmod7b.c: Move to ...
10262         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
10263
10264 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
10265
10266         [BZ #15366]
10267         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
10268         define unconditionally.
10269         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
10270         define unconditionally.
10271         (INT8_C, INT16_C, etc.): Likewise.
10272
10273 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
10274
10275         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
10276         __ehdr_start with hidden visibility.
10277
10278         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
10279
10280 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
10281
10282         * math/libm-test.inc (cos_test): Use accurate hex constants.
10283         (sincost_test): Likewise.
10284
10285 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
10286
10287         * math/libm-test.inc (catan_test): Add more tests.
10288         (catanh_test): Likewise.
10289
10290         * math/s_catanf.c (__catanf): Use suffixed floating-point
10291         constants.
10292         * math/s_catanhf.c (__catanhf): Likewise.
10293         * math/s_catanhl.c (__catanhl): Likewise.
10294         * math/s_catanl.c (__catanl): Likewise.
10295
10296         [BZ #15394]
10297         * math/s_catan.c (__catan): Calculate imaginary part of result
10298         with log1p not log unless computing log of number close to 0.
10299         * math/s_catanf.c (__catanf): Likewise.
10300         * math/s_catanl.c (__catanl): Likewise.
10301         * math/s_catanh.c (__catanh): Calculate real part of result with
10302         log1p not log unless computing log of number close to 0.
10303         * math/s_catanhf.c (__catanhf): Likewise.
10304         * math/s_catanhl.c (__catanhl): Likewise.
10305         * math/libm-test.inc (catan_test): Add more tests.
10306         (catanh_test): Likewise.
10307         * sysdeps/i386/fpu/libm-test-ulps: Update.
10308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10309
10310 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10311
10312         * benchtests/Makefile: Mention files in which fast and slow
10313         paths of math functions are implemented.
10314
10315 2013-04-23  Roland McGrath  <roland@hack.frob.com>
10316
10317         * sysdeps/posix/timespec_get.c: New file.
10318
10319 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10320
10321         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
10322         POWER.
10323         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
10324         for POWER.
10325         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
10326         powerpc/power5/fpu folders.
10327         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
10328         * benchtests/Makefile: Add modf testcase.
10329         * benchtests/bench-modf.c: New file: Benchmark test for mo
10330
10331 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
10332
10333         [BZ #14888]
10334         * time/Makefile (tests): Add tst-strptime-whitespace.
10335         * time/strptime_l.c (get_number): Use ISSPACE.
10336         (__strptime_internal): Likewise.
10337         * time/tst-strptime-whitespace.c: New test case.
10338
10339 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
10340
10341         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
10342         member.
10343         (_nss_files_init): Set it here.
10344
10345 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
10346
10347         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
10348         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
10349         unsigned.
10350
10351 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
10352
10353         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
10354
10355 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10356
10357         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
10358         size just once.
10359
10360 2013-04-21  David S. Miller  <davem@davemloft.net>
10361
10362         * po/ru.po: Update Russion translation from translation project.
10363
10364 2013-04-17  Adam Conrad  <adconrad@0c3.net>
10365
10366         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
10367         and setfsgid.
10368
10369 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
10370
10371         * configure.in: Remove i386 configure warning. Remove i386 case.
10372         * configure: Regenerate.
10373         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
10374         Add example to error message.
10375         * sysdeps/i386/configure: Regenerate.
10376
10377 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
10378
10379         * benchtests/Makefile (bench): Add cos, tan, slowcos and
10380         slowtan.
10381         * benchtests/cos-inputs: New file.
10382         * benchtests/slowcos-inputs: New file.
10383         * benchtests/slowcos.c: New file.
10384         * benchtests/slowtan-inputs: New file.
10385         * benchtests/slowtan.c: New file.
10386         * benchtests/tan-inputs: New file.
10387
10388 2013-04-16  Roland McGrath  <roland@hack.frob.com>
10389
10390         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
10391         considered kosher.
10392
10393 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10394
10395         * benchtests/Makefile: Include cppflags-iterator.mk to add
10396         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
10397
10398         * Makefile.in (bench-clean): New target.
10399         * benchtests/Makefile (bench-clean): Likewise.
10400
10401 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
10402
10403         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
10404
10405 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
10406
10407         * stdio-common/tstdiomisc.c: Fix coding-style violation.
10408
10409 2013-04-15  Andreas Schwab  <schwab@suse.de>
10410
10411         * nscd/grpcache.c (cache_addgr): Properly check for short write.
10412         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10413         * nscd/pwdcache.c (cache_addpw): Likewise.
10414         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
10415         more than recsize.
10416
10417 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10418
10419         * benchtests/Makefile (bench): Write all output to
10420         bench-out.tmp together.
10421
10422 2013-04-15  Andreas Schwab  <schwab@suse.de>
10423
10424         * nscd/nscd.c (main): Don't fork again after closing files.
10425
10426 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10427
10428         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
10429
10430         * benchtests/Rules (bench-deps): Collect dependencies into a
10431         single variable.  Add Makefile to dependencies.
10432         ($(objpfx)bench-%.c): Depend on bench-deps.
10433
10434 2013-04-12  Roland McGrath  <roland@hack.frob.com>
10435             Xavier Roche  <roche+kml2@exalead.com>
10436
10437         [BZ #15361]
10438         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
10439         just that it's a file descriptor.
10440         * manual/llio.texi (Synchronizing AIO Operations): Update description
10441         for EBADF error from aio_fsync.
10442
10443 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10444
10445         * Rules (bench): Move target definition...
10446         * benchtests/Makefile: ... here.
10447
10448 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
10449
10450         * math/libm-test.inc (cos_test): Fix PI/2 test.
10451         (sincos_test): Likewise.
10452         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
10453         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
10454
10455 2013-04-11  Andreas Schwab  <schwab@suse.de>
10456
10457         [BZ #13988]
10458         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
10459         accept exponent character only when digits were seen.
10460         * stdio-common/Makefile (tests): Add bug26.
10461         * stdio-common/bug26.c: New file.
10462
10463         [BZ #14293]
10464         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
10465         non-freeable.
10466
10467 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10468
10469         * Makeconfig (rtld-prefix): Define built linker prefix.
10470         * Rules (run-bench): Use it.
10471         * math/Makefile (run-regen-ulps): Likewise.
10472
10473         * Rules (bench): Remove eval.
10474
10475 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10476             Roland McGrath  <roland@hack.frob.com>
10477             Ondrej Bilka  <neleai@seznam.cz>
10478
10479         [BZ #15346]
10480         * time/getdate.c: Include ctype.h and alloca.h.
10481         (__getdate_r): Trim leading and trailing spaces of input.
10482         * time/tst-getdate.c (tests): Add tests with leading and
10483         trailing spaces.
10484
10485 2013-04-08  Roland McGrath  <roland@hack.frob.com>
10486
10487         [BZ #14280]
10488         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
10489         when computing value.
10490
10491 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10492
10493         * math/README.libm-test (How can I generate "libm-test-ulps"?):
10494         Use testrun.sh to run libm tests.
10495
10496         [BZ #15309]
10497         * elf/dl-open.c (dl_open_worker): memset all of seen array.
10498
10499 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
10500
10501         [BZ #15264]
10502         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
10503
10504 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10505
10506         * Makefile.in (regen-ulps): New target.
10507         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
10508         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
10509         [ifneq (no,$(PERL)] (regen-ulps): New target.
10510         [ifeq (no,$(PERL)] (regen-ulps): New target.
10511         * math/libm-test.inc (ulps_file_name): Define.
10512         (output_dir): New variable.
10513         (options): Add "output-dir" option.
10514         (parse_opt): Handle 'o' case.
10515         (main): If output_dir is non-NULL use it as a prefix
10516         otherwise use "".
10517         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
10518
10519 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10520
10521         [BZ #10060, #10062]
10522         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
10523         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
10524         fail configure if __sync_val_compare_and_swap is not inlined.
10525         * sysdeps/i386/configure: Regenerate.
10526         * configure.in: Build for i686 when configured for i386.
10527         * configure: Regenerate.
10528         * README: Remove i386 reference.
10529
10530 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10531
10532         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
10533         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10534
10535 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10536
10537         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
10538         (lmsnanval): New variables.
10539         (F): Add conversion tests.
10540         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
10541         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
10542
10543         * stdio-common/tstdiomisc.c (F): Properly collect individual
10544         tests' results.
10545
10546         [BZ #14686, #15336]
10547         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
10548         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
10549         Instead, use input NaN values or generate a qNaN by arithmetic
10550         operation.  Also fix bugs to comply with the standard.
10551         * math/libm-test.inc (remainder_test): Add more tests.
10552
10553         [BZ #15335, #15342]
10554         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
10555         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
10556         input NaN values or generate a qNaN by arithmetic operation.
10557
10558         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
10559         unreachable code.
10560
10561         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
10562         definitions.
10563
10564 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
10565
10566         [BZ #14478]
10567         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
10568         underflowed result.
10569         * math/s_cexpf.c (__cexpf): Likewise.
10570         * math/s_cexpl.c (__cexpl): Likewise.
10571         * math/libm-test.inc (cexp_test): Add more tests.
10572
10573 2013-04-03  Andreas Schwab  <schwab@suse.de>
10574
10575         [BZ #15330]
10576         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
10577         order arrays from heap if bigger than alloca cutoff.
10578
10579 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
10580
10581         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
10582         (SNAN_TESTS_double): Refer to GCC PR56831.
10583         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
10584         GCC PR56828.
10585
10586 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
10587
10588         * Rules (bench): Move bench.out after the run is complete.
10589
10590         * Rules (bench): Echo currently running benchmark.
10591
10592         * benchtests/Makefile (bench): Add atan and slowatan.
10593         * benchtests/atan-inputs: New file.
10594         * benchtests/slowatan-inputs: New file.
10595         * benchtests/slowatan.c: New file.
10596
10597         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
10598         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
10599         its value.
10600
10601         [BZ #15305]
10602         * sysdeps/unix/sysv/linux/kernel-features.h
10603         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
10604         __ASSUME_XFS_RESTRICTED_CHOWN.
10605         * sysdeps/unix/sysv/linux/pathconf.c
10606         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
10607         Save and restore errno.
10608
10609 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
10610
10611         [BZ #15327]
10612         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
10613         arguments using __kernel_casinh.
10614         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
10615         arguments using __kernel_casinhf.
10616         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
10617         arguments using __kernel_casinhl.
10618         * math/libm-test.inc (cacosh_test): Add more tests.
10619         * sysdeps/i386/fpu/libm-test-ulps: Update.
10620         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10621
10622 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10623
10624         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
10625         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
10626
10627         * bench/Makefile (bench): Add sin and slowsin.
10628         * benchtests/sin-inputs: New file.
10629         * benchtests/slowsin-inputs: New file.
10630         * benchtests/slowsin.c: New file.
10631
10632         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
10633         (bench): Add slowexp and slowpow.
10634         (exp-ITER): Increase iterations.
10635         (pow-ITER): Likewise.
10636         * benchtests/exp-inputs: Change input.
10637         * benchtests/pow-inputs: Likewise.
10638         * benchtests/slowexp-inputs: New file.
10639         * benchtests/slowexp.c: New file.
10640         * benchtests/slowpow-inputs: New file.
10641         * benchtests/slowpow.c: New file.
10642
10643 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10644
10645         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
10646         instructions.
10647         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
10648         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
10649         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
10650         * benchtests/Makefile: Add rint benchtest.
10651         * benchtests/rint-inputs: Input for rint benchtest.
10652
10653 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10654
10655         * Versions.def (libm): Add GLIBC_2.18.
10656         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
10657         hidden libm prototypes.
10658         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
10659         * math/Makefile (libm-calls): Add s_issignaling.
10660         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
10661         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
10662         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
10663         declaration.
10664         * math/math.h [__USE_GNU] (issignaling): New macro.
10665         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
10666         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
10667         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
10668         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
10669         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
10670         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
10671         * manual/arith.texi (issignaling): New section.
10672         * manual/libm-err-tab.pl (@all_functions): Update comment.
10673         * math/gen-libm-test.pl (parse_args): Apply special handling for
10674         issignaling.
10675         * math/libm-test.inc (print_float, issignaling_test): New
10676         functions.
10677         (check_float_internal): Add issignaling checks.
10678         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
10679         default definition.
10680         * sysdeps/powerpc/math-tests.h: New file.
10681         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
10682         tests.
10683         * math/test-snan.c (TEST_FUNC): Likewise.
10684
10685 2013-03-30  David S. Miller  <davem@davemloft.net>
10686
10687         * po/de.po: Update from translation team.
10688
10689 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
10690
10691         [BZ #10357]
10692         * math/k_casinh.c (__kernel_casinh): Handle arguments with
10693         imaginary part less than 1.0 and real part less than 0.5
10694         specially.
10695         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10696         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10697         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
10698         (cacos_test): Add more tests.
10699         (casin_test): Likewise.
10700         (casinh_test): Likewise.
10701         * sysdeps/i386/fpu/libm-test-ulps: Update.
10702         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10703
10704 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10705
10706         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
10707         ONE with its value.
10708
10709         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
10710         (__pow_mp): Replace ONE and MONE with their values.
10711         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
10712         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
10713         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
10714         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
10715         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
10716         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
10717
10718         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
10719
10720         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
10721         (__pow_mp): Replace ZERO and MZERO with their values.
10722         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
10723         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
10724         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
10725         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
10726         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
10727         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
10728         (__sqr): Likewise.
10729
10730         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
10731
10732         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
10733
10734 2013-03-28  Roland McGrath  <roland@hack.frob.com>
10735
10736         * include/stdlib.h [!SHARED] (__call_tls_dtors):
10737         Declare with __attribute__ ((weak)).
10738         * stdlib/exit.c (__libc_atexit) [!SHARED]:
10739         Call __call_tls_dtors only if it's not NULL.
10740
10741 2013-03-28  Roland McGrath  <roland@hack.frob.com>
10742
10743         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
10744         didn't do it already, then set _dl_phdr and _dl_phnum based on the
10745         magic __ehdr_start linker symbol if it's defined.
10746         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
10747         them up here if it was already done.
10748
10749         * elf/dl-support.c (_dl_phdr): Make pointer to const.
10750         (_dl_aux_init): Use const in cast when setting it.
10751         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
10752         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
10753         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
10754
10755         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
10756         Declare them here.
10757         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
10758         * csu/libc-tls.c: Nor here.
10759         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
10760
10761         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
10762         (__libc_message): Never call vsyslog.
10763
10764 2013-03-28  Alan Modra  <amodra@gmail.com>
10765
10766         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
10767         Define as empty.
10768         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
10769         Likewise.
10770
10771 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10772
10773         [BZ #15214]
10774         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
10775         underflow.
10776         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10777
10778 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10779
10780         [BZ #15304]
10781         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
10782         Don't add gid passed as argument.
10783
10784         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
10785
10786 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
10787
10788         [BZ #15307]
10789         * math/k_casinh.c (__kernel_casinh): Handle arguments with
10790         imaginary part between 1.0 and 1.5 and real part less than 0.5
10791         specially.
10792         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10793         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10794         * math/libm-test.inc (cacos_test): Add more tests.
10795         (casin_test): Likewise.
10796         (casinh_test): Likewise.
10797         * sysdeps/i386/fpu/libm-test-ulps: Update.
10798         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10799
10800 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10801
10802         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
10803         constants.
10804         (norm): Likewise.
10805         (denorm): Likewise.
10806         (__dbl_mp): Likewise.
10807         (add_magnitudes): Likewise.
10808         (sub_magnitudes): Likewise.
10809         (__add): Likewise.
10810         (__sub): Likewise.
10811         (__mul): Likewise.
10812         (__sqr): Likewise.
10813         (__inv): Likewise.
10814         (__dvd): Likewise.
10815
10816         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
10817         commented code.
10818         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
10819         (__dubcos): Likewise.
10820         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
10821         (__ieee754_acos): Likewise.
10822         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
10823         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
10824         (__exp1): Likewise.
10825         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
10826         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10827         (log1): Likewise.
10828         (my_log2): Likewise.
10829         (checkint): Likewise.
10830         * sysdeps/ieee754/dbl-64/e_remainder.c
10831         (__ieee754_remainder): Likewise.
10832         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
10833         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
10834         (bsloww): Likewise.
10835         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
10836
10837         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
10838         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
10839         MANTISSA_STORE_T to store computations on mantissa.  Use
10840         macros for rounding and division.
10841         (denorm): Likewise.
10842         (__dbl_mp): Likewise.
10843         (add_magnitudes): Likewise.
10844         (sub_magnitudes): Likewise.
10845         (__mul): Likewise.
10846         (__sqr): Likewise.
10847         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
10848         powers of two in terms of TWOPOW macro.
10849         (mp_no): Make type of mantissa as MANTISSA_T.
10850         [!RADIXI]: Define RADIXI.
10851         [!TWO52]: Define TWO52.
10852         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
10853
10854 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10855
10856         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
10857         llroundl symbol when building for PPC32.
10858
10859 2013-03-24  Mark H Weaver  <mhw@netris.org>
10860
10861         * manual/arith.texi (Normalization Functions): Fix prototypes for
10862         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
10863
10864 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10865
10866         [BZ #13889]
10867         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
10868         high value to check if expl overflow.
10869         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
10870         to check for underflow and overflow.
10871         * math/libm-test.inc: Add exp test.
10872
10873 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
10874
10875         [BZ #11120]
10876         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
10877         with NOT_IN_libc.
10878
10879 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10880
10881         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
10882         symbol.
10883
10884 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10885
10886         * math/gen-libm-test.pl (parse_args, special_functions): Properly
10887         wrap blocks consisting of several statements.
10888
10889         * sysdeps/generic/math-tests.h: New file.
10890         * sysdeps/i386/fpu/math-tests.h: Likewise.
10891         * math/test-snan.c: Include it.
10892         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
10893
10894 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
10895
10896         [BZ #15285]
10897         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
10898         (__ieee754_j0l): Do not improve calculations using cos of twice
10899         input for inputs above LDBL_MAX / 2.0L.
10900         (__ieee754_y0l): Likewise.
10901         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
10902         (__ieee754_j1l): Do not improve calculations using cos of twice
10903         input for inputs above LDBL_MAX / 2.0L.
10904         (__ieee754_y1l): Likewise.
10905         * math/libm-test.inc (j0_test): Add another test.
10906         (j1_test): Likewise.
10907         (y0_test): Likewise.
10908         (y1_test): Likewise.
10909         * sysdeps/i386/fpu/libm-test-ulps: Update.
10910
10911 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
10912
10913         * Rules ($(objpfx)bench-%.c): Include code from a C source
10914         file.
10915
10916 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
10917
10918         [BZ #15287]
10919         * math/k_casinh.c (__kernel_casinh): Handle arguments with
10920         imaginary part 1.0 and real part less than 0.5 specially.
10921         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10922         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10923         * math/libm-test.inc (cacos_test): Add more tests.
10924         (casin_test): Likewise.
10925         (casinh_test): Likewise.
10926         * sysdeps/i386/fpu/libm-test-ulps: Update.
10927         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10928
10929 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
10930
10931         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
10932         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
10933
10934 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
10935
10936         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
10937         * config.make.in (config-cflags-sse4): Remove variable.
10938         (config-cflags-avx): Likewise.
10939         (config-cflags-sse2avx): Likewise.
10940         (config-cflags-novzeroupper): Likewise.
10941         (config-asflags-i686): Likewise.
10942         (have-mfma4): Likewise.
10943         (have-as-vis3): Likewise.
10944         (MIG): Likewise.
10945         * configure.in (MIG): Do not AC_SUBST.
10946         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
10947         (libc_cv_cc_sse4): Do not AC_SUBST.
10948         (libc_cv_cc_avx): Likewise.
10949         (libc_cv_cc_sse2avx): Likewise.
10950         (libc_cv_cc_novzeroupper): Likewise.
10951         (libc_cv_cc_fma4): Likewise.
10952         (libc_cv_as_i686): Likewise.
10953         (libc_cv_sparc_as_vis3): Likewise.
10954         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
10955         LIBC_CONFIG_VAR.
10956         (config-asflags-i686): Likewise.
10957         (config-cflags-avx): Likewise.
10958         (config-cflags-sse2avx): Likewise.
10959         (have-mfma4): Likewise.
10960         (config-cflags-novzeroupper): Likewise.
10961         * sysdeps/mach/configure.in (MIG): Likewise.
10962         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
10963         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
10964         LIBC_CONFIG_VAR.
10965         (config-cflags-avx): Likewise.
10966         (config-cflags-sse2avx): Likewise.
10967         (have-mfma4): Likewise.
10968         (config-cflags-novzeroupper): Likewise.
10969         * configure: Regenerated.
10970         * sysdeps/i386/configure: Likewise.
10971         * sysdeps/mach/configure: Likewise.
10972         * sysdeps/sparc/configure: Likewise.
10973         * sysdeps/x86_64/configure: Likewise.
10974
10975 2013-03-20  Roland McGrath  <roland@hack.frob.com>
10976
10977         [BZ #14812]
10978         * locale/programs/localedef.c (options): Put N_ translation marker
10979         on argument names, not just descriptions.
10980
10981 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10982
10983         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
10984
10985 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
10986
10987         [BZ #14176]
10988         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
10989
10990 2013-03-19  Roland McGrath  <roland@hack.frob.com>
10991
10992         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
10993         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
10994         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
10995         [!BEFORE_ABORT] (before_abort): New function.
10996         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
10997         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
10998         (writev_for_fatal): New function.
10999         (WRITEV_FOR_FATAL): New macro; call that.
11000         (backtrace_and_maps): New function.
11001         (BEFORE_ABORT): New macro; call that.
11002         (struct str_list): Type removed.
11003         (__libc_message, __libc_fatal): Functions removed.
11004         Include <sysdeps/posix/libc_fatal.c> instead.
11005
11006 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
11007
11008         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
11009         constants.
11010         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
11011         double constants.
11012
11013 2013-03-19  Andreas Schwab  <schwab@suse.de>
11014
11015         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
11016         * sysdeps/gnu/configure: Regenerate.
11017
11018         * configure.in: Substitute libc_cv_rtlddir.
11019         * configure: Regenerate.
11020         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
11021         * Makeconfig (rtlddir, inst_rtlddir): New variables.
11022         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
11023         * elf/Makefile (install-others, CFLAGS-interp.c)
11024         (ldso_install, common-ldd-rewrite): Likewise.
11025         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
11026         $(inst_slibdir)/$(rtld-installed-name).
11027         * scripts/rellns-sh: Add -p option.
11028         * Makerules (make-shlib-link): Use rellns-sh to get relative name
11029         for source.
11030
11031 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11032
11033         * manual/nptl.texi: Renamed to ...
11034         * manual/threads.texi: ... this.
11035         * manual/Makefile (chapters): Update.
11036
11037 2013-03-18  Roland McGrath  <roland@hack.frob.com>
11038
11039         [BZ #14812]
11040         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
11041         on argument names, not just descriptions.
11042         * malloc/memusagestat.c (options): Likewise.
11043         * nss/getent.c (options): Likewise.
11044
11045 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
11046
11047         [BZ #14812]
11048         * iconv/iconv_prog.c (options): Put N_ translation marker
11049         on argument names, not just descriptions.
11050         * iconv/iconvconfig.c (options): Likewise.
11051
11052 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
11053
11054         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
11055         implementation which is faster on all x86_64 architectures.
11056         Tested on AMD, Intel Nehalem, SNB, IVB.
11057         * sysdeps/x86_64/strnlen.S: Likewise.
11058
11059         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
11060         Remove all multiarch strlen and strnlen versions.
11061         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
11062         Remove strlen and strnlen related parts.
11063
11064         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
11065         Inline strlen part.
11066         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
11067
11068         * sysdeps/x86_64/multiarch/strlen.S: Remove.
11069         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
11070         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
11071         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
11072         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
11073         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
11074
11075 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
11076
11077         * manual/memory.texi (Malloc Tunable Parameters):
11078         Sort parameters alphabetically. Add comments for missing entries.
11079
11080 2013-03-17  David S. Miller  <davem@davemloft.net>
11081
11082         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11083
11084 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
11085
11086         [BZ #15283]
11087         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
11088         for arguments at most half maximum finite value.
11089         * math/libm-test.inc (j0_test): Add more tests.
11090         (j1_test): Likewise.
11091         (y0_test): Likewise.
11092         (y1_test): Likewise.
11093         * sysdeps/i386/fpu/libm-test-ulps: Update.
11094         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11095
11096         [BZ #14155]
11097         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
11098         1 / x and functions P and Q for arguments above 0x1p256L.
11099         (__ieee754_y0l): Likewise.
11100         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
11101         (__ieee754_y1l): Likewise.
11102         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
11103         (j1_test): Likewise.
11104         (y0_test): Likewise.
11105         (y1_test): Likewise.
11106
11107 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
11108
11109         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
11110         variable.
11111
11112 2013-03-15  Roland McGrath  <roland@hack.frob.com>
11113
11114         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
11115         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
11116         zero since it's initialized to EXEC_PAGESIZE.
11117
11118         * sysdeps/unix/sysv/linux/ldsodefs.h
11119         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
11120         * sysdeps/generic/ldsodefs.h: ... here.
11121
11122 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
11123
11124         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
11125
11126         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
11127         math/test-snan.c.
11128         * math/test-snan.c: Renamed from
11129         sysdeps/powerpc/fpu/test-powerpc-snan.c.
11130         * math/Makefile (tests): Add test-snan.
11131         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
11132         test-powerpc-snan.
11133
11134         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
11135         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
11136         functions.
11137         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
11138         __builtin_nan family of functions.
11139         * math/libm-test.inc (initialize): Initialize qnan_value with
11140         __builtin_nan family of functions.
11141         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
11142         Remove variables.
11143         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
11144         Remove functions.
11145         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
11146         storage class.  Initialize qNaN_var and sNaN_var with
11147         __builtin_nan and __builtin_nans families of functions,
11148         respectively.
11149
11150         * math/libm-test.inc (acosh_test): Also test with qNaN input.
11151         (sqrt_test): Remove duplicate test with qNaN input.
11152         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
11153         (round_test, signbit_test, significand_test): Note missing +/-Inf
11154         as well as qNaN tests.
11155
11156         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
11157         qNaN_var.  Fix a few strings, too.
11158         * math/libm-test.inc (nan_value): Rename to qnan_value.
11159         * math/gen-libm-test.pl (%beautify): Adjust to that.
11160         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
11161         * math/test-misc.c (main): Likewise.
11162         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
11163         to __qnan_bytes, and __qnan_union, respectively.
11164         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
11165         Likewise.
11166         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
11167         and lqnanval, respectively.
11168         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
11169         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
11170         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
11171         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
11172
11173         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
11174         * math/test-misc.c (main) [__x86_64__]: Enable test for long
11175         doubles.
11176
11177         * math/test-misc.c (main): Fix copy'n'pastos.
11178         * misc/tst-efgcvt.c (special): Likewise.
11179
11180         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
11181         Remove declarations.
11182
11183 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11184
11185         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
11186         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
11187         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
11188         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
11189
11190 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11191
11192         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
11193         macro to return vdso values correctly in IFUNC implementations.
11194         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
11195         Optimization by using IFUNC.
11196
11197 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11198             Richard Henderson  <rth@redhat.com>
11199             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11200
11201         * Makefile.in (bench): New target.
11202         * NEWS: Mention the benchmark framework.
11203         * Rules (bench): Likewise.
11204         (binaries-bench): Generate binaries for functions to
11205         benchmark.
11206         * benchtests/Makefile: New makefile for benchmark tests.
11207         * benchtests/bench-skeleton.c: New skeleton file for benchmark
11208         programs.
11209         * benchtests/exp-inputs: New input file for EXP function.
11210         * benchtests/pow-inputs: New input file for POW function.
11211         * scripts/bench.pl: New script to generate source files for
11212         benchmark programs.
11213
11214 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11215
11216         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11217         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
11218         computations on mantissa.  Use macros for rounding and
11219         division.
11220         (denorm): Likewise.
11221         (__dbl_mp): Likewise.
11222         (add_magnitudes): Likewise.
11223         (sub_magnitudes): Likewise.
11224         (__mul): Likewise.
11225         (__sqr): Likewise.
11226         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11227         powers of two in terms of TWOPOW macro.
11228         (mp_no): Make type of mantissa as MANTISSA_T.
11229         [!RADIXI]: Define RADIXI.
11230         [!TWO52]: Define TWO52.
11231         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11232
11233         * manual/nptl.texi (cindex): Modify threads to pthreads.
11234
11235 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
11236
11237         * sysdeps/x86_64/preconfigure: Regenerated.
11238
11239 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
11240
11241         [BZ #14155]
11242         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
11243         0x1p28 and above.
11244         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
11245         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
11246         0x1p28 and above.
11247         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
11248         * math/libm-test.inc (j0_test): Do not allow one spurious
11249         underflow exception.
11250         (y1_test): Likewise.
11251
11252 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
11253
11254         * manual/Makefile (chapters): Add nptl.
11255         * manual/debug.texi (Debugging Support): Add link to Threads
11256         chapter.
11257         * manual/nptl.texi: New file.
11258
11259         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
11260
11261 2013-03-14  Petr Baudis  <pasky@ucw.cz>
11262
11263         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
11264         for non-NULL pointer before the memory validity test. Pointed
11265         out by Holger Brunck <holger.brunck@keymile.com>.
11266
11267 2013-03-13  Andreas Schwab  <schwab@suse.de>
11268
11269         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
11270         instead of .os.
11271
11272 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
11273
11274         * timezone/zic.c: Update from tzcode 2013b.
11275
11276 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
11277
11278         * manual/install.texi (Configuring and compiling):
11279         Mention i686 and i586.
11280         * INSTALL: Regenerate.
11281
11282 2013-03-12  Roland McGrath  <roland@hack.frob.com>
11283
11284         * sysdeps/init_array/elf-init.c: New file.
11285         * csu/elf-init.c
11286         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
11287         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
11288
11289         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
11290         __gmon_start__ as global, but as static with a .preinit_array pointer.
11291         * sysdeps/init_array/gmon-start.c: New file.  Use that.
11292         * sysdeps/init_array/crti.S: New file, empty except for comments.
11293         * sysdeps/init_array/crtn.S: Likewise.
11294
11295 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
11296
11297         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
11298         definining bcopy.
11299         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11300         Remove Prefer_SSE_for_memop.
11301         * sysdeps/x86_64/multiarch/init-arch.h: Remove
11302         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
11303         HAS_PREFER_SSE_FOR_MEMOP.
11304         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
11305         memset-x86-64.
11306         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
11307         Remove bzero, memset ifunc support.
11308         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
11309         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
11310         * sysdeps/x86_64/multiarch/memset.S: Likewise.
11311         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
11312
11313 2013-03-11  Andreas Schwab  <schwab@suse.de>
11314
11315         [BZ #15234]
11316         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
11317         by SHLIB_COMPAT.
11318         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
11319         (GLIBC_2.16): Remove pthread_atfork.
11320
11321 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
11322
11323         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
11324         (ptestcases.h): Likewise.
11325
11326 2013-03-08  Roland McGrath  <roland@hack.frob.com>
11327
11328         * Makeconfig ($(common-objpfx)config.status): Depend on
11329         sysdeps/*/preconfigure{,.in} too.
11330
11331 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
11332
11333         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
11334         (__free_hook): Use void * instead of __malloc_ptr_t.
11335         (__malloc_hook): Likewise.
11336         (__realloc_hook): Likewise.
11337         (__memalign_hook): Likewise.
11338         (__after_morecore_hook): Likewise.
11339         * malloc/arena.c (save_malloc_hook): Likewise.
11340         (save_free_hook): Likewise.
11341         * malloc/hooks.c (malloc_hook_ini): Likewise.
11342         (realloc_hook_ini): Likewise.
11343         (memalign_hook_ini): Likewise.
11344         * malloc/malloc.c (malloc_hook_ini): Likewise.
11345         (realloc_hook_ini): Likewise.
11346         (memalign_hook_ini): Likewise.
11347         (__free_hook): Likewise.
11348         (__malloc_hook): Likewise.
11349         (__realloc_hook): Likewise.
11350         (__memalign_hook): Likewise.
11351         (__libc_malloc): Likewise.
11352         (__libc_free): Likewise.
11353         (__libc_realloc): Likewise.
11354         (__libc_memalign): Likewise.
11355         (__libc_valloc): Likewise.
11356         (__libc_pvalloc): Likewise.
11357         (__libc_calloc): Likewise.
11358         (__posix_memalign): Likewise.
11359         * malloc/morecore.c (__sbrk): Likewise.
11360         (__default_morecore): Likewise.
11361
11362         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
11363
11364         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
11365         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
11366         __malloc_ptrdiff_t.
11367
11368         * malloc/malloc.h (__malloc_size_t): Remove macro.
11369         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
11370         __malloc_size_t.
11371         (old_memalign_hook): Likewise.
11372         (old_realloc_hook): Likewise.
11373         (struct hdr): Likewise.
11374         (flood): Likewise.
11375         (mallochook): Likewise.
11376         (memalignhook): Likewise.
11377         (reallochook): Likewise.
11378         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
11379         (tr_old_realloc_hook): Likewise.
11380         (tr_old_memalign_hook): Likewise.
11381         (tr_mallochook): Likewise.
11382         (tr_reallochook): Likewise.
11383         (tr_memalignhook): Likewise.
11384
11385 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11386
11387         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
11388         default_ldbl_pack and using as default implementation.
11389         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
11390         implementation.
11391         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
11392         redundant definition.
11393         (ldbl_insert_mantissa): Likewise.
11394         (ldbl_canonicalize): Likewise.
11395         (ldbl_nearbyint): Likewise.
11396         (ldbl_pack): Rename to ldbl_pack_ppc.
11397         (ldbl_unpack): Rename to ldbl_unpack_ppc.
11398         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
11399         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
11400
11401 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11402
11403         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
11404         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
11405         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
11406         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
11407         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
11408         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
11409         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
11410         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
11411
11412 2013-03-07  Andreas Jaeger  <aj@suse.de>
11413
11414         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11415         bits/mman-linux.h.
11416
11417 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
11418
11419         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
11420         Include mpa.h and declare __MPEXP.
11421         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
11422         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
11423         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
11424         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
11425         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
11426         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
11427         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
11428
11429         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
11430         (__slowpow): Use long double EXPL and LOGL functions to
11431         compute POW.
11432         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
11433         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
11434         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
11435         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
11436         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
11437         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
11438
11439         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
11440         intermediate variable to calculate exponent.
11441         (__sqr): Likewise.
11442         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
11443         Likewise.
11444         (__sqr): Likewise.
11445
11446         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
11447         [!NO__SQR]: Define __sqr.
11448         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
11449         and NO__SQR.  Remove all code except __mul and __sqr.  Include
11450         sysdeps/ieee754/dbl-64/mpa.c.
11451         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11452
11453         [BZ #12723]
11454         * posix/Makefile (tests): Add tst-pathconf.
11455         * posix/tst-pathconf.c: New test case.
11456         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
11457         _PC_PIPE_BUF.
11458         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
11459
11460 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
11461
11462         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
11463
11464 2013-03-06  Andreas Jaeger  <aj@suse.de>
11465
11466         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
11467         definition via __MAP_ANONYMOUS.
11468
11469         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
11470         it's not part of Linux headers.
11471
11472         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
11473         (MAP_HUGE_MASK): Define.
11474
11475         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11476         Define.
11477         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11478         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11479         Define.
11480         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11481         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11482         Define.
11483         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11484         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
11485         Define.
11486         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11487
11488         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
11489         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
11490         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
11491         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
11492         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
11493         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
11494
11495         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
11496         Handle f2fs.
11497
11498         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11499         Handle f2fs and efivarfs.
11500
11501         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
11502         f2fs.
11503
11504         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
11505         (EFIVARFS_MAGIC): Add.
11506         (F2FS_LINK_MAX): Add.
11507
11508 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11509
11510         * stdio-common/vfprintf.c: Replace __builtin_expect with
11511         __glibc_unlikely.
11512
11513 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
11514
11515         [BZ #13550]
11516         * sysdeps/generic/bp-sym.h: Remove file.
11517         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
11518         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
11519         <bp-sym.h> and <bp-asm.h>.
11520         (__longjmp): Don't use BP_SYM.
11521         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
11522         and <bp-asm.h>.
11523         (memcpy): Don't use BP_SYM.
11524         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
11525         <bp-sym.h> and <bp-asm.h>.
11526         (memcpy): Don't use BP_SYM.
11527         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
11528         <bp-asm.h>.
11529         (memcpy): Don't use BP_SYM.
11530         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
11531         <bp-asm.h>.
11532         (memset): Don't use BP_SYM.
11533         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11534         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11535         (__bzero): Don't use BP_SYM.
11536         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11537         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11538         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
11539         <bp-sym.h> and <bp-asm.h>.
11540         (memcmp): Don't use BP_SYM.  Remove comment about bounded
11541         pointers.
11542         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
11543         <bp-sym.h> and <bp-asm.h>.
11544         (memcpy): Don't use BP_SYM.
11545         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
11546         <bp-sym.h> and <bp-asm.h>.
11547         (memset): Don't use BP_SYM.
11548         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11549         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11550         (__bzero): Don't use BP_SYM.
11551         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11552         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11553         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
11554         <bp-sym.h> and <bp-asm.h>.
11555         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11556         pointers.
11557         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
11558         <bp-sym.h> and <bp-asm.h>.
11559         (memcpy): Don't use BP_SYM.
11560         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
11561         <bp-sym.h> and <bp-asm.h>.
11562         (memset): Don't use BP_SYM.
11563         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11564         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11565         (__bzero): Don't use BP_SYM.
11566         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11567         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11568         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
11569         <bp-sym.h> and <bp-asm.h>.
11570         (__memchr): Don't use BP_SYM.
11571         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
11572         <bp-sym.h> and <bp-asm.h>.
11573         (memcmp): Don't use BP_SYM.  Remove comment about bounded
11574         pointers.
11575         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
11576         <bp-sym.h> and <bp-asm.h>.
11577         (memcpy): Don't use BP_SYM.
11578         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
11579         <bp-sym.h> and <bp-asm.h>.
11580         (__mempcpy): Don't use BP_SYM.
11581         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
11582         <bp-sym.h> and <bp-asm.h>.
11583         (__memrchr): Don't use BP_SYM.
11584         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
11585         <bp-sym.h> and <bp-asm.h>.
11586         (memset): Don't use BP_SYM.
11587         (__bzero): Likewise.
11588         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
11589         <bp-sym.h> and <bp-asm.h>.
11590         (__rawmemchr): Don't use BP_SYM.
11591         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
11592         <bp-sym.h> and <bp-asm.h>.
11593         (__STRCMP): Don't use BP_SYM.
11594         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
11595         <bp-sym.h> and <bp-asm.h>.
11596         (strchr): Don't use BP_SYM.
11597         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
11598         <bp-sym.h> and <bp-asm.h>.
11599         (__strchrnul): Don't use BP_SYM.
11600         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
11601         <bp-sym.h> and <bp-asm.h>.
11602         (strlen): Don't use BP_SYM.
11603         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
11604         <bp-sym.h> and <bp-asm.h>.
11605         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11606         pointers.
11607         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
11608         <bp-sym.h> and <bp-asm.h>.
11609         (__strnlen): Don't use BP_SYM.
11610         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
11611         <bp-sym.h> and <bp-asm.h>.
11612         (__GI__setjmp): Don't use BP_SYM.
11613         (_setjmp): Likewise.
11614         (__sigsetjmp): Likewise.
11615         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
11616         (L(start_addresses)): Don't use BP_SYM.
11617         (_start): Likewise.
11618         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
11619         <bp-asm.h>.
11620         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
11621         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
11622         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11623         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11624         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
11625         <bp-asm.h>.
11626         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
11627         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
11628         about bounded pointers.
11629         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
11630         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11631         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
11632         <bp-asm.h>.
11633         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
11634         about bounded pointers.  Remove GKM FIXME comments.
11635         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
11636         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
11637         <bp-asm.h>.
11638         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
11639         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
11640         Remove GKM FIXME comments.
11641         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11642         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11643         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
11644         <bp-asm.h>.
11645         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
11646         about bounded pointers.  Remove GKM FIXME comment.
11647         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
11648         and <bp-asm.h>.
11649         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11650         pointers.
11651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
11652         <bp-sym.h> and <bp-asm.h>.
11653         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
11654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
11655         <bp-sym.h> and <bp-asm.h>.
11656         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
11657         comment.
11658
11659 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11660
11661         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
11662         call free(NULL).
11663
11664 2013-03-05  David S. Miller  <davem@davemloft.net>
11665
11666         * po/es.po: Update from translation team.
11667
11668 2013-03-05  Andreas Jaeger  <aj@suse.de>
11669
11670         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
11671         <bits/mman-linux.h>.
11672         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11673         is fine.
11674         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
11675         <bits/mman-linux.h> to end of file.
11676         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11677         is fine.
11678         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
11679         <bits/mman-linux.h> to end of file.
11680         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11681         is fine.
11682         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
11683         <bits/mman-linux.h> to end of file.
11684
11685         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
11686         (MCL_CURRENT, MCL_FUTURE): Define here.
11687
11688 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11689
11690         [BZ #15232]
11691         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
11692         attribute_hidden.
11693         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
11694
11695 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11696
11697         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
11698         fourth parameter needed for rt_sigprocmask syscall.
11699         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
11700         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
11701         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
11702         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
11703         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
11704         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
11705
11706 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
11707
11708         [BZ #13550]
11709         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
11710         comment about bounded pointers.
11711         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
11712         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
11713
11714 2013-03-04  Andreas Jaeger  <aj@suse.de>
11715
11716         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
11717         common definitions.
11718
11719         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
11720         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
11721         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
11722         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11723         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
11724         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11725
11726 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11727
11728         [BZ #15055]
11729         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
11730         __ieee754_sqrl instead of __sqrl.
11731
11732 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
11733
11734         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
11735         * sysdeps/powerpc/fpu_control.h: ... here.
11736         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
11737         * sysdeps/powerpc/bits/fenvinline.h: ... here.
11738         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
11739         * sysdeps/powerpc/bits/mathinline.h: ... here.
11740
11741 2013-03-01  Roland McGrath  <roland@hack.frob.com>
11742
11743         * elf/dl-hwcaps.c (_dl_important_hwcaps):
11744         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
11745         to just [NEED_DL_SYSINFO_DSO].
11746         * elf/dl-support.c: Likewise.
11747         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
11748         * elf/rtld.c (dl_main): Likewise.
11749         * elf/setup-vdso.h (setup_vdso): Likewise.
11750         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
11751         * sysdeps/unix/sysv/linux/dl-sysdep.c
11752         (_dl_discover_osversion): Likewise.
11753
11754 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
11755
11756         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
11757         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
11758
11759 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
11760
11761         * NEWS: Mention libm performance improvements and non-x86 PI
11762         futex support.
11763
11764         * csu/libc-start.c (__pthread_initialize_minimal): Change
11765         function arguments.
11766         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
11767
11768 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
11769
11770         [BZ #13550]
11771         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
11772         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
11773         <bp-sym.h> and <bp-asm.h>.
11774         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
11775         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
11776         and <bp-asm.h>.
11777         (memcpy): Don't use BP_SYM.
11778         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
11779         <bp-asm.h>.
11780         (__mpn_add_n): Don't use BP_SYM.
11781         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
11782         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
11783         and <bp-asm.h>.
11784         (__mpn_addmul_1): Don't use BP_SYM.
11785         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11786         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
11787         <bp-sym.h>.
11788         (_setjmp): Don't use BP_SYM.
11789         (__novmx_setjmp): Likewise.
11790         (__GI__setjmp): Likewise.
11791         (__vmx_setjmp): Likewise.
11792         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
11793         <bp-sym.h>.
11794         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
11795         (__bzero): Don't use BP_SYM.
11796         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11797         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11798         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
11799         <bp-sym.h> and <bp-asm.h>.
11800         (memcpy): Don't use BP_SYM.
11801         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
11802         <bp-sym.h> and <bp-asm.h>.
11803         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
11804         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
11805         <bp-sym.h> and <bp-asm.h>.
11806         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
11807         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
11808         <bp-asm.h>.
11809         (__mpn_lshift): Don't use BP_SYM.
11810         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11811         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
11812         <bp-asm.h>.
11813         (memset): Don't use BP_SYM.
11814         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11815         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11816         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
11817         <bp-asm.h>.
11818         (__mpn_mul_1): Don't use BP_SYM.
11819         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11820         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
11821         <bp-sym.h> and <bp-asm.h>.
11822         (memcmp): Don't use BP_SYM.
11823         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
11824         <bp-sym.h> and <bp-asm.h>.
11825         (memcpy): Don't use BP_SYM.
11826         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
11827         <bp-sym.h> and <bp-asm.h>.
11828         (memset): Don't use BP_SYM.
11829         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
11830         <bp-sym.h> and <bp-asm.h>.
11831         (strncmp): Don't use BP_SYM.
11832         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
11833         <bp-sym.h> and <bp-asm.h>.
11834         (memcpy): Don't use BP_SYM.
11835         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
11836         <bp-sym.h> and <bp-asm.h>.
11837         (memset): Don't use BP_SYM.
11838         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
11839         <bp-sym.h> and <bp-asm.h>.
11840         (__memchr): Don't use BP_SYM.
11841         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
11842         <bp-sym.h> and <bp-asm.h>.
11843         (memcmp): Don't use BP_SYM.
11844         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
11845         <bp-sym.h> and <bp-asm.h>.
11846         (memcpy): Don't use BP_SYM.
11847         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
11848         <bp-sym.h> and <bp-asm.h>.
11849         (__mempcpy): Don't use BP_SYM.
11850         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
11851         <bp-sym.h> and <bp-asm.h>.
11852         (__memrchr): Don't use BP_SYM.
11853         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
11854         <bp-sym.h> and <bp-asm.h>.
11855         (memset): Don't use BP_SYM.
11856         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
11857         <bp-sym.h> and <bp-asm.h>.
11858         (__rawmemchr): Don't use BP_SYM.
11859         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
11860         <bp-sym.h> and <bp-asm.h>.
11861         (__STRCMP): Don't use BP_SYM.
11862         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
11863         <bp-sym.h> and <bp-asm.h>.
11864         (strchr): Don't use BP_SYM.
11865         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
11866         <bp-sym.h> and <bp-asm.h>.
11867         (__strchrnul): Don't use BP_SYM.
11868         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
11869         <bp-sym.h> and <bp-asm.h>.
11870         (strlen): Don't use BP_SYM.
11871         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
11872         <bp-sym.h> and <bp-asm.h>.
11873         (strncmp): Don't use BP_SYM.
11874         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
11875         <bp-sym.h> and <bp-asm.h>.
11876         (__strnlen): Don't use BP_SYM.
11877         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
11878         <bp-asm.h>.
11879         (__mpn_rshift): Don't use BP_SYM.
11880         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11881         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
11882         <bp-sym.h> and <bp-asm.h>.
11883         (__sigsetjmp): Don't use BP_SYM.
11884         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
11885         (L(start_addresses)): Don't use BP_SYM.
11886         (_start): Likewise.
11887         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
11888         <bp-asm.h>.
11889         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
11890         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11891         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11892         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
11893         <bp-asm.h>.
11894         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
11895         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
11896         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11897         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
11898         <bp-asm.h>.
11899         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
11900         comments.
11901         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
11902         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
11903         <bp-asm.h>.
11904         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
11905         FIXME comments.
11906         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11907         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11908         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
11909         <bp-asm.h>.
11910         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
11911         comment.
11912         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
11913         and <bp-asm.h>.
11914         (strncmp): Don't use BP_SYM,
11915         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
11916         <bp-asm.h>.
11917         (__mpn_sub_n): Don't use BP_SYM.
11918         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11919         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
11920         and <bp-asm.h>.
11921         (__mpn_submul_1): Don't use BP_SYM.
11922         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
11924         <bp-sym.h> and <bp-asm.h>.
11925         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
11926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
11927         <bp-sym.h> and <bp-asm.h>.
11928         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
11929         comment.
11930
11931 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11932
11933         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
11934         Use ZK to minimize writes to Z.
11935         (sub_magnitudes): Simplify code a bit.
11936         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
11937         Use ZK to minimize writes to Z.
11938         (sub_magnitudes): Simplify code a bit.
11939
11940 2013-02-27  Roland McGrath  <roland@hack.frob.com>
11941
11942         * csu/gmon-start.c: Add special exception to license text.
11943
11944 2013-02-27  Richard Henderson  <rth@redhat.com>
11945
11946         * scripts/config.guess: Update from config.git.
11947         * scripts/config.sub: Likewise.
11948
11949 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11950
11951         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
11952
11953         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
11954
11955         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
11956
11957         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
11958
11959         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
11960
11961 2013-02-26  Roland McGrath  <roland@hack.frob.com>
11962
11963         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
11964         [$(build-shared = yes].
11965
11966 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11967
11968         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
11969         (__mul): Reduce iterations for calculating mantissa.
11970
11971         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
11972         MPTWO.
11973         (__mpranred): Likewise.
11974
11975         [BZ #15160]
11976         * malloc/memusagestat.c (main): Draw graphs for heap and stack
11977         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
11978
11979 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
11980
11981         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
11982         Define __attribute__.
11983
11984 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11985
11986         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
11987         unused.
11988         * posix/regex_internal.h (__attribute): Remove.
11989         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
11990         (re_string_context_at): Likewise.
11991         (bitset_not): Use __attribute__ and mark function as possibly
11992         unused.
11993         (bitset_merge): Likewise.
11994         (bitset_mask): Likewise.
11995         (re_string_char_size_at): Likewise.
11996         (re_string_wchar_at): Likewise.
11997         (re_string_elem_size_at): Likewise.
11998
11999 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12000
12001         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
12002         code.
12003         (cc32): Likewise.
12004
12005         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
12006         (__acr): Likewise.
12007         (__cpy): Likewise.
12008         (norm): Likewise.
12009         (denorm): Likewise.
12010         (__dbl_mp): Likewise.
12011         (add_magnitudes): Likewise.
12012         (sub_magnitudes): Likewise.
12013         (__mul): Likewise.
12014         (__inv): Likewise.
12015
12016         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
12017         style.
12018
12019         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
12020         style.
12021
12022         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
12023         code.
12024
12025         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
12026         up changes with default code.
12027         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
12028         Likewise.
12029
12030 2013-02-24  Allan McRae  <allan@archlinux.org>
12031
12032         * manual/socket.texi (The Internet Namespace): Order menu items
12033         to match that in the file.
12034
12035         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
12036         node listing of the info page menu.
12037
12038 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
12039
12040         [BZ #13550]
12041         * sysdeps/i386/bp-asm.h: Remove file.
12042         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12043         (PARMS): Do not use macros from bp-asm.h.
12044         (S1): Likewise.
12045         (S2): Likewise.
12046         (SIZE): Likewise.
12047         (__mpn_add_n): Do not use BP_SYM
12048         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
12049         "bp-asm.h".
12050         (PARMS): Do not use macros from bp-asm.h.
12051         (S1): Likewise.
12052         (SIZE): Likewise.
12053         (__mpn_addmul_1): Do not use BP_SYM
12054         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
12055         "bp-asm.h".
12056         (PARMS): Do not use macros from bp-asm.h.
12057         (SIGMSK): Likewise.
12058         (_setjmp): Likewise.  Do not use BP_SYM.
12059         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
12060         "bp-asm.h".
12061         (PARMS): Do not use macros from bp-asm.h.
12062         (SIGMSK): Likewise.
12063         (setjmp): Likewise.  Do not use BP_SYM.
12064         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
12065         "bp-asm.h".
12066         (PARMS): Do not use macros from bp-asm.h.
12067         (__frexp): Do not use BP_SYM.
12068         (frexp): Likewise.
12069         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
12070         "bp-asm.h".
12071         (PARMS): Do not use macros from bp-asm.h.
12072         (__frexpf): Do not use BP_SYM.
12073         (frexpf): Likewise.
12074         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
12075         "bp-asm.h".
12076         (PARMS): Do not use macros from bp-asm.h.
12077         (__frexpl): Do not use BP_SYM.
12078         (frexpl): Likewise.
12079         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
12080         "bp-asm.h".
12081         (PARMS): Do not use macros from bp-asm.h.
12082         (__remquo): Do not use BP_SYM.
12083         (remquo): Likewise.
12084         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
12085         "bp-asm.h".
12086         (PARMS): Do not use macros from bp-asm.h.
12087         (__remquof): Do not use BP_SYM.
12088         (remquof): Likewise.
12089         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
12090         "bp-asm.h".
12091         (PARMS): Do not use macros from bp-asm.h.
12092         (__remquol): Do not use BP_SYM.
12093         (remquol): Likewise.
12094         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
12095         "bp-asm.h".
12096         (PARMS): Do not use macros from bp-asm.h.
12097         (DEST): Likewise.
12098         (SRC): Likewise.
12099         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
12100         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
12101         "bp-asm.h".
12102         (PARMS): Do not use macros from bp-asm.h.
12103         (strlen): Do not use BP_SYM.
12104         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
12105         "bp-asm.h".
12106         (PARMS): Do not use macros from bp-asm.h.
12107         (S1): Likewise.
12108         (S2): Likewise.
12109         (SIZE): Likewise.
12110         (__mpn_add_n): Do not use BP_SYM.
12111         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
12112         "bp-asm.h".
12113         (PARMS): Do not use macros from bp-asm.h.
12114         (S1): Likewise.
12115         (SIZE): Likewise.
12116         (__mpn_addmul_1): Do not use BP_SYM.
12117         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
12118         weak_alias.
12119         (bzero): Likewise.
12120         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
12121         "bp-asm.h".
12122         (PARMS): Do not use macros from bp-asm.h.
12123         (S): Likewise.
12124         (SIZE): Likewise.
12125         (__mpn_lshift): Do not use BP_SYM.
12126         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
12127         "bp-asm.h".
12128         (PARMS): Do not use macros from bp-asm.h.
12129         (DEST): Likewise.
12130         (SRC): Likewise.
12131         (LEN): Likewise.
12132         (memcpy): Likewise.  Do not use BP_SYM.
12133         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
12134         libc_hidden_def and weak_alias.
12135         (mempcpy): Do not use BP_SYM in weak_alias.
12136         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
12137         "bp-asm.h".
12138         (PARMS): Do not use macros from bp-asm.h.
12139         (DEST): Likewise.
12140         (LEN): Likewise.
12141         [!BZERO_P] (CHR): Likewise.
12142         (memset): Likewise.  Do not use BP_SYM.
12143         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
12144         "bp-asm.h".
12145         (PARMS): Do not use macros from bp-asm.h.
12146         (S1): Likewise.
12147         (SIZE): Likewise.
12148         (__mpn_mul_1): Do not use BP_SYM.
12149         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
12150         "bp-asm.h".
12151         (PARMS): Do not use macros from bp-asm.h.
12152         (S): Likewise.
12153         (SIZE): Likewise.
12154         (__mpn_rshift): Do not use BP_SYM.
12155         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
12156         "bp-asm.h".
12157         (PARMS): Do not use macros from bp-asm.h.
12158         (STR): Likewise.
12159         (CHR): Likewise.
12160         (strchr): Likewise.  Do not use BP_SYM.
12161         (index): Do not use BP_SYM in weak_alias.
12162         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
12163         "bp-asm.h".
12164         (PARMS): Do not use macros from bp-asm.h.
12165         (DEST): Likewise.
12166         (SRC): Likewise.
12167         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
12168         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
12169         "bp-asm.h".
12170         (PARMS): Do not use macros from bp-asm.h.
12171         (strlen): Do not use BP_SYM.
12172         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
12173         "bp-asm.h".
12174         (PARMS): Do not use macros from bp-asm.h.
12175         (S1): Likewise.
12176         (S2): Likewise.
12177         (SIZE): Likewise.
12178         (__mpn_sub_n): Do not use BP_SYM.
12179         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
12180         "bp-asm.h".
12181         (PARMS): Do not use macros from bp-asm.h.
12182         (S1): Likewise.
12183         (SIZE): Likewise.
12184         (__mpn_submul_1): Do not use BP_SYM.
12185         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
12186         "bp-asm.h".
12187         (PARMS): Do not use macros from bp-asm.h.
12188         (S1): Likewise.
12189         (S2): Likewise.
12190         (SIZE): Likewise.
12191         (__mpn_add_n): Do not use BP_SYM.
12192         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
12193         weak_alias.
12194         (bzero): Likewise.
12195         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
12196         "bp-asm.h".
12197         (PARMS): Do not use macros from bp-asm.h.
12198         (BLK2): Likewise.
12199         (LEN): Likewise.
12200         (memcmp): Do not use BP_SYM.
12201         (bcmp): Do not use BP_SYM in weak_alias.
12202         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
12203         "bp-asm.h".
12204         (PARMS): Do not use macros from bp-asm.h.
12205         (DEST): Likewise.
12206         (SRC): Likewise.
12207         (LEN): Likewise.
12208         (memcpy): Likewise.  Do not use BP_SYM.
12209         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
12210         "bp-asm.h".
12211         (PARMS): Do not use macros from bp-asm.h.
12212         (DEST): Likewise.
12213         (SRC): Likewise.
12214         (LEN): Likewise.
12215         (memmove): Likewise.  Do not use BP_SYM.
12216         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
12217         "bp-asm.h".
12218         (PARMS): Do not use macros from bp-asm.h.
12219         (DEST): Likewise.
12220         (SRC): Likewise.
12221         (LEN): Likewise.
12222         (__mempcpy): Likewise.  Do not use BP_SYM.
12223         (mempcpy): Do not use BP_SYM in weak_alias.
12224         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
12225         "bp-asm.h".
12226         (PARMS): Do not use macros from bp-asm.h.
12227         (DEST): Likewise.
12228         (LEN): Likewise.
12229         [!BZERO_P] (CHR): Likewise.
12230         (memset): Likewise.  Do not use BP_SYM.
12231         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
12232         "bp-asm.h".
12233         (PARMS): Do not use macros from bp-asm.h.
12234         (STR2): Likewise.
12235         (strcmp): Do not use BP_SYM.
12236         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
12237         "bp-asm.h".
12238         (PARMS): Do not use macros from bp-asm.h.
12239         (STR): Likewise.
12240         (DELIM): Likewise.
12241         [USE_AS_STRTOK_R] (SAVE): Likewise.
12242         (FUNCTION): Likewise.  Do not use BP_SYM.
12243         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
12244         aliases.
12245         (strtok_r): Likewise.
12246         (__GI___strtok_r): Likewise.
12247         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12248         (PARMS): Do not use macros from bp-asm.h.
12249         (S): Likewise.
12250         (SIZE): Likewise.
12251         (__mpn_lshift): Do not use BP_SYM.
12252         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12253         (PARMS): Do not use macros from bp-asm.h.
12254         (STR): Likewise.
12255         (CHR): Likewise.
12256         (__memchr): Do not use BP_SYM.
12257         (memchr): Do not use BP_SYM in weak_alias.
12258         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12259         (PARMS): Do not use macros from bp-asm.h.
12260         (BLK2): Likewise.
12261         (LEN): Likewise.
12262         (memcmp): Do not use BP_SYM.
12263         (bcmp): Do not use BP_SYM in weak_alias.
12264         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
12265         (PARMS): Do not use macros from bp-asm.h.
12266         (S1): Likewise.
12267         (SIZE): Likewise.
12268         (__mpn_mul_1): Do not use BP_SYM.
12269         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
12270         "bp-asm.h".
12271         (PARMS): Do not use macros from bp-asm.h.
12272         (STR): Likewise.
12273         (CHR): Likewise.
12274         (__rawmemchr): Do not use BP_SYM.
12275         (rawmemchr): Do not use BP_SYM in weak_alias.
12276         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12277         (PARMS): Do not use macros from bp-asm.h.
12278         (S): Likewise.
12279         (SIZE): Likewise.
12280         (__mpn_rshift): Do not use BP_SYM.
12281         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12282         (PARMS): Do not use macros from bp-asm.h.
12283         (SIGMSK): Likewise.
12284         (__sigsetjmp): Likewise.  Do not use BP_SYM.
12285         * sysdeps/i386/start.S: Do not include "bp-sym.h".
12286         (_start): Do not use BP_SYM.
12287         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
12288         (PARMS): Do not use macros from bp-asm.h.
12289         (DEST): Likewise.
12290         (SRC): Likewise.
12291         (__stpcpy): Likewise.  Do not use BP_SYM.
12292         (stpcpy): Do not use BP_SYM in weak_alias.
12293         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
12294         "bp-asm.h".
12295         (PARMS): Do not use macros from bp-asm.h.
12296         (DEST): Likewise.
12297         (SRC): Likewise.
12298         (LEN): Likewise.
12299         (__stpncpy): Likewise.  Do not use BP_SYM.
12300         (stpncpy): Do not use BP_SYM in weak_alias.
12301         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12302         (PARMS): Do not use macros from bp-asm.h.
12303         (STR): Likewise.
12304         (CHR): Likewise.
12305         (strchr): Likewise.  Do not use BP_SYM.
12306         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
12307         "bp-asm.h".
12308         (PARMS): Do not use macros from bp-asm.h.
12309         (STR): Likewise.
12310         (CHR): Likewise.
12311         (__strchrnul): Likewise.  Do not use BP_SYM.
12312         (strchrnul): Do not use BP_SYM in weak_alias.
12313         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
12314         "bp-asm.h".
12315         (PARMS): Do not use macros from bp-asm.h.
12316         (STOP): Likewise.
12317         (strcspn): Do not use BP_SYM.
12318         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
12319         "bp-asm.h".
12320         (PARMS): Do not use macros from bp-asm.h.
12321         (STR): Likewise.
12322         (STOP): Likewise.
12323         (strpbrk): Likewise.  Do not use BP_SYM.
12324         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
12325         "bp-asm.h".
12326         (PARMS): Do not use macros from bp-asm.h.
12327         (STR): Likewise.
12328         (CHR): Likewise.
12329         (strrchr): Likewise.  Do not use BP_SYM.
12330         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
12331         (PARMS): Do not use macros from bp-asm.h.
12332         (SKIP): Likewise.
12333         (strspn): Do not use BP_SYM.
12334         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
12335         (PARMS): Do not use macros from bp-asm.h.
12336         (STR): Likewise.
12337         (DELIM): Likewise.
12338         (SAVE): Likewise.
12339         (FUNCTION): Likewise.  Do not use BP_SYM.
12340         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
12341         aliases.
12342         (strtok_r): Likewise.
12343         (__GI___strtok_r): Likewise.
12344         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12345         (PARMS): Do not use macros from bp-asm.h.
12346         (S1): Likewise.
12347         (S2): Likewise.
12348         (SIZE): Likewise.
12349         (__mpn_sub_n): Do not use BP_SYM.
12350         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
12351         "bp-asm.h".
12352         (PARMS): Do not use macros from bp-asm.h.
12353         (S1): Likewise.
12354         (SIZE): Likewise.
12355         (__mpn_submul_1): Do not use BP_SYM.
12356         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
12357         <bp-sym.h>.
12358         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
12359         and <bp-asm.h>.
12360         (PARMS): Do not use macros from bp-asm.h.
12361         (FLAGS): Likewise.
12362         (PTID): Likewise.
12363         (TLS): Likewise.
12364         (CTID): Likewise.
12365         (__clone): Do not use BP_SYM.
12366         (clone): Do not use BP_SYM in weak_alias.
12367         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
12368         and <bp-asm.h>.
12369         (PARMS): Do not use macros from bp-asm.h.
12370         (LEN): Likewise.
12371         (__mmap64): Do not use BP_SYM.
12372         (mmap64): Do not use BP_SYM in weak_alias.
12373         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
12374         <bp-sym.h> and <bp-asm.h>.
12375         (PARMS): Do not use macros from bp-asm.h.
12376         (__posix_fadvise64_l64): Do not use BP_SYM.
12377         * sysdeps/unix/sysv/linux/i386/semtimedop.S
12378         (PARMS): Do not use macros from bp-asm.h.
12379         (NSOPS): Likewise.
12380         (semtimedop): Do not use BP_SYM.
12381         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
12382         and <bp-asm.h>.
12383
12384 2013-02-21  Allan McRae  <allan@archlinux.org>
12385
12386         * manual/message.texi (Charset conversion in gettext):
12387         Move @end statement to beginning of line.
12388
12389 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12390
12391         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
12392         static.
12393         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
12394         Likewise.
12395
12396         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
12397         (denorm): Likewise.
12398         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
12399         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
12400
12401 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12402
12403         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
12404         tail-call to the resolved function if pltexit isn't needed.
12405
12406 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12407
12408         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
12409         or Y being zero as being unlikely.
12410         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
12411         Likewise.
12412
12413 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
12414
12415         * manual/nss.texi (System Databases and Name Service Switch):
12416         Remove frobnicate @pxref.
12417
12418 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
12419
12420         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
12421         __attribute__ ((unused)) to __attribute__ ((__unused__)).
12422
12423 2013-02-20  Petr Machata  <pmachata@redhat.com>
12424
12425         * elf/elf.h (R_ARM_TARGET1): New macro.
12426         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
12427         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
12428         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
12429         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
12430         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
12431         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
12432         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
12433         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
12434         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
12435         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
12436         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
12437         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
12438         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
12439         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
12440         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
12441         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
12442         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
12443         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
12444         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
12445         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
12446         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
12447         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
12448         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
12449         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
12450         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
12451         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
12452         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
12453         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
12454         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
12455         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
12456         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
12457         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
12458         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
12459         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
12460         (R_ARM_THM_GOT_BREL12): Likewise.
12461         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
12462         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
12463         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
12464         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
12465         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
12466         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
12467         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
12468         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
12469         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
12470
12471 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
12472
12473         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
12474         __attribute_used__ to __attribute__ ((unused)).
12475
12476 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12477
12478         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
12479         powerpc mpa.c.
12480         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
12481         comment formatting.
12482         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
12483
12484 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
12485
12486         [BZ #13550]
12487         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
12488         Remove macro.
12489         (ENTER): Remove both macro definitions.
12490         (LEAVE): Likewise.
12491         (CHECK_BOUNDS_LOW): Likewise.
12492         (CHECK_BOUNDS_HIGH): Likewise.
12493         (CHECK_BOUNDS_BOTH): Likewise.
12494         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
12495         (RETURN_BOUNDED_POINTER): Likewise.
12496         (RETURN_NULL_BOUNDED_POINTER): Likewise.
12497         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
12498         (POP_ERRNO_LOCATION_RETURN): Likewise.
12499         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
12500         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12501         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
12502         macros.
12503         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12504         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
12505         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
12506         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
12507         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
12508         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
12509         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
12510         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
12511         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
12512         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
12513         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
12514         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
12515         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12516         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
12517         removed macros.
12518         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12519         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
12520         macros.
12521         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12522         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
12523         * sysdeps/i386/i586/memset.S (memset): Likewise.
12524         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
12525         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12526         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
12527         macros.
12528         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12529         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
12530         Change uses of L(2) to L(out).
12531         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
12532         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
12533         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
12534         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12535         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
12536         removed macros.
12537         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12538         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
12539         macros.
12540         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12541         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
12542         (RETURN): Do not use macro LEAVE.
12543         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
12544         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
12545         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
12546         * sysdeps/i386/i686/memset.S (memset): Likewise.
12547         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
12548         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
12549         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12550         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
12551         Likewise.
12552         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12553         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
12554         L(1_2) and L(1_3) into L(1).
12555         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
12556         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
12557         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12558         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
12559         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12560         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
12561         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
12562         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12563         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
12564         macros.
12565         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
12566         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12567         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
12568         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
12569         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
12570         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12571         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
12572         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
12573         * sysdeps/i386/strcspn.S (strcspn): Likewise.
12574         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
12575         * sysdeps/i386/strrchr.S (strrchr): Likewise.
12576         * sysdeps/i386/strspn.S (strspn): Likewise.
12577         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
12578         conditional code.
12579         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12580         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
12581         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
12582         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
12583         L(1_3) into L(1_1).
12584         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
12585         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12586         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
12587         macros.
12588         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12589
12590 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
12591
12592         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
12593         macro.
12594
12595 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
12596
12597         * math/atest-exp.c (exp_mpn): Remove ROUND.
12598         * math/atest-exp2.c (exp_mpn): Likewise.
12599         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
12600
12601         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
12602         * stdlib/tst-tls-atexit-lib.c: Likewise.
12603         * stdlib/tst-tls-atexit.c: Likewise.
12604
12605 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12606
12607         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
12608         and __attribute_alloc_size__.
12609
12610 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12611
12612         * include/programs/xmalloc.h: Change __attribute_alloc_size to
12613         __attribute_alloc_size__.
12614         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
12615         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
12616
12617 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12618
12619         * include/programs/xmalloc.h: New file.
12620         * catgets/gencat.c: Include it.
12621         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
12622         * elf/pldd.c: Likewise.
12623         * iconv/iconv_charmap.c: Likewise.
12624         * iconv/iconvconfig.c: Likewise.
12625         * iconv/strtab.c: Likewise.
12626         * locale/programs/locale.c: Likewise.
12627         * locale/programs/localedef.h: Likewise.
12628         * locale/programs/simple-hash.c: Likewise.
12629         * nscd/nscd.h: Likewise.
12630         * nss/makedb.c: Likewise.
12631         * sysdeps/generic/ldconfig.h: Likewise.
12632
12633 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12634
12635         * Versions.def: Add GLIBC_2.18.
12636         * include/link.h (struct link_map): New member l_tls_dtor_count.
12637         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
12638         (__call_tls_dtors): Likewise.
12639         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
12640         __cxa_thread_atexit_impl.
12641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12642         Likewise.
12643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12644         Likewise.
12645         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
12646         Likewise.
12647         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
12648         Likewise.
12649         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
12650         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
12651         Likewise.
12652         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
12653         Likewise.
12654         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
12655         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
12656         Likewise.
12657         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
12658         (tests): Add test case tst-tls-atexit.
12659         (modules-names): Add shared library for tst-tls-atexit.
12660         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
12661         (GLIBC_PRIVATE): Add __call_tls_dtors.
12662         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
12663         for libstdc++.
12664         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
12665         * stdlib/tst-tls-atexit.c: New test case.
12666         * stdlib/tst-tls-atexit-lib.c: New test case.
12667
12668         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
12669
12670         * elf/Versions (ld): Add _dl_find_dso_for_object.
12671         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
12672         * elf/dl-open.c (_dl_find_dso_for_object): New function.
12673         (dl_open_worker): Use _dl_find_dso_for_object.
12674         * elf/dl-sym.c (do_sym): Likewise.
12675         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
12676
12677 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12678
12679         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
12680         Syntactic changes only.
12681         (_dl_runtime_profile): Do a tail-call to the resolved function.
12682
12683 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
12684
12685         [BZ #13550]
12686         * sysdeps/x86_64/bp-asm.h: Remove file.
12687         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
12688         <bp-sym.h> and <bp-asm.h>.
12689         (__clone): Do not use BP_SYM.
12690         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
12691         <bp-sym.h> and <bp-asm.h>.
12692         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12693         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
12694         "bp-asm.h".
12695         (_setjmp): Do not use BP_SYM.
12696         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
12697         "bp-asm.h".
12698         (setjmp): Do not use BP_SYM.
12699         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
12700         libc_hidden_def.
12701         (mempcpy): Do not use BP_SYM in weak_alias.
12702         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
12703         "bp-asm.h".
12704         (strchr): Do not use BP_SYM.
12705         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
12706         "bp-asm.h".
12707         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
12708         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
12709         (_start): Do not use BP_SYM.
12710         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
12711         "bp-asm.h".
12712         (strcat): Do not use BP_SYM.
12713         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
12714         "bp-asm.h".
12715         (STRCMP): Do not use BP_SYM.
12716         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
12717         "bp-asm.h".
12718         (STRCPY): Do not use BP_SYM.
12719         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
12720         "bp-asm.h".
12721         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
12722         "bp-asm.h".
12723         (FUNCTION): Do not use BP_SYM.
12724         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
12725         weak_alias.
12726         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
12727
12728 2013-02-17  Andreas Jaeger  <aj@suse.de>
12729
12730         * time/Versions: Sort entries.
12731         * string/Versions: Likewise.
12732         * resolv/Versions: Likewise.
12733         * posix/Versions: Likewise.
12734         * iconv/Versions: Likewise.
12735         * elf/Versions: Likewise.
12736         * wcsmbs/Versions: Likewise.
12737
12738 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
12739
12740         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
12741         loop termination condition.
12742
12743         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
12744         variable to calculate EZ.
12745         (__sqr): Likewise.
12746
12747         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
12748         the lower precision input.
12749
12750 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
12751
12752         [BZ #13550]
12753         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
12754         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
12755         (run-via-rtld-prefix): Do not handle %-bp tests.
12756         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
12757         (all-object-suffixes): Remove .ob.
12758         (bppfx): Remove variable.
12759         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
12760         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
12761         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
12762         [$(build-bounded) = yes] (libtype.ob): Likewise.
12763         * Makerules (elide-routines.ob): Remove variable.
12764         (do-tests-clean): Do not handle *-bp.out.
12765         (common-mostlyclean): Do not handle *-bp and *-bp.out.
12766         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
12767         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
12768         (tests): Do not include $(tests-bp.out).
12769         (xtests): Do not include $(xtests-bp.out).
12770         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
12771         [$(build-bounded) = yes] ($(addprefix
12772         $(objpfx),$(binaries-bounded))): Remove rule.
12773         ($(objpfx)%-bp.out): Remove rule.
12774         * config.make.in (build-bounded): Remove variable.
12775         * crypt/Makefile [$(build-bounded) = yes]
12776         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
12777         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
12778         append to variable.
12779         [$(build-bounded) = yes] (install-lib): Likewise.
12780         [$(build-bounded) = yes] (generated): Likewise.
12781         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
12782         Remove rule.
12783         * intl/Makefile [$(build-bounded) = yes]
12784         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
12785         * math/Makefile [$(build-bounded) = yes]
12786         ($(tests:%=$(objpfx)%-bp): Likewise.
12787         * misc/Makefile [$(build-bounded) = yes]
12788         ($(objpfx)tst-tsearch-bp): Likewise.
12789         * nptl/Makeconfig (bounded-thread-library): Remove variable.
12790         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
12791         Remove dependency.
12792         * string/Makefile (o-objects.ob): Remove variable.
12793         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
12794         (CFLAGS-.ob): Remove variable.
12795         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
12796         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
12797         both definitions of variable.
12798         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
12799         (ASFLAGS-.ob): Remove variable.
12800
12801 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
12802
12803         [BZ #13550]
12804         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
12805         Remove __BOUNDED_POINTERS__ from condition.
12806         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
12807         * string/bits/string2.h [!__NO_STRING_INLINES &&
12808         !__BOUNDED_POINTERS__]: Likewise.
12809         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
12810         Likewise.
12811         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
12812         Remove conditional code.
12813         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
12814         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
12815         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
12816         condition.
12817
12818         [BZ #13550]
12819         * csu/libc-start.c: Do not include <bp-sym.h>.
12820         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
12821         * elf/dl-open.c: Do not include <bp-sym.h>.
12822         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
12823         * math/fegetenv.c: Do not include <bp-sym.h>.
12824         (fegetenv): Do not use BP_SYM in versioned symbols.
12825         * nptl/sysdeps/pthread/bits/libc-lockP.h
12826         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
12827         <bp-sym.h>.
12828         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12829         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
12830         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12831         (__pthread_mutex_destroy): Likewise.
12832         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12833         (__pthread_mutex_lock): Likewise.
12834         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12835         (__pthread_mutex_trylock): Likewise.
12836         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12837         (__pthread_mutex_unlock): Likewise.
12838         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12839         (__pthread_mutexattr_init): Likewise.
12840         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12841         (__pthread_mutexattr_destroy): Likewise.
12842         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12843         (__pthread_mutexattr_settype): Likewise.
12844         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12845         (__pthread_rwlock_init): Likewise.
12846         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12847         (__pthread_rwlock_destroy): Likewise.
12848         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12849         (__pthread_rwlock_rdlock): Likewise.
12850         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12851         (__pthread_rwlock_tryrdlock): Likewise.
12852         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12853         (__pthread_rwlock_wrlock): Likewise.
12854         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12855         (__pthread_rwlock_trywrlock): Likewise.
12856         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12857         (__pthread_rwlock_unlock): Likewise.
12858         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12859         (__pthread_key_create): Likewise.
12860         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12861         (__pthread_setspecific): Likewise.
12862         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12863         (__pthread_getspecific): Likewise.
12864         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
12865         Likewise.
12866         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12867         (_pthread_cleanup_push_defer): Likewise.
12868         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12869         (_pthread_cleanup_pop_restore): Likewise.
12870         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12871         (pthread_setcancelstate): Likewise.
12872         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
12873         <bp-sym.h>.
12874         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
12875         (memchr): Do not use BP_SYM in weak_alias.
12876         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
12877         (fegetenv): Do not use BP_SYM in versioned symbols.
12878         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
12879         (fesetenv): Do not use BP_SYM in versioned symbols.
12880         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
12881         (feupdateenv): Do not use BP_SYM in versioned symbols.
12882         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
12883         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
12884         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
12885         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
12886         (open64): Do not use BP_SYM in weak_alias.
12887         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
12888         (fegetenv): Do not use BP_SYM in versioned symbols.
12889         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
12890         (fesetenv): Do not use BP_SYM in versioned symbols.
12891         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
12892         (feupdateenv): Do not use BP_SYM in versioned symbols.
12893         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
12894         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
12895         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
12896         (feraiseexcept): Do not use BP_SYM in versioned symbols.
12897         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
12898         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
12899         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
12900         <bp-sym.h>.
12901         (__libc_start_main): Do not use BP_SYM.
12902
12903 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
12904
12905         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
12906         redundant return line.
12907         (norm): Likewise.
12908         (denorm): Likewise.
12909         (dbl_mp): Likewise.
12910         (sub_magnitudes): Likewise.
12911         (__add): Likewise.
12912         (__sub): Likewise.
12913         (__mul): Likewise.
12914         (__inv): Likewise.
12915         (__dvd): Likewise.
12916         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
12917         (norm): Likewise.
12918         (denorm): Likewise.
12919         (dbl_mp): Likewise.
12920         (sub_magnitudes): Likewise.
12921         (__add): Likewise.
12922         (__sub): Likewise.
12923         (__mul): Likewise.
12924         (__inv): Likewise.
12925         (__dvd): Likewise.
12926
12927         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
12928         instead of __mul.
12929         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
12930         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
12931         (cc32): Likewise.
12932
12933         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
12934         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
12935         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
12936         of __mul for squares.
12937         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
12938         function
12939         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
12940         Likewise.
12941         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
12942         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
12943
12944 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
12945
12946         [BZ #13550]
12947         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
12948         code.
12949         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
12950         prototype or function definition.  Rename ubp_* variables and
12951         parameters.  Remove argv definitions conditional on
12952         [__BOUNDED_POINTERS__].
12953         * debug/backtrace.c (__backtrace): Do not use __unbounded.
12954         * elf/dl-runtime.c (_dl_fixup): Likewise.
12955         * include/set-hooks.h (RUN_HOOK): Likewise.
12956         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
12957         definition.
12958         * string/strcpy.c (strcpy): Do not use __unbounded.
12959         * sysdeps/generic/frame.h (struct layout): Likewise.
12960         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
12961         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
12962         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
12963         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
12964         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
12965         (__backtrace): Likewise.
12966         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
12967         use __ptrvalue.
12968         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
12969         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
12970         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
12971         Likewise.
12972         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
12973         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
12974         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
12975         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
12976         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
12977         Do not use __unbounded.
12978         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
12979         Rename __unboundedrlimits parameter to rlimits in prototype.
12980         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
12981         Do not use __unbounded.
12982         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
12983         not use __ptrvalue.
12984         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
12985         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
12986         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
12987         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
12988         __ptrvalue or __unbounded.
12989         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
12990         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
12991         use __unbounded.
12992         (__new_msgctl): Do not use __ptrvalue.
12993         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
12994         __unbounded.
12995         (__libc_msgrcv): Do not use __ptrvalue.
12996         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
12997         startup_info): Do not use __unbounded.
12998         (__libc_start_main): Likewise.  Rename ubp_* variables and
12999         parameters.  Remove argv definitions conditional on
13000         [__BOUNDED_POINTERS__].
13001         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
13002         __ptrvalue.
13003         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
13004         use __unbounded.
13005         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
13006         or __ptrvalue.
13007         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
13008         use __unbounded.
13009         (__new_shmctl): Do not use __ptrvalue.
13010         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
13011         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
13012         Likewise.
13013         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
13014         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
13015         (__libc_sigaction): Likewise.
13016         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
13017         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
13018         Likewise.
13019         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13020
13021 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
13022
13023         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
13024
13025         * string/mempcpy.c: Implement by calling memcpy.
13026
13027 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13028
13029         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
13030
13031         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
13032         evaluation.
13033
13034         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
13035         values in the mantissa.
13036
13037         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
13038         minimize writes to Z.
13039         (sub_magnitudes): Simplify code a bit.
13040
13041 2013-02-12  Roland McGrath  <roland@hack.frob.com>
13042
13043         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
13044         from the message.  The linker prefixes all warnings with that already.
13045
13046 2013-02-12  Andreas Schwab  <schwab@suse.de>
13047
13048         [BZ #15078]
13049         * posix/regexec.c (extend_buffers): Add parameter min_len.
13050         (check_matching): Pass minimum needed length.
13051         (clean_state_log_if_needed): Likewise.
13052         (get_subexp): Likewise.
13053         * posix/Makefile (tests): Add bug-regex34.
13054         (bug-regex34-ENV): Define.
13055         * posix/bug-regex34.c: New file.
13056
13057         [BZ #11561]
13058         * posix/regcomp.c (parse_bracket_exp): When looking up collating
13059         elements compare against the byte sequence of it, not its name.
13060         * posix/Makefile (tests): Add bug-regex35.
13061         (bug-regex35-ENV): Define.
13062         * posix/bug-regex35.c: New file.
13063
13064 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13065
13066         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
13067         comment.
13068         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
13069         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
13070         (CHECK_EOL): Add undef.
13071
13072 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
13073
13074         * bits/stdlib-bsearch.h: New file.
13075         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
13076         * stdlib/stdlib.h: Likewise.
13077
13078 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13079
13080         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
13081         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
13082         declaration.
13083         * manual/search.texi (Array Search Function): Add missing const in
13084         lfind prototype.
13085         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
13086         declaration to use rlim_t.
13087         (Basic Scheduling Functions): Remove erroneous const from
13088         sched_getparam prototype.  Remove erroneous * from
13089         sched_get_priority_max and sched_get_priority_min prototypes.
13090         (Resource Usage): Fix summary @comment on vtimes to refer to
13091         sys/vtimes.h rather than vtimes.h.
13092         Add missing *s in vtimes prototype.
13093         (Limits on Resources): Fix ulimit prototype to return long int.
13094         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
13095         prototypes to use long int rather than double.
13096         (BSD Random): Fix initstate and setstate to use char *, not void *.
13097         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
13098         prototype to make second argument 'struct aiocb64 *const[]'.
13099         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
13100         (Status of AIO Operations): Remove erroneous const in aio_return and
13101         aio_return64 prototypes.
13102         (Synchronizing I/O): Fix sync prototype to return void.
13103         * manual/startup.texi (Suboptions): Remove an erroneous const in
13104         getsubopt prototype.
13105         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
13106         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
13107         use size_t rather than int.
13108         (Scanning All Users): Likewise for getpwent_r.
13109         (Setting Groups): Add missing const to setgroups prototype.
13110         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
13111         * manual/socket.texi (Host Names): Fix gethostbyaddr and
13112         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
13113         'const void *' rather than 'const char *'.
13114         (Host Address Functions): Likewise for inet_ntop.
13115         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
13116         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
13117         ssize_t for return value.
13118         (Sending Data): Likewise for send, sendto, sendmsg.
13119         (Socket Option Functions): Add a missing const in setsockopt prototype.
13120         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
13121         use wchar_t for the argument.
13122         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
13123         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
13124         take no arguments.
13125         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
13126         double/float/long double for second argument.
13127         Fix return types of significand, significandf, significandl.
13128         * manual/filesys.texi (Setting Permissions): Use mode_t for second
13129         argument in fchmod prototype.
13130         (File Owner): Use uid_t and gid_t in fchown prototype.
13131         (File Times): Add const to utimes, futimes, and lutimes prototypes.
13132         (Making Special Files): Use mode_t and dev_t in mknod prototype.
13133         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
13134         use 'const struct dirent **' as argument types to CMP function pointer
13135         argument.
13136         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
13137         (File Times): Fix summary magic @comment for struct utimbuf and utime
13138         to refer to utime.h, not time.h.
13139         * manual/string.texi (Argz Functions): Add missing const in
13140         argz_extract and argz_next prototypes.
13141         (Finding Tokens in a String): Likewise for basename.
13142         (String/Array Comparison): Fix typo in wcscasecmp prototype.
13143         (Copying and Concatenation): Fix typo in wmemmove prototype.
13144         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
13145         (Signal Stack): Remove erroneous const in sigstack prototype.
13146         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
13147         prototype.
13148         (Simple Calendar Time): Likewise for stime.
13149         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
13150         prototype.
13151         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
13152         say sys/sysctl.h instead.
13153         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
13154         and vsyslog prototypes.
13155
13156 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13157
13158         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
13159         Remove.
13160
13161 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13162
13163         * misc/sys/mman.h: Fix typo in mremap comment.
13164
13165 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13166
13167         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
13168         the '\0' terminator.
13169
13170 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13171
13172         [BZ #13550]
13173         * debug/segfault.c: Don't include <bp-checks.h>.
13174         * sysdeps/generic/bp-checks.h: Remove file.
13175         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
13176         (__GETDENTS): Don't use CHECK_N.
13177         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
13178         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
13179         (__getgroups): Don't use CHECK_N.
13180         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
13181         (setgroups): Don't use CHECK_N.
13182         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
13183         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13184         (__libc_msgrcv): Don't use CHECK_N.
13185         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
13186         (__libc_msgsnd): Don't use CHECK_N.
13187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
13188         <bp-checks.h>.
13189         (__libc_pread): Don't use CHECK_N.
13190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
13191         include <bp-checks.h>.
13192         (__libc_pread64): Don't use CHECK_N.
13193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
13194         include <bp-checks.h>.
13195         (__libc_pwrite): Don't use CHECK_N.
13196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
13197         include <bp-checks.h>.
13198         (__libc_pwrite64): Don't use CHECK_N.
13199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
13200         <bp-checks.h>.
13201         (__libc_pread): Don't use CHECK_N.
13202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
13203         include <bp-checks.h>.
13204         (__libc_pread64): Don't use CHECK_N.
13205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
13206         include <bp-checks.h>.
13207         (__libc_pwrite): Don't use CHECK_N.
13208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
13209         include <bp-checks.h>.
13210         (__libc_pwrite64): Don't use CHECK_N.
13211         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
13212         (do_pread): Don't use CHECK_N.
13213         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
13214         (do_pread64): Don't use CHECK_N.
13215         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
13216         (do_pwrite): Don't use CHECK_N.
13217         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
13218         (do_pwrite64): Don't use CHECK_N.
13219         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
13220         (__libc_readv): Don't use CHECK_N.
13221         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
13222         (semop): Don't use CHECK_N.
13223         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
13224         <bp-checks.h>.
13225         (semtimedop): Don't use CHECK_N.
13226         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
13227         (__libc_pread): Don't use CHECK_N.
13228         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
13229         <bp-checks.h>.
13230         (__libc_pread64): Don't use CHECK_N.
13231         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
13232         <bp-checks.h>.
13233         (__libc_pwrite): Don't use CHECK_N.
13234         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
13235         <bp-checks.h>.
13236         (__libc_pwrite64): Don't use CHECK_N.
13237         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
13238         <bp-checks.h>.
13239         (__libc_msgrcv): Don't use CHECK_N.
13240         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
13241         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
13242         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
13243         (__libc_writev): Don't use CHECK_N.
13244
13245 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13246
13247         * string/strcpy.c: Removed unused variable.
13248
13249         * Makeconfig (+sysdep-includes): Define with := rather than =.
13250         Use an existing include/ subdir of each sysdeps dir before it.
13251
13252 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13253
13254         * nscd/connection.c (register_traced_file): Comment function.
13255         [HAVE_INOTIFY] (union __inev): Define.
13256         [HAVE_INOTIFY] (inotify_check_files): New function.
13257         [HAVE_INOTIFY] (clear_db_cache): Likewise.
13258         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
13259         clear_db_cache.
13260         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
13261
13262 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13263
13264         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
13265         loaded if not already and that a failure is permanent.
13266
13267 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13268
13269         [BZ #15006]
13270         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
13271         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
13272
13273 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13274
13275         [BZ #13550]
13276         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
13277         (CHECK_1_NULL_OK): Likewise.
13278         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
13279         (__fxstat): Do not use CHECK_1.
13280         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
13281         <bp-checks.h>.
13282         (___fxstat64): Do not use CHECK_1.
13283         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
13284         <bp-checks.h>.
13285         (__fxstatat): Do not use CHECK_1.
13286         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
13287         <bp-checks.h>.
13288         (__fxstatat64): Do not use CHECK_1.
13289         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
13290         <bp-checks.h>.
13291         (__fxstat): Do not use CHECK_1.
13292         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
13293         <bp-checks.h>.
13294         (__fxstatat): Do not use CHECK_1.
13295         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13296         <bp-checks.h>.
13297         (__getresgid): Do not use CHECK_1.
13298         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13299         <bp-checks.h>.
13300         (__getresuid): Do not use CHECK_1.
13301         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
13302         <bp-checks.h>.
13303         (__lxstat): Do not use CHECK_1.
13304         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13305         <bp-checks.h>.
13306         (__old_msgctl): Do not use CHECK_1.
13307         (__new_msgctl): Likewise.
13308         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
13309         <bp-checks.h>.
13310         (__new_setrlimit): Do not use CHECK_1.
13311         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13312         <bp-checks.h>.
13313         (__old_shmctl): Do not use CHECK_1.
13314         (__new_shmctl): Likewise.
13315         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
13316         <bp-checks.h>.
13317         (__xstat): Do not use CHECK_1.
13318         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
13319         (__lxstat): Do not use CHECK_1.
13320         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
13321         <bp-checks.h>.
13322         (___lxstat64): Do not use CHECK_1.
13323         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
13324         (__old_msgctl): Do not use CHECK_1.
13325         (__new_msgctl): Likewise.
13326         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
13327         <bp-checks.h>.
13328         (__gettimeofday): Do not use CHECK_1.
13329         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
13330         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
13331         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
13332         <bp-checks.h>.
13333         (__gettimeofday): Do not use CHECK_1.
13334         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
13335         (__old_shmctl): Do not use CHECK_1_NULL_OK.
13336         (__new_shmctl): Do not use CHECK_1.
13337         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
13338         <bp-checks.h>.
13339         (do_sigtimedwait): Do not use CHECK_1.
13340         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
13341         <bp-checks.h>.
13342         (do_sigwaitinfo): Do not use CHECK_1.
13343         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
13344         <bp-checks.h>.
13345         (msgctl): Do not use CHECK_1.
13346         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
13347         <bp-checks.h>.
13348         (shmctl): Do not use CHECK_1.
13349         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
13350         (ustat): Do not use CHECK_1.
13351         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
13352         <bp-checks.h>.
13353         (__fxstat): Do not use CHECK_1.
13354         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
13355         <bp-checks.h>.
13356         (__fxstatat): Do not use CHECK_1.
13357         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
13358         <bp-checks.h>.
13359         (__lxstat): Do not use CHECK_1.
13360         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
13361         <bp-checks.h>.
13362         (__xstat): Do not use CHECK_1.
13363         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
13364         (__xstat): Do not use CHECK_1.
13365         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
13366         (___xstat64): Do not use CHECK_1.
13367
13368         [BZ #13550]
13369         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
13370         definitions.
13371         (CHECK_BOUNDS_HIGH): Likewise.
13372         * string/strcpy.c: Do not include <bp-checks.h>.
13373         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
13374
13375 2013-02-07  Roland McGrath  <roland@hack.frob.com>
13376
13377         * nscd/nscd-client.h (__nscd_drop_map_ref):
13378         Add __attribute__ ((unused)).
13379         * nis/nss-nisplus.h (niserr2nss): Likewise.
13380
13381         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
13382         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
13383
13384         * csu/libc-tls.c (init_static_tls, init_slotinfo):
13385         Remove inline keyword.
13386         * include/rounding-mode.h (round_away): Likewise.
13387         * libio/wfileops.c (adjust_wide_data): Likewise.
13388         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
13389         (__m128i_strloadu_tolower): Likewise.
13390         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
13391         (__m128i_strloadu_tolower): Likewise.
13392         * time/mktime.c (ydhms_diff): Likewise.
13393         * locale/elem-hash.h (elem_hash): Likewise.
13394         * locale/setlocale.c (setdata): Likewise.
13395         * posix/regex_internal.h (re_string_char_size_at): Likewise.
13396         (re_string_wchar_at): Likewise.
13397         (bitset_not, bitset_merge, bitset_mask): Likewise.
13398         [!(__GNUC__ > 3)] (inline): Remove macro.
13399         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
13400         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
13401         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
13402         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
13403         * string/memcmp.c (memcmp_bytes): Likewise.
13404         * locale/programs/locarchive.c (compute_hashval): Likewise.
13405         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
13406         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
13407         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
13408         * nss/getent.c (print_rpc, print_protocols): Likewise.
13409         (print_passwd, print_group, print_aliases): Likewise.
13410         * nis/nss-nisplus.h (niserr2nss): Likewise.
13411         * nscd/connections.c (restart_p): Likewise.
13412         Change return type to bool.
13413
13414 2013-02-05  Roland McGrath  <roland@hack.frob.com>
13415
13416         * Makeconfig (all-Depend-files): Add existing
13417         $(sorted-subdirs:=/Depend) files.
13418         (all-subdirs): Remove nss.
13419         * sysdeps/unix/inet/Subdirs: Add it here instead.
13420         * hesiod/Depend: New file.
13421
13422         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
13423         instead of calling alloca.
13424
13425         * io/lseek.c (__lseek): Rename to __libc_lseek.
13426         Define __lseek as an alias.
13427
13428         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
13429
13430 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
13431
13432         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
13433         else clause and remove check for non-standard endianness.
13434
13435 2013-02-04  David S. Miller  <davem@davemloft.net>
13436
13437         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13438
13439 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
13440
13441         [BZ #13550]
13442         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
13443         (__ubp_memchr): Remove prototype.
13444         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
13445         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
13446         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
13447         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
13448         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
13449         Remove alias.
13450         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
13451         (__ubp_memchr): Likewise.
13452         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
13453         (__ubp_memchr): Likewise.
13454         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
13455         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
13456         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
13457         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
13458         CHECK_STRING.
13459         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
13460         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
13461         (__getcwd): Do not use CHECK_STRING.
13462         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
13463         <bp-checks.h>.
13464         (__real_chown): Do not use CHECK_STRING.
13465         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
13466         <bp-checks.h>.
13467         (fchownat): Do not use CHECK_STRING.
13468         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
13469         CHECK_STRING.
13470         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13471         <bp-checks.h>.
13472         (__lchown): Do not use CHECK_STRING.
13473         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13474         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13475         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13476         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
13477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13478         include <bp-checks.h>.
13479         (truncate64): Do not use CHECK_STRING.
13480         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13481         <bp-checks.h>.
13482         (__real_chown): Do not use CHECK_STRING.
13483         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13484         <bp-checks.h>.
13485         (__lchown): Do not use CHECK_STRING.
13486         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13487         <bp-checks.h>.
13488         (__chown): Do not use CHECK_STRING.
13489         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
13490         <bp-checks.h>.
13491         (truncate64): Do not use CHECK_STRING.
13492         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
13493         Likewise.
13494         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
13495         (__xmknod): Do not use CHECK_STRING.
13496         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
13497         <bp-checks.h>.
13498         (__xmknodat): Do not use CHECK_STRING.
13499         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13500         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
13501
13502 2013-02-04  Andreas Schwab  <schwab@suse.de>
13503
13504         [BZ #14142]
13505         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
13506         * include/netdb.h: Likewise for h_errno.
13507         * elf/tst-stackguard1.c: Include <tls.h>.
13508
13509 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13510
13511         * elf/link.h (struct link_map): Extend the l_addr comment.
13512         * include/link.h (struct link_map): Likewise.
13513
13514 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
13515
13516         [BZ #13550]
13517         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
13518         (BOUNDED_1): Remove macro.
13519         * debug/backtrace.c: Don't include <bp-checks.h>.
13520         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
13521         (__backtrace): Likewise.
13522         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
13523         <bp-checks.h>.
13524         (__backtrace): Don't use BOUNDED_1.
13525         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
13526         <bp-checks.h>.
13527         (__backtrace): Don't use BOUNDED_1.
13528         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
13529         (__backtrace): Don't use BOUNDED_1.
13530         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
13531         (shmat): Don't use BOUNDED_N.
13532
13533 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
13534
13535         [BZ #13550]
13536         * sysdeps/generic/bp-start.h: Remove file.
13537         * csu/libc-start.c: Don't include <bp-start.h>.
13538         (LIBC_START_MAIN): Set up __environ directly instead of using
13539         INIT_ARGV_and_ENVIRON.
13540         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
13541         <bp-start.h>.
13542
13543         [BZ #13550]
13544         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
13545         definitions.
13546         (CHECK_FCNTL): Likewise.
13547         (CHECK_N_PAGES): Likewise.
13548
13549         [BZ #13550]
13550         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
13551         definitions.
13552         (CHECK_SIGSET_NULL_OK): Likewise.
13553         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
13554         <bp-checks.h>.
13555         (sigpending): Don't use CHECK_SIGSET.
13556         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
13557         <bp-checks.h>.
13558         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
13559         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
13560         <bp-checks.h>.
13561         (do_sigsuspend): Don't use CHECK_SIGSET.
13562         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
13563         use CHECK_SIGSET.
13564         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
13565         (do_sigwait): Don't use CHECK_SIGSET.
13566         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
13567         use CHECK_SIGSET.
13568         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
13569         include <bp-checks.h>.
13570         (sigpending): Don't use CHECK_SIGSET.
13571         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
13572         include <bp-checks.h>.
13573         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
13574         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
13575         <bp-checks.h>.
13576         (sigpending): Don't use CHECK_SIGSET.
13577         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
13578         <bp-checks.h>.
13579         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
13580
13581         [BZ #13550]
13582         * sysdeps/generic/bp-semctl.h: Remove file.
13583         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
13584         <bp-checks.h> and <bp-semctl.h>.
13585         (__old_semctl): Don't use CHECK_SEMCTL.
13586         (__new_semctl): Likewise.
13587         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
13588         and <bp-semctl.h>.
13589         (__old_semctl): Don't use CHECK_SEMCTL.
13590         (__new_semctl): Likewise.
13591         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
13592         <bp-checks.h> and <bp-semctl.h>.
13593         (__old_semctl): Don't use CHECK_SEMCTL.
13594         (__new_semctl): Likewise.
13595         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
13596         <bp-checks.h> and <bp-semctl.h>.
13597         (semctl): Don't use CHECK_SEMCTL.
13598
13599         [BZ #13550]
13600         * Makerules (elide-bp-thunks): Remove variable.
13601         (elide-routines.oS): Don't use $(elide-bp-thunks).
13602         (elide-routines.os): Likewise.
13603         (elide-routines.o): Likewise.
13604         (elide-routines.op): Likewise.
13605         (elide-routines.og): Likewise.
13606         (objects): Don't use $(bp-thunks).
13607         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
13608         include.
13609         (common-generated): Do not add s-proto-bp.d.
13610         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
13611         (int): Likewise.
13612         (typ): Likewise.
13613         Do not generate makefile rules for bounded-pointer thunks.
13614         * sysdeps/generic/bp-thunks.h: Remove file.
13615         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
13616         * sysdeps/unix/s-proto-bp.S: Likewise.
13617
13618         [BZ #15062]
13619         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
13620         parts of result separately when argument is not close to line from
13621         -i to i and one part of argument is small.
13622         * math/k_casinhf.c (__kernel_casinhf): Likewise.
13623         * math/k_casinhl.c (__kernel_casinhl): Likewise.
13624         * math/libm-test.inc (cacos_test): Add more tests.
13625         (casin_test): Likewise.
13626         (casinh_test): Likewise.
13627         * sysdeps/i386/fpu/libm-test-ulps: Update.
13628         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13629
13630 2013-01-31  David S. Miller  <davem@davemloft.net>
13631
13632         * po/de.po: Update from translation team.
13633
13634 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
13635
13636         * time/tzfile.c: Include stdint.h for SIZE_MAX.
13637
13638 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
13639
13640         * configure.in (_AC_PROG_CC_C89): New definition.
13641         * configure: Regenerate.
13642
13643         * configure.in (AC_PROG_CPP): New definition.
13644         * configure: Regenerate.
13645
13646 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
13647
13648         * debug/tst-backtrace.h: New file.
13649         * debug/tst-backtrace2.c: Include tst-backtrace.h.
13650         (ret): Remove variable.
13651         (x): Likewise.
13652         (FAIL): Remove macro.
13653         (NO_INLINE): Likewise.
13654         (fn1): Use match function instead of strstr.
13655         * debug/tst-backtrace3.c: Include tst-backtrace.h.
13656         (ret): Remove variable.
13657         (x): Likewise.
13658         (FAIL): Remove macro.
13659         (NO_INLINE): Likewise.
13660         (fn): Use match function instead of strstr.
13661         * debug/tst-backtrace4.c: Include tst-backtrace.h.
13662         (ret): Remove variable.
13663         (x): Likewise.
13664         (FAIL): Remove macro.
13665         (NO_INLINE): Likewise.
13666         (handle_signal): Use match function instead of strstr.
13667         * debug/tst-backtrace5.c: Include tst-backtrace.h.
13668         (ret): Remove variable.
13669         (x): Likewise.
13670         (FAIL): Remove macro.
13671         (NO_INLINE): Likewise.
13672         (handle_signal): Use match function instead of strstr.
13673
13674 2013-01-23  Roland McGrath  <roland@hack.frob.com>
13675
13676         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
13677
13678 2013-01-23  David S. Miller  <davem@davemloft.net>
13679
13680         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
13681         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
13682         argument of CAS if possible.
13683         * sysdeps/sparc/sparc64/bits/atomic.h
13684         (__arch_compare_and_exchange_val_32_acq): Likewise.
13685         (__arch_compare_and_exchange_val_64_acq): Likewise.
13686
13687 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
13688
13689         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
13690         * sysdeps/posix/ulimit.c: ... this.
13691         Include <limits.h>.
13692         * sysdeps/unix/bsd/ulimit.c: Remove file.
13693
13694 2013-01-23  Adam Conrad  <adconrad@0c3.net>
13695
13696         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
13697         (LDFLAGS-tst-array5): Likewise.
13698
13699 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
13700
13701         [BZ #15036]
13702         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
13703         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
13704         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
13705         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
13706
13707 2013-01-21  David S. Miller  <davem@davemloft.net>
13708
13709         * sysdeps/sparc/backtrace.c: New file.
13710         * sysdeps/sparc/sparc32/backtrace.h: New file.
13711         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
13712         * sysdeps/sparc/sparc64/backtrace.h: New file.
13713         * sysdeps/sparc/sparc64/backtrace.c: Delete.
13714         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
13715         -funwind-tables.
13716
13717 2013-01-21  Andreas Schwab  <schwab@suse.de>
13718
13719         [BZ #15020]
13720         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
13721         closed its stdout.
13722
13723 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
13724
13725         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
13726         "mpa2.h".
13727         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
13728
13729 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
13730             Mark Mitchell  <mark@codesourcery.com>
13731             Tom de Vries  <tom@codesourcery.com>
13732             Paul Pluzhnikov  <ppluzhnikov@google.com>
13733
13734         * debug/tst-backtrace2.c: New file.
13735         * debug/tst-backtrace3.c: Likewise.
13736         * debug/tst-backtrace4.c: Likewise.
13737         * debug/tst-backtrace5.c: Likewise.
13738         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
13739         (CFLAGS-tst-backtrace3.c): Likewise.
13740         (CFLAGS-tst-backtrace4.c): Likewise.
13741         (CFLAGS-tst-backtrace5.c): Likewise.
13742         (LDFLAGS-tst-backtrace2): Likewise.
13743         (LDFLAGS-tst-backtrace3): Likewise.
13744         (LDFLAGS-tst-backtrace4): Likewise.
13745         (LDFLAGS-tst-backtrace5): Likewise.
13746         (tests): Add new tests tst-backtrace2, tst-backtrace3,
13747         tst-backtrace4 and tst-backtrace5.
13748
13749 2013-01-18  Anton Blanchard  <anton@samba.org>
13750             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13751
13752         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
13753         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
13754         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
13755         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
13756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
13757         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
13758         "+r" and remove output regs list as redundant.  Add explicit inline
13759         asm to specify register of return val to work around compiler codegen
13760         bug.  Remove (int) cast on return value.  Add return type parameter to
13761         use in macro so that this macro does not truncate return value for
13762         64-bit values.
13763         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
13764         pass to INTERNAL_VSYSCALL_NCS.
13765         (INLINE_VSYSCALL): Add 'long int' as return type to
13766         INTERNAL_VSYSCALL_NCS macro invocation.
13767         (INTERNAL_VSYSCALL): Add 'long int' as return type to
13768         INTERNAL_VSYSCALL_NCS macro invocation.
13769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13770
13771 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13772
13773         [BZ #14496]
13774         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
13775         Fix application of SIMD FP exception mask.
13776
13777         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
13778         mp_no from a power of two.
13779         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
13780         __mpexp_twomm1.  Use __pow_mp.
13781
13782         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
13783         multiplication.
13784
13785 2013-01-17  David S. Miller  <davem@davemloft.net>
13786
13787         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13788
13789 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
13790
13791         [BZ #15023]
13792         * include/complex.h: Condition contents on [!_COMPLEX_H].
13793         (__kernel_casinhf): New prototype.
13794         (__kernel_casinh): Likewise.
13795         (__kernel_casinhl): Likewise.
13796         * math/Makefile (libm_calls): Add k_casinh.
13797         * math/k_casinh.c: New file.
13798         * math/k_casinhf.c: Likewise.
13799         * math/k_casinhl.c: Likewise.
13800         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
13801         finite nonzero arguments.
13802         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
13803         finite nonzero arguments.
13804         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
13805         finite nonzero arguments.
13806         * math/s_casinh.c: Do not include <float.h>.
13807         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
13808         * math/s_casinhf.c: Do not include <float.h>.
13809         (__casinhf): Move code for finite nonzero arguments to
13810         k_casinhf.c.
13811         * math/s_casinhl.c: Do not include <float.h>.
13812         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
13813         redefine.
13814         (__casinhl): Move code for finite nonzero arguments to
13815         k_casinhl.c.
13816         * math/libm-test.inc (cacos_test): Add more tests.
13817         * sysdeps/i386/fpu/libm-test-ulps: Update.
13818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13819
13820 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
13821
13822         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
13823         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
13824         [!HAVE_MREMAP]: Remove [defined linux] case.
13825         * malloc/arena.c: Do not include <malloc-sysdep.h>.
13826
13827 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
13828
13829         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
13830
13831 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13832
13833         * elf/elf.h (R_386_SIZE32): New relocation.
13834         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
13835         R_386_SIZE32.
13836         (elf_machine_rela): Likewise.
13837         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
13838         R_X86_64_SIZE64 and R_X86_64_SIZE32.
13839
13840 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
13841
13842         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
13843         (FP_FAST_FMA): Do not define.
13844         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
13845         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
13846         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
13847         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
13848         !_SOFT_FLOAT]: Likewise.
13849         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
13850         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
13851         value.
13852         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
13853         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
13854         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
13855         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
13856         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
13857         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
13858         file.
13859
13860 2013-01-16  Andreas Schwab  <schwab@suse.de>
13861
13862         [BZ #14327]
13863         * include/stdlib.h (__mktemp): Add declaration.
13864         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
13865         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
13866
13867 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
13868
13869         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
13870         definitions.
13871         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
13872         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
13873         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
13874         definitions here.
13875         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
13876         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
13877         definitions.
13878         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
13879         and ONE.
13880         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
13881         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
13882         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
13883         definitions.
13884         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
13885         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
13886         definitions.
13887         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
13888
13889         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
13890
13891 2013-01-15  David S. Miller  <davem@davemloft.net>
13892
13893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
13894         trunc{,f} to libm-sysdep_routes.
13895         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
13897         file.
13898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
13899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
13900         file.
13901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
13902         file.
13903         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
13904         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
13905         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
13906         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
13907         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
13908         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
13909         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
13910         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
13911
13912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
13913         nearbyint{,f} to libm-sysdep_routes.
13914         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
13916         New file.
13917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
13918         file.
13919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
13920         New file.
13921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
13922         file.
13923         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
13924         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
13925         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
13926         file.
13927         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
13928         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
13929         file.
13930         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
13931         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
13932         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
13933
13934         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
13935         libc_feholdexcept and libc_fesetenv.
13936
13937 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
13938
13939         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
13940
13941 2013-01-14  David S. Miller  <davem@davemloft.net>
13942
13943         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
13944         (SPARC_ASM_VIS2_IFUNC): Likewise.
13945         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
13946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
13947         use of 'siam' instruction.
13948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
13949         Likewise.
13950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
13951         Likewise.
13952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
13953         Likewise.
13954         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
13955         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13956         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
13957         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
13958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
13959         file.
13960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
13961         file.
13962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
13963         file.
13964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
13965         file.
13966         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
13967         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
13968         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
13969         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
13970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
13971         new VIS2 routines.
13972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
13973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
13975         Likewise.
13976         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
13977         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
13978         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
13979         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
13980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
13981         routines to libm-sysdep_routines.
13982         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13983
13984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
13985         fdim/fdimf to libm-sysdep_routines.
13986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
13987         file.
13988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
13989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
13990         file.
13991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
13992         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
13993         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
13994         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
13995         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
13996         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
13997         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
13998
13999 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14000
14001         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
14002         to optimize copies.
14003
14004         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
14005         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14006         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14007
14008         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
14009         local variable MPTWO.
14010         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
14011         Likewise.
14012
14013 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14014
14015         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
14016         GLOB_NOESCAPE.
14017
14018 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14019
14020         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
14021
14022 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14023
14024         * manual/pattern.texi (glob_t): Document gl_flags.
14025         (glob64_t): Likewise.
14026
14027 2013-01-11  David S. Miller  <davem@davemloft.net>
14028
14029         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
14030         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
14031         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
14032         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
14033         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
14034         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
14035         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
14036         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
14037         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
14038         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
14039         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
14040         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
14041         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
14042
14043         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14044         sparc V9 rather than using V8 code.
14045         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14046         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14047
14048         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
14049         Move to...
14050         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
14051         Here.
14052
14053 2013-01-11  Roland McGrath  <roland@hack.frob.com>
14054
14055         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
14056         not in the main loop.
14057         * configure: Regenerated.
14058
14059 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
14060
14061         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
14062         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
14063         to just #else.
14064         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
14065         [!__GLIBC_HAVE_LONG_LONG] case.
14066         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
14067         condition to just #else.
14068         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
14069         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
14070         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
14071         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
14072         unconditional.
14073         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
14074         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14075         #elif condition to just #else.
14076         * sysdeps/unix/sysv/linux/sys/sysmacros.h
14077         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
14078         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14079         #elif condition to just #else.
14080
14081 2013-01-11  Steve Ellcey  <sellcey@mips.com>
14082
14083         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
14084         (EF_MIPS_ARCH_64): Fix value.
14085         (EF_MIPS_ARCH_32R2): New.
14086         (EF_MIPS_ARCH_64R2): New.
14087
14088 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
14089
14090         * Makeconfig (+link-pie-before-libc): New.
14091         (+link-pie-after-libc): Likewise.
14092         (+link-pie-tests): Likewise.
14093         (+link-pie): Rewritten.
14094         (link-before-libc): Remove $(config-LDFLAGS).
14095         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
14096         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
14097         (config-LDFLAGS): Renamed to ...
14098         (rtld-LDFLAGS): This.
14099         (rtld-tests-LDFLAGS): New macro.
14100         (link-libc-rpath-link): Likewise.
14101         (link-libc-tests-rpath-link): Likewise.
14102         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
14103         (link-libc): Prepand $(link-libc-rpath-link).
14104         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
14105         (test-program-prefix): New macro.
14106         (test-via-rtld-prefix): Likewise.
14107         (test-program-cmd): Likewise.
14108         (host-test-program-cmd): Likewise.
14109         * Makefile ($(common-objpfx)testrun.sh): Replace
14110         $(run-program-prefix) with $(test-program-prefix).
14111         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
14112         $(rtld-LDFLAGS).
14113         ($(common-objpfx)shlib.lds): Likewise.
14114         (build-module-helper): Likewise.
14115         ($(common-objpfx)format.lds): Likewise.
14116         * Rules (binaries-pie-tests): New.
14117         (binaries-pie-notests): Likewise.
14118         (binaries-pie): Rewritten.
14119         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
14120         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
14121         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
14122         (make-test-out): Replace $(host-built-program-cmd) with
14123         $(host-test-program-cmd).
14124         * config.make.in (build-hardcoded-path-in-tests): New variable.
14125         * configure.in (--enable-hardcoded-path-in-tests): New configure
14126         option.
14127         (hardcoded_path_in_tests): New AC_SUBST.
14128         * configure: Regenerated.
14129         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
14130         $(built-program-cmd) with $(test-program-cmd).
14131         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
14132         (test_program_cmd): This.
14133         * elf/Makefile ($(objpfx)order.out): Run test with
14134         $(test-program-prefix).
14135         ($(objpfx)order2.out): Likewise.
14136         ($(objpfx)tst-initorder.out): Likewise.
14137         ($(objpfx)tst-initorder2.out): Likewise.
14138         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
14139         $(test-program-cmd).
14140         ($(objpfx)tst-array1-static.out): Likewise.
14141         ($(objpfx)tst-array2.out): Likewise.
14142         ($(objpfx)tst-array3.out): Likewise.
14143         ($(objpfx)tst-array4.out): Likewise.
14144         ($(objpfx)tst-array5.out): Likewise.
14145         ($(objpfx)tst-array5-static.out): Likewise.
14146         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
14147         $(test-program-cmd).
14148         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
14149         $(run-program-prefix) with $(test-program-prefix).
14150         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
14151         (test_program_prefix): This.
14152         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
14153         $(run-program-prefix) with $(test-program-prefix).
14154         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
14155         (test_program_prefix): This.
14156         * iconvdata/tst-tables.sh: Likewise.
14157         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
14158         $(run-program-prefix) with $(test-program-prefix).
14159         ($(objpfx)tst-translit.out): Likewise.
14160         ($(objpfx)tst-gettext2.out): Likewise.
14161         ($(objpfx)tst-gettext4.out): Likewise.
14162         ($(objpfx)tst-gettext6.out): Likewise.
14163         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
14164         (test_program_prefix): This.
14165         * intl/tst-gettext2.sh: Likewise.
14166         * intl/tst-gettext4.sh  Likewise.
14167         * intl/tst-gettext6.sh: Likewise.
14168         * intl/tst-translit.sh: Likewise.
14169         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
14170         with $(test-program-cmd).
14171         * libio/Makefile ($(objpfx)test-freopen.out): Replace
14172         $(run-program-prefix) with $(test-program-prefix).
14173         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
14174         (test_program_prefix): This.
14175         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
14176         $(run-program-prefix) with $(test-program-prefix).
14177         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
14178         (test_program_prefix): This.
14179         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
14180         * posix/Makefile ($(objpfx)globtest.out): Replace
14181         $(run-via-rtld-prefix) and $(test-wrapper) with
14182         $(test-program-prefix) and $(test-via-rtld-prefix).
14183         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
14184         $(test-program-prefix).
14185         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
14186         $(host-test-program-cmd).
14187         (tst-spawn-ARGS): Likewise.
14188         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
14189         $(test-program-prefix).
14190         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
14191         (test_via_rtld_prefix): This.
14192         (test_wrapper): Renamed to ...
14193         (test_program_prefix): This.
14194         (run_program_prefix): Replaced by test_program_prefix.
14195         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
14196         (test_program_prefix): This.
14197         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
14198         with $(host-test-program-cmd).
14199         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
14200         $(run-program-prefix) with $(test-program-prefix).
14201         ($(objpfx)tst-printf.out): Likewise.
14202         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
14203         $(test-program-cmd).
14204         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
14205         (test_program_prefix): This.
14206         * stdio-common/tst-unbputc.sh: Likewise.
14207         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
14208         $(run-program-prefix) with $(test-program-prefix).
14209         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
14210         (test_program_prefix): This.
14211         * string/Makefile ($(objpfx)tst-svc.out):  Replace
14212         $(built-program-cmd) with $(test-program-cmd).
14213
14214 2013-01-11  Andreas Jaeger  <aj@suse.de>
14215
14216         [BZ #15003]
14217         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
14218         value. Sync with Linux 3.7.
14219
14220 2013-01-10  David S. Miller  <davem@davemloft.net>
14221
14222         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
14223         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14224         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14225
14226 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14227
14228         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
14229         never set.
14230         * configure: Regenerated.
14231
14232 2013-01-10  David S. Miller  <davem@davemloft.net>
14233
14234         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14235         sparc V9 rather than using V8 code.
14236         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14237         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14238
14239 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14240
14241         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
14242         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
14243         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
14244         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
14245         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
14246         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
14247         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
14248         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
14249         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
14250         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
14251         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
14252         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
14253         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
14254         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
14255         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
14256         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
14257         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
14258         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
14259         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
14260         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
14261         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
14262         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
14263         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
14264         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
14265         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
14266         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
14267         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
14268
14269 2013-01-10  David S. Miller  <davem@davemloft.net>
14270
14271         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14272
14273 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14274
14275         * posix/Makefile (tests-static): New variable.
14276         (tests): Add $(tests-static).
14277         (tst-exec-static-ARGS): New variable.
14278         (tst-spawn-static-ARGS): Likewise.
14279         * posix/tst-exec-static.c: New file.
14280         * posix/tst-spawn-static.c: Likewise.
14281         * posix/tst-exec.c: Support run directly.
14282         * posix/tst-spawn.c: Likewise.
14283
14284 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
14285
14286         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
14287         long.
14288         * math/bits/mathcalls.h (llrint): Likewise.
14289         (llround): Likewise.
14290         * stdlib/stdlib.h (struct drand48_data): Likewise.
14291         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
14292         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
14293         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
14294         Likewise.
14295         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
14296         Likewise.
14297         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
14298         (elf_greg_t): Likewise.
14299         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
14300         (__jmp_buf): Likewise.
14301         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
14302         definitions.
14303         (llrint): Likewise, for all definitions.
14304         (llrintl): Likewise.
14305
14306         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
14307         Remove [__GNUC__] condition.
14308         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
14309         condition to just [__USE_ISOC99].
14310         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
14311
14312 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14313
14314         [BZ #14200]
14315         * sysdeps/unix/sysv/linux/x86/bits/environments.h
14316         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
14317         defined.
14318         (_POSIX_V6_ILP32_OFF32): Likewise.
14319         (_XBS5_ILP32_OFF32): Likewise.
14320         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
14321         (__ILP32_OFFBIG_LDFLAGS): Likewise.
14322
14323 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14324
14325         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
14326
14327         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
14328         doubles __mpexp_twomm1.  Adjust usage.
14329         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
14330         Remove.
14331
14332 2013-01-10  Andreas Schwab  <schwab@suse.de>
14333
14334         [BZ #14964]
14335         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
14336         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
14337
14338 2013-01-09  David S. Miller  <davem@davemloft.net>
14339
14340         [BZ #15003]
14341         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
14342         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
14343         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
14344         TCP_FASTOPEN): Define.
14345         (tcp_repair_opt): New structure.
14346         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
14347         enum values.
14348         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
14349         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
14350         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
14351         (tcp_cookie_transactions): New structure.
14352
14353 2013-01-09  Anton Blanchard  <anton@samba.org>
14354
14355         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
14356         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
14357         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
14358         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
14359
14360 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
14361
14362         * include/features.h (__USE_ANSI): Remove.
14363
14364 2013-01-09  Roland McGrath  <roland@hack.frob.com>
14365
14366         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
14367
14368         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
14369
14370 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
14371
14372         * sysdeps/s390/fpu/libm-test-ulps: Update.
14373
14374         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14375
14376         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
14377         (__acr): Likewise.
14378         (__cpy): Likewise.
14379         (norm): Likewise.
14380         (denorm): Likewise.
14381         (__mp_dbl): Likewise.
14382         (__dbl_mp): Likewise.
14383         (add_magnitudes): Likewise.
14384         (sub_magnitudes): Likewise.
14385         (__add): Likewise.
14386         (__sub): Likewise.
14387         (__mul): Likewise.
14388         (__inv): Likewise.
14389         (__dvd): Likewise.
14390         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
14391         (__acr): Likewise.
14392         (__cpy): Likewise.
14393         (norm): Likewise.
14394         (denorm): Likewise.
14395         (__mp_dbl): Likewise.
14396         (__dbl_mp): Likewise.
14397         (add_magnitudes): Likewise.
14398         (sub_magnitudes): Likewise.
14399         (__add): Likewise.
14400         (__sub): Likewise.
14401         (__mul): Likewise.
14402         (__inv): Likewise.
14403         (__dvd): Likewise.
14404         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
14405         (__acr): Likewise.
14406         (__cpy): Likewise.
14407         (norm): Likewise.
14408         (denorm): Likewise.
14409         (__mp_dbl): Likewise.
14410         (__dbl_mp): Likewise.
14411         (add_magnitudes): Likewise.
14412         (sub_magnitudes): Likewise.
14413         (__add): Likewise.
14414         (__sub): Likewise.
14415         (__mul): Likewise.
14416         (__inv): Likewise.
14417         (__dvd): Likewise.
14418
14419 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
14420
14421         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
14422         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
14423         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
14424         2 && __USE_EXTERN_INLINES]: Likewise.
14425
14426 2013-01-08  Andreas Jaeger  <aj@suse.de>
14427
14428         [BZ# 14985]
14429         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
14430         Remove.
14431         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
14432         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
14433
14434 2013-01-07  Anton Blanchard  <anton@samba.org>
14435
14436         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
14437         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
14438         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
14439         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
14440         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14441         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
14442         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
14443         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
14444         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14445         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
14446         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14447         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14448         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
14449         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14450         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
14451         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14452         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14453         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14454         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
14455         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14456         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
14457         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
14458         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14459         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
14460         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
14461         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14462         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14463         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
14464         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
14465         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
14466         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
14467         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14468         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
14469         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
14470         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
14471         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14472         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14473         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
14474         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
14475         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
14476         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
14477         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14478         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
14479
14480 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
14481
14482         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
14483         (__MALLOC_PMT): Likewise.
14484         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
14485         [__GNUC__], only on [_LIBC].
14486         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
14487         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
14488         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
14489         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
14490         forward declaration.
14491         (realloc_hook_ini): Likewise.
14492         (memalign_hook_ini): Likewise.
14493         (__libc_memalign): Do not use __MALLOC_PMT in variable
14494         declaration.
14495         (__libc_valloc): Likewise.
14496         (__libc_pvalloc): Likewise.
14497         (__libc_calloc): Likewise.
14498         (__posix_memalign): Likewise.
14499
14500         [BZ #14996]
14501         * math/s_casinh.c: Include <float.h>.
14502         (__casinh): Do not do computation with squaring and square root
14503         for large arguments.
14504         * math/s_casinhf.c: Include <float.h>.
14505         (__casinhf): Do not do computation with squaring and square root
14506         for large arguments.
14507         * math/s_casinhl.c: Include <float.h>.
14508         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
14509         (__casinhl): Do not do computation with squaring and square root
14510         for large arguments.
14511         * math/libm-test.inc (casin_test): Add more tests.
14512         (casinh_test): Likewise.
14513         * sysdeps/i386/fpu/libm-test-ulps: Update.
14514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14515
14516 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
14517
14518         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
14519         (__x86_64_raw_data_cache_size): Likewise.
14520         (__x86_64_data_cache_size_half): Likewise.
14521         (__x86_64_raw_data_cache_size_half): Likewise.
14522         (__x86_64_shared_cache_size): Likewise.
14523         (__x86_64_raw_shared_cache_size): Likewise.
14524         (__x86_64_shared_cache_size_half): Likewise.
14525         (__x86_64_raw_shared_cache_size_half): Likewise.
14526         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
14527         to ...
14528         (__x86_data_cache_size): This.
14529         (__x86_64_raw_data_cache_size): Renamed to ...
14530         (__x86_raw_data_cache_size): This.
14531         (__x86_64_data_cache_size_half): Renamed to ...
14532         (__x86_data_cache_size_half): This.
14533         (__x86_64_raw_data_cache_size_half): Renamed to ...
14534         (__x86_raw_data_cache_size_half): This.
14535         (__x86_64_shared_cache_size): Renamed to ...
14536         (__x86_shared_cache_size): This.
14537         (__x86_64_raw_shared_cache_size): Renamed to ...
14538         (__x86_raw_shared_cache_size): This.
14539         (__x86_64_shared_cache_size_half): Renamed to ...
14540         (__x86_shared_cache_size_half): This.
14541         (__x86_64_raw_shared_cache_size_half): Renamed to ...
14542         (__x86_raw_shared_cache_size_half): This.
14543         * sysdeps/x86_64/memcpy.S: Updated.
14544         * sysdeps/x86_64/memset.S: Likewise.
14545         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
14546         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14547         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14548
14549 2013-01-04  David S. Miller  <davem@davemloft.net>
14550
14551         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14552
14553 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
14554
14555         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
14556         1 to avoid redefinition warning.
14557         (__USE_GNU): Don't define.
14558         (init_signaling_nan): Protoize.
14559
14560         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14561
14562 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14563
14564         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
14565         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
14566         (__cpymn): Likewise.
14567         (norm): Remove commented code.
14568         (denorm): Likewise.
14569         (__mp_dbl): Likewise.
14570         (__inv): Likewise.
14571         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
14572         (__cpymn): Likewise.
14573         (norm): Remove commented code.
14574         (denorm): Likewise.
14575         (__mp_dbl): Likewise.
14576         (__inv): Likewise.
14577
14578         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
14579         mp_no value for 1.0 and 2.0.
14580         (norm): Use RADIXI instead of radixi.d.
14581         (denorm): Likewise.
14582         (__mul): Use 0.0 instead of zero.d.
14583         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
14584         mp_no value for 1.0 and 2.0.
14585         (norm): Use RADIXI instead of radixi.d.
14586         (denorm): Likewise.
14587         (__mul): Use 0.0 instead of zero.d.
14588
14589 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
14590
14591         [BZ #14994]
14592         * math/s_casinh.c (__casinh): Reduce finite argument to first
14593         quadrant then set signs of results at the end.
14594         * math/s_casinhf.c (__casinhf): Likewise.
14595         * math/s_casinhl.c (__casinhl): Likewise.
14596         * math/libm-test.inc (casin_test): Add more tests.
14597         (casinh_test): Likewise.
14598         * sysdeps/i386/fpu/libm-test-ulps: Update.
14599         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14600
14601 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14602
14603         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
14604
14605         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
14606
14607         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
14608         declarations.
14609         (denorm): Likewise.
14610         (__mp_dbl): Likewise.
14611         (__inv): Likewise.
14612
14613         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
14614         and adjust the header comment.
14615
14616         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
14617         variable name from declaration.
14618
14619 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14620
14621         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14622         Initialize COMMON_CPUID_INDEX_7 element.
14623         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
14624         (CPUID_RTM): Likewise.
14625         (HAS_RTM): Likewise.
14626         (COMMON_CPUID_INDEX_7): New enum.
14627
14628 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
14629
14630         [BZ #14981]
14631         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
14632         size is zero, record memory as freed.
14633
14634 2013-01-03  Andreas Jaeger  <aj@suse.de>
14635
14636         * po/ia.po: Add new Interlingua translation.
14637
14638 2012-01-03  Allan McRae  <allan@archlinux.org>
14639
14640         * locale/programs/localedef.c: Fix description of '--posix' flag.
14641
14642 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
14643
14644         * NEWS: Update dates in second copyright notice.
14645         * README: Update copyright dates in example.
14646         * manual/libc.texinfo: Update copyright dates.
14647         * scripts/test-installation.pl: Update copyright date in --version
14648         output.
14649
14650         * hurd/ctty-input.c: Fix copyright notice formatting.
14651         * hurd/ctty-output.c: Likewise.
14652         * hurd/dtable.c: Likewise.
14653         * hurd/hurd-raise.c: Likewise.
14654         * hurd/hurdprio.c: Likewise.
14655         * hurd/msgportdemux.c: Likewise.
14656         * misc/sys/file.h: Likewise.
14657         * misc/sys/ioctl.h: Likewise.
14658         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
14659         * sysdeps/mach/hurd/chdir.c: Likewise.
14660         * sysdeps/mach/hurd/fchdir.c: Likewise.
14661         * sysdeps/mach/hurd/rename.c: Likewise.
14662         * sysdeps/mach/hurd/rmdir.c: Likewise.
14663         * sysdeps/mach/hurd/seekdir.c: Likewise.
14664         * sysdeps/mach/hurd/setsid.c: Likewise.
14665         * sysdeps/posix/wait3.c: Likewise.
14666
14667         * All files with FSF copyright notices: Update copyright dates
14668         using scripts/update-copyrights.
14669         * intl/plural.c: Regenerated.
14670         * locale/programs/charmap-kw.h: Likewise.
14671         * locale/programs/locfile-kw.h: Likewise.
14672
14673 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
14674
14675         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
14676         four values.
14677
14678         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
14679         calculation loop and add branch prediction.
14680
14681         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
14682         check access beyond bounds of m1np.
14683
14684         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
14685         MPTWO.
14686         (__inv): Remove local variable MPTWO to use the global
14687         constant.
14688         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
14689         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
14690         variable MPTWO.
14691         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
14692         MP3HALFS static const.
14693
14694 2013-01-01  David S. Miller  <davem@davemloft.net>
14695
14696         * po/ca.po: Update from translation team.
14697
14698 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
14699
14700         * scripts/update-copyrights: New file.
14701         * Makeconfig: Reformat copyright notice.
14702         * ctype/ctype.h: Likewise.
14703         * debug/swprintf_chk.c: Likewise.
14704         * elf/dl-cache.c: Likewise.
14705         * elf/dl-debug.c: Likewise.
14706         * elf/dl-object.c: Likewise.
14707         * grp/initgroups.c: Likewise.
14708         * hurd/Makefile: Likewise.
14709         * hurd/hurd/signal.h: Likewise.
14710         * hurd/hurdfault.c: Likewise.
14711         * hurd/hurdioctl.c: Likewise.
14712         * hurd/hurdlookup.c: Likewise.
14713         * hurd/intr-msg.c: Likewise.
14714         * iconv/gconv_open.c: Likewise.
14715         * libio/swprintf.c: Likewise.
14716         * locale/lc-ctype.c: Likewise.
14717         * locale/nl_langinfo.c: Likewise.
14718         * mach/Machrules: Likewise.
14719         * mach/Makefile: Likewise.
14720         * malloc/obstack.h: Likewise.
14721         * manual/Makefile: Likewise.
14722         * manual/tsort.awk: Likewise.
14723         * misc/bits/stab.def: Likewise.
14724         * nis/nis_print_group_entry.c: Likewise.
14725         * nis/nis_table.c: Likewise.
14726         * nis/nss_compat/compat-pwd.c: Likewise.
14727         * nis/nss_compat/compat-spwd.c: Likewise.
14728         * po/Makefile: Likewise.
14729         * posix/fnmatch.c: Likewise.
14730         * posix/regex.h: Likewise.
14731         * resolv/Makefile: Likewise.
14732         * resolv/nss_dns/dns-network.c: Likewise.
14733         * resolv/res_hconf.c: Likewise.
14734         * scripts/gen-sorted.awk: Likewise.
14735         * soft-fp/soft-fp.h: Likewise.
14736         * stdio-common/printf.h: Likewise.
14737         * stdlib/monetary.h: Likewise.
14738         * stdlib/random.c: Likewise.
14739         * stdlib/random_r.c: Likewise.
14740         * sysdeps/generic/Makefile: Likewise.
14741         * sysdeps/gnu/Makefile: Likewise.
14742         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14743         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14744         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14745         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14746         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14747         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14748         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14749         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14750         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14751         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14752         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14753         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14754         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14755         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14756         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
14757         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14758         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14759         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14760         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14761         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14762         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14763         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14764         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14765         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
14766         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
14767         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14768         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
14769         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
14770         * sysdeps/mach/hurd/errnos.awk: Likewise.
14771         * sysdeps/mach/hurd/fork.c: Likewise.
14772         * sysdeps/mach/hurd/getcwd.c: Likewise.
14773         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
14774         * sysdeps/mach/hurd/mmap.c: Likewise.
14775         * sysdeps/mach/hurd/utimes.c: Likewise.
14776         * sysdeps/mach/hurd/xmknod.c: Likewise.
14777         * sysdeps/posix/profil.c: Likewise.
14778         * sysdeps/posix/readdir_r.c: Likewise.
14779         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14780         * sysdeps/powerpc/bits/setjmp.h: Likewise.
14781         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
14782         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
14783         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14784         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
14785         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
14786         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14787         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14788         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
14789         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
14790         * sysdeps/pthread/lio_listio.c: Likewise.
14791         * sysdeps/sparc/dl-procinfo.h: Likewise.
14792         * sysdeps/unix/i386/sysdep.S: Likewise.
14793         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
14794         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
14795         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
14796         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
14797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14798         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
14799         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
14800         * sysdeps/unix/sysv/linux/speed.c: Likewise.
14801         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
14802         * sysdeps/wordsize-32/divdi3.c: Likewise.
14803         * time/sys/time.h: Likewise.
14804         * wcsmbs/Makefile: Likewise.
14805
14806 2013-01-01  David S. Miller  <davem@davemloft.net>
14807
14808         * po/fr.po: Update from translation team.
14809
14810         * catgets/gencat.c: Update copyright year.
14811         * csu/version.c: Likewise.
14812         * debug/catchsegv.sh: Likewise.
14813         * debug/pcprofiledump.c: Likewise.
14814         * debug/xtrace.sh: Likewise.
14815         * elf/ldconfig.c: Likewise.
14816         * elf/ldd.bash.in: Likewise.
14817         * elf/pldd.c: Likewise.
14818         * elf/sotruss.ksh: Likewise.
14819         * elf/sprof.c: Likewise.
14820         * iconv/iconv_prog.c: Likewise.
14821         * iconv/iconvconfig.c: Likewise.
14822         * locale/programs/locale.c: Likewise.
14823         * locale/programs/localedef.c: Likewise.
14824         * login/programs/pt_chown.c: Likewise.
14825         * malloc/memusage.sh: Likewise.
14826         * malloc/memusagestat.c: Likewise.
14827         * malloc/mtrace.pl: Likewise.
14828         * nscd/nscd.c: Likewise.
14829         * nss/getent.c: Likewise.
14830         * nss/makedb.c: Likewise.
14831         * posix/getconf.c: Likewise.
14832
14833 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
14834
14835         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
14836         numbers.
14837
14838 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
14839
14840         * math/bits/mathcalls.h (modf): Use __nonnull.
14841
14842 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
14843
14844         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
14845         (split): Use macro CN instead of the bare value.
14846         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
14847         could be used.
14848         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
14849         instead of the bare value.
14850         (power1): Likewise.
14851
14852 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14853
14854         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
14855         __ATAN_TWOM.
14856         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14857
14858         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
14859         their values.
14860         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
14861         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
14862         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
14863         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
14864
14865 2012-12-28  Andreas Jaeger  <aj@suse.de>
14866
14867         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
14868         values are from Linux 3.7.
14869
14870         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
14871         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
14872
14873 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14874
14875         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
14876         TRUE case.
14877
14878         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
14879         (norm): Likewise.
14880         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
14881         variables with preprocessor constants.
14882         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14883         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14884         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14885
14886 2012-12-27  Bruno Haible  <bruno@clisp.org>
14887
14888         [BZ #14317]
14889         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
14890         only if needed.
14891
14892 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
14893
14894         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
14895         and use variable directly.
14896         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
14897
14898         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
14899         MPONE.
14900         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
14901         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
14902         variable MPONE.
14903         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
14904         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
14905         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
14906         include directive.  Remove local variable MPONE.
14907         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
14908         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
14909         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14910
14911 2012-12-25  David S. Miller  <davem@davemloft.net>
14912
14913         * version.h (RELEASE): Set to "development".
14914         (VERSION): Set to "2.17.90".
14915         * NEWS: Add 2.18 section.
14916
14917 2012-12-21  David S. Miller  <davem@davemloft.net>
14918
14919         * po/hr.po: Update from translation team.
14920
14921 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14922
14923         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
14924
14925 2012-12-19  Steve Ellcey  <sellcey@mips.com>
14926
14927         * NEWS:  Mention new memcpy for MIPS.
14928
14929 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
14930
14931         * manual/contrib.texi (Contributors): Spelling correction.
14932
14933 2012-12-15  David S. Miller  <davem@davemloft.net>
14934
14935         * po/ru.po: Update from translation team.
14936
14937 2012-12-13  David S. Miller  <davem@davemloft.net>
14938
14939         * NEWS: Mention IFUNC testsuite enhancements.
14940
14941         * po/pl.po: Update from translation team.
14942         * po/bg.po: Likewise.
14943
14944         * manual/contrib.texi (Contributors): Update entries for Hongjiu
14945         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
14946
14947 2012-12-11  David S. Miller  <davem@davemloft.net>
14948
14949         * po/sv.po: Update from translation team.
14950
14951         * po/vi.po: Update from translation team.
14952
14953         * po/cs.po: Update from translation team.
14954
14955         * po/de.po: Update from translation team.
14956         * po/eo.po: Likewise.
14957         * po/nl.po: Likewise.
14958
14959 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
14960
14961         [BZ #14246]
14962         * manual/argp.texi (Argp Helper Functions): Move node to follow
14963         Argp Parsing State.
14964
14965         [BZ #14872]
14966         * manual/conf.texi (Limits on File System Capacity): Mention if
14967         terminating null is included in the max size.
14968
14969 2012-12-10  Andreas Jaeger  <aj@suse.de>
14970
14971         * po/cs.po: Update from translation team.
14972
14973 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
14974
14975         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
14976         void pointer and cast to uintptr_t.
14977         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
14978         path.
14979         * sysdeps/s390/s390-64/memcpy.S: Likewise.
14980         * sysdeps/s390/s390-64/memset.S: Likewise.
14981
14982 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
14983
14984         [BZ #14833]
14985         * menual/message.texi (Message Translation): Fix typos.
14986         (Helper programs for gettext): Likewise.
14987
14988 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
14989
14990         [BZ #14898]
14991         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
14992         Change to -1.
14993
14994 2012-12-07  David S. Miller  <davem@davemloft.net>
14995
14996         * po/libc.pot: Update.
14997
14998 2012-12-07  Richard Henderson  <rth@redhat.com>
14999
15000         [BZ #10114]
15001         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
15002         normal/normal case to before the switch.
15003         (_FP_DIV): Likewise.
15004
15005 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
15006             Mike Frysinger  <vapier@gentoo.org>
15007
15008         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
15009         check for __NR_fadvise64_64.
15010
15011 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
15012
15013         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
15014         0, not just to plain "0" as a statement.
15015         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
15016         with cw.
15017
15018 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
15019
15020         * NEWS: Use sourceware.org in Bugzilla URL.
15021
15022 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
15023
15024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
15025         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15026
15027         * stdio-common/tst-put-error.c (do_test): Add newline to the
15028         padded test to ensure flush.
15029
15030 2012-12-05  Jeff Law  <law@redhat.com>
15031
15032         * sunrpc/etc.rpc (fedfs_admin): Add entry.
15033
15034 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
15035
15036         * README: Don't refer to ports add-on as distributed separately.
15037         Mention AArch64 in list of systems supported in the ports add-on.
15038
15039         * LICENSES: Add more non-FSF copyright and license notices.
15040
15041         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
15042         ((unused)).
15043
15044         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
15045
15046         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
15047         10000 as width of padded output.
15048
15049 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15050
15051         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
15052
15053         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
15054         variable LX with __attribute__ ((unused)).
15055         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
15056         Likewise.
15057         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
15058         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15059         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
15060         with __attribute__ ((unused)).
15061
15062 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
15063
15064         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
15065
15066 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15067
15068         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
15069         (CFLAGS-nldbl-acos.c): New variable.
15070         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
15071         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
15072         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
15073         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
15074         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
15075         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
15076         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
15077         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
15078         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
15079         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
15080         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
15081         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
15082         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
15083         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
15084         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
15085         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
15086         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
15087         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
15088         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
15089         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
15090         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
15091         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
15092         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
15093         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
15094         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
15095         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
15096         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
15097         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
15098         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
15099         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
15100         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
15101         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
15102         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
15103         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
15104         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
15105         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
15106         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
15107         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
15108         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
15109         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
15110         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
15111         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
15112         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
15113         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
15114         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
15115         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
15116         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
15117         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
15118         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
15119         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
15120         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
15121         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
15122         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
15123         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
15124         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
15125         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
15126         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
15127         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
15128         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
15129         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
15130         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
15131         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
15132         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
15133         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
15134         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
15135         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
15136         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
15137         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
15138         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
15139         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
15140         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
15141         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
15142         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
15143         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
15144         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
15145         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
15146         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
15147         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
15148         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
15149         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
15150         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
15151         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
15152         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
15153         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
15154         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
15155         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
15156         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
15157         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
15158         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
15159         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
15160         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
15161         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
15162         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
15163         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
15164         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
15165         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
15166         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
15167
15168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
15169         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15170
15171         [BZ #14914]
15172         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
15173         whole low double instead of just low 47 bits when splitting values
15174         into two parts.
15175
15176 2012-12-03  Allan McRae  <allan@archlinux.org>
15177
15178         * manual/stdio.texi (Predefined Printf Handlers): Remove
15179         @hsep and @vsep usage.
15180
15181 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
15182
15183         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
15184         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
15185
15186 2012-12-03  Jeff Law  <law@redhat.com>
15187
15188         * time/sys/time.h (settimeofday): Do not mark TV argument
15189         as __nonnull.
15190
15191 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
15192
15193         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
15194         when currently writing and seek to current position when not.
15195         * libio/Makefile (tests): Remove bug-fclose1.
15196         * libio/bug-fclose1.c: Delete.
15197
15198 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
15199
15200         * manual/arith.texi (feenableexcept): Fix typo.
15201         (fedisableexcept): Likewise.
15202
15203 2012-11-30  Roland McGrath  <roland@hack.frob.com>
15204
15205         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
15206         second, differently-typed declaration, rather than a cast.
15207
15208 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15209
15210         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
15211         * include/rpc/svc.h: ... here.
15212
15213 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
15214
15215         [BZ #13013]
15216         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
15217         depending n and resplen2 to catch cases where answer
15218         equals answerp2.
15219
15220 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
15221
15222         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
15223         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
15224
15225 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
15226
15227         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
15228
15229 2012-11-29  Roland McGrath  <roland@hack.frob.com>
15230
15231         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
15232
15233 2012-11-28  Jeff Law  <law@redhat.com>
15234
15235         [BZ #13761]
15236         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
15237         dataset_temporary.  Track alloca usage into alloca_used.
15238         If dataset is large allocate and release it via malloc/free.
15239
15240 2012-06-04  Florian Weimer  <fweimer@redhat.com>
15241
15242         [BZ #14197]
15243         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
15244
15245 2012-11-28  David S. Miller  <davem@davemloft.net>
15246
15247         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15248
15249 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15250
15251         [BZ #14803]
15252         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
15253         of pi/2 rounded to nearest to 64 bits.
15254         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
15255         nearest to 64 bits.
15256         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
15257         bits.
15258
15259 2012-11-28  Jeff Law <law@redhat.com>
15260             Martin Osvald <mosvald@redhat.com>
15261
15262         [BZ #14889]
15263         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
15264         * sunrpc/svc.c: Include time.h.
15265         (__svc_accept_failed): New function.
15266         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
15267         any reason other than EINTR, call __svc_accept_failed.
15268         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
15269         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
15270
15271 2012-11-28  Andreas Schwab  <schwab@suse.de>
15272
15273         * scripts/abilist.awk: Also handle indirect functions in .opd
15274         section.
15275
15276 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15277
15278         [BZ #13881]
15279         * sysdeps/x86/fpu/powl_helper.c: New file.
15280         * sysdeps/x86/fpu/Makefile: Likewise.
15281         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
15282         (p3): New object.
15283         (__ieee754_powl): Use __powl_helper for finite arguments except
15284         integer exponents below 8.
15285         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
15286         (p3): New object.
15287         (__ieee754_powl): Use __powl_helper for finite arguments except
15288         integer exponents below 8.
15289         * math/libm-test.inc (pow_test): Add more tests and enable some
15290         previously disabled tests.
15291         * sysdeps/i386/fpu/libm-test-ulps: Update.
15292         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15293
15294 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15295             Carlos O'Donell  <carlos_odonell@mentor.com>
15296
15297         * nss/makedb.c (is_prime): Assert that input is odd and greater
15298         than 4.  Note that fact in a comment too.
15299         (next_prime): Add 4 to input.
15300
15301 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15302
15303         [BZ #11741]
15304         * libio/Makefile (tests): Add test case tst-fwrite-error.
15305         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
15306         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
15307         * libio/tst-fwrite-error.c: New test case.
15308
15309 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
15310
15311         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
15312         before casting to void *.
15313         * include/libc-internal.h (__pointer_type): New macro.
15314         (__integer_if_pointer_type_sub): Likewise.
15315         (__integer_if_pointer_type): Likewise.
15316         (cast_to_integer): Likewise.
15317         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
15318         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
15319         before casting to atomic64_t.
15320         (atomic_exchange_acq): Likewise.
15321         (__arch_exchange_and_add_body): Likewise.
15322         (__arch_add_body): Likewise.
15323         (atomic_add_negative): Likewise.
15324         (atomic_add_zero): Likewise.
15325
15326 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
15327
15328         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
15329         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
15330         (add_fdes): Likewise.
15331         (linear_search_fdes): Likewise.
15332         (binary_search_unencoded_fdes): Likewise.
15333
15334 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
15335
15336         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
15337
15338 2012-11-24  Adam Conrad  <adconrad@0c3.net>
15339
15340         * configure.in: Autodetect C++ header directories.
15341         * configure: Regenerated.
15342
15343 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
15344
15345         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
15346
15347 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
15348
15349         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15350
15351 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
15352
15353         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
15354         LDBL_MANT_DIG == 106]: Disable some tests.
15355         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15356         Likewise.
15357         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15358         Likewise.
15359
15360         [BZ #14871]
15361         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
15362         input for small inputs.  Return +/- pi/2 for large inputs.
15363         * math/libm-test.inc (atan_test): Add more tests.
15364
15365         * sysdeps/generic/unwind-dw2-fde-glibc.c
15366         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
15367         __attribute__ ((unused)).
15368
15369         [BZ #14645]
15370         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
15371         x * y if x and y are nonzero and z is zero.
15372
15373         [BZ #14811]
15374         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
15375         nonzero exponents with absolute value below 0x1p-117 to +/-
15376         0x1p-117.
15377
15378         [BZ #14869]
15379         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
15380         up arguments below 2**-450, not just those below 2**-500.
15381         * math/libm-test.inc (hypot_test): Add another test.
15382
15383         [BZ #14868]
15384         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
15385         Return a+b for ratio over 2**120, not 2**60.
15386         * math/libm-test.inc (hypot_test): Add another test.
15387
15388         * math/libm-test.inc (clog_test): Use
15389         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
15390         (clog10_test): Likewise.
15391
15392         [BZ #6778]
15393         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
15394
15395 2012-11-22  Andreas Schwab  <schwab@suse.de>
15396
15397         * sysdeps/i386/fpu/libm-test-ulps: Update.
15398
15399 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
15400
15401         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
15402         printf output with newline.
15403
15404 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
15405
15406         [BZ #14865]
15407         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
15408         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
15409         -z nodlopen, -z initfirst and -z execstack support.
15410         * configure: Regenerated.
15411
15412         * elf/elf.h (DF_1_NODIRECT): New macro.
15413         (DF_1_IGNMULDEF): Likewise.
15414         (DF_1_NOKSYMS): Likewise.
15415         (DF_1_NOHDR): Likewise.
15416         (DF_1_EDITED): Likewise.
15417         (DF_1_NORELOC): Likewise.
15418         (DF_1_SYMINTPOSE): Likewise.
15419         (DF_1_GLOBAUDIT): Likewise.
15420         (DF_1_SINGLETON): Likewise.
15421         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
15422         DT_1_SUPPORTED_MASK bits.
15423         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
15424
15425 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
15426
15427         * sysdeps/unix/make-syscalls.sh: Document prefixes.
15428
15429 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
15430
15431         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
15432         macro.
15433
15434         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
15435         (sendmmsg): Move declarations...
15436         * socket/sys/socket.h: ... here.
15437         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
15438         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
15439         include it from...
15440         * socket/recvmmsg.c: ... this new file.
15441         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
15442         (sendmmsg): Rename to __sendmmsg, create weak alias and make
15443         definition of __sendmmsg hidden.
15444         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
15445         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
15446         Move ENOSYS stub into and include it from...
15447         * socket/sendmmsg.c: ... this new file.
15448         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
15449         (sysdep_routines): Move recvmmsg and sendmmsg...
15450         * socket/Makefile (routines): ... here.
15451         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
15452         (GLIBC_PRIVATE): Add __sendmmsg.
15453         * include/sys/socket.h (__sendmmsg): Add declarations.
15454         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
15455         sendmmsg.
15456
15457 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
15458
15459         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
15460         variable I1 with __attribute__ ((unused)).
15461         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
15462
15463 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
15464
15465         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
15466         DUMMY variables with __attribute__ ((unused)).
15467
15468         * bits/byteswap.h: Include <bits/types.h>.
15469         (__bswap_64): Use __uint64_t instead of unsigned long long int.
15470
15471 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
15472
15473         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
15474         string_t.  Do not manually set errno.
15475         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
15476         length with __strnlen.  Make sure to both set errno and return it on
15477         failure.
15478
15479 2012-11-19  David S. Miller  <davem@davemloft.net>
15480
15481         With help from Joseph Myers.
15482         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
15483         very large arguments properly.
15484         * math/libm-test.inc (atan_test): New tests.
15485         (atan2_test): New tests.
15486         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15487         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15488
15489 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
15490
15491         [BZ #14856]
15492         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
15493         Define to 3.
15494
15495         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
15496         [POSIX] (EADDRNOTAVAIL): Likewise.
15497         [POSIX] (EAFNOSUPPORT): Likewise.
15498         [POSIX] (EALREADY): Likewise.
15499         [POSIX] (ECONNABORTED): Likewise.
15500         [POSIX] (ECONNREFUSED): Likewise.
15501         [POSIX] (ECONNRESET): Likewise.
15502         [POSIX] (EDESTADDRREQ): Likewise.
15503         [POSIX] (EDQUOT): Likewise.
15504         [POSIX] (EHOSTUNREACH): Likewise.
15505         [POSIX] (EIDRM): Likewise.
15506         [POSIX] (EISCONN): Likewise.
15507         [POSIX] (ELOOP): Likewise.
15508         [POSIX] (EMULTIHOP): Likewise.
15509         [POSIX] (ENETDOWN): Likewise.
15510         [POSIX] (ENETUNREACH): Likewise.
15511         [POSIX] (ENOBUFS): Likewise.
15512         [POSIX] (ENODATA): Likewise.
15513         [POSIX] (ENOLINK): Likewise.
15514         [POSIX] (ENOMSG): Likewise.
15515         [POSIX] (ENOPROTOOPT): Likewise.
15516         [POSIX] (ENOSR): Likewise.
15517         [POSIX] (ENOSTR): Likewise.
15518         [POSIX] (ENOTCONN): Likewise.
15519         [POSIX] (ENOTSOCK): Likewise.
15520         [POSIX] (EOPNOTSUPP): Likewise.
15521         [POSIX] (EOVERFLOW): Likewise.
15522         [POSIX] (EPROTO): Likewise.
15523         [POSIX] (EPROTONOSUPPORT): Likewise.
15524         [POSIX] (EPROTOTYPE): Likewise.
15525         [POSIX] (ESTALE): Likewise.
15526         [POSIX] (ETIME): Likewise.
15527         [POSIX] (ETXTBSY): Likewise.
15528         [POSIX] (EWOULDBLOCK): Likewise.
15529         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
15530         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
15531         [POSIX] (SEEK_CUR): Likewise.
15532         [POSIX] (SEEK_END): Likewise.
15533         [POSIX || UNIX98] (mode_t): Do not require.
15534         [POSIX] (off_t): Likewise.
15535         [POSIX] (pid_t): Likewise.
15536         [POSIX] (sys/stat.h): Do not allow header.
15537         [POSIX] (unistd.h): Likewise.
15538         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
15539         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
15540         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
15541         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
15542         require.
15543         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
15544         sigevent): Specify elements.
15545         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
15546         entry.
15547         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
15548         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
15549
15550         * conform/data/cpio.h-data [POSIX]: Disable whole file.
15551         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
15552         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
15553         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
15554         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
15555         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
15556         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
15557         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
15558         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
15559         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
15560         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
15561         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
15562         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
15563         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
15564         Likewise.
15565         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
15566         Likewise.
15567         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
15568         Likewise.
15569         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
15570         Likewise.
15571         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
15572         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
15573         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
15574         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
15575         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
15576         Specify lower bound on value.
15577         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
15578         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
15579         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
15580         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
15581         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
15582         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
15583         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
15584         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
15585         value.
15586         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
15587         as optional.
15588         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
15589         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
15590         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
15591         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
15592         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
15593         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
15594         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
15595         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
15596         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
15597         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
15598         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
15599         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
15600         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
15601         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
15602         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
15603         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
15604         entry.
15605         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
15606         optional.
15607         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
15608         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
15609         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
15610         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
15611         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
15612         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
15613         Likewise.
15614         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
15615         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
15616         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
15617         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
15618         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
15619         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
15620         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
15621         as optional.
15622         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
15623         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
15624         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
15625         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
15626         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
15627         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
15628         specify as optional.
15629         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
15630         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
15631         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
15632         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
15633         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
15634         [XPG3] (NL_LANGMAX): Likewise.
15635         [POSIX || XPG3] (NL_MSGMAX): Likewise.
15636         [POSIX || XPG3] (NL_NMAX): Likewise.
15637         [POSIX || XPG3] (NL_SETMAX): Likewise.
15638         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
15639         [XPG3] (NZERO): Likewise.
15640         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
15641         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
15642         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
15643         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
15644         (REG_ERANGE): Expect.
15645         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
15646         optional-constant.
15647         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
15648         Use (void) in prototype.
15649         [POSIX] (*_t): Allow.
15650         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
15651         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
15652         (WRDE_BADVAL): Expect.
15653
15654         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
15655         expect.
15656         [XPG3 || XPG4] (O_RSYNC): Likewise.
15657         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
15658         Likewise.
15659         [XPG3 || XPG4] (pthread_sigmask): Likewise.
15660         [XPG3 || XPG4] (sigqueue): Likewise.
15661         [XPG3 || XPG4] (sigtimedwait): Likewise.
15662         [XPG3 || XPG4] (sigwaitinfo): Likewise.
15663         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
15664         [XPG3 || XPG4] (vsnprintf): Likewise.
15665         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
15666         Likewise.
15667         [XPG3 || XPG4] (blksize_t): Likewise.
15668         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
15669         Likewise.
15670         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
15671         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
15672         [XPG3 || XPG4] (struct itimerspec): Likewise.
15673         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
15674         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
15675         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
15676         [XPG3 || XPG4] (clockid_t): Likewise.
15677         [XPG3 || XPG4] (timer_t): Likewise.
15678         [XPG3 || XPG4] (clock_getres): Likewise.
15679         [XPG3 || XPG4] (clock_gettime): Likewise.
15680         [XPG3 || XPG4] (clock_settime): Likewise.
15681         [XPG3 || XPG4] (nanosleep): Likewise.
15682         [XPG3 || XPG4] (timer_create): Likewise.
15683         [XPG3 || XPG4] (timer_delete): Likewise.
15684         [XPG3 || XPG4] (timer_gettime): Likewise.
15685         [XPG3 || XPG4] (timer_getoverrun): Likewise.
15686         [XPG3 || XPG4] (timer_settime): Likewise.
15687         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
15688         [XPG3 || XPG4] (getlogin_r): Likewise.
15689         [XPG3 || XPG4] (pread): Likewise.
15690         [XPG3 || XPG4] (pthread_atfork): Likewise.
15691         [XPG3 || XPG4] (pwrite): Likewise.
15692
15693         [BZ #14835]
15694         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
15695         <bits/siginfo.h>.
15696
15697 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
15698
15699         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
15700         finalizing MALLSTREAM.
15701
15702         * sysdeps/mach/hurd/syncfs.c: New file.
15703
15704 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
15705
15706         [BZ #14719]
15707         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
15708         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
15709         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
15710         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
15711         (_nss_dns_gethostbyname4_r): Likewise.
15712         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
15713         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
15714
15715 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
15716
15717         [BZ #13763]
15718         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
15719
15720 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
15721
15722         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
15723         * elf/cache.c (print_entry): Print ",AArch64" for
15724         FLAG_AARCH64_LIB64
15725
15726         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
15727         * elf/cache.c (print_entry): Print ",hard-float" for
15728         FLAG_ARM_LIBHF.
15729
15730 2012-11-18  David S. Miller  <davem@davemloft.net>
15731
15732         With help from Joseph Myers.
15733         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
15734         cutoff to 2**-13.
15735         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
15736         cutoff to 2**-25.
15737         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
15738         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
15739         small.
15740         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
15741         * math/libm-test.inc (y0_test): New tests.
15742         (y1_test): New tests.
15743         * sysdeps/i386/fpu/libm-test-ulps: Update.
15744         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15745         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15746
15747 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
15748
15749         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
15750         64-bit targets.
15751         * configure: Regenerated.
15752
15753 2012-11-17  David S. Miller  <davem@davemloft.net>
15754
15755         [BZ #14811]
15756         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
15757         nonzero exponents with absolute value below 0x1p-128 to +/-
15758         0x1p-128.
15759
15760 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
15761
15762         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
15763
15764         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
15765
15766         * posix/getconf-speclist.c: New file.
15767         * posix/posix-envs.def: Likewise.
15768         * posix/confstr.c (START_ENV_GROUP): New macro.
15769         (END_ENV_GROUP): Likewise.
15770         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
15771         (KNOWN_PRESENT_ENV_STRING): Likewise.
15772         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
15773         (UNKNOWN_ENVIRONMENT): Likewise.
15774         (confstr): Include posix-envs.def instead of handling
15775         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
15776         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
15777         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
15778         (END_ENV_GROUP): Likewise.
15779         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
15780         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
15781         (UNKNOWN_ENVIRONMENT): Likewise.
15782         (__sysconf): Include posix-envs.def instead of handling associated
15783         cases directly here.
15784         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
15785         preprocessing getconf-speclist.c rather than running getconf or
15786         generating empty file.
15787
15788 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
15789
15790         * scripts/check-local-headers.sh: Ignore 'mach' headers.
15791
15792 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
15793
15794         [BZ #14672]
15795         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
15796
15797 2012-11-16  David S. Miller  <davem@davemloft.net>
15798
15799         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
15800         smaller than LDBL_EPSILON/2.0L, just return xm1.
15801
15802 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
15803
15804         * elf/tst-array1.c (init): Set constructor priority to 1000.
15805         (fini): Set destructor priority to 1000.
15806         * elf/tst-array2dep.c: Likewise.
15807
15808 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15809
15810         [BZ #11741]
15811         * libio/fileops.c (_IO_new_file_write): Correctly return error.
15812         (_IO_new_file_xsputn): Also return EOF if none of the input
15813         data was written when overflow failed.
15814         * libio/iopadn.c (_IO_padn): Likewise.
15815         * libio/iowpadn.c (_IO_wpadn): Likewise.
15816         * stdio-common/tst-put-error.c: Add copyright notice.
15817         (do_test): Add case for printing padded string.
15818         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
15819         _IO_padn returned error.
15820         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
15821         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
15822         return EOF.
15823
15824 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15825
15826         * libio/libioP.h: Add comment note that the references to C++
15827         bits are now obsolete.
15828
15829 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15830
15831         * math/libm-test.inc (check_complex): Use asprintf.
15832
15833 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
15834
15835         * debug/pcprofiledump.c (print_version): Update copyright year.
15836         * malloc/memusagestat.c (print_version): Likewise.
15837
15838 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
15839
15840         [BZ #14831]
15841         * elf/Makefile (tests): Add tst-audit8.
15842         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
15843         ($(objpfx)tst-audit8.out): New target.
15844         (tst-audit8-ENV): New variable.
15845         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
15846         audit if l_reloc_result is NULL.
15847         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
15848         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
15849         * elf/tst-audit8.c: New file.
15850
15851 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15852
15853         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
15854         * misc/Makefile (CFLAGS-select.c): Define.
15855         * posix/Makefile (CFLAGS-pause.c): Define.
15856
15857 2012-11-13  David S. Miller  <davem@davemloft.net>
15858
15859         * crypt/Makefile: Move test targets after toplevel Rules
15860         inclusion.  Grab any necessary sysdep routines when linking.
15861         * crypt/md5.c (md5_process_block): Remove define, we will always
15862         name it __md5_process_block.
15863         (md5_finish_ctx): Update md5_process_block call.
15864         (md5_stream): Likewise.
15865         (md5_process_bytes): Likewise.
15866         (md5_process_block): Rename to __md5_process_block and move to ...
15867         * crypt/md5-block.c: ... here.
15868         * crypt/sha256.c (sha256_process_block): Move to ...
15869         * crypt/sha256-block.c: ... here.
15870         * crypt/sha512.c (sha512_process_block): Move to ...
15871         * crypt/sha512-block.c: ... here.
15872         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
15873         path.
15874         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
15875         * sysdeps/sparc/sparc64/multiarch/Makefile
15876         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
15877         crypt subdir.
15878         (localedef-aux): Add md5 crypto assembler when in locale subdir.
15879         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
15880         multiarch changes.
15881         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
15882         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
15883         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
15884         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
15885         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
15886         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
15887         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
15888         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
15889         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
15890         file.
15891         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
15892         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
15893         file.
15894         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
15895
15896 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
15897
15898         * timezone/tzselect.ksh: Update from tzcode git revision
15899         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
15900         * timezone/zdump.c: Likewise.
15901         * timezone/zic.c: Likewise.
15902         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
15903         in TZVERSION setting, not $(PKGVERSION).
15904         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
15905         REPORT_BUGS_TO settings.
15906
15907         [BZ #14838]
15908         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
15909         macro.
15910
15911 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15912
15913         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
15914         detection to immediately after _FP_ROUND().
15915         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
15916         bits are 0.
15917
15918 2012-11-11  David S. Miller  <davem@davemloft.net>
15919
15920         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
15921         inttypes.h
15922         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
15923         __close rather than their public counterparts.
15924
15925 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
15926
15927         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
15928         file.
15929         [UNIX98] (sem_timedwait): Do not expect.
15930         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
15931         [XPG4 || UNIX98] (sockatmark): Do not expect.
15932         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
15933         (clock_getcpuclockid): Do not expect.
15934         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
15935         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
15936         Do not expect.
15937         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
15938         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
15939         [UNIX98] (vwscanf): Likewise.
15940         [UNIX98] (vswscanf): Likewise.
15941
15942 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
15943
15944         * timezone/version.h: Remove file.
15945         * timezone/README: Do not refer to version.h.
15946         * timezone/Makefile ($(objpfx)zic.o): New dependency on
15947         $(objpfx)version.h.
15948         ($(objpfx)zdump.o): Likewise.
15949         ($(objpfx)version.h): New target.
15950
15951         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
15952         2012i.
15953         * timezone/README: Don't mention modification to tzselect.ksh.
15954         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
15955         work on unmodified tzselect.ksh.  Substitute version numbers in
15956         tzselect.ksh.
15957
15958         * Makefile (format-me): Remove.
15959         (INSTALL): Adjust indentation.  Use commands directly instead of
15960         using $(format-me).
15961
15962         * aclocal.m4 (ACX_PKGVERSION): New macro.
15963         (ACX_BUGURL): Likewise.
15964         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
15965         (PKGVERSION): New AC_DEFINE_UNQUOTED.
15966         (REPORT_BUGS_TO): Likewise.
15967         * configure: Regenerated.
15968         * config.h.in (PKGVERSION): New macro.
15969         (REPORT_BUGS_TO): Likewise.
15970         * config.make.in (PKGVERSION): New variable.
15971         (PKGVERSION_TEXI): Likewise.
15972         (REPORT_BUGS_TO): Likewise.
15973         (REPORT_BUGS_TEXI): Likewise.
15974         * Makefile (format-me): Use -I$(common-objpfx)manual.
15975         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
15976         ($(common-objpfx)manual/%): New target.
15977         (manual/%): Remove target.
15978         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
15979         (print_version): Use PKGVERSION.
15980         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
15981         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
15982         and REPORT_BUGS_TO.
15983         ($(objpfx)xtrace): Likewise.
15984         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
15985         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
15986         (print_version): Use PKGVERSION.
15987         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
15988         (do_version): Use PKGVERSION.
15989         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
15990         REPORT_BUGS_TO.
15991         (common-ldd-rewrite): Likewise.
15992         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
15993         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
15994         (print_version): Use PKGVERSION.
15995         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
15996         * elf/pldd.c (argp_program_bug_address): Remove variable.
15997         (more_help): New function.
15998         (argp): Use more_help.
15999         (print_version): Use PKGVERSION.
16000         * elf/sln.c (main): Use PKGVERSION.
16001         (usage): Use REPORT_BUGS_TO.
16002         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
16003         (top level): Use PKGVERSION.
16004         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
16005         (print_version): Use PKGVERSION.
16006         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
16007         (print_version): Use PKGVERSION.
16008         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
16009         (print_version): Use PKGVERSION.
16010         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
16011         (print_version): Use PKGVERSION.
16012         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
16013         (print_version): Use PKGVERSION.
16014         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
16015         (print_version): Use PKGVERSION.
16016         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
16017         and BUGURL.
16018         ($(objpfx)memusage): Likewise.
16019         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
16020         (do_version): Use PKGVERSION.
16021         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
16022         (print_version): Use PKGVERSION.
16023         * malloc/mtrace.pl ($PACKAGE): Remove variable.
16024         ($PKGVERSION): New variable.
16025         ($REPORT_BUGS_TO): Likewise.
16026         (usage): Use $REPORT_BUGS_TO.
16027         (top level): Use $PKGVERSION.
16028         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
16029         ($(objpfx)pkgvers.texi): New rule.
16030         ($(objpfx)stamp-pkgvers): Likewise.
16031         * manual/install.texi: Include pkgvers.texi.
16032         (--with-pkgversion): Document new configure option.
16033         (--with-bugurl): Likewise.
16034         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
16035         than necessarily for this particular distribution.  Use
16036         REPORT_BUGS_TO for where to report bugs.
16037         * INSTALL: Regenerated.
16038         * manual/libc.texinfo: Include pkgvers.texi.
16039         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
16040         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
16041         (print_version): Use PKGVERSION.
16042         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
16043         (print_version): Use PKGVERSION.
16044         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
16045         (print_version): Use PKGVERSION.
16046         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
16047         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
16048         macro.
16049         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
16050         (print_version): Use PKGVERSION.
16051         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
16052         (print_version): Use PKGVERSION.
16053         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
16054         and PKGVERSION.
16055
16056         * timezone/checktab.awk: Update from tzcode 2012i.
16057         * timezone/ialloc.c: Likewise.
16058         * timezone/private.h: Likewise.
16059         * timezone/scheck.c: Likewise.
16060         * timezone/tzfile.h: Likewise.
16061         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
16062         (TZVERSION): Hardcode tzcode version number.
16063         * timezone/zdump.c: Update from tzcode 2012i.
16064         * timezone/zic.c: Likewise.
16065         * timezone/version.h: New file.
16066         * timezone/README: Describe version.h.  Update upstream location.
16067
16068         [BZ #14824]
16069         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
16070         (mktemp): Enable declaration.
16071         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
16072         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
16073         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
16074         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
16075         Likewise.
16076         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
16077         Likewise.
16078         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
16079         Likewise.
16080         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
16081         Likewise.
16082         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
16083         Likewise.
16084         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
16085         Likewise.
16086
16087         [BZ #14821]
16088         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
16089         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
16090         for copies of such integer values.
16091         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16092         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16093
16094 2012-11-09  Andreas Jaeger  <aj@suse.de>
16095
16096         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
16097         definitions and declarations that are provided by
16098         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
16099
16100 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16101
16102         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
16103         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
16104         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
16105         definition.
16106
16107 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16108
16109         * elf/elf.h: Update comment before AArch64 relocations.
16110
16111 2012-11-07  David S. Miller  <davem@davemloft.net>
16112
16113         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
16114         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16115         (__start_context): Declare.
16116         (__makecontext_ret): Delete.
16117         (__makecontext): Hook up __start_context instead of
16118         __makecontext_ret.
16119         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
16120         (sysdep_routines): Add __start_context when in stdlib.
16121
16122 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16123
16124         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
16125         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
16126         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
16127         hardcoded "nm".
16128         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
16129         (READELF): New variable.  Use it instead of hardcoded "readelf".
16130
16131 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16132
16133         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
16134         * sysdeps/x86/Makefile: Here.
16135         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
16136         * sysdeps/x86/tst-xmmymm.sh: This.
16137
16138 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16139
16140         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
16141         expectations.
16142         [UNIX98] (pthread_barrier_t): Do not expect.
16143         [UNIX98] (pthread_barrierattr_t): Likewise.
16144         [UNIX98] (pthread_spinlock_t): Likewise.
16145         [UNIX98] (pthread_barrier_destroy): Likewise.
16146         [UNIX98] (pthread_barrier_init): Likewise.
16147         [UNIX98] (pthread_barrier_wait): Likewise.
16148         [UNIX98] (pthread_barrierattr_destroy): Likewise.
16149         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
16150         [UNIX98] (pthread_barrierattr_init): Likewise.
16151         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
16152         [UNIX98] (pthread_getcpuclockid): Likewise.
16153         [UNIX98] (pthread_mutex_timedlock): Likewise.
16154         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
16155         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
16156         [UNIX98] (pthread_sigmask): Likewise.
16157         [UNIX98] (pthread_spin_destroy): Likewise.
16158         [UNIX98] (pthread_spin_init): Likewise.
16159         [UNIX98] (pthread_spin_lock): Likewise.
16160         [UNIX98] (pthread_spin_trylock): Likewise.
16161         [UNIX98] (pthread_spin_unlock): Likewise.
16162         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
16163         Do not expect.
16164         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
16165         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
16166         [XPG3 || XPG4] (pthread_cond_t): Likewise.
16167         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
16168         [XPG3 || XPG4] (pthread_key_t): Likewise.
16169         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
16170         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
16171         [XPG3 || XPG4] (pthread_once_t): Likewise.
16172         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
16173         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
16174         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
16175         [XPG3 || XPG4] (pthread_t): Likewise.
16176
16177         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
16178         not expect.
16179         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
16180
16181         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
16182         Change function return type to int.
16183
16184         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
16185         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
16186         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
16187         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
16188         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
16189         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
16190         [!POSIX] (posix_madvise): Likewise.
16191         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
16192         && !UNIX98].
16193         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
16194         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
16195         (mode_t): Likewise.
16196         (posix_mem_offset): Likewise.
16197         (posix_typed_mem_get_info): Likewise.
16198         (posix_typed_mem_open): Likewise.
16199
16200         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
16201         Change condition to [XOPEN2K8].
16202
16203         * conform/conformtest.pl: Preprocess allow-header data with -x c
16204         instead of from stdin.
16205         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
16206         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
16207         [C99-based standards] (cerfc): Likewise.
16208         [C99-based standards] (cexp2): Likewise.
16209         [C99-based standards] (cexpm1): Likewise.
16210         [C99-based standards] (clog10): Likewise.
16211         [C99-based standards] (clog1p): Likewise.
16212         [C99-based standards] (clog2): Likewise.
16213         [C99-based standards] (clgamma): Likewise.
16214         [C99-based standards] (ctgamma): Likewise.
16215         [C99-based standards] (cerff): Likewise.
16216         [C99-based standards] (cerfcf): Likewise.
16217         [C99-based standards] (cexp2f): Likewise.
16218         [C99-based standards] (cexpm1f): Likewise.
16219         [C99-based standards] (clog10f): Likewise.
16220         [C99-based standards] (clog1pf): Likewise.
16221         [C99-based standards] (clog2f): Likewise.
16222         [C99-based standards] (clgammaf): Likewise.
16223         [C99-based standards] (ctgammaf): Likewise.
16224         [C99-based standards] (cerfl): Likewise.
16225         [C99-based standards] (cerfcl): Likewise.
16226         [C99-based standards] (cexp2l): Likewise.
16227         [C99-based standards] (cexpm1l): Likewise.
16228         [C99-based standards] (clog10l): Likewise.
16229         [C99-based standards] (clog1pl): Likewise.
16230         [C99-based standards] (clog2l): Likewise.
16231         [C99-based standards] (clgammal): Likewise.
16232         [C99-based standards] (ctgammal): Likewise.
16233         * conform/data/inttypes.h-data [C99-based standards]: Include
16234         stdint.h-data.  Remove all expectations for stdint.h contents.
16235         [C99-based standards] (PRI*): Do not allow.
16236         [C99-based standards] (SCN*): Likewise.
16237         [C99-based standards] (*_t): Likewise.
16238         [C99-based-standards] (PRId8): Expect macro.
16239         [C99-based-standards] (PRIi8): Likewise.
16240         [C99-based-standards] (PRIo8): Likewise.
16241         [C99-based-standards] (PRIu8): Likewise.
16242         [C99-based-standards] (PRIx8): Likewise.
16243         [C99-based-standards] (PRIX8): Likewise.
16244         [C99-based-standards] (SCNd8): Likewise.
16245         [C99-based-standards] (SCNi8): Likewise.
16246         [C99-based-standards] (SCNo8): Likewise.
16247         [C99-based-standards] (SCNu8): Likewise.
16248         [C99-based-standards] (SCNx8): Likewise.
16249         [C99-based-standards] (PRIdLEAST8): Likewise.
16250         [C99-based-standards] (PRIiLEAST8): Likewise.
16251         [C99-based-standards] (PRIoLEAST8): Likewise.
16252         [C99-based-standards] (PRIuLEAST8): Likewise.
16253         [C99-based-standards] (PRIxLEAST8): Likewise.
16254         [C99-based-standards] (PRIXLEAST8): Likewise.
16255         [C99-based-standards] (SCNdLEAST8): Likewise.
16256         [C99-based-standards] (SCNiLEAST8): Likewise.
16257         [C99-based-standards] (SCNoLEAST8): Likewise.
16258         [C99-based-standards] (SCNuLEAST8): Likewise.
16259         [C99-based-standards] (SCNxLEAST8): Likewise.
16260         [C99-based-standards] (PRIdFAST8): Likewise.
16261         [C99-based-standards] (PRIiFAST8): Likewise.
16262         [C99-based-standards] (PRIoFAST8): Likewise.
16263         [C99-based-standards] (PRIuFAST8): Likewise.
16264         [C99-based-standards] (PRIxFAST8): Likewise.
16265         [C99-based-standards] (PRIXFAST8): Likewise.
16266         [C99-based-standards] (SCNdFAST8): Likewise.
16267         [C99-based-standards] (SCNiFAST8): Likewise.
16268         [C99-based-standards] (SCNoFAST8): Likewise.
16269         [C99-based-standards] (SCNuFAST8): Likewise.
16270         [C99-based-standards] (SCNxFAST8): Likewise.
16271         [C99-based-standards] (PRId16): Likewise.
16272         [C99-based-standards] (PRIi16): Likewise.
16273         [C99-based-standards] (PRIo16): Likewise.
16274         [C99-based-standards] (PRIu16): Likewise.
16275         [C99-based-standards] (PRIx16): Likewise.
16276         [C99-based-standards] (PRIX16): Likewise.
16277         [C99-based-standards] (SCNd16): Likewise.
16278         [C99-based-standards] (SCNi16): Likewise.
16279         [C99-based-standards] (SCNo16): Likewise.
16280         [C99-based-standards] (SCNu16): Likewise.
16281         [C99-based-standards] (SCNx16): Likewise.
16282         [C99-based-standards] (PRIdLEAST16): Likewise.
16283         [C99-based-standards] (PRIiLEAST16): Likewise.
16284         [C99-based-standards] (PRIoLEAST16): Likewise.
16285         [C99-based-standards] (PRIuLEAST16): Likewise.
16286         [C99-based-standards] (PRIxLEAST16): Likewise.
16287         [C99-based-standards] (PRIXLEAST16): Likewise.
16288         [C99-based-standards] (SCNdLEAST16): Likewise.
16289         [C99-based-standards] (SCNiLEAST16): Likewise.
16290         [C99-based-standards] (SCNoLEAST16): Likewise.
16291         [C99-based-standards] (SCNuLEAST16): Likewise.
16292         [C99-based-standards] (SCNxLEAST16): Likewise.
16293         [C99-based-standards] (PRIdFAST16): Likewise.
16294         [C99-based-standards] (PRIiFAST16): Likewise.
16295         [C99-based-standards] (PRIoFAST16): Likewise.
16296         [C99-based-standards] (PRIuFAST16): Likewise.
16297         [C99-based-standards] (PRIxFAST16): Likewise.
16298         [C99-based-standards] (PRIXFAST16): Likewise.
16299         [C99-based-standards] (SCNdFAST16): Likewise.
16300         [C99-based-standards] (SCNiFAST16): Likewise.
16301         [C99-based-standards] (SCNoFAST16): Likewise.
16302         [C99-based-standards] (SCNuFAST16): Likewise.
16303         [C99-based-standards] (SCNxFAST16): Likewise.
16304         [C99-based-standards] (PRId32): Likewise.
16305         [C99-based-standards] (PRIi32): Likewise.
16306         [C99-based-standards] (PRIo32): Likewise.
16307         [C99-based-standards] (PRIu32): Likewise.
16308         [C99-based-standards] (PRIx32): Likewise.
16309         [C99-based-standards] (PRIX32): Likewise.
16310         [C99-based-standards] (SCNd32): Likewise.
16311         [C99-based-standards] (SCNi32): Likewise.
16312         [C99-based-standards] (SCNo32): Likewise.
16313         [C99-based-standards] (SCNu32): Likewise.
16314         [C99-based-standards] (SCNx32): Likewise.
16315         [C99-based-standards] (PRIdLEAST32): Likewise.
16316         [C99-based-standards] (PRIiLEAST32): Likewise.
16317         [C99-based-standards] (PRIoLEAST32): Likewise.
16318         [C99-based-standards] (PRIuLEAST32): Likewise.
16319         [C99-based-standards] (PRIxLEAST32): Likewise.
16320         [C99-based-standards] (PRIXLEAST32): Likewise.
16321         [C99-based-standards] (SCNdLEAST32): Likewise.
16322         [C99-based-standards] (SCNiLEAST32): Likewise.
16323         [C99-based-standards] (SCNoLEAST32): Likewise.
16324         [C99-based-standards] (SCNuLEAST32): Likewise.
16325         [C99-based-standards] (SCNxLEAST32): Likewise.
16326         [C99-based-standards] (PRIdFAST32): Likewise.
16327         [C99-based-standards] (PRIiFAST32): Likewise.
16328         [C99-based-standards] (PRIoFAST32): Likewise.
16329         [C99-based-standards] (PRIuFAST32): Likewise.
16330         [C99-based-standards] (PRIxFAST32): Likewise.
16331         [C99-based-standards] (PRIXFAST32): Likewise.
16332         [C99-based-standards] (SCNdFAST32): Likewise.
16333         [C99-based-standards] (SCNiFAST32): Likewise.
16334         [C99-based-standards] (SCNoFAST32): Likewise.
16335         [C99-based-standards] (SCNuFAST32): Likewise.
16336         [C99-based-standards] (SCNxFAST32): Likewise.
16337         [C99-based-standards] (PRId64): Likewise.
16338         [C99-based-standards] (PRIi64): Likewise.
16339         [C99-based-standards] (PRIo64): Likewise.
16340         [C99-based-standards] (PRIu64): Likewise.
16341         [C99-based-standards] (PRIx64): Likewise.
16342         [C99-based-standards] (PRIX64): Likewise.
16343         [C99-based-standards] (SCNd64): Likewise.
16344         [C99-based-standards] (SCNi64): Likewise.
16345         [C99-based-standards] (SCNo64): Likewise.
16346         [C99-based-standards] (SCNu64): Likewise.
16347         [C99-based-standards] (SCNx64): Likewise.
16348         [C99-based-standards] (PRIdLEAST64): Likewise.
16349         [C99-based-standards] (PRIiLEAST64): Likewise.
16350         [C99-based-standards] (PRIoLEAST64): Likewise.
16351         [C99-based-standards] (PRIuLEAST64): Likewise.
16352         [C99-based-standards] (PRIxLEAST64): Likewise.
16353         [C99-based-standards] (PRIXLEAST64): Likewise.
16354         [C99-based-standards] (SCNdLEAST64): Likewise.
16355         [C99-based-standards] (SCNiLEAST64): Likewise.
16356         [C99-based-standards] (SCNoLEAST64): Likewise.
16357         [C99-based-standards] (SCNuLEAST64): Likewise.
16358         [C99-based-standards] (SCNxLEAST64): Likewise.
16359         [C99-based-standards] (PRIdFAST64): Likewise.
16360         [C99-based-standards] (PRIiFAST64): Likewise.
16361         [C99-based-standards] (PRIoFAST64): Likewise.
16362         [C99-based-standards] (PRIuFAST64): Likewise.
16363         [C99-based-standards] (PRIxFAST64): Likewise.
16364         [C99-based-standards] (PRIXFAST64): Likewise.
16365         [C99-based-standards] (SCNdFAST64): Likewise.
16366         [C99-based-standards] (SCNiFAST64): Likewise.
16367         [C99-based-standards] (SCNoFAST64): Likewise.
16368         [C99-based-standards] (SCNuFAST64): Likewise.
16369         [C99-based-standards] (SCNxFAST64): Likewise.
16370         [C99-based-standards] (PRIdMAX): Likewise.
16371         [C99-based-standards] (PRIiMAX): Likewise.
16372         [C99-based-standards] (PRIoMAX): Likewise.
16373         [C99-based-standards] (PRIuMAX): Likewise.
16374         [C99-based-standards] (PRIxMAX): Likewise.
16375         [C99-based-standards] (PRIXMAX): Likewise.
16376         [C99-based-standards] (SCNdMAX): Likewise.
16377         [C99-based-standards] (SCNiMAX): Likewise.
16378         [C99-based-standards] (SCNoMAX): Likewise.
16379         [C99-based-standards] (SCNuMAX): Likewise.
16380         [C99-based-standards] (SCNxMAX): Likewise.
16381         [C99-based-standards] (PRIdPTR): Likewise.
16382         [C99-based-standards] (PRIiPTR): Likewise.
16383         [C99-based-standards] (PRIoPTR): Likewise.
16384         [C99-based-standards] (PRIuPTR): Likewise.
16385         [C99-based-standards] (PRIxPTR): Likewise.
16386         [C99-based-standards] (PRIXPTR): Likewise.
16387         [C99-based-standards] (SCNdPTR): Likewise.
16388         [C99-based-standards] (SCNiPTR): Likewise.
16389         [C99-based-standards] (SCNoPTR): Likewise.
16390         [C99-based-standards] (SCNuPTR): Likewise.
16391         [C99-based-standards] (SCNxPTR): Likewise.
16392         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
16393         allow.
16394         * conform/data/stdint.h-data: Update comments to clarify
16395         requirements.
16396         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
16397         type.
16398         [C99-based standards] (INT8_MAX): Likewise.
16399         [C99-based standards] (INT16_MIN): Likewise.
16400         [C99-based standards] (INT16_MAX): Likewise.
16401         [C99-based standards] (INT32_MIN): Likewise.
16402         [C99-based standards] (INT32_MAX): Likewise.
16403         [C99-based standards] (INT64_MIN): Likewise.
16404         [C99-based standards] (INT64_MAX): Likewise.
16405         [C99-based standards] (UINT8_MAX): Likewise.
16406         [C99-based standards] (UINT16_MAX): Likewise.
16407         [C99-based standards] (UINT32_MAX): Likewise.
16408         [C99-based standards] (UINT64_MAX): Likewise.
16409         [C99-based standards] (INT_LEAST8_MIN): Likewise.
16410         [C99-based standards] (INT_LEAST8_MAX): Likewise.
16411         [C99-based standards] (INT_LEAST16_MIN): Likewise.
16412         [C99-based standards] (INT_LEAST16_MAX): Likewise.
16413         [C99-based standards] (INT_LEAST32_MIN): Likewise.
16414         [C99-based standards] (INT_LEAST32_MAX): Likewise.
16415         [C99-based standards] (INT_LEAST64_MIN): Likewise.
16416         [C99-based standards] (INT_LEAST64_MAX): Likewise.
16417         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
16418         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
16419         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
16420         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
16421         [C99-based standards] (INT_FAST8_MIN): Likewise.
16422         [C99-based standards] (INT_FAST8_MAX): Likewise.
16423         [C99-based standards] (INT_FAST16_MIN): Likewise.
16424         [C99-based standards] (INT_FAST16_MAX): Likewise.
16425         [C99-based standards] (INT_FAST32_MIN): Likewise.
16426         [C99-based standards] (INT_FAST32_MAX): Likewise.
16427         [C99-based standards] (INT_FAST64_MIN): Likewise.
16428         [C99-based standards] (INT_FAST64_MAX): Likewise.
16429         [C99-based standards] (UINT_FAST8_MAX): Likewise.
16430         [C99-based standards] (UINT_FAST16_MAX): Likewise.
16431         [C99-based standards] (UINT_FAST32_MAX): Likewise.
16432         [C99-based standards] (UINT_FAST64_MAX): Likewise.
16433         [C99-based standards] (INTPTR_MIN): Likewise.
16434         [C99-based standards] (INTPTR_MAX): Likewise.
16435         [C99-based standards] (UINTPTR_MAX): Likewise.
16436         [C99-based standards] (INTMAX_MIN): Likewise.
16437         [C99-based standards] (INTMAX_MAX): Likewise.
16438         [C99-based standards] (UINTMAX_MAX): Likewise.
16439         [C99-based standards] (PTRDIFF_MIN): Likewise.
16440         [C99-based standards] (PTRDIFF_MAX): Likewise.
16441         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
16442         [C99-based standards] (SIZE_MAX): Likewise.
16443         [C99-based standards] (WCHAR_MAX): Likewise.
16444         [C99-based standards] (WINT_MAX): Likewise.
16445         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
16446         constraint on value.
16447         [C99-based standards] (WCHAR_MIN): Likewise.
16448         [C99-based standards] (WINT_MIN): Likewise.
16449         [C99-based standards] (*_t): Allow.
16450         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
16451         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
16452         Include math.h-data and complex.h-data.  Remove all expectations
16453         of math.h and complex.h contents.
16454         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
16455         at end of line.
16456         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
16457         (struct tm): Expect tag.
16458         [C99-based-standards] (wcstof): Expect function.
16459         [C99-based-standards] (wcstold): Likewise.
16460         [C99-based-standards] (wcstoll): Likewise.
16461         [C99-based-standards] (wcstoull): Likewise.
16462         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
16463         macro-int-constant.  Specify type.
16464         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
16465         constraint on value.
16466         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
16467         Specify type.
16468         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
16469         Specify value.
16470         [ISO C standards]: Do not allow headers.
16471         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
16472         wcs[abcdefghijklmnopqrstuvwxyz]*.
16473         [ISO C standards] (*_t): Do not allow.
16474         * conform/data/wctype.h-data [C99-based standards] (iswblank):
16475         Expect function.
16476         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
16477         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
16478         Specify type.
16479         [ISO C standards]: Do not allow headers.
16480         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
16481         is[abcdefghijklmnopqrstuvwxyz]*.
16482         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
16483         to[abcdefghijklmnopqrstuvwxyz]*.
16484         [ISO C standards] (*_t): Do not allow.
16485         * conform/data/stdalign.h-data: New file.
16486         * conform/data/stdbool.h-data: Likewise.
16487         * conform/data/stdnoreturn.h-data: Likewise.
16488
16489 2012-11-07  Roland McGrath  <roland@hack.frob.com>
16490
16491         [BZ #14815]
16492         * manual/filesys.texi (Directory Entries): Typo fix.
16493         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
16494
16495 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16496
16497         * elf/elf.h (EM_AARCH64): New macro.
16498         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
16499         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
16500         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
16501         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
16502         (R_AARCH64_TLSDESC): Likewise.
16503         (NT_ARM_TLS): Likewise.
16504         (NT_ARM_HW_BREAK): Likewise.
16505         (NT_ARM_HW_WATCH): Likewise.
16506
16507 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16508
16509         [BZ #14811]
16510         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
16511         (__ieee754_powl): Saturate nonzero exponents with absolute value
16512         below 0x1p-79 to +/- 0x1p-79.
16513         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
16514         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
16515         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
16516         nonzero exponents with absolute value below 0x1p-32 to +/-
16517         0x1p-32.
16518         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
16519         (__ieee754_powl): Saturate nonzero exponents with absolute value
16520         below 0x1p-79 to +/- 0x1p-79.
16521         * math/libm-test.inc (pow_test): Add more tests.
16522
16523 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16524
16525         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
16526         _dl_s390_cap_flags with kernel. Increase string length.
16527         (_dl_s390_platforms): Add z196 and zEC12.
16528
16529 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16530
16531         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
16532         Change XOPEN21K to XOPEN2K.
16533
16534 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
16535
16536         * string/memmove.c: Use memcpy when possible.
16537
16538 2012-11-06  Andreas Jaeger  <aj@suse.de>
16539
16540         * po/eo.po: Update from translation team.
16541
16542 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
16543
16544         [BZ #14793]
16545         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
16546         exponent and small x and y exponents, scale x or y up.  Increase
16547         by 2 the exponent used in scaling up.
16548         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16549         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16550         * math/libm-test.inc (fma_test): Add more tests.
16551         (fma_test_towardzero): Likewise.
16552         (fma_test_downward): Likewise.
16553         (fma_test_upward): Likewise.
16554
16555 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
16556
16557         [BZ #14805]
16558         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
16559         fenv_t *.
16560
16561         [BZ #14801]
16562         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
16563         namespace for names of struct fields.
16564         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
16565         fenv_t fields.
16566         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
16567         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
16568
16569 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16570
16571         [BZ #3665]
16572         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
16573
16574 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
16575
16576         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
16577         PTR_DEMANGLE.
16578
16579         [BZ #5246]
16580         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
16581         PTR_DEMANGLE.
16582
16583 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
16584
16585         [BZ #14797]
16586         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
16587         definitely overflow as x * y not x * y + z.
16588         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16589         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16590         * math/libm-test.inc (fma_test): Add more tests.
16591         (fma_test_towardzero): Likewise.
16592         (fma_test_downward): Likewise.
16593         (fma_test_upward): Likewise.
16594
16595 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
16596
16597         [BZ #157]
16598
16599         * include/stub-tag.h: Remove file.
16600         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
16601         '#include' of it.
16602         * manual/maint.texi (Porting): Don't reference it.
16603         * Makerules ($(objpfx)stubs): Likewise.
16604         * dirent/closedir.c: Don't include <stub-tag.h>.
16605         * dirent/dirfd.c: Likewise.
16606         * dirent/fdopendir.c: Likewise.
16607         * dirent/getdents.c: Likewise.
16608         * dirent/getdents64.c: Likewise.
16609         * dirent/opendir.c: Likewise.
16610         * dirent/readdir.c: Likewise.
16611         * dirent/readdir64.c: Likewise.
16612         * dirent/readdir64_r.c: Likewise.
16613         * dirent/readdir_r.c: Likewise.
16614         * dirent/rewinddir.c: Likewise.
16615         * dirent/seekdir.c: Likewise.
16616         * dirent/telldir.c: Likewise.
16617         * gmon/profil.c: Likewise.
16618         * grp/setgroups.c: Likewise.
16619         * inet/if_index.c: Likewise.
16620         * io/access.c: Likewise.
16621         * io/chdir.c: Likewise.
16622         * io/chmod.c: Likewise.
16623         * io/chown.c: Likewise.
16624         * io/close.c: Likewise.
16625         * io/dup.c: Likewise.
16626         * io/dup2.c: Likewise.
16627         * io/dup3.c: Likewise.
16628         * io/euidaccess.c: Likewise.
16629         * io/faccessat.c: Likewise.
16630         * io/fchdir.c: Likewise.
16631         * io/fchmod.c: Likewise.
16632         * io/fchmodat.c: Likewise.
16633         * io/fchown.c: Likewise.
16634         * io/fchownat.c: Likewise.
16635         * io/fcntl.c: Likewise.
16636         * io/flock.c: Likewise.
16637         * io/fstatfs.c: Likewise.
16638         * io/fstatfs64.c: Likewise.
16639         * io/fstatvfs.c: Likewise.
16640         * io/fstatvfs64.c: Likewise.
16641         * io/futimens.c: Likewise.
16642         * io/fxstat.c: Likewise.
16643         * io/fxstat64.c: Likewise.
16644         * io/fxstatat.c: Likewise.
16645         * io/fxstatat64.c: Likewise.
16646         * io/getcwd.c: Likewise.
16647         * io/isatty.c: Likewise.
16648         * io/lchmod.c: Likewise.
16649         * io/lchown.c: Likewise.
16650         * io/link.c: Likewise.
16651         * io/linkat.c: Likewise.
16652         * io/lseek.c: Likewise.
16653         * io/lseek64.c: Likewise.
16654         * io/lxstat64.c: Likewise.
16655         * io/mkdir.c: Likewise.
16656         * io/mkdirat.c: Likewise.
16657         * io/mkfifo.c: Likewise.
16658         * io/mkfifoat.c: Likewise.
16659         * io/open.c: Likewise.
16660         * io/open64.c: Likewise.
16661         * io/openat.c: Likewise.
16662         * io/openat64.c: Likewise.
16663         * io/pipe.c: Likewise.
16664         * io/pipe2.c: Likewise.
16665         * io/poll.c: Likewise.
16666         * io/posix_fadvise.c: Likewise.
16667         * io/posix_fadvise64.c: Likewise.
16668         * io/posix_fallocate.c: Likewise.
16669         * io/posix_fallocate64.c: Likewise.
16670         * io/read.c: Likewise.
16671         * io/readlink.c: Likewise.
16672         * io/readlinkat.c: Likewise.
16673         * io/rmdir.c: Likewise.
16674         * io/sendfile.c: Likewise.
16675         * io/sendfile64.c: Likewise.
16676         * io/statfs.c: Likewise.
16677         * io/statfs64.c: Likewise.
16678         * io/statvfs.c: Likewise.
16679         * io/statvfs64.c: Likewise.
16680         * io/symlink.c: Likewise.
16681         * io/symlinkat.c: Likewise.
16682         * io/ttyname.c: Likewise.
16683         * io/ttyname_r.c: Likewise.
16684         * io/umask.c: Likewise.
16685         * io/unlink.c: Likewise.
16686         * io/unlinkat.c: Likewise.
16687         * io/utime.c: Likewise.
16688         * io/utimensat.c: Likewise.
16689         * io/write.c: Likewise.
16690         * io/xmknod.c: Likewise.
16691         * io/xmknodat.c: Likewise.
16692         * io/xstat.c: Likewise.
16693         * io/xstat64.c: Likewise.
16694         * login/getpt.c: Likewise.
16695         * login/grantpt.c: Likewise.
16696         * login/unlockpt.c: Likewise.
16697         * math/e_acoshl.c: Likewise.
16698         * math/e_acosl.c: Likewise.
16699         * math/e_asinl.c: Likewise.
16700         * math/e_atan2l.c: Likewise.
16701         * math/e_atanhl.c: Likewise.
16702         * math/e_coshl.c: Likewise.
16703         * math/e_expl.c: Likewise.
16704         * math/e_fmodl.c: Likewise.
16705         * math/e_gammal_r.c: Likewise.
16706         * math/e_hypotl.c: Likewise.
16707         * math/e_j0l.c: Likewise.
16708         * math/e_j1l.c: Likewise.
16709         * math/e_jnl.c: Likewise.
16710         * math/e_lgammal_r.c: Likewise.
16711         * math/e_log10l.c: Likewise.
16712         * math/e_log2l.c: Likewise.
16713         * math/e_logl.c: Likewise.
16714         * math/e_powl.c: Likewise.
16715         * math/e_rem_pio2l.c: Likewise.
16716         * math/e_sinhl.c: Likewise.
16717         * math/e_sqrtl.c: Likewise.
16718         * math/fclrexcpt.c: Likewise.
16719         * math/fedisblxcpt.c: Likewise.
16720         * math/feenablxcpt.c: Likewise.
16721         * math/fegetenv.c: Likewise.
16722         * math/fegetexcept.c: Likewise.
16723         * math/fegetround.c: Likewise.
16724         * math/feholdexcpt.c: Likewise.
16725         * math/fesetenv.c: Likewise.
16726         * math/fesetround.c: Likewise.
16727         * math/feupdateenv.c: Likewise.
16728         * math/fgetexcptflg.c: Likewise.
16729         * math/fraiseexcpt.c: Likewise.
16730         * math/fsetexcptflg.c: Likewise.
16731         * math/ftestexcept.c: Likewise.
16732         * math/k_cosl.c: Likewise.
16733         * math/k_rem_pio2l.c: Likewise.
16734         * math/k_sinl.c: Likewise.
16735         * math/k_tanl.c: Likewise.
16736         * math/s_asinhl.c: Likewise.
16737         * math/s_atanl.c: Likewise.
16738         * math/s_cbrtl.c: Likewise.
16739         * math/s_erfl.c: Likewise.
16740         * math/s_expm1l.c: Likewise.
16741         * math/s_log1pl.c: Likewise.
16742         * math/s_tanhl.c: Likewise.
16743         * misc/acct.c: Likewise.
16744         * misc/brk.c: Likewise.
16745         * misc/chflags.c: Likewise.
16746         * misc/chroot.c: Likewise.
16747         * misc/fchflags.c: Likewise.
16748         * misc/fgetxattr.c: Likewise.
16749         * misc/flistxattr.c: Likewise.
16750         * misc/fremovexattr.c: Likewise.
16751         * misc/fsetxattr.c: Likewise.
16752         * misc/fsync.c: Likewise.
16753         * misc/ftruncate.c: Likewise.
16754         * misc/futimes.c: Likewise.
16755         * misc/futimesat.c: Likewise.
16756         * misc/getdomain.c: Likewise.
16757         * misc/getdtsz.c: Likewise.
16758         * misc/gethostid.c: Likewise.
16759         * misc/gethostname.c: Likewise.
16760         * misc/getloadavg.c: Likewise.
16761         * misc/getpagesize.c: Likewise.
16762         * misc/getsysstats.c: Likewise.
16763         * misc/getxattr.c: Likewise.
16764         * misc/gtty.c: Likewise.
16765         * misc/ioctl.c: Likewise.
16766         * misc/lgetxattr.c: Likewise.
16767         * misc/listxattr.c: Likewise.
16768         * misc/llistxattr.c: Likewise.
16769         * misc/lremovexattr.c: Likewise.
16770         * misc/lsetxattr.c: Likewise.
16771         * misc/lutimes.c: Likewise.
16772         * misc/madvise.c: Likewise.
16773         * misc/mincore.c: Likewise.
16774         * misc/mlock.c: Likewise.
16775         * misc/mlockall.c: Likewise.
16776         * misc/mmap.c: Likewise.
16777         * misc/mprotect.c: Likewise.
16778         * misc/msync.c: Likewise.
16779         * misc/munlock.c: Likewise.
16780         * misc/munlockall.c: Likewise.
16781         * misc/munmap.c: Likewise.
16782         * misc/preadv.c: Likewise.
16783         * misc/preadv64.c: Likewise.
16784         * misc/ptrace.c: Likewise.
16785         * misc/pwritev.c: Likewise.
16786         * misc/pwritev64.c: Likewise.
16787         * misc/readv.c: Likewise.
16788         * misc/reboot.c: Likewise.
16789         * misc/remap_file_pages.c: Likewise.
16790         * misc/removexattr.c: Likewise.
16791         * misc/revoke.c: Likewise.
16792         * misc/select.c: Likewise.
16793         * misc/setdomain.c: Likewise.
16794         * misc/setegid.c: Likewise.
16795         * misc/seteuid.c: Likewise.
16796         * misc/sethostid.c: Likewise.
16797         * misc/sethostname.c: Likewise.
16798         * misc/setregid.c: Likewise.
16799         * misc/setreuid.c: Likewise.
16800         * misc/setxattr.c: Likewise.
16801         * misc/sstk.c: Likewise.
16802         * misc/stty.c: Likewise.
16803         * misc/swapoff.c: Likewise.
16804         * misc/swapon.c: Likewise.
16805         * misc/sync.c: Likewise.
16806         * misc/syncfs.c: Likewise.
16807         * misc/syscall.c: Likewise.
16808         * misc/truncate.c: Likewise.
16809         * misc/ualarm.c: Likewise.
16810         * misc/usleep.c: Likewise.
16811         * misc/ustat.c: Likewise.
16812         * misc/utimes.c: Likewise.
16813         * misc/vhangup.c: Likewise.
16814         * misc/writev.c: Likewise.
16815         * posix/_exit.c: Likewise.
16816         * posix/alarm.c: Likewise.
16817         * posix/execve.c: Likewise.
16818         * posix/fexecve.c: Likewise.
16819         * posix/fork.c: Likewise.
16820         * posix/fpathconf.c: Likewise.
16821         * posix/getaddrinfo.c: Likewise.
16822         * posix/getegid.c: Likewise.
16823         * posix/geteuid.c: Likewise.
16824         * posix/getgid.c: Likewise.
16825         * posix/getgroups.c: Likewise.
16826         * posix/getlogin.c: Likewise.
16827         * posix/getlogin_r.c: Likewise.
16828         * posix/getpgid.c: Likewise.
16829         * posix/getpid.c: Likewise.
16830         * posix/getppid.c: Likewise.
16831         * posix/getresgid.c: Likewise.
16832         * posix/getresuid.c: Likewise.
16833         * posix/getsid.c: Likewise.
16834         * posix/getuid.c: Likewise.
16835         * posix/glob64.c: Likewise.
16836         * posix/nanosleep.c: Likewise.
16837         * posix/pathconf.c: Likewise.
16838         * posix/pause.c: Likewise.
16839         * posix/posix_madvise.c: Likewise.
16840         * posix/pread.c: Likewise.
16841         * posix/pread64.c: Likewise.
16842         * posix/pwrite.c: Likewise.
16843         * posix/pwrite64.c: Likewise.
16844         * posix/sched_getaffinity.c: Likewise.
16845         * posix/sched_getp.c: Likewise.
16846         * posix/sched_gets.c: Likewise.
16847         * posix/sched_primax.c: Likewise.
16848         * posix/sched_primin.c: Likewise.
16849         * posix/sched_rr_gi.c: Likewise.
16850         * posix/sched_setaffinity.c: Likewise.
16851         * posix/sched_setp.c: Likewise.
16852         * posix/sched_sets.c: Likewise.
16853         * posix/sched_yield.c: Likewise.
16854         * posix/setgid.c: Likewise.
16855         * posix/setlogin.c: Likewise.
16856         * posix/setpgid.c: Likewise.
16857         * posix/setresgid.c: Likewise.
16858         * posix/setresuid.c: Likewise.
16859         * posix/setsid.c: Likewise.
16860         * posix/setuid.c: Likewise.
16861         * posix/sleep.c: Likewise.
16862         * posix/spawni.c: Likewise.
16863         * posix/sysconf.c: Likewise.
16864         * posix/times.c: Likewise.
16865         * posix/wait.c: Likewise.
16866         * posix/wait3.c: Likewise.
16867         * posix/wait4.c: Likewise.
16868         * posix/waitpid.c: Likewise.
16869         * resolv/gai_sigqueue.c: Likewise.
16870         * resource/getpriority.c: Likewise.
16871         * resource/getrlimit.c: Likewise.
16872         * resource/getrusage.c: Likewise.
16873         * resource/nice.c: Likewise.
16874         * resource/setpriority.c: Likewise.
16875         * resource/setrlimit.c: Likewise.
16876         * resource/ulimit.c: Likewise.
16877         * rt/aio_cancel.c: Likewise.
16878         * rt/aio_fsync.c: Likewise.
16879         * rt/aio_read.c: Likewise.
16880         * rt/aio_sigqueue.c: Likewise.
16881         * rt/aio_suspend.c: Likewise.
16882         * rt/aio_write.c: Likewise.
16883         * rt/clock_getres.c: Likewise.
16884         * rt/clock_gettime.c: Likewise.
16885         * rt/clock_nanosleep.c: Likewise.
16886         * rt/clock_settime.c: Likewise.
16887         * rt/lio_listio.c: Likewise.
16888         * rt/mq_close.c: Likewise.
16889         * rt/mq_getattr.c: Likewise.
16890         * rt/mq_notify.c: Likewise.
16891         * rt/mq_open.c: Likewise.
16892         * rt/mq_receive.c: Likewise.
16893         * rt/mq_send.c: Likewise.
16894         * rt/mq_setattr.c: Likewise.
16895         * rt/mq_timedreceive.c: Likewise.
16896         * rt/mq_timedsend.c: Likewise.
16897         * rt/mq_unlink.c: Likewise.
16898         * rt/shm_open.c: Likewise.
16899         * rt/shm_unlink.c: Likewise.
16900         * rt/timer_create.c: Likewise.
16901         * rt/timer_delete.c: Likewise.
16902         * rt/timer_getoverr.c: Likewise.
16903         * rt/timer_gettime.c: Likewise.
16904         * rt/timer_settime.c: Likewise.
16905         * setjmp/__longjmp.c: Likewise.
16906         * setjmp/setjmp.c: Likewise.
16907         * signal/kill.c: Likewise.
16908         * signal/killpg.c: Likewise.
16909         * signal/raise.c: Likewise.
16910         * signal/sigaction.c: Likewise.
16911         * signal/sigaltstack.c: Likewise.
16912         * signal/sigblock.c: Likewise.
16913         * signal/sigignore.c: Likewise.
16914         * signal/sigintr.c: Likewise.
16915         * signal/signal.c: Likewise.
16916         * signal/sigpause.c: Likewise.
16917         * signal/sigpending.c: Likewise.
16918         * signal/sigqueue.c: Likewise.
16919         * signal/sigreturn.c: Likewise.
16920         * signal/sigset.c: Likewise.
16921         * signal/sigsetmask.c: Likewise.
16922         * signal/sigstack.c: Likewise.
16923         * signal/sigsuspend.c: Likewise.
16924         * signal/sigtimedwait.c: Likewise.
16925         * signal/sigvec.c: Likewise.
16926         * signal/sigwait.c: Likewise.
16927         * signal/sigwaitinfo.c: Likewise.
16928         * signal/sysv_signal.c: Likewise.
16929         * socket/accept.c: Likewise.
16930         * socket/accept4.c: Likewise.
16931         * socket/bind.c: Likewise.
16932         * socket/connect.c: Likewise.
16933         * socket/getpeername.c: Likewise.
16934         * socket/getsockname.c: Likewise.
16935         * socket/getsockopt.c: Likewise.
16936         * socket/isfdtype.c: Likewise.
16937         * socket/listen.c: Likewise.
16938         * socket/recv.c: Likewise.
16939         * socket/recvfrom.c: Likewise.
16940         * socket/recvmsg.c: Likewise.
16941         * socket/send.c: Likewise.
16942         * socket/sendmsg.c: Likewise.
16943         * socket/sendto.c: Likewise.
16944         * socket/setsockopt.c: Likewise.
16945         * socket/shutdown.c: Likewise.
16946         * socket/sockatmark.c: Likewise.
16947         * socket/socket.c: Likewise.
16948         * socket/socketpair.c: Likewise.
16949         * stdio-common/ctermid.c: Likewise.
16950         * stdio-common/cuserid.c: Likewise.
16951         * stdio-common/remove.c: Likewise.
16952         * stdio-common/rename.c: Likewise.
16953         * stdio-common/renameat.c: Likewise.
16954         * stdio-common/tempname.c: Likewise.
16955         * stdlib/getcontext.c: Likewise.
16956         * stdlib/makecontext.c: Likewise.
16957         * stdlib/setcontext.c: Likewise.
16958         * stdlib/swapcontext.c: Likewise.
16959         * stdlib/system.c: Likewise.
16960         * streams/fattach.c: Likewise.
16961         * streams/fdetach.c: Likewise.
16962         * streams/getmsg.c: Likewise.
16963         * streams/getpmsg.c: Likewise.
16964         * streams/putmsg.c: Likewise.
16965         * streams/putpmsg.c: Likewise.
16966         * sysdeps/unix/bsd/getpt.c: Likewise.
16967         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
16968         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
16969         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
16970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
16971         Likewise.
16972         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
16973         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
16974         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
16975         * sysvipc/msgctl.c: Likewise.
16976         * sysvipc/msgget.c: Likewise.
16977         * sysvipc/msgrcv.c: Likewise.
16978         * sysvipc/msgsnd.c: Likewise.
16979         * sysvipc/semctl.c: Likewise.
16980         * sysvipc/semget.c: Likewise.
16981         * sysvipc/semop.c: Likewise.
16982         * sysvipc/semtimedop.c: Likewise.
16983         * sysvipc/shmat.c: Likewise.
16984         * sysvipc/shmctl.c: Likewise.
16985         * sysvipc/shmdt.c: Likewise.
16986         * sysvipc/shmget.c: Likewise.
16987         * termios/tcdrain.c: Likewise.
16988         * termios/tcflow.c: Likewise.
16989         * termios/tcflush.c: Likewise.
16990         * termios/tcgetattr.c: Likewise.
16991         * termios/tcgetpgrp.c: Likewise.
16992         * termios/tcsendbrk.c: Likewise.
16993         * termios/tcsetattr.c: Likewise.
16994         * termios/tcsetpgrp.c: Likewise.
16995         * time/adjtime.c: Likewise.
16996         * time/clock.c: Likewise.
16997         * time/getitimer.c: Likewise.
16998         * time/gettimeofday.c: Likewise.
16999         * time/setitimer.c: Likewise.
17000         * time/settimeofday.c: Likewise.
17001         * time/stime.c: Likewise.
17002         * time/time.c: Likewise.
17003
17004 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
17005
17006         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
17007         /usr/old/bin.
17008
17009         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
17010         instead of spaces.
17011         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
17012
17013 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
17014
17015         [BZ #14796]
17016         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
17017         FE_TONEAREST before applying Dekker multiplication and Knuth
17018         addition.  Clear inexact exceptions and check for exact zero
17019         results afterwards.
17020         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17021         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17022         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17023         * math/libm-test.inc (fma_test): Add more tests.
17024         (fma_test_towardzero): Likewise.
17025         (fma_test_downward): Likewise.
17026         (fma_test_upward): Likewise.
17027         * sysdeps/generic/math_private.h (default_libc_fesetround): New
17028         function.
17029         (libc_fesetround): New macro.
17030         (libc_fesetroundf): Likewise.
17031         (libc_fesetroundl): Likewise.
17032         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
17033         function.
17034         (libc_fesetround_387): Likewise.
17035         (libc_fesetroundf): New macro.
17036         (libc_fesetround): Likewise.
17037         (libc_fesetroundl): Likewise.
17038         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
17039         function.
17040         (libc_fesetroundf): New macro.
17041         (libc_fesetround): Likewise.
17042         (libc_fesetroundl): Likewise.
17043         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
17044         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
17045         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
17046         libm_hidden_ver.
17047         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
17048         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
17049         libm_hidden_def.
17050         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
17051         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
17052         libm_hidden_ver.
17053         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
17054         libm_hidden_def.
17055
17056         [BZ #3439]
17057         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
17058         integer constant usable in #if and use that to give value to enum
17059         constant.
17060         (FE_DIVBYZERO): Likewise.
17061         (FE_UNDERFLOW): Likewise.
17062         (FE_OVERFLOW): Likewise.
17063         (FE_INVALID): Likewise.
17064         (FE_INVALID_SNAN): Likewise.
17065         (FE_INVALID_ISI): Likewise.
17066         (FE_INVALID_IDI): Likewise.
17067         (FE_INVALID_ZDZ): Likewise.
17068         (FE_INVALID_IMZ): Likewise.
17069         (FE_INVALID_COMPARE): Likewise.
17070         (FE_INVALID_SOFTWARE): Likewise.
17071         (FE_INVALID_SQRT): Likewise.
17072         (FE_INVALID_INTEGER_CONVERSION): Likewise.
17073         (FE_TONEAREST): Likewise.
17074         (FE_TOWARDZERO): Likewise.
17075         (FE_UPWARD): Likewise.
17076         (FE_DOWNWARD): Likewise.
17077         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
17078         (FE_DIVBYZERO): Likewise.
17079         (FE_OVERFLOW): Likewise.
17080         (FE_UNDERFLOW): Likewise.
17081         (FE_INEXACT): Likewise.
17082         (FE_TONEAREST): Likewise.
17083         (FE_DOWNWARD): Likewise.
17084         (FE_UPWARD): Likewise.
17085         (FE_TOWARDZERO): Likewise.
17086         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
17087         (FE_UNDERFLOW): Likewise.
17088         (FE_OVERFLOW): Likewise.
17089         (FE_DIVBYZERO): Likewise.
17090         (FE_INVALID): Likewise.
17091         (FE_TONEAREST): Likewise.
17092         (FE_TOWARDZERO): Likewise.
17093         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
17094         (FE_OVERFLOW): Likewise.
17095         (FE_UNDERFLOW): Likewise.
17096         (FE_DIVBYZERO): Likewise.
17097         (FE_INEXACT): Likewise.
17098         (FE_TONEAREST): Likewise.
17099         (FE_TOWARDZERO): Likewise.
17100         (FE_UPWARD): Likewise.
17101         (FE_DOWNWARD): Likewise.
17102         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
17103         (FE_DIVBYZERO): Likewise.
17104         (FE_OVERFLOW): Likewise.
17105         (FE_UNDERFLOW): Likewise.
17106         (FE_INEXACT): Likewise.
17107         (FE_TONEAREST): Likewise.
17108         (FE_DOWNWARD): Likewise.
17109         (FE_UPWARD): Likewise.
17110         (FE_TOWARDZERO): Likewise.
17111
17112 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
17113
17114         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
17115
17116 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
17117
17118         * scripts/cross-test-ssh.sh (command): Use newlines to separate
17119         commands.  Quote $PWD.
17120         (blacklist_exports): Don't use remove_newlines.  Replace "declare
17121         -x" by "export".
17122         (remove_newlines): Remove.
17123
17124 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
17125
17126         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
17127         * stdlib/stdlib.h (atof): Moved to ...
17128         * include/bits/stdlib-float.h: Here.  New file.
17129         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
17130         * stdlib/bits/stdlib-float.h: New file.
17131         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
17132         -mno-sse -mno-mmx.
17133         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
17134         <xmmintrin.h>.
17135
17136 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17137
17138         * conform/conformtest.pl (@headers): Add fenv.h.
17139         * conform/data/fenv.h-data: New file.
17140         * include/fenv.h [_ISOMAC]: Disable all contents of file except
17141         include of <math/fenv.h>.
17142
17143         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
17144         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
17145         && !UNIX98].  Enables tests for XOPEN2K8.
17146         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
17147         POSIX2008]: Likewise.
17148
17149         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
17150         (struct rusage): Do not expect type or its members.
17151
17152         [BZ #3439]
17153         * math/math.h (FP_NAN): Define macro to integer constant usable in
17154         #if and use that to give value to enum constant.
17155         (FP_INFINITE): Likewise.
17156         (FP_ZERO): Likewise.
17157         (FP_SUBNORMAL): Likewise.
17158         (FP_NORMAL): Likewise.
17159
17160 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
17161
17162         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
17163         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
17164         arguments.
17165
17166 2012-11-02  Roland McGrath  <roland@hack.frob.com>
17167
17168         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
17169         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
17170         autoconf-time if not.
17171         * configure.in: Remove AC_PREREQ.
17172
17173 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17174
17175         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
17176         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
17177         of the internal implementation.
17178
17179 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17180
17181         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
17182         except include of <misc/sys/syslog.h>.
17183
17184 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17185
17186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
17187         function returns with a NULL context exit with zero.
17188
17189 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17190
17191         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
17192
17193 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
17194
17195         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
17196         (run_program_cmd): This.
17197         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
17198         (tst_langinfo): New variable.  Use it.
17199
17200 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
17201
17202         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
17203         floating point opcodes.
17204
17205 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17206
17207         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
17208         variable.
17209
17210         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
17211
17212         * sysdeps/mach/hurd/powerpc: Remove directory.
17213         * sysdeps/mach/powerpc: Likewise.
17214
17215 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17216
17217         * scripts/check-local-headers.sh: Ignore c++ headers.
17218
17219 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17220
17221         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
17222         __libc_cleanup_region_start argument.
17223
17224 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
17225
17226         [BZ #14784]
17227         [BZ #14785]
17228         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
17229         x * y using scaling, not as x * y + z.
17230         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17231         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17232         * math/libm-test.inc (fma_test): Add more tests.
17233         (fma_test_towardzero): Likewise.
17234         (fma_test_downward): Likewise.
17235         (fma_test_upward): Likewise.
17236
17237 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17238
17239         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
17240
17241 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17242
17243         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
17244         New variable.
17245
17246 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
17247
17248         * rt/tst-shm.c (worker): Correct checking for mmap failure.
17249
17250 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17251
17252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17253         Fix sort order.
17254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17255         Likewise.
17256
17257 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17258
17259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17260         Fix the order of the list for glibc 2.17.
17261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17262         Likewise.
17263
17264 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17265
17266         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17267
17268 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17269
17270         [BZ #14610]
17271         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
17272         for low part of x being zero before using __atanl (y).
17273         * math/libm-test.inc (atan2_test): Add another test.
17274
17275         * manual/install.texi (Configuring and compiling): Document
17276         general use of test-wrapper and test-wrapper-env.
17277         * INSTALL: Regenerated.
17278
17279         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
17280         (__fma): Do not extract and scale down low bits on after-rounding
17281         systems when result rounded to normal precision would have normal
17282         exponent.
17283         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
17284         (__fmal): Do not extract and scale down low bits on after-rounding
17285         systems when result rounded to normal precision would have normal
17286         exponent.
17287         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
17288         (__fmal): Do not extract and scale down low bits on after-rounding
17289         systems when result rounded to normal precision would have normal
17290         exponent.
17291         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
17292         macro.
17293         (fma_test): Add more tests.
17294         (fma_test_towardzero): Likewise.
17295         (fma_test_downward): Likewise.
17296         (fma_test_upward): Likewise.
17297
17298 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
17299
17300         * sysdeps/i386/tininess.h: Renamed to ...
17301         * sysdeps/x86/tininess.h: This.
17302         * sysdeps/x86_64/tininess.h: Removed.
17303
17304 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17305
17306         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
17307         input.  Use $(build-program-cmd).
17308         ($(objpfx)tst-array1-static.out): Likewise.
17309         ($(objpfx)tst-array2.out): Likewise.
17310         ($(objpfx)tst-array3.out): Likewise.
17311         ($(objpfx)tst-array4.out): Likewise.
17312         ($(objpfx)tst-array5.out): Likewise.
17313         ($(objpfx)tst-array5-static.out): Likewise.
17314
17315 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
17316
17317         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
17318         if defined.
17319
17320         * nss/nsswitch.h (nss_interface_function): Provide new
17321         macro for use with NSS functions.
17322         * grp/initgroups.c: Use new macro.
17323         * nss/getXXbyYY.c: Likewise.
17324         * nss/getXXbyYY_r.c: Likewise.
17325         * nss/getXXent.c: Likewise.
17326         * nss/getXXent_r.c: Likewise.
17327         * sysdeps/posix/getaddrinfo.c: Likewise.
17328
17329 2012-10-30  Andreas Jaeger  <aj@suse.de>
17330
17331         * po/ru.po: Update Russion translation from translation project.
17332
17333 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17334
17335         [BZ #14152]
17336         [BZ #14783]
17337         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
17338         result and shift together with sticky bit instead of replicating
17339         round-to-nearest rounding.
17340         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17341         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17342         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
17343         missing underflow exceptions.
17344         (fma_test_towardzero): Add more tests.
17345         (fma_test_downward): Likewise.
17346         (fma_test_upward): Likewise.
17347
17348         [BZ #14047]
17349         * sysdeps/generic/tininess.h: New file.
17350         * sysdeps/i386/tininess.h: Likewise.
17351         * sysdeps/sh/tininess.h: Likewise.
17352         * sysdeps/x86_64/tininess.h: Likewise.
17353         * stdlib/tst-strtod-underflow.c: Likewise.
17354         * stdlib/tst-tininess.c: Likewise.
17355         * stdlib/strtod_l.c: Include <tininess.h>.
17356         (round_and_return): Do not set errno for exact underflow cases.
17357         Force an underflow exception when setting errno for underflow.
17358         Determine underflow based on rounding to normal precision if
17359         TININESS_AFTER_ROUNDING.
17360         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
17361         ERANGE for exact underflow cases.
17362         * stdlib/Makefile (tests): Add tst-tininess and
17363         tst-strtod-underflow.
17364         ($(objpfx)tst-tininess): Use $(link-libm).
17365         ($(objpfx)tst-strtod-underflow): Likewise.
17366
17367 2012-10-30  Andreas Jaeger  <aj@suse.de>
17368
17369         [BZ#14767]
17370         * elf/Makefile (tests): Remove conditional for have-initfini-array
17371         since this is now always required and the variable does not exist
17372         anymore.
17373         (tests-static): Likewise.
17374         (modules-names): Likewise.
17375
17376         * po/eo.po: Add Esperanto translation from translation project.
17377
17378         * elf/tst-array1.c (fini_array): Make writeable so that it can be
17379         merged with constructor/destructor.
17380         (init_array): Likewise.
17381         * elf/tst-array2dep.c (fini_array): Likewise.
17382         (init_array): Likewise.
17383
17384 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
17385
17386         * manual/message.texi: Delete @cartouche tags.
17387
17388 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
17389
17390         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
17391         EOPNOTSUPP.
17392         * sysdeps/mach/hurd/fsync.c: Likewise.
17393
17394         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
17395         [_POSIX_REALTIME_SIGNALS]: Change condition to
17396         [_POSIX_REALTIME_SIGNALS > 0].
17397
17398 2012-10-27  Andreas Jaeger  <aj@suse.de>
17399
17400         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
17401         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
17402         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
17403         [__WORDSIZE != 64]: Likewise.
17404
17405 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
17406
17407         *  iconvdata/tst-table.sh: Remove ${SHELL}.
17408         *  iconvdata/tst-tables.sh: Likewise.
17409
17410 2012-10-25  David S. Miller  <davem@davemloft.net>
17411
17412         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17413         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
17414         of strtoull.
17415
17416         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
17417         ifunc-impl-list.c
17418         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17419         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
17420         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
17421         file.
17422
17423 2012-10-25  Roland McGrath  <roland@hack.frob.com>
17424
17425         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17426         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
17427         __getdirentries.
17428
17429 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
17430             Jim Blandy  <jimb@codesourcery.com>
17431
17432         * scripts/cross-test-ssh.sh: New file.
17433         * manual/install.texi (Configuring and compiling): Document use of
17434         cross-test-ssh.sh.
17435         * INSTALL: Regenerated.
17436
17437 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
17438
17439         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
17440         EOPNOTSUPP.
17441
17442 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
17443
17444         * Makeconfig (run-program-prefix): Fix comment.
17445
17446 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
17447             Jim Blandy  <jimb@codesourcery.com>
17448
17449         * Makeconfig (test-wrapper): New variable,
17450         (test-wrapper-env): Likewise.
17451         [$(cross-compiling) = yes && $(test-wrapper) != ""]
17452         (run-built-tests): Define to yes.
17453         (run-program-prefix): Use $(test-wrapper).
17454         (built-program-cmd): Likewise.
17455         * Rules (make-test-out): Use $(test-wrapper-env) and
17456         $(host-built-program-cmd).
17457         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
17458         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
17459         tst-pathopt.sh.
17460         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
17461         $(test-wrapper-env) to tst-rtld-load-self.sh.
17462         ($(objpfx)order2.out): Use $(test-wrapper).
17463         ($(objpfx)tst-initorder.out): Likewise.
17464         ($(objpfx)tst-initorder2.out): Likewise.
17465         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
17466         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
17467         (test_wrapper_env): New variable.  Use it to run ld.so.
17468         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
17469         Use it to run ld.so.
17470         (test_wrapper_env): Likewise.
17471         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
17472         $(test-wrapper) to run-iconv-test.sh.
17473         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
17474         (ICONV): Use $test_wrapper.
17475         * posix/Makefile ($(objpfx)globtest.out): Pass
17476         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
17477         globtest.sh, not $(run-program-prefix).
17478         * posix/globtest.sh (run_via_rtld_prefix): New variable.
17479         (test_wrapper): Likewise.
17480         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
17481         set together with run_via_rtld_prefix.
17482         (run_program_prefix): Define in terms of test_wrapper and
17483         run_via_rtld_prefix.
17484
17485 2012-10-24  Roland McGrath  <roland@hack.frob.com>
17486
17487         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
17488         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
17489         Targets removed.
17490
17491         [BZ #14743]
17492         * include/time.h: Remove librt_hidden_proto (clock_gettime).
17493         Declare __clock_getres, __clock_gettime, __clock_settime,
17494         __clock_nanosleep, and __clock_getcpuclockid.
17495         * rt/clock_gettime.c: Define __clock_gettime as an alias.
17496         Remove librt_hidden_def (clock_gettime).
17497         * sysdeps/unix/clock_gettime.c: Likewise.
17498         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
17499         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
17500         * rt/clock_getres.c: Define __clock_getres as an alias.
17501         * sysdeps/posix/clock_getres.c: Likewise.
17502         * rt/clock_settime.c: Define __clock_settime as an alias.
17503         * sysdeps/unix/clock_settime.c: Likewise.
17504         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
17505         * sysdeps/unix/clock_nanosleep.c: Likewise.
17506         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
17507         * rt/clock-compat.c: New file.
17508         * rt/Makefile (librt-routines): Add clock-compat and move
17509         $(clock-routines) to ...
17510         (routines): ... here, new variable.
17511         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
17512         Don't add get_clockfreq here.
17513         * rt/Versions (libc: GLIBC_2.17): New version set.
17514         Add clock_* symbols here.
17515         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
17516         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
17517         (GLIBC_2.17): Add clock_* symbols.
17518         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
17519         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
17520         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
17521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17522         Likewise.
17523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17524         Likewise.
17525         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
17526         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
17527         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
17528         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
17529         * NEWS: Mention the move.
17530
17531         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
17532         Use __open, __read, __close rather than their public counterparts.
17533         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17534         (__get_clockfreq_via_cpuinfo): Likewise.
17535         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
17536         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
17537
17538         * config.h.in (HAVE_IFUNC): New #undef.
17539         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
17540         was successful.
17541         * configure: Regenerated.
17542
17543 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
17544
17545         * configure.in: Move READELF check to start of file.
17546         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
17547         libc_cv_asm_gnu_indirect_function in the process.
17548         * configure: Regenerated.
17549
17550 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
17551
17552         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
17553         send the output to /dev/null.
17554         (libc_cv_cc_with_libunwind): Likewise.
17555         (libc_cv_as_noexecstack): Likewise.
17556         * configure: Regenerate.
17557
17558 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
17559
17560         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
17561
17562         * posix/globtest.sh (TMPDIR): Do not set.
17563         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
17564         (testout): Likewise.
17565
17566 2012-10-24  Andreas Jaeger  <aj@suse.de>
17567
17568         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
17569         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
17570         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
17571         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
17572         posix_fadvise64, posix_fallocate64.
17573
17574         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
17575         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
17576         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
17577         Likewise.
17578         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
17579         Likewise.
17580         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
17581
17582         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
17583         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
17584         <bits/fcntl-linux.h>.
17585         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
17586
17587         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
17588         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
17589         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
17590         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
17591         [__WORDSIZE != 64]: Likewise.
17592
17593 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
17594
17595         * Makeconfig (run-built-tests): New variable.
17596         * Rules [$(cross-compiling) = yes]: Change condition to
17597         [$(run-built-tests) = no].
17598         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
17599         to [$(run-built-tests) = yes].
17600         * elf/Makefile [$(cross-compiling) = no]: Likewise
17601         * grp/Makefile [$(cross-compiling) = no]: Likewise.
17602         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
17603         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
17604         * intl/Makefile [$(cross-compiling) = no]: Likewise.
17605         * io/Makefile [$(cross-compiling) = no]: Likewise.
17606         * libio/Makefile [$(cross-compiling) = no]: Likewise.
17607         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
17608         * misc/Makefile [$(cross-compiling) = no]: Likewise.
17609         * posix/Makefile [$(cross-compiling) = no]: Likewise.
17610         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
17611         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
17612         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
17613         * string/Makefile [$(cross-compiling) = no]: Likewise.
17614
17615         * posix/Makefile ($(objpfx)globtest.out): Pass
17616         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
17617         $(rtld-installed-name).
17618         * posix/globtest.sh (elf_objpfx): Remove variable.
17619         (rtld_installed_name): Likewise.
17620         (library_path): Likewise.
17621         (run_program_prefix): New variable.  Use for running globtest
17622         binary.
17623
17624 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
17625             Joseph Myers  <joseph@codesourcery.com>
17626
17627         * Makeconfig (host-built-program-cmd): New variable.
17628         * elf/Makefile (tst-stackguard1-ARGS): Use
17629         $(host-built-program-cmd).
17630         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
17631         (tst-spawn-ARGS): Likewise.
17632         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
17633
17634 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
17635             Jim Blandy  <jimb@codesourcery.com>
17636
17637         * Makeconfig (run-via-rtld-prefix): New variable.
17638         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
17639         (built-program-cmd): Likewise.
17640
17641 2012-10-22  Andreas Jaeger  <aj@suse.de>
17642
17643         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
17644         __O_RSYNC if it exists, otherwise to O_SYNC.
17645
17646 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
17647             Joseph Myers  <joseph@codesourcery.com>
17648
17649         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
17650         /dev/null.
17651         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
17652         from /dev/null
17653         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
17654         /dev/null.
17655
17656 2012-10-22  Andreas Jaeger  <aj@suse.de>
17657
17658         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
17659         Define always.
17660         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
17661
17662         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17663         bits/fcntl-linux.h.
17664
17665         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
17666         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
17667
17668         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
17669         to __O_LARGEFILE.
17670         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
17671         to __O_LARGEFILE.
17672
17673 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
17674             Joseph Myers  <joseph@codesourcery.com>
17675
17676         * config.make.in (NM): New variable.
17677
17678 2012-10-21  Andreas Jaeger  <aj@suse.de>
17679
17680         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
17681         definitions and declarations that are provided by
17682         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
17683
17684 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
17685
17686         [BZ #14683]
17687         * elf/Makefile (tests-static): Add tst-leaks1-static.
17688         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
17689         ($(objpfx)tst-leaks1-static): New rule.
17690         ($(objpfx)tst-leaks1-static-mem): Likewise.
17691         (tst-leaks1-static-ENV): New macro.
17692         * elf/dl-open.c (dl_open_worker): Check the main application
17693         only if SHARED is defined.
17694         * elf/tst-leaks1-static.c: New file.
17695
17696 2012-10-20  Andreas Jaeger  <aj@suse.de>
17697
17698         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
17699         generic values for Linux.
17700         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
17701         and declarations that are provided by <bits/fcntl-linux.h> and
17702         include <bits/fcntl-linux.h>.
17703         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17704         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17705
17706 2012-10-20  Roland McGrath  <roland@hack.frob.com>
17707
17708         * io/fcntl.h: Move include of <bits/types.h> to the top and
17709         include it unconditionally.
17710
17711 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
17712
17713         * wcsmbs/Makefile (tests-ifunc): New variable.
17714         (tests): Add $(tests-ifunc).
17715         * wcsmbs/test-wcschr-ifunc.c: New file.
17716         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
17717         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
17718         * wcsmbs/test-wcslen-ifunc.c: Likewise.
17719         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
17720         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
17721
17722         * string/Makefile (tests-ifunc): New variable.
17723         (tests): Add $(tests-ifunc).
17724         * string/test-memccpy.c (TEST_NAME): New macro.
17725         * string/test-memchr.c (TEST_NAME): Likewise.
17726         * string/test-memcmp.c (TEST_NAME): Likewise.
17727         * string/test-memcpy.c (TEST_NAME): Likewise.
17728         * string/test-memmem.c (TEST_NAME): Likewise.
17729         * string/test-memmove.c (TEST_NAME): Likewise.
17730         * string/test-memset.c (TEST_NAME): Likewise.
17731         * string/test-rawmemchr.c (TEST_NAME): Likewise.
17732         * string/test-stpcpy.c (TEST_NAME): Likewise.
17733         * string/test-stpncpy.c (TEST_NAME): Likewise.
17734         * string/test-strcasecmp.c (TEST_NAME): Likewise.
17735         * string/test-strcasestr.c (TEST_NAME): Likewise.
17736         * string/test-strcat.c (TEST_NAME): Likewise.
17737         * string/test-strchr.c (TEST_NAME): Likewise.
17738         * string/test-strcmp.c(TEST_NAME): Likewise.
17739         * string/test-strcpy.c (TEST_NAME): Likewise.
17740         * string/test-strcspn.c (TEST_NAME): Likewise.
17741         * string/test-strlen.c (TEST_NAME): Likewise.
17742         * string/test-strncasecmp.c (TEST_NAME): Likewise.
17743         * string/test-strncmp.c (TEST_NAME): Likewise.
17744         * string/test-strncpy.c (TEST_NAME): Likewise.
17745         * string/test-strnlen.c (TEST_NAME): Likewise.
17746         * string/test-strpbrk.c (TEST_NAME): Likewise.
17747         * string/test-strrchr.c (TEST_NAME): Likewise.
17748         * string/test-strspn.c (TEST_NAME): Likewise.
17749         * string/test-strstr.c (TEST_NAME): Likewise.
17750         * string/test-bcopy-ifunc.c: New file.
17751         * string/test-bzero-ifunc.c: Likewise.
17752         * string/test-memccpy-ifunc.c: Likewise.
17753         * string/test-memchr-ifunc.c: Likewise.
17754         * string/test-memcmp-ifunc.c: Likewise.
17755         * string/test-memcpy-ifunc.c: Likewise.
17756         * string/test-memmem-ifunc.c: Likewise.
17757         * string/test-memmove-ifunc.c: Likewise.
17758         * string/test-mempcpy-ifunc.c: Likewise.
17759         * string/test-memset-ifunc.c: Likewise.
17760         * string/test-rawmemchr-ifunc.c: Likewise.
17761         * string/test-stpcpy-ifunc.c: Likewise.
17762         * string/test-stpncpy-ifunc.c: Likewise.
17763         * string/test-strcasecmp-ifunc.c: Likewise.
17764         * string/test-strcasestr-ifunc.c: Likewise.
17765         * string/test-strcat-ifunc.c: Likewise.
17766         * string/test-strchr-ifunc.c: Likewise.
17767         * string/test-strchrnul-ifunc.c: Likewise.
17768         * string/test-strcmp-ifunc.c: Likewise.
17769         * string/test-strcpy-ifunc.c: Likewise.
17770         * string/test-strcspn-ifunc.c: Likewise.
17771         * string/test-strlen-ifunc.c: Likewise.
17772         * string/test-strncasecmp-ifunc.c: Likewise.
17773         * string/test-strncat-ifunc.c: Likewise.
17774         * string/test-strncmp-ifunc.c: Likewise.
17775         * string/test-strncpy-ifunc.c: Likewise.
17776         * string/test-strnlen-ifunc.c: Likewise.
17777         * string/test-strpbrk-ifunc.c: Likewise.
17778         * string/test-strrchr-ifunc.c: Likewise.
17779         * string/test-strspn-ifunc.c: Likewise.
17780         * string/test-strstr-ifunc.c: Likewise.
17781
17782         * debug/Makefile (tests-ifunc): New variable.
17783         (tests): Add $(tests-ifunc).
17784         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
17785         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
17786         * debug/test-stpcpy_chk-ifunc.c: New file.
17787         * debug/test-strcpy_chk-ifunc.c: Likewise.
17788
17789 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
17790
17791         [BZ #13601]
17792         * elf/dl-load.c (open_verify): Retry read if the entire ELF
17793         header is not read in.
17794
17795 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
17796
17797         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
17798         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
17799         directly.  Pass built executable to script as
17800         $(built-program-cmd).
17801         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
17802         $testprogram without using LD_LIBRARY_PATH and $ldso.
17803
17804         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
17805         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
17806         $(rtld-installed-name).
17807         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
17808         (rtld_installed_name): Likewise.
17809         (library_path): Likewise.
17810         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
17811         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
17812         $(run-program-prefix) to tst-tables.sh.
17813         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
17814         it to run tst-table-from and tst-table-to.
17815         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
17816         Pass it to tst-table.sh.
17817         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
17818         $(run-program-prefix) to tst-gettext.sh.
17819         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
17820         tst-translit.sh.
17821         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
17822         tst-gettext2.sh.
17823         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
17824         to run tst-gettext.
17825         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
17826         to run tst-gettext2.
17827         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
17828         to run tst-translit.
17829         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
17830         $(run-program-prefix) to tst-mtrace.sh.
17831         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
17832         to run tst-mtrace.
17833         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
17834         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
17835         $(rtld-installed-name).
17836         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
17837         (rtld_installed_name): Likewise.
17838         (run_program_prefix): New variable.  Use it to run wordexp-test.
17839
17840         * Makeconfig (ARCH): Remove all definitions.
17841         (machine): Likewise.
17842         [ARCH]: Remove conditional code.
17843         [!objdir]: Give error.
17844         [!objdir] (objpfx): Remove.
17845         [!objdir] (common-objpfx): Likewise.
17846         [!objdir] (common-objdir): Likewise.
17847         * configure.in (config_makefile): Remove.  Hardcode Makefile in
17848         AC_CONFIG_FILES call.
17849         * configure: Regenerated.
17850
17851         [BZ #13888]
17852         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
17853         or TMPDIR.
17854         (testout): Likewise.
17855
17856         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
17857         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
17858         $(rtld-installed-name).
17859         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
17860         (rtld_installed_name): Likwise.
17861         (runit): Remove function.
17862         (run_getconf): New variable,  Use it for running getconf binary.
17863
17864 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
17865
17866         [BZ #14716]
17867         * string/test-memmem.c (check_result): New function.
17868         (do_one_test): Use it.
17869         (check1): New function.
17870         (test_main): Use it.
17871
17872 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
17873
17874         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
17875
17876 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
17877
17878         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
17879         (_G_LSEEK64): Likewise.
17880         (_G_MMAP64): Likewise.
17881         (_G_FSTAT64): Likewise.
17882         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
17883         (_G_LSEEK64): Likewise.
17884         (_G_MMAP64): Likewise.
17885         (_G_FSTAT64): Likewise.
17886         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
17887         unconditional.  Call __mmap64 directly.
17888         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
17889         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
17890         __lseek64 directly.
17891         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
17892         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
17893         __mmap64 directly.
17894         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
17895         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
17896         __lseek64 directly.
17897         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
17898         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
17899         __lseek64 directly.
17900         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
17901         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
17902         __lseek64 directly.
17903         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
17904         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
17905         __fxstat64 directly.
17906         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
17907         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
17908         unconditional.
17909         (freopen64) [!_G_OPEN64]: Remove conditional code.
17910         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
17911         unconditional.
17912         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
17913         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
17914         unconditional.
17915         (ftello64) [!_G_LSEEK64]: Remove conditional code.
17916         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
17917         unconditional.
17918         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
17919         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
17920         unconditional.
17921         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
17922         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
17923         unconditional.
17924         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
17925         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
17926         unconditional.
17927         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
17928         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
17929         unconditional.
17930         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
17931
17932 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
17933
17934         [BZ #12140]
17935         * manual/memory.texi (Malloc Tunable Parameters): Add note
17936         about free list pointers overwriting some perturb bytes.
17937         Wording suggested by Roland McGrath.
17938
17939 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
17940
17941         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
17942         (lgamma_test): Likewise.
17943         (tgamma_test): Likewise.
17944
17945 2012-10-16  Florian Weimer  <fweimer@redhat.com>
17946
17947         [BZ #14700]
17948         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
17949         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
17950
17951 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
17952
17953         * NEWS: Mention BZ #14716.
17954         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
17955         when removing AVAILABLE1_USES_J macro.
17956
17957 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
17958
17959         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
17960         (__bswap_64): __uint64_t for unsigned 64-bit int.
17961
17962 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
17963
17964         * include/string.h (memmem): Declare libc hidden alias.
17965         * string/memmem.c (memmem): Define libc hidden alias.
17966         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
17967         __read, __close instead of open, read, close.
17968
17969 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
17970
17971         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
17972         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
17973         global and hidden.
17974         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
17975         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
17976         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
17977         Likewise.
17978         (__rawmemchr_sse2): Likewise.
17979         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
17980         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
17981         (__strchr_sse2): Likewise.
17982         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
17983         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
17984         (__strcasecmp_sse2): Likewise.
17985         (__strncasecmp_sse2): Likewise.
17986         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
17987         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
17988         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
17989         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
17990         (__strrchr_sse2): Likewise.
17991         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
17992         ifunc-impl-list.c.
17993         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
17994         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
17995         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
17996         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
17997         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
17998         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
17999         * sysdeps/x86_64/multiarch/memset.S: Likewise.
18000         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
18001         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
18002         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
18003         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
18004         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
18005         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
18006         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
18007         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
18008         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
18009         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
18010         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
18011         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
18012         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
18013         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
18014         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
18015         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
18016         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
18017         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
18018         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18019         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18020         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
18021         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
18022         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
18023
18024         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
18025         global and hidden.
18026         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
18027         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
18028         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
18029         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
18030         Likewise.
18031         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
18032         Likewise.
18033         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
18034         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
18035         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
18036         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
18037         ifunc-impl-list.c.
18038         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18039         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18040         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18041         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18042         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18043         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18044         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18045         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18046         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18047         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18048         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18049         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18050         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18051         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
18052         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
18053         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18054         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
18055         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
18056         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18057         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
18058         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18059         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18060         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18061         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18062         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18063         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
18064         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
18065         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
18066         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
18067         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18068         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
18069         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18070         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18071         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
18072         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18073         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18074         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18075         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18076         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18077         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18078         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
18079
18080         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
18081         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
18082         * include/ifunc-impl-list.h: New file.
18083         * misc/ifunc-impl-list.c: Likewise.
18084         * misc/Makefile (routines): Add ifunc-impl-list.
18085         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
18086         * string/test-string.h: Include <ifunc-impl-list.h>.
18087         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
18088         impl_array): New variables.
18089         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
18090         are defined.
18091         (test_init): Call __libc_ifunc_impl_list to initialize
18092         func_list if TEST_IFUNC and TEST_NAME are defined.
18093
18094         * string/Makefile (strop-tests): Add bcopy and bzero.
18095         * string/test-bcopy.c: New file.
18096         * string/test-bzero.c: Likewise.
18097         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
18098         defined.
18099         * string/test-memset.c: Support bzero test if TEST_BZERO is
18100         defined.
18101         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
18102         __libc_memmove.
18103         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
18104         __libc_memset.
18105         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
18106         of memset.
18107
18108 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
18109
18110         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
18111         * configure: Regenerated.
18112
18113         * Makeconfig (+link-static-before-libc): Don't include
18114         $(link-static-libc).
18115
18116         * libio/libio.h (_IO_pos_t): Remove.
18117
18118 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18119
18120         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
18121         McGrath.
18122
18123 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18124
18125         * crypt/crypt-entry.c: Include fips-private.h.
18126         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
18127         * crypt/md5c-test.c (main): Tolerate disabled MD5.
18128         * sysdeps/unix/sysv/linux/fips-private.h: New file.
18129         * sysdeps/generic/fips-private.h: New file, dummy fallback.
18130
18131 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18132
18133         * crypt/crypt-private.h: Include stdbool.h.
18134         (_ufc_setup_salt_r): Return bool.
18135         * crypt/crypt-entry.c: Include errno.h.
18136         (__crypt_r): Return NULL with EINVAL for bad salt.
18137         * crypt/crypt_util.c (bad_for_salt): New.
18138         (_ufc_setup_salt_r): Check that salt is long enough and within
18139         the specified alphabet.
18140         * crypt/badsalttest.c: New file.
18141         * crypt/Makefile (tests): Add it.
18142         ($(objpfx)badsalttest): New.
18143
18144 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
18145
18146         * NEWS: Add entry for BZ #14602.
18147
18148 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18149
18150         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
18151         type-generic.
18152         * math/libm-test.inc: Update comment listing what functions and
18153         macros are tested.
18154         (isgreater_test): New function.
18155         (isgreaterequal_test): Likewise.
18156         (isless_test): Likewise.
18157         (islessequal_test): Likewise.
18158         (islessgreater_test): Likewise.
18159         (isunordered_test): Likewise.
18160         (main): Call the new functions.
18161
18162 2012-10-09  Roland McGrath  <roland@hack.frob.com>
18163
18164         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
18165         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
18166         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
18167         * sysdeps/i386/configure: Regenerated.
18168         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
18169         * sysdeps/mach/configure: Regenerated.
18170         * sysdeps/mach/hurd/configure: Regenerated.
18171         * sysdeps/powerpc/configure: Regenerated.
18172         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18173         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18174         * sysdeps/s390/s390-32/configure: Regenerated.
18175         * sysdeps/s390/s390-64/configure: Regenerated.
18176         * sysdeps/sh/configure: Regenerated.
18177         * sysdeps/sparc/configure: Regenerated.
18178         * sysdeps/unix/sysv/linux/configure: Regenerated.
18179         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
18180         * sysdeps/x86_64/configure: Regenerated.
18181
18182         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
18183         defined.  Don't check if MAP is NULL.
18184
18185 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18186
18187         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
18188         (_G_stat64): Likewise.
18189         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
18190         (_G_stat64): Likewise.
18191         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
18192         instead of struct _G_stat64.
18193         * libio/fileops.c (mmap_remap_check): Likewise.
18194         (decide_maybe_mmap): Likewise.
18195         (_IO_new_file_seekoff): Likewise.
18196         (_IO_file_stat): Likewise.
18197         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
18198         _G_off64_t.
18199         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
18200         instead of struct _G_stat64.
18201         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18202
18203 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18204
18205         [BZ #14602]
18206         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18207         Replace with ...
18208         (CHECK_EOL): New macro.
18209         (two_way_short_needle): Check beginning of haystack for EOL.  Use
18210         CHECK_EOL.
18211         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18212         Replace with CHECK_EOL.
18213         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18214         Replace with CHECK_EOL.
18215
18216 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
18217
18218         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
18219         type-generic.
18220         * math/libm-test.inc: Update comment listing what functions and
18221         macros are tested.
18222         (finite_test): New function.
18223         (isinf_test): Likewise.
18224         (isnan_test): Likewise.
18225         (fpclassify_test): Test subnormal input.
18226         (isfinite_test): Likewise.
18227         (isnormal_test): Likewise.
18228         (main): Call the new functions.
18229
18230 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
18231
18232         [BZ #14660]
18233         * Makerules (%.dynsym): Force C locale when running
18234         $(OBJDUMP) --dynamic-syms.
18235
18236 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
18237
18238         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
18239         <stdint.h>.
18240
18241 2012-10-06  David S. Miller  <davem@davemloft.net>
18242
18243         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
18244         upper 32-bits of the length value in %o2 since we use branch-on-register
18245         tests which consider the entire 64-bit register.
18246
18247 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
18248
18249         * string/test-strstr.c (check2): Add a test for page boundary.
18250
18251 2012-10-05  David S. Miller  <davem@davemloft.net>
18252
18253         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
18254         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
18255         file.
18256         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18257         sysdep_routines.
18258         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18259         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
18260         and bzero when HWCAP_SPARC_CRYPTO is present.
18261
18262 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
18263
18264         [BZ #14602]
18265         * string/test-strstr.c (check2): New function.
18266         (test_main): Call check2.
18267
18268         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
18269         and bug-strchr1.
18270         * string/bug-strcasestr1.c (do_test): Moved to ...
18271         * string/test-strcasestr.c (check1): Here.  New function.
18272         (do_one_test): Break out result checking code into ...
18273         (check_result): This.  New function.
18274         (do_one_test): Call check_result.
18275         (test_main): Call check1.
18276         * string/bug-strchr1.c (do_test): Moved to ...
18277         * string/test-strchr.c (check1): Here.  New function.
18278         (do_one_test): Break out result checking code into ...
18279         (check_result): This.  New function.
18280         (do_one_test): Call check_result.
18281         (test_main): Call check1.
18282         * string/bug-strstr1.c (main): Moved to ...
18283         * string/test-strstr.c (check1): Here.  New function.
18284         (do_one_test): Break out result checking code into ...
18285         (check_result): This.  New function.
18286         (do_one_test): Call check_result.
18287         (test_main): Call check1.
18288         * string/bug-strcasestr1.c: Removed.
18289         * string/bug-strchr1.c: Likewise.
18290         * string/bug-strstr1.c: Likewise.
18291
18292         * elf/Makefile (dl-routines): Add hwcaps.
18293         * elf/dl-support.c (_dl_important_hwcaps): Removed.
18294         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
18295         (_dl_important_hwcaps): Moved to ...
18296         * elf/dl-hwcaps.c: Here.  New file.
18297         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
18298
18299         [BZ #14557]
18300         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
18301         if IS_IN_rtld isn't defined.
18302
18303         * elf/dl-support.c (_dl_sysinfo_map): New.
18304         Include "get-dynamic-info.h" and "setup-vdso.h".
18305         (_dl_non_dynamic_init): Call setup_vdso.
18306         * elf/dynamic-link.h: Don't include <assert.h>.
18307         (elf_get_dynamic_info): Moved to ...
18308         * elf/get-dynamic-info.h: Here.  New file.
18309         * elf/dynamic-link.h: Include "get-dynamic-info.h".
18310         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
18311         * elf/setup-vdso.h: Here.  New file.
18312         * elf/rtld.c: Include "setup-vdso.h".
18313         (dl_main): Call setup_vdso.
18314
18315 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
18316
18317         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
18318         creal in comment listing functions tested.  List finite, isinf,
18319         isnan, isless, islessequal, isgreater, isgreaterequal,
18320         islessgreater, isunordered, lgamma_r and pow10 as functions and
18321         macros not tested.  Mention which functions not tested are aliases
18322         for other functions.  Fix typo.  Note that signs of NaNs are not
18323         tested.
18324
18325         * scripts/config.guess: Update from config.git.
18326         * scripts/config.sub: Likewise.
18327
18328 2012-10-04  Roland McGrath  <roland@hack.frob.com>
18329
18330         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
18331         * misc/madvise.c (madvise): Renamed to __madvise.
18332         Make madvise a weak alias.
18333         * include/sys/mman.h: Declare __madvise.
18334         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
18335         * sysdeps/unix/syscalls.list
18336         (madvise): Make __madvise the strong name, and madvise a weak alias.
18337         * sysdeps/unix/sysv/linux/syscalls.list
18338         (madvise, mmap): Remove redundant entries.
18339         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
18340         * malloc/malloc.c (mtrim): Likewise.
18341         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
18342
18343 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18344
18345         * sysdeps/mach/hurd/dl-cache.c: File removed.
18346         * config.h.in (USE_LDCONFIG): New #undef.
18347         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
18348         * configure: Regenerated.
18349         * elf/Makefile (dl-routines): Add dl-cache only under
18350         [$(use-ldconfig) = yes].
18351         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
18352         cache on [USE_LDCONFIG].
18353         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
18354         [USE_LDCONFIG].
18355         * elf/rtld.c (dl_main): Likewise.
18356
18357 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
18358
18359         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
18360         _SC_LEVEL4_CACHE_LINESIZE.
18361
18362 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18363
18364         * sysdeps/unix/bsd/confstr.h: File removed.
18365
18366 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
18367
18368         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
18369         sys/sdt-config.h.
18370
18371 2012-10-02  Roland McGrath  <roland@hack.frob.com>
18372
18373         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
18374         Make 'mapoff' field ElfW(Off) rather than off_t.
18375
18376 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
18377
18378         * nscd/Makefile: Remove nscd-cflags and all its users.
18379         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
18380         (CFLAGS-nonlib): Add compiler flags for nscd modules.
18381
18382         [BZ #10631]
18383         * malloc.c (malloc_printerr): Clarify error message.
18384
18385 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
18386
18387         [BZ #14648]
18388         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18389         Set bit_FMA_Usable if FMA is supported.
18390         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
18391         macro.
18392         (bit_FMA4_Usable): Updated.
18393         (index_FMA_Usable): New macro.
18394         (CPUID_FMA): Likewise
18395         (HAS_FMA): Defined with bit_FMA_Usable.
18396
18397 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18398
18399         * bits/types.h (__swblk_t): Type removed.
18400         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
18401         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
18402         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18403         (__SWBLK_T_TYPE): Likewise.
18404         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
18405         (__SWBLK_T_TYPE): Likewise.
18406         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18407         (__SWBLK_T_TYPE): Likewise.
18408         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18409         (__SWBLK_T_TYPE): Likewise.
18410
18411 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
18412             Honza Horak <hhorak@redhat.com>
18413
18414         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
18415         (xdr_mapname): Use YPMAXMAP as maxsize.
18416         (xdr_peername): Use YPMAXPEER as maxsize.
18417         (xdr_keydat): Use YPAXRECORD as maxsize.
18418         (xdr_valdat): Use YPMAXRECORD as maxsize.
18419
18420 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18421
18422         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
18423
18424         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
18425         * csu/init-first.c: ... here.
18426         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
18427         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18428         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
18429         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
18430         * sysdeps/i386/init-first.c: File removed.
18431         * sysdeps/sh/init-first.c: File removed.
18432
18433 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
18434
18435         [BZ #14645]
18436         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
18437         if x * y might underflow to zero and z is zero.
18438         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
18439         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18440         * math/libm-test.inc (min_subnorm_value): New variable.
18441         (fma_test): Add more tests.
18442         (fma_test_towardzero): Likewise.
18443         (fma_test_downward): Likewise
18444         (fma_test_upward): Likewise.
18445         (initialize): Set min_subnorm_value.
18446
18447 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
18448
18449         [BZ #14638]
18450         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
18451         0 + 0.
18452         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
18453         mode for addition resulting in exact zero.
18454         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
18455         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
18456         exact 0 + 0.
18457         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
18458         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18459         * math/libm-test.inc (fma_test): Add more tests.
18460         (fma_test_towardzero): New function.
18461         (fma_test_downward): Likewise.
18462         (fma_test_upward): Likewise.
18463         (main): Call the new functions.
18464
18465 2012-09-28  David S. Miller  <davem@davemloft.net>
18466
18467         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
18468
18469 2012-09-28  Roland McGrath  <roland@hack.frob.com>
18470
18471         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
18472         instead of SIGALRM.
18473
18474         * sysdeps/gnu/_G_config.h: Moved to ...
18475         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
18476         * sysdeps/mach/hurd/_G_config.h: Moved to ...
18477         * sysdeps/generic/_G_config.h: ... here.
18478
18479         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
18480
18481         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
18482
18483         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
18484         Conditionalize target on [libnss_test1.so-version].
18485
18486         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
18487
18488         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
18489         (elfobjdir): Move out of conditionals.
18490
18491         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
18492         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
18493         (__nss_lookup_function): Conditionalize label remove_from_tree on
18494         [!DO_STATIC_NSS || SHARED], matching its only use.
18495
18496 2012-09-28  David S. Miller  <davem@davemloft.net>
18497
18498         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
18499         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
18500         file.
18501         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18502         sysdep_routines.
18503         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18504         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
18505         when HWCAP_SPARC_CRYPTO is present.
18506
18507 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18508
18509         * io/tst-mknodat.c: Create a FIFO instead of a socket.
18510
18511 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
18512
18513         [BZ #6530]
18514         * stdio-common/vfprintf.c (process_string_arg): Revert
18515         2000-07-22 change.
18516
18517 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
18518
18519         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
18520         for testcase.
18521         * stdio-common/tst-sprintf.c: Include <locale.h>
18522         (main): Test sprintf's handling of incomplete multibyte
18523         characters.
18524
18525 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
18526
18527         * elf/dl-runtime.c (VERSYMIDX): Removed.
18528         * elf/dl-version.c (VERSYMIDX): Likewise.
18529         * elf/do-rel.h (VERSYMIDX): Likewise.
18530         (VALIDX): Likewise.
18531         * elf/dynamic-link.h (VERSYMIDX): Likewise.
18532         * elf/rtld.c (VALIDX): Likewise.
18533         (ADDRIDX): Likewise.
18534         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
18535         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
18536         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
18537         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
18538         (VALIDX): Likewise.
18539         (ADDRIDX): Likewise.
18540
18541 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18542
18543         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
18544
18545 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
18546
18547         [BZ #11438]
18548         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
18549         to global scope.
18550         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
18551         addresses are in the same scope as 192.0.2/24.
18552         * posix/gai.conf: Document new scope table defaults.
18553
18554 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18555
18556         [BZ #5298]
18557         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
18558         for ftell.  Compute offsets from write pointers instead.
18559         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18560
18561 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18562
18563         [BZ #14543]
18564         * libio/Makefile (tests): New test case tst-fseek.
18565         * libio/tst-fseek.c: New test case to verify that fseek/ftell
18566         combination works in wide mode.
18567         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
18568         state when the external buffer state changes.
18569
18570 2012-09-27  David S. Miller  <davem@davemloft.net>
18571
18572         [BZ #14376]
18573         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
18574         pass reloc->r_addend in as the 'high' argument to
18575         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
18576
18577         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18578
18579 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18580
18581         * rt/tst-aio2.c: Include <pthread.h>.
18582         * rt/tst-aio3.c: Likewise.
18583
18584 2012-09-27  Steve Ellcey  <sellcey@mips.com>
18585
18586         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
18587
18588 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
18589
18590         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
18591         contents on [SHARED].
18592
18593 2012-09-26  Marek Polacek  <polacek@redhat.com>
18594
18595         [BZ #14530]
18596         [BZ #13741]
18597         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
18598         for C++ and GCC <4.3 as well as for non GCC compilers.
18599
18600 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
18601
18602         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18603
18604 2012-09-25  Roland McGrath  <roland@hack.frob.com>
18605
18606         * Makefile.in (all, install): Declare with .PHONY.
18607         Reported by Michael Hope <michael.hope@linaro.org>.
18608
18609 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18610
18611         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
18612         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
18613         system header.
18614         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
18615         Likewise.
18616         (sydep_routines): Add the new and the internal functions.
18617         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
18618         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
18619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
18620         (GLIBC_2.17): Add the new function.
18621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
18622         (GLIBC_2.17): Likewise.
18623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
18624         (GLIBC_2.17): Likewise.
18625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
18626         (GLIBC_2.17): Likewise.
18627         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
18628
18629 2012-09-25  Alan Modra  <amodra@gmail.com>
18630
18631         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
18632         Add release barrier before setting once_control to say
18633         initialisation is done.  Add hints on lwarx.  Use macro in
18634         place of isync.
18635         (clear_once_control): Add release barrier.
18636
18637 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
18638
18639         [BZ #13629]
18640         * math/s_clog.c (__clog): Handle more values close to |z| = 1
18641         specially.
18642         * math/s_clog10.c (__clog10): Likewise.
18643         * math/s_clog10f.c (__clog10f): Likewise.
18644         * math/s_clog10l.c (__clog10l): Likewise.
18645         * math/s_clogf.c (__clogf): Likewise.
18646         * math/s_clogl.c (__clogl): Likewise.
18647         * math/Makefile (libm-calls): Add x2y2m1.
18648         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
18649         (__x2y2m1): Likewise.
18650         (__x2y2m1l): Likewise.
18651         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
18652         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
18653         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
18654         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
18655         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
18656         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
18657         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
18658         * sysdeps/i386/fpu/libm-test-ulps: Update.
18659         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18660
18661         [BZ #14621]
18662         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
18663         int as type of variable DEPTH.
18664         (glob): Use size_t instead of int as type of variables NEWCOUNT
18665         and OLD_PATHC.
18666
18667 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18668
18669         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
18670         Add s_sincosf-sse2.
18671         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
18672         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
18673         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
18674         macros for using routine as __sincosf_ia32.
18675         Use macro for function declaration and weak_alias.
18676         * sysdeps/i386/fpu/libm-test-ulps: Update.
18677
18678         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
18679         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18680
18681         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
18682         subnormal argument.
18683         * math/s_cexpf.c (__cexpf): Likewise.
18684         * math/s_csinf.c (__csinf): Likewise.
18685         * math/s_csinhf.c (__csinhf): Likewise.
18686         * math/s_ctanf.c (__ctanf): Likewise.
18687         * math/s_ctanhf.c (__ctanhf): Likewise.
18688         * math/s_ccosh.c (__ccoshf): Likewise.
18689         * math/s_cexp.c (__cexpl): Likewise.
18690         * math/s_csin.c (__csin): Likewise.
18691         * math/s_csinh.c (__csinh): Likewise.
18692         * math/s_ctan.c (__ctan): Likewise.
18693         * math/s_ctanh.c (ctanh): Likewise.
18694         * math/s_ccoshl.c (__ccoshl): Likewise.
18695         * math/s_cexpl.c (__cexpl): Likewise.
18696         * math/s_csinl.c (__csinl): Likewise.
18697         * math/s_csinhl.c (__csinhl): Likewise.
18698         * math/s_ctanl.c (__ctanl): Likewise.
18699         * math/s_ctanhl.c (__ctanhl): Likewise.
18700
18701 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
18702
18703         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
18704         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
18705         (_IO_off_t): Define to __off_t, not _G_off_t.
18706         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
18707         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
18708         (_IO_wint_t): Define to wint_t, not _G_wint_t.
18709         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
18710         type of __dummy and __dummy2 fields.
18711         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
18712         (_G_ssize_t): Likewise.
18713         (_G_off_t): Likewise.
18714         (_G_pid_t): Likewise.
18715         (_G_uid_t): Likewise.
18716         (_G_wchar_t): Likewise.
18717         (_G_wint_t): Likewise.
18718         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
18719         (_G_ssize_t): Likewise.
18720         (_G_off_t): Likewise.
18721         (_G_pid_t): Likewise.
18722         (_G_uid_t): Likewise.
18723         (_G_wchar_t): Likewise.
18724         (_G_wint_t): Likewise.
18725         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
18726         (_G_ssize_t): Likewise.
18727         (_G_off_t): Likewise.
18728         (_G_pid_t): Likewise.
18729         (_G_uid_t): Likewise.
18730         (_G_wchar_t): Likewise.
18731         (_G_wint_t): Likewise.
18732
18733 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
18734
18735         * malloc/arena.c: Include malloc-sysdep.h.
18736         (shrink_heap): Use check_may_shrink_heap to decide if madvise
18737         is sufficient to shrink the heap or an unmap is needed.
18738         * sysdeps/generic/malloc-sysdep.h: New file.  Define
18739         new function check_may_shrink_heap.
18740         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
18741         new function check_may_shrink_heap.
18742
18743 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
18744
18745         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
18746         comments.
18747
18748 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
18749
18750         * catgets/test-gencat.sh: Add "set -e".
18751         * elf/tst-pathopt.sh: Likewise.
18752         * grp/tst_fgetgrent.sh: Likewise.
18753         * iconvdata/run-iconv-test.sh: Likewise.
18754         * intl/tst-gettext.sh: Likewise.
18755         * intl/tst-gettext2.sh: Likewise.
18756         * intl/tst-gettext4.sh: Likewise.
18757         * intl/tst-gettext6.sh: Likewise.
18758         * intl/tst-translit.sh: Likewise.
18759         * io/ftwtest-sh: Likewise.
18760         * libio/test-freopen.sh: Likewise.
18761         * malloc/tst-mtrace.sh: Likewise.
18762         * posix/globtest.sh: Likewise.
18763         * posix/tst-getconf.sh: Likewise.
18764         * posix/wordexp-tst.sh: Likewise.
18765         * stdio-common/tst-printf.sh: Likewise.
18766         * stdio-common/tst-unbputc.sh: Likewise.
18767         * stdlib/tst-fmtmsg.sh: Likewise.
18768         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
18769         * catgets/Makefile: Do not specify -e option when running
18770         testsuite shell scripts.
18771         * elf/Makefile: Likewise.
18772         * grp/Makefile: Likewise.
18773         * iconvdata/Makefile: Likewise.
18774         * intl/Makefile: Likewise.
18775         * io/Makefile: Likewise.
18776         * libio/Makefile: Likewise.
18777         * malloc/Makefile: Likewise.
18778         * posix/Makefile: Likewise.
18779         * stdio-common/Makefile: Likewise.
18780         * stdlib/Makefile: Likewise.
18781         * sysdeps/x86_64/Makefile: Likewise.
18782
18783         * io/ftwtest-sh: Add copyright header.
18784         * posix/globtest.sh: Likewise.
18785         * posix/tst-getconf.sh: Likewise.
18786         * posix/wordexp-tst.sh: Likewise.
18787         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
18788
18789 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
18790
18791         [BZ #13679]
18792         * Makeconfig (+link): Defined as $(+link-static) if
18793         $(build-shared) isn't yes.
18794         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
18795         isn't yes.
18796         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
18797
18798         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
18799
18800         [BZ #14562]
18801         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
18802         new chunk size with MALLOC_ALIGN_MASK.
18803
18804 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
18805
18806         [BZ #5044]
18807         * stdio-common/printf_fphex.c: Include <stdbool.h> and
18808         <rounding-mode.h>.
18809         (__printf_fphex): Determine rounding using get_rounding_mode and
18810         round_away.
18811         * stdio-common/tst-printf-round.c (struct hex_test): New
18812         structure.
18813         (hex_tests): New variable.
18814         (test_hex_in_one_mode): New function.
18815         (do_test): Also run tests for hex float output.
18816
18817 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
18818
18819         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
18820         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
18821         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
18822         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
18823         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
18824         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
18825         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
18826         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
18827
18828 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
18829
18830         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
18831         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
18832         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
18833         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
18834
18835 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
18836
18837         [BZ #14579]
18838         * elf/rtld.c (dl_main): Limit the check for self loading to normal
18839         mode only.
18840         * elf/tst-rtld-load-self.sh: New test.
18841         * elf/Makefile: Run it.
18842
18843 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
18844
18845         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
18846         (tst-writev-ENV): Remove.
18847         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
18848
18849 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
18850
18851         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
18852
18853 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
18854
18855         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
18856         unconditional.
18857         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
18858         Likewise.
18859         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
18860         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
18861         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
18862         Likewise.
18863
18864 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
18865
18866         [BZ #14587]
18867         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
18868         * config.make.in (have-cpp-asm-debuginfo): Removed.
18869         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
18870         * configure: Regenerated.
18871
18872 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
18873
18874         [BZ #5044]
18875         * stdio-common/printf_fp.c: Include <stdbool.h> and
18876         <rounding-mode.h>.
18877         (___printf_fp): Determine rounding using get_rounding_mode and
18878         round_away.
18879         * stdio-common/tst-printf-round.c: New file.
18880         * stdio-common/Makefile (tests): Add tst-printf-round.
18881         (link-libm): New variable.
18882         ($(objpfx)tst-printf-round): Depend in $(link-libm).
18883
18884 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
18885
18886         [BZ #14576]
18887         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
18888         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
18889         Likewise.
18890         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
18891         Likewise.
18892
18893 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
18894
18895         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
18896         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
18897         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
18898         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
18899
18900 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
18901
18902         [BZ #14518]
18903         * include/rounding-mode.h: New file.
18904         * sysdeps/generic/get-rounding-mode.h: Likewise.
18905         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
18906         * stdlib/strtod_l.c: Include <rounding-mode.h>.
18907         (MAX_VALUE): New macro.
18908         (MIN_VALUE): Likewise.
18909         (overflow_value): New function.
18910         (underflow_value): Likewise.
18911         (round_and_return): Use overflow_value and underflow_value to
18912         determine return values in overflow and underflow cases.  Use
18913         round_away to determine rounding depending on rounding mode.
18914         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
18915         determine return values in overflow and underflow cases.
18916         * stdlib/tst-strtod-round.c: Include <fenv.h>.
18917         (struct test_results): New structure.
18918         (struct test): Use struct test_results to store expected results
18919         for all rounding modes.
18920         (TEST): Include expected results for all rounding modes.
18921         (test_in_one_mode): New function.
18922         (do_test): Use test_in_one_mode to compute and check results.
18923         Check results for all rounding modes.
18924         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
18925         $(link-libm).
18926
18927 2012-12-09  Allan McRae  <allan@archlinux.org>
18928
18929         * sysdeps/i386/fpu/libm-test-ulps: Update
18930
18931 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
18932
18933         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
18934         (_G_int32_t): Likewise.
18935         (_G_uint16_t): Likewise.
18936         (_G_uint32_t): Likewise.
18937         (_G_HAVE_BOOL): Likewise.
18938         (_G_HAVE_ATEXIT): Likewise.
18939         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
18940         (_G_HAVE_IO_FILE_OPEN): Likewise.
18941         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
18942         (_G_int32_t): Likewise.
18943         (_G_uint16_t): Likewise.
18944         (_G_uint32_t): Likewise.
18945         (_G_HAVE_BOOL): Likewise.
18946         (_G_HAVE_ATEXIT): Likewise.
18947         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
18948         (_G_HAVE_IO_FILE_OPEN): Likewise.
18949         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
18950         (_G_int32_t): Likewise.
18951         (_G_uint16_t): Likewise.
18952         (_G_uint32_t): Likewise.
18953         (_G_HAVE_BOOL): Likewise.
18954         (_G_HAVE_ATEXIT): Likewise.
18955         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
18956         (_G_HAVE_IO_FILE_OPEN): Likewise.
18957
18958 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
18959
18960         * csu/libc-tls.c: Update copyright years.
18961
18962 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
18963
18964         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
18965         [!_G_USING_THUNKS]: Remove conditional code.
18966         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
18967         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
18968
18969         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
18970         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
18971         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
18972         (_G_VTABLE_LABEL_PREFIX): Likewise.
18973         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
18974         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
18975         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
18976         (_G_VTABLE_LABEL_PREFIX): Likewise.
18977         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
18978         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
18979         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
18980         (_G_VTABLE_LABEL_PREFIX): Likewise.
18981         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
18982
18983 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
18984
18985         * libio/Makefile: Include ../Makeconfig before tests.
18986         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
18987         only if $(build-shared) is yes.
18988
18989         * iconv/gconv_db.c: Update copyright years.
18990
18991 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18992
18993         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
18994         unwind info if defined PIC. Fix special cases description.
18995         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
18996
18997         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
18998         DP_HI_MASK entry.
18999         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
19000
19001 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
19002
19003         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
19004
19005         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
19006         is NULL.
19007
19008         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
19009         (LDLIBS-tst-chk4): This.
19010         (LDFLAGS-tst-chk5): Renamed to ...
19011         (LDLIBS-tst-chk5): This.
19012         (LDFLAGS-tst-chk6): Renamed to ...
19013         (LDLIBS-tst-chk6): This.
19014         (LDFLAGS-tst-lfschk4): Renamed to ...
19015         (LDLIBS-tst-lfschk4): This.
19016         (LDFLAGS-tst-lfschk5): Renamed to ...
19017         (LDLIBS-tst-lfschk5): This.
19018         (LDFLAGS-tst-lfschk6): Renamed to ...
19019         (LDLIBS-tst-lfschk6): This.
19020
19021         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
19022         on $(common-objpfx)soversions.mk.
19023
19024 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
19025
19026         [BZ #10014]
19027         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
19028         example host name.
19029
19030 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
19031
19032         * malloc/arena.c (arena_get_retry): New function that gets
19033         another arena for the caller to try its request on.
19034         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
19035         current arena cannot fulfill the request.
19036         (__libc_memalign): Likewise.
19037         (__libc_memalign): Likewise.
19038         (__libc_pvalloc): Likewise.
19039         (__libc_calloc): Likewise.
19040
19041 2012-09-05  John Tobey  <john.tobey@gmail.com>
19042
19043         [BZ #13542]
19044         * manual/arith.texi (Operations on Complex): Fix description
19045         of carg branch cut.
19046
19047 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19048
19049         [BZ #10014]
19050         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
19051         host name.
19052
19053         [BZ #10038]
19054         * manual/memory.texi (Memory): Make order of menu items match
19055         order of sections.
19056
19057 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19058
19059         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
19060         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
19061         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
19062
19063 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19064
19065         * csu/libc-tls.c (static_dtv): Renamed to ...
19066         (_dl_static_dtv): This.  Make it global.
19067         (_dl_initial_dtv): Removed.
19068         (__libc_setup_tls): Updated.
19069         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
19070         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
19071         DL_INITIAL_DTV.
19072
19073 2012-09-06  Petr Machata  <pmachata@redhat.com>
19074
19075         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
19076         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
19077         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
19078         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
19079
19080 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19081
19082         [BZ #14545]
19083         * csu/libc-tls.c (_dl_initial_dtv): New variable.
19084         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
19085         freeing dtv[-1].
19086
19087 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19088
19089         [BZ #14544]
19090         * Makeconfig (link-static-before-libc): Replace $(+prector)
19091         with $(+prectorT).
19092         (link-static-after-libc): Replace $(+postctor) with
19093         $(+postctorT).
19094         (link-bounded): Replace $(+prector)/$(+postctor) with
19095         $(+prectorT)/$(+postctorT).
19096         (+prectorT): New macro.
19097         (+postctorT): Likewise.
19098
19099 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19100
19101         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
19102         (round_str): Handle values above the maximum for IBM long double
19103         as inexact.
19104         * stdlib/tst-strtod-round.c (tests): Regenerated.
19105
19106 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19107
19108         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
19109         assembler flag.
19110         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
19111         zarch_nohighgprs around the zarch optimized routines.
19112         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
19113         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
19114         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
19115         for zarch.
19116
19117 2012-09-05  David S. Miller  <davem@davemloft.net>
19118
19119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19120
19121         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
19122         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
19123         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
19124         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
19125         entries.
19126
19127 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19128
19129         * malloc/arena.c: Fold copyright years.
19130         * malloc/mcheck.c, malloc/memusage.c: Likewise.
19131
19132 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19133
19134         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
19135
19136 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19137
19138         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
19139
19140 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19141
19142         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
19143         change internal state upon failure.
19144
19145 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19146
19147         * malloc/mcheck.c (mcheck_check_all): Fix typo.
19148         * malloc/memusage.c (mmap): Likewise.
19149         (mmap64, mremap): Likewise.  Adjust name in comment.
19150
19151 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19152
19153         * libio/fileops.c: Fix typos in comments.
19154         * libio/oldfileops.c: Likewise.
19155         * libio/wfileops.c: Likewise.
19156
19157 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19158
19159         [BZ #1349]
19160         * malloc/Makefile (tests): Add tst-malloc-usable test case.
19161         (tst-malloc-usable-ENV): Set environment for test case.
19162         * malloc/hooks.c (malloc_check_get_size): New function to get
19163         requested size.
19164         * malloc/malloc.c (musable): Use malloc_check_get_size.
19165         * malloc/tst-malloc-usable.c: New test case.
19166
19167 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19168
19169         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
19170
19171 2012-09-05  Allan McRae  <allan@archlinux.org>
19172
19173         [BZ #13966]
19174         * configure.in (CXX_SYSINCLUDES): Use compiler output to
19175         determine header location.
19176         * configure: Regenerated.
19177
19178 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19179
19180         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
19181         float format.
19182         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
19183         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
19184         format.
19185         (test): Regenerate.
19186
19187 2012-09-04  David S. Miller  <davem@davemloft.net>
19188
19189         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
19190         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
19191         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
19192
19193 2012-09-04  Florian Weimer  <fweimer@redhat.com>
19194
19195         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
19196         failures.
19197
19198         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
19199
19200 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
19201
19202         [BZ #9914]
19203         * libio/iogetdelim.c: Include <limits.h>.
19204         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
19205         + len + 1 would overflow.
19206
19207 2012-09-03  Andreas Jaeger  <aj@suse.de>
19208
19209         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19210         * sysdeps/i386/fpu/libm-test-ulps: Update.
19211
19212 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19213
19214         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19215         Add s_sinf-sse2, s_conf-sse2.
19216
19217         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
19218         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
19219         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
19220         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
19221
19222         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
19223         for using routine as __sinf_ia32.
19224         Use macro for function declaration and weak_alias.
19225         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
19226         for using routine as __cosf_ia32.
19227         Use macro for function declaration and weak_alias.
19228
19229         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
19230         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
19231
19232         * sysdeps/x86_64/fpu/s_sinf.S: New file.
19233         * sysdeps/x86_64/fpu/s_cosf.S: New file.
19234         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19235
19236         * math/libm-test.inc (cos_test): Add more test cases.
19237         (sin_test): Likewise.
19238         (sincos_test): Likewise.
19239
19240 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19241
19242         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
19243         (IFUNC_RESOLVE): Make pointers to the specialized implementations
19244         hidden.
19245         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
19246
19247 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
19248
19249         [BZ #14538]
19250         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
19251         first element of the GOT.
19252         (elf_machine_load_address): Return the difference between
19253         the runtime address of _DYNAMIC and elf_machine_dynamic ().
19254
19255 2012-09-01  Allan McRae  <allan@archlinux.org>
19256
19257         [BZ #13412]
19258         * configure.in (AWK): Require gawk version 3.0 or later.
19259         * configure: Regenerated.
19260
19261 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
19262
19263         * sysdeps/unix/sysv/linux/kernel-features.h
19264         (__ASSUME_POSIX_CPU_TIMERS): Remove.
19265         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19266         [__NR_clock_getres]: Make code unconditional.
19267         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
19268         (clock_getcpuclockid): Remove code left unreachable by removal of
19269         conditionals.
19270         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
19271         code unconditional.
19272         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19273         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19274         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
19275         Make code unconditional.
19276         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19277         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19278         * sysdeps/unix/sysv/linux/clock_settime.c
19279         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
19280         conditional code.
19281         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
19282         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19283
19284 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
19285
19286         [BZ #14476]
19287         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
19288         scripts/test-installation.pl.
19289
19290         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
19291         and $ld_so_version if it is set.
19292
19293 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19294
19295         [BZ #14516]
19296         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
19297         failure if reading from procfs failed.
19298         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
19299
19300 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19301
19302         * sysdeps/unix/sysv/linux/kernel-features.h
19303         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
19304         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19305         Remove conditional code.
19306         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19307         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
19308         Remove conditional code.
19309         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19310         * sysdeps/unix/sysv/linux/i386/fxstat.c
19311         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19312         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19313         * sysdeps/unix/sysv/linux/i386/fxstatat.c
19314         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19315         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19316         * sysdeps/unix/sysv/linux/i386/lxstat.c
19317         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19318         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19319         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
19320         Remove conditional code.
19321         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19322         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19323         Remove conditional code.
19324         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19325         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
19326         <kernel-features.h>.
19327         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
19328         Remove.
19329         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
19330         Remove conditional code.
19331         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19332         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
19333         Remove conditional.
19334
19335 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
19336
19337         [BZ #5400]
19338         * NEWS: Add fixed bug number.
19339
19340 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19341
19342         [BZ #14519]
19343         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
19344         underflowing exponent in case of negative sign.
19345         * stdlib/tst-strtod-round-data: Add more tests.
19346         * stdlib/tst-strtod-round.c (tests): Regenerated.
19347
19348         [BZ #3479]
19349         * stdlib/strtod_l.c (NDIG): Remove.
19350         (HEXNDIG): Likewise.
19351         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
19352         smallest representable value.
19353         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
19354         lie within an exact representation of 1/2 ulp of the result.
19355         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
19356         unconditionally.
19357         (TENS_P9_IDX): Define unconditionally.
19358         (TENS_P9_SIZE): Likewise.
19359         (TENS_P10_IDX): Likewise.
19360         (TENS_P10_SIZE): Likewise.
19361         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
19362         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
19363         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
19364         entries for 10^2^13 and 10^2^14.
19365         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
19366         (TENS_P13_IDX): Define.
19367         (TENS_P13_SIZE): Likewise.
19368         (TENS_P14_IDX): Likewise.
19369         (TENS_P14_SIZE): Likewise.
19370         (_fpioconst_pow10): Change array size to
19371         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
19372         unconditional.
19373         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
19374         1024]: Add entries for 10^2^13 and 10^2^14.
19375         [LAST_POW10 > _LAST_POW10]: Remove #error.
19376         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
19377         (_fpioconst_pow10): Change array size to
19378         FPIOCONST_POW10_ARRAY_SIZE.
19379         * stdlib/gen-fpioconst.c: New file.
19380         * stdlib/gen-tst-strtod-round.c: Likewise.
19381         * stdlib/tst-strtod-round-data: Likewise.
19382         * stdlib/tst-strtod-round.c: Likewise.
19383         * stdlib/Makefile (tests): Add tst-strtod-round.
19384
19385         [BZ #14459]
19386         * stdlib/strtod_l.c: Include <stdint.h>.
19387         (NDEBUG): Do not define.
19388         (round_and_return): Change EXPONENT parameter to type intmax_t.
19389         Rearrange calculations to avoid internal overflow possibilities.
19390         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
19391         Rearrange calculations to avoid internal overflow possibilities.
19392         Assert that number fits inside MPNSIZE limbs.
19393         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
19394         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
19395         calculations and add assertions to avoid internal overflow
19396         possibilities.  Add casts to avoid signed/unsigned operations.
19397         * stdlib/tst-strtod-overflow.c: New file.
19398         * stdlib/Makefile (tests): Add tst-strtod-overflow.
19399
19400 2012-08-25  Marek Polacek  <polacek@redhat.com>
19401
19402         * time/time.h: Fix some typos in comments.
19403
19404 2012-08-23  Roland McGrath  <roland@hack.frob.com>
19405
19406         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
19407         * posix/tst-rfc3484-2.c: Likewise.
19408         * posix/tst-rfc3484-3.c: Likewise.
19409
19410 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
19411
19412         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
19413         (EF_ARM_ABI_FLOAT_HARD): Likewise.
19414
19415 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
19416
19417         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
19418         #include of fxstatat64.c.
19419
19420 2012-08-22  Roland McGrath  <roland@hack.frob.com>
19421
19422         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
19423         * shadow/getspent_r.c: Likewise.
19424         * shadow/getspnam.c: Likewise.
19425         * shadow/getspnam_r.c: Likewise.
19426         * gshadow/getsgent.c: Likewise.
19427         * gshadow/getsgent_r.c: Likewise.
19428         * gshadow/getsgnam.c: Likewise.
19429         * gshadow/getsgnam_r.c: Likewise.
19430         * inet/getnetbyad.c: Likewise.
19431         * inet/getnetbyad_r.c: Likewise.
19432         * inet/getnetbynm.c: Likewise.
19433         * inet/getnetbynm_r.c: Likewise.
19434         * inet/getnetent.c: Likewise.
19435         * inet/getnetent_r.c: Likewise.
19436         * inet/getproto.c: Likewise.
19437         * inet/getproto_r.c: Likewise.
19438         * inet/getprtent.c: Likewise.
19439         * inet/getprtent_r.c: Likewise.
19440         * inet/getprtname.c: Likewise.
19441         * inet/getprtname_r.c: Likewise.
19442         * inet/getrpcbyname.c: Likewise.
19443         * inet/getrpcbyname_r.c: Likewise.
19444         * inet/getrpcbynumber.c: Likewise.
19445         * inet/getrpcbynumber_r.c: Likewise.
19446         * inet/getrpcent.c: Likewise.
19447         * inet/getrpcent_r.c: Likewise.
19448         * inet/getaliasent.c: Likewise.
19449         * inet/getaliasent_r.c: Likewise.
19450         * inet/getaliasname.c: Likewise.
19451         * inet/getaliasname_r.c: Likewise.
19452         * nscd/getgrgid_r.c: Likewise.
19453         * nscd/getgrnam_r.c: Likewise.
19454         * nscd/gethstbyad_r.c: Likewise.
19455         * nscd/gethstbynm3_r.c: Likewise.
19456         * nscd/getpwnam_r.c: Likewise.
19457         * nscd/getpwuid_r.c: Likewise.
19458         * nscd/getsrvbynm_r.c: Likewise.
19459         * nscd/getsrvbypt_r.c: Likewise.
19460         * nscd/gai.c: Likewise.
19461
19462         * configure.in (build_nscd): New substituted variable, set
19463         by --disable-build-nscd and defaults to $use_nscd.
19464         * configure: Regenerated.
19465         * config.make.in (build-nscd): New substituted variable.
19466         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
19467         Change conditional to require [$(build-nscd) = yes] as well.
19468         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
19469
19470         [BZ# 13696]
19471         * configure.in (use_nscd): New substituted variable, set by
19472         --disable-nscd.  If enabled, define USE_NSCD.
19473         * configure: Regenerated.
19474         * config.h.in: Add USE_NSCD.
19475         * config.make.in (use-nscd): New substituted variable.
19476         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19477         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
19478         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
19479         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
19480         (CFLAGS-getgrnam_r.c): Likewise.
19481         (CFLAGS-initgroups.c): Likewise.
19482         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
19483         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
19484         Variables removed.
19485         * inet/getnetgrent_r.c
19486         (nscd_setnetgrent): New function, broken out of ...
19487         (setnetgrent): ... here.  Call it.
19488         (innetgr): Conditionalize nscd bits on [USE_NSCD].
19489         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
19490         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
19491         * nscd/Makefile (routines, aux): Move definitions after include of
19492         Makeconfig.  Conditionalize on [$(use-nscd) != no].
19493         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
19494         Conditionalize on [USE_NSCD].
19495         (is_nscd, nscd_init_cb): Likewise.
19496         (nss_load_library): Conditionalize init callback on [USE_NSCD].
19497         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
19498         * nss/nss_db/db-init.c: Likewise.
19499         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
19500         [USE_NSCD].
19501         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
19502         (make_request): Use it.
19503         (cache_valid_p): New function.
19504         (__check_pf): Use it.
19505         * NEWS: Add item for --disable-nscd.
19506
19507 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
19508
19509         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
19510         to support sed >= 4.2.1-20-ga9bf076.
19511         * configure: Regenerated.
19512
19513 2012-08-22  Roland McGrath  <roland@hack.frob.com>
19514
19515         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
19516         Conditionalize whole body on [IREL].
19517
19518 2012-08-22  Jeff Law <law@redhat.com>
19519
19520         [BZ #14505]
19521         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
19522         if the family is PF_UNSPEC.
19523
19524 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
19525
19526         * Makerules (lib-version): Rename from V.
19527         (install-lib-nosubdir): Change V to lib-version.
19528
19529 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
19530
19531         [BZ #14252]
19532         * powerpc32/power6/wcschr.c: New file.
19533         * powerpc32/power6/wcscpy.c: New file.
19534         * powerpc32/power6/wcsrchr.c: New file.
19535         * powerpc64/power6/wcschr.c: New file.
19536         * powerpc64/power6/wcscpy.c: New file.
19537         * powerpc64/power6/wcsrchr.c: New file.
19538
19539 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
19540
19541         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
19542         (two_way_short_needle): Use it.
19543         * string/strstr.c (AVAILABLE1_USES_J): Define.
19544         * string/strcasestr.c: Likewise.
19545
19546         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
19547         array references.
19548         * string/strcasestr.c (TOLOWER): Make side-effect safe.
19549
19550         [BZ #11607]
19551         * NEWS: Add an entry.
19552         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
19553         define their defaults.
19554         (two_way_short_needle): Detect end-of-string on-the-fly.
19555         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
19556         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
19557         * string/bug-strcasestr1.c: New test.
19558         * string/Makefile: Run it.
19559
19560 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
19561
19562         [BZ #11607]
19563         * string/str-two-way.h (two_way_short_needle): Optimize matching of
19564         the first character.
19565
19566 2012-08-21  Roland McGrath  <roland@hack.frob.com>
19567
19568         * csu/elf-init.c (__libc_csu_irel): Function removed.
19569         * csu/libc-start.c (apply_irel): New function.
19570         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
19571
19572 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
19573
19574         * sysdeps/unix/sysv/linux/kernel-features.h
19575         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
19576         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
19577         <kernel-features.h>.
19578         [__NR_fadvise64_64]: Make code unconditional.
19579         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
19580         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
19581         !__NR_fadvise64_64)]: Likewise.
19582         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
19583         !__NR_fadvise64_64))]: Likewise.
19584         [__NR_fadvise64]: Make code unconditional.
19585         [!__NR_fadvise64]: Remove conditional code.
19586         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
19587         <kernel-features.h>.
19588         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19589         unconditional.
19590         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19591         conditional code.
19592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
19593         not include <kernel-features.h>.
19594         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19595         unconditional.
19596         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19597         conditional code.
19598         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
19599         include <kernel-features.h>.
19600         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19601         unconditional.
19602         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19603         conditional code.
19604
19605 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
19606
19607         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
19608         slight instruction rearrangements per scrollpipe analysis.
19609         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
19610
19611 2012-08-20  Roland McGrath  <roland@hack.frob.com>
19612
19613         * manual/syslog.texi (syslog; vsyslog, closelog):
19614         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
19615         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
19616
19617         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
19618         DSOCAPS to match condition on defining it.
19619
19620 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
19621
19622         * sysdeps/unix/sysv/linux/kernel-features.h
19623         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
19624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
19625         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19626         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
19628         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19629         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
19631         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19632         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19633
19634         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
19635         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
19636
19637         * sysdeps/unix/sysv/linux/kernel-features.h
19638         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
19639         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
19640         unconditional.
19641         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19642         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
19643         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
19644         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19645         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
19646         Make code unconditional.
19647         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19648         (__mmap64) [!__NR_mmap2]: Likewise.
19649         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
19650         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
19651         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19652         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
19653         [__NR_mmap2]: Make code unconditional.
19654         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19655         (__mmap64) [!__NR_mmap2]: Likewise.
19656
19657 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19658
19659         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
19660
19661 2012-08-18  Andreas Jaeger  <aj@suse.de>
19662
19663         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
19664
19665 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
19666
19667         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
19668         * include/unistd.h (__have_sock_cloexec): Likewise.
19669         (__have_pipe2): Likewise.
19670         (__have_dup3): Likewise.
19671
19672 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
19673
19674         [BZ #9685]
19675         * include/unistd.h (__have_pipe2): Change define into an extern int.
19676         (__have_dup3): Likewise.
19677         * socket/have_sock_cloexec.c: Include fcntl.h.
19678         (__have_pipe2): New variable.
19679         (__have_dup3): Likewise.
19680
19681 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
19682
19683         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
19684
19685 2012-08-17  Marek Polacek  <polacek@redhat.com>
19686
19687         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
19688         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
19689
19690 2012-08-17  Roland McGrath  <roland@hack.frob.com>
19691
19692         * configure.in: Add AC_SUBST for sysheaders.
19693         * configure: Regenerated.
19694         * config.make.in (sysheaders): New substituted variable.
19695
19696         * sysdeps/unix/mkfifo.c: Moved ...
19697         * sysdeps/posix/mkfifo.c: ... here.
19698         * sysdeps/unix/mkfifoat.c: Moved ...
19699         * sysdeps/posix/mkfifoat.c: ... here.
19700
19701         * sysdeps/unix/utime.c: Moved ...
19702         * sysdeps/posix/utime.c: ... here.
19703
19704         * sysdeps/unix/time.c: Moved ...
19705         * sysdeps/posix/time.c: ... here.
19706         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
19707         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
19708
19709         * sysdeps/unix/nice.c: Moved ...
19710         * sysdeps/posix/nice.c: ... here.
19711
19712         * sysdeps/unix/alarm.c: Moved ...
19713         * sysdeps/posix/alarm.c: ... here.
19714
19715         * intl/Makefile ($(codeset_mo)): Depend on the input file.
19716
19717 2012-08-17  Jeff Law <law@redhat.com>
19718
19719         * intl/Makefile (codeset_mo): New variable.
19720         ($(codeset_mo)): New target.
19721         (tst-codeset.out): Depend on that.  Remove explicit rule.
19722         (tst-gettext3.out, tst-gettext5.out): Likewise.
19723         (LOCPATH-ENV, tst-codeset-ENV): New variables.
19724         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
19725         * intl/tst-codeset.sh: Remove.
19726         * intl/tst-gettext3.sh: Likewise.
19727         * intl/tst-gettext5.sh: Likewise.
19728
19729 2012-08-17  Roland McGrath  <roland@hack.frob.com>
19730
19731         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
19732         * sysdeps/unix/syscalls.list: ... here.
19733
19734         * sysdeps/posix/getaddrinfo.c
19735         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
19736         (gaiconf_init, gaiconf_reload): Use them.
19737         [!_STATBUF_ST_NSEC]
19738         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
19739         Define using time_t rather than struct timespec.
19740
19741         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
19742         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
19743         Macros removed.
19744         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
19745         [!NO_THREADS].
19746         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
19747         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
19748         Likewise.
19749
19750         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
19751         __libc_cleanup_push argument.
19752
19753         * bits/param.h: New file.
19754         * misc/sys/param.h: New file.
19755         * include/sys/param.h: New file.
19756         * misc/Makefile (headers): Add bits/param.h.
19757         * sysdeps/generic/sys/param.h: File removed.
19758         * sysdeps/unix/sysv/linux/bits/param.h: New file.
19759         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
19760         * sysdeps/mach/hurd/bits/param.h: New file.
19761         * sysdeps/mach/hurd/sys/param.h: File removed.
19762
19763         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
19764         last change.
19765
19766         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
19767         [_IO_MTSAFE_IO].
19768         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
19769         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
19770         New macros.
19771
19772         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
19773         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
19774         rather than -D_IO_MTSAFE_IO conditionally.
19775         * stdio-common/Makefile (CPPFLAGS): Likewise.
19776         * wcsmbs/Makefile (CPPFLAGS): Likewise.
19777         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
19778         Use $(libio-mtsafe).
19779         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
19780         of -D_IO_MTSAFE_IO.
19781         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
19782         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
19783         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
19784         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
19785         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
19786         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
19787         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
19788         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
19789         (CFLAGS-fread_u_chk.c): Likewise.
19790         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
19791         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
19792         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
19793         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
19794         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
19795         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
19796         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
19797         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
19798         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
19799
19800         * libio/Makefile: Test [$(libc-reentrant) = yes]
19801         instead of [$(filter %REENTRANT, $(defines)) nonempty].
19802
19803         * Makeconfig
19804         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
19805         * sysdeps/pthread/configure: File removed.
19806         * sysdeps/pthread/Makeconfig: New file.
19807         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
19808         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
19809
19810 2012-08-16  Gary Benson  <gbenson@redhat.com>
19811
19812         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
19813         unmapping the first object in a namespace.
19814
19815 2012-08-16  Roland McGrath  <roland@hack.frob.com>
19816
19817         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
19818         (__internal_setnetgrent): ... this.  Add internal_function to
19819         definition.  Add libc_hidden_def.
19820         (setnetgrent): Update caller.
19821         (internal_endnetgrent): Renamed to ...
19822         (__internal_endnetgrent): ... this.  Add internal_function to
19823         definition.  Add libc_hidden_def.
19824         (endnetgrent): Update caller.
19825         (internal_getnetgrent_r): Renamed to ...
19826         (__internal_getnetgrent_r): ... this.  Add internal_function to
19827         definition.  Add libc_hidden_def.
19828         (__getnetgrent_r): Update caller.
19829         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
19830
19831 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
19832
19833         * stdlib/longlong.h: Update from GCC.
19834
19835 2012-08-16  Roland McGrath  <roland@hack.frob.com>
19836
19837         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
19838         on _QL, which is set by umul_ppmm but never used.
19839         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
19840         variables, which are set by GMP macros but never used.
19841         * stdio-common/_itowa.c (_itowa): Likewise.
19842         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
19843         * stdlib/mod_1.c (mpn_mod_1): Likewise.
19844
19845 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
19846
19847         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
19848         struct La_sh_regs is not constant.
19849         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
19850         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
19851         and struct La_sparc64_regs are not constant.
19852
19853 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
19854
19855         * sysdeps/unix/sysv/linux/kernel-features.h
19856         (__ASSUME_POSIX_TIMERS): Remove.
19857         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19858         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19859         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
19860         Make code unconditional.
19861         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19862         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
19863         Make code unconditional.
19864         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19865         * sysdeps/unix/sysv/linux/clock_nanosleep.c
19866         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
19867         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19868         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
19869         Make code unconditional.
19870         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19871         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
19872         (__libc_missing_posix_timers): Remove.
19873
19874 2012-08-15  Roland McGrath  <roland@hack.frob.com>
19875
19876         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
19877         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
19878
19879         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
19880
19881         * elf/dl-sym.c: Include <stdlib.h>.
19882
19883         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
19884         constants, which avoids warnings in 32-bit builds.
19885
19886         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
19887         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
19888
19889         * misc/lseek.c: File moved to ...
19890         * io/lseek.c: ... here.
19891
19892         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
19893
19894         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
19895         shifting LEN more than 31 bits at once.
19896
19897 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19898
19899         [BZ #14195]
19900         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
19901         segmentation fault for a case of two empty input strings.
19902         * string/test-strncasecmp.c (check1): Renamed to...
19903         (bz12205): ...this.
19904         (bz14195): Add new testcase for two empty input strings and N > 0.
19905         (test_main): Call new testcase, adapt for renamed function.
19906
19907 2012-08-15  Andreas Jaeger  <aj@suse.de>
19908
19909         [BZ #14090]
19910         * crypt/md5test2.c: New test, based on test supplied by Serge
19911         Belyshev <belyshev@depni.sinp.msu.ru>.
19912         * crypt/Makefile (xtests): Add md5test-giant..
19913         * crypt/Makefile ($(objpfx)md5test-giant): Add.
19914
19915 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19916
19917         [BZ #14090]
19918         * crypt/md5.c (md5_process_block): Don't assume the buffer
19919         length is less than 2**32.
19920         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
19921         length is less than 2**64.
19922
19923 2012-08-15  Roland McGrath  <roland@hack.frob.com>
19924
19925         * string/str-two-way.h: Include <sys/param.h>.
19926         (MAX): Macro removed.
19927
19928         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
19929         Move #define and #undef of memmove to just before and after
19930         including <string.h>.
19931
19932         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
19933         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
19934         and after including <string.h>.  Move declarations of
19935         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
19936         to before #include "string/memmove.c".
19937
19938         * include/dirent.h: Declare __getdirentries.
19939
19940         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
19941         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
19942
19943 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
19944
19945         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
19946         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
19947         * sysdeps/i386/configure: Regenerated.
19948         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
19949         STABS_CURRENT_FILE, and STABS_FUN.
19950         (END): Remove call to STABS_FUN_END.
19951         (STABS_CURRENT_FILE1): Delete.
19952         (STABS_CURRENT_FILE): Likewise.
19953         (STABS_FUN): Likewise.
19954         (STABS_FUN_END): Likewise.
19955         (STABS_FUN2): Likewise.
19956         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
19957         * sysdeps/x86_64/configure: Regenerated.
19958
19959 2012-08-14  Roland McGrath  <roland@hack.frob.com>
19960
19961         * elf/dl-open.c: Include <atomic.h>.
19962         * elf/dl-lookup.c: Likewise.
19963
19964 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
19965
19966         * sysdeps/unix/sysv/linux/kernel-features.h
19967         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
19968         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
19969         unconditionally.
19970         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
19971         unconditionally.
19972         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
19973         condition on __ASSUME_CLONE_THREAD_FLAGS.
19974
19975 2012-08-14  Andreas Jaeger  <aj@suse.de>
19976
19977         * sysdeps/i386/fpu/libm-test-ulps: Update.
19978
19979 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
19980
19981         * include/atomic.h (atomic_exchange_and_add): Split into ...
19982         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
19983         New atomic macros.
19984
19985 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
19986
19987         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19988
19989 2012-08-13  Jeff Law <law@redhat.com>
19990
19991         * manual/stdio.texi (snprintf): Clarify handling of the trailing
19992         null byte in the output string.
19993
19994 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
19995
19996         * sysdeps/unix/sysv/linux/kernel-features.h
19997         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
19998         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
19999         (__ASSUME_ARG_MAX_STACK_BASED): Define.
20000         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
20001         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
20002         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
20003         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
20004
20005 2012-08-09  Jeff Law <law@redhat.com>
20006
20007         [BZ #13939]
20008         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
20009         When avoid_arena is set, don't retry in the that arena.  Pick the
20010         next one, whatever it might be.
20011         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
20012         (arena_lock): Pass in new parameter to arena_get2.
20013         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
20014         arena_get2.
20015         (__libc_malloc): Unify retrying after main arena failure with
20016         __libc_memalign version.
20017         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
20018
20019 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20020
20021         [BZ #14166]
20022         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
20023         to __redirect_strstr.
20024         (__strstr_sse42): Use typeof __redirect_strstr.
20025         (__strstr_ia32): Likewise.
20026         (__libc_strstr): New prototype.
20027         (strstr): Renamed to ...
20028         (__libc_strstr): This.
20029         (strstr): New strong alias of __libc_strstr.
20030         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
20031         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
20032         __redirect_time.
20033         Include <time.h>.
20034         (__libc_time): New prototype.
20035         (time_ifunc): Replace time with __libc_time.
20036         (time): New strong alias and hidden definition of __libc_time.
20037         (__GI_time): Remove strong alias.
20038         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
20039         Include <stddef.h>.
20040         (memmove): Redefined to __redirect_memmove.
20041         (__memmove_sse2): Use typeof __redirect_memmove.
20042         (__memmove_ssse3): Likewise.
20043         (__memmove_ssse3_back): Likewise.
20044         (__libc_memmove): New prototype.
20045         (memmove): Renamed to ...
20046         (__libc_memmove): This.
20047         (memmove): New strong alias of __libc_memmove.
20048
20049 2012-08-08  Mark Salter  <msalter@redhat.com>
20050
20051         * elf/elf.h
20052         (R_MN10300_TLS_GD): Define.
20053         (R_MN10300_TLS_LD): Likewise.
20054         (R_MN10300_TLS_LDO): Likewise.
20055         (R_MN10300_TLS_GOTIE): Likewise.
20056         (R_MN10300_TLS_IE): Likewise.
20057         (R_MN10300_TLS_LE): Likewise.
20058         (R_MN10300_TLS_DTPMOD): Likewise.
20059         (R_MN10300_TLS_DTPOFF): Likewise.
20060         (R_MN10300_TLS_TPOFF): Likewise.
20061         (R_MN10300_SYM_DIFF): Likewise.
20062         (R_MN10300_ALIGN): Likewise.
20063         (R_MN10300_NUM): Update.
20064
20065 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
20066
20067         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
20068         Remove.
20069
20070 2012-08-08  Roland McGrath  <roland@hack.frob.com>
20071
20072         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
20073
20074         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
20075         sysdeps/unix -> sysdeps/posix move.
20076         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
20077
20078 2012-08-07      Allan McRae     <allan@archlinux.org>
20079
20080         [BZ #14303]
20081         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
20082         (SUNOS_CPP): Likewise.
20083         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
20084         not found.
20085         (open_input): Call CPP using execvp.
20086
20087 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20088
20089         * sysdeps/unix/sysv/linux/kernel-features.h
20090         (__ASSUME_PROT_GROWSUPDOWN): Remove.
20091         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20092         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20093         (__ASSUME_WAITID_SYSCALL): Likewise.
20094         * sysdeps/unix/sysv/linux/dl-execstack.c
20095         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
20096         code unconditional.
20097         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
20098         conditional code.
20099         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
20100         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
20101         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
20102         code.
20103         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
20104         unconditional.
20105         [__ASSUME_WAITID_SYSCALL]: Likewise.
20106         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
20107
20108 2012-08-07  Roland McGrath  <roland@hack.frob.com>
20109
20110         * sysdeps/unix/closedir.c: Renamed to ...
20111         * sysdeps/posix/closedir.c: ... here.
20112         * sysdeps/unix/dirfd.c: Renamed to ...
20113         * sysdeps/posix/dirfd.c: ... here.
20114         * sysdeps/unix/dirstream.h: Renamed to ...
20115         * sysdeps/posix/dirstream.h: ... here.
20116         * sysdeps/unix/fdopendir.c: Renamed to ...
20117         * sysdeps/posix/fdopendir.c: ... here.
20118         * sysdeps/unix/opendir.c: Renamed to ...
20119         * sysdeps/posix/opendir.c: ... here.
20120         * sysdeps/unix/readdir.c: Renamed to ...
20121         * sysdeps/posix/readdir.c: ... here.
20122         * sysdeps/unix/readdir_r.c: Renamed to ...
20123         * sysdeps/posix/readdir_r.c: ... here.
20124         * sysdeps/unix/rewinddir.c: Renamed to ...
20125         * sysdeps/posix/rewinddir.c: ... here.
20126         * sysdeps/unix/seekdir.c: Renamed to ...
20127         * sysdeps/posix/seekdir.c: ... here.
20128         * sysdeps/unix/telldir.c: Renamed to ...
20129         * sysdeps/posix/telldir.c: ... here.
20130         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
20131         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
20132         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
20133         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
20134
20135         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
20136         * bits/fcntl.h: ... here.
20137
20138         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
20139         not 0.
20140         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
20141         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
20142         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
20143         (struct flock): Move l_start, l_len to the beginning.
20144         Use __pid_t for l_pid.
20145         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
20146         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
20147         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
20148         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
20149         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
20150         [__USE_LARGEFILE64] (struct flock64): New type.
20151         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
20152
20153         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
20154         * bits/dirent.h: ... here.
20155
20156         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
20157         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
20158
20159 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20160
20161         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20162         Change from 2.6.0 to 2.6.16.
20163         * sysdeps/unix/sysv/linux/configure: Regenerated.
20164         * sysdeps/unix/sysv/linux/kernel-features.h
20165         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
20166         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
20167         version.
20168         (__ASSUME_UTIMES): Likewise.
20169         (__ASSUME_CLONE_STOPPED): Remove.
20170         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
20171         architectures, not kernel version.
20172         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
20173         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20174         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20175         (__ASSUME_WAITID_SYSCALL): Likewise.
20176         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
20177         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
20178         * README: State 2.6.16 as minimum Linux kernel version.  Do not
20179         refer to older versions.
20180
20181 2012-08-06  Roland McGrath  <roland@hack.frob.com>
20182
20183         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
20184         Define alphasort64 as an alias.
20185         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
20186         Define versionsort64 as an alias.
20187         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
20188         Define scandir64 as an alias.
20189         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
20190         Define scandirat64 as an alias.
20191         * dirent/alphasort64.c (alphasort64):
20192         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
20193         * dirent/versionsort64.c: Likewise.
20194         * dirent/scandir64.c: Likewise.
20195         * dirent/scandirat64.c: Likewise.
20196         * sysdeps/wordsize-64/alphasort.c: File removed.
20197         * sysdeps/wordsize-64/alphasort64.c: File removed.
20198         * sysdeps/wordsize-64/scandir.c: File removed.
20199         * sysdeps/wordsize-64/scandir64.c: File removed.
20200         * sysdeps/wordsize-64/scandirat.c: File removed.
20201         * sysdeps/wordsize-64/scandirat64.c: File removed.
20202         * sysdeps/wordsize-64/versionsort.c: File removed.
20203         * sysdeps/wordsize-64/versionsort64.c: File removed.
20204         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
20205         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
20206         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
20207         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
20208         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
20209         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
20210         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
20211         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
20212
20213         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
20214         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20215         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
20216         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20217         [defined __arch64__ || defined __sparcv9]
20218         (__INO_T_MATCHES_INO64_T): New macro.
20219         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20220         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
20221         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
20222         * sysdeps/unix/sysv/linux/bits/dirent.h
20223         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
20224         (_DIRENT_MATCHES_DIRENT64): New macro.
20225
20226         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
20227         Define lockf64 as an alias.
20228         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
20229         Define fseeko64 as an alias.
20230         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
20231         Define ftello64 as an alias.
20232         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
20233         Define _IO_fgetpos64 and fgetpos64 as aliases.
20234         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
20235         Define _IO_fsetpos64 and fsetpos64 as aliases.
20236         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
20237         Conditionalize body on this.
20238         * libio/fseeko64.c: Likewise.
20239         * libio/ftello64.c: Likewise.
20240         * libio/iofgetpos64.c: Likewise.
20241         * libio/iofsetpos64.c: Likewise.
20242         * sysdeps/wordsize-64/lockf.c: File removed.
20243         * sysdeps/wordsize-64/lockf64.c: File removed.
20244         * sysdeps/wordsize-64/fseeko.c: File removed.
20245         * sysdeps/wordsize-64/fseeko64.c: File removed.
20246         * sysdeps/wordsize-64/ftello.c: File removed.
20247         * sysdeps/wordsize-64/ftello64.c: File removed.
20248         * sysdeps/wordsize-64/iofgetpos.c: File removed.
20249         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
20250         * sysdeps/wordsize-64/iofsetpos.c: File removed.
20251         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
20252         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
20253         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
20254         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
20255         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
20256         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
20257         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
20258         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
20259         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
20260         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
20261         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
20262
20263         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20264         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20265         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
20266         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20267         [defined __arch64__ || defined __sparcv9]
20268         (__OFF_T_MATCHES_OFF64_T): New macro.
20269         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20270         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20271         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20272         (__OFF_T_MATCHES_OFF64_T): New macro.
20273
20274 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20275
20276         * stdlib/secure-getenv.c (__secure_getenv): Replace
20277         GLIBC_2_16 with GLIBC_2_17.
20278
20279 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20280
20281         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
20282         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
20283
20284 2012-08-03  David S. Miller  <davem@davemloft.net>
20285
20286         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20287
20288 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20289
20290         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
20291         Remove.
20292         (__ASSUME_CORRECT_SI_PID): Likewise.
20293         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
20294         (__ASSUME_TMPFS_NAME): Likewise.
20295         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
20296         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
20297         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
20298         (HAVE_AUX_SECURE): Make definition unconditional.
20299         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
20300         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
20301
20302 2012-08-03  Roland McGrath  <roland@hack.frob.com>
20303
20304         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
20305         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
20306         * sysdeps/mach/hurd/eloop-threshold.h: New file.
20307         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20308         __eloop_threshold instead of SYMLOOP_MAX.
20309
20310         * sysdeps/generic/eloop-threshold.h: New file.
20311         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
20312         of MAXSYMLINKS.
20313         * elf/chroot_canon.c (chroot_canon): Likewise.
20314
20315 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20316
20317         [BZ #13717]
20318         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20319         Change to 2.6.0 everywhere.
20320         * sysdeps/unix/sysv/linux/configure: Regenerated.
20321         * sysdeps/unix/sysv/linux/kernel-features.h
20322         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
20323         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
20324         kernel versions.
20325         (__ASSUME_POSIX_TIMERS): Define unconditionally.
20326         (__ASSUME_FUTEX_REQUEUE): Remove.
20327         (__ASSUME_STATFS64): Define unconditionally.
20328         (__ASSUME_AT_SECURE): Likewise.
20329         (__ASSUME_CORRECT_SI_PID): Likewise.
20330         (__ASSUME_TGKILL): Define without depending on kernel version for
20331         i386.
20332         (__ASSUME_UTIMES): Likewise.
20333         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
20334         kernel version.
20335         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
20336         (__ASSUME_TMPFS_NAME): Likewise.
20337         * README: Update reference to Linux kernel versions.
20338
20339 2012-08-02  Marek Polacek  <polacek@redhat.com>
20340
20341         [BZ# 14150]
20342         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
20343         libc_cv_asm_type_prefix with %.
20344         * configure: Regenerated.
20345         * include/libc-symbols.h: Remove comment about
20346         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20347         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
20348         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
20349         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
20350         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
20351         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20352         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
20353         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
20354         * elf/tst-unique2mod1.c: Likewise.
20355         * elf/tst-unique1mod2.c: Likewise.
20356         * elf/tst-unique1mod1.c: Likewise.
20357         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
20358         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
20359         Replace ASM_TYPE_DIRECTIVE with .type.
20360         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20361         * sysdeps/i386/sysdep.h: Likewise.
20362         * sysdeps/x86_64/sysdep.h: Likewise.
20363         * sysdeps/sh/sysdep.h: Likewise.
20364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20365         Do not define ASM_TYPE_DIRECTIVE.
20366         * sysdeps/powerpc/sysdep.h: Likewise.
20367         * sysdeps/powerpc/powerpc32/sysdep.h:
20368         Replace ASM_TYPE_DIRECTIVE with .type.
20369         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
20370         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
20371         * sysdeps/i386/fpu/e_powf.S: Likewise.
20372         * sysdeps/i386/fpu/e_expl.S: Likewise.
20373         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20374         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20375         * sysdeps/i386/fpu/e_pow.S: Likewise.
20376         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
20377         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20378         * sysdeps/i386/fpu/s_expm1.S: Likewise.
20379         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
20380         * sysdeps/i386/fpu/e_log2.S: Likewise.
20381         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20382         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20383         * sysdeps/i386/fpu/e_powl.S: Likewise.
20384         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20385         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
20386         * sysdeps/i386/fpu/e_logl.S: Likewise.
20387         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
20388         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
20389         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
20390         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20391         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20392         * sysdeps/i386/fpu/e_log.S: Likewise.
20393         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20394         * sysdeps/i386/fpu/e_logf.S: Likewise.
20395         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20396         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20397         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20398         * sysdeps/i386/fpu/e_log10.S: Likewise.
20399         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20400         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20401         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20402         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20403         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20404         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
20405         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
20406         * sysdeps/i386/i686/strtok.S: Likewise.
20407         * sysdeps/i386/i386-mcount.S: Likewise.
20408         * sysdeps/i386/strtok.S: Likewise.
20409         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
20410         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20411         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20412         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20413         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
20414         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20415         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
20416         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
20417         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20418         * sysdeps/x86_64/_mcount.S: Likewise.
20419         * sysdeps/x86_64/strtok.S: Likewise.
20420         * sysdeps/sh/_mcount.S: Likewise.
20421
20422 2012-08-01  Roland McGrath  <roland@hack.frob.com>
20423
20424         * libio/iofopen.c: Include <fcntl.h>.
20425         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
20426         (_IO_fopen64, fopen64): Define as aliases.
20427         * libio/iofopen64.c: Include <fcntl.h>.
20428         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
20429         Conditionalize body on this.
20430         * sysdeps/wordsize-64/iofopen.c: File removed.
20431         * sysdeps/wordsize-64/iofopen64.c: File removed.
20432
20433 2012-08-01  Marek Polacek  <polacek@redhat.com>
20434
20435         * libc/Makeconfig: Use elf in place of binfmt-subdir.
20436         Use dlfcn directly instead of a variable.
20437         (binfmt-subdir): Do not define.
20438         (dlfcn): Likewise.
20439
20440 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
20441
20442         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
20443         Remove all definitions.
20444         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
20445         <kernel-features.h>.
20446         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
20447         (miss_F_GETOWN_EX): Remove all definitions.
20448         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
20449         macro definition.
20450         [!__ASSUME_FCNTL64]: Remove conditional code.
20451         [__ASSUME_FCNTL64]: Make code unconditional.
20452         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
20453         <kernel-features.h>.
20454         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
20455         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
20456         (lockf64) [__NR_fcntl64]: Make code unconditional.
20457         (lockf64) [__ASSUME_FCNTL64]: Likewise.
20458
20459         * sysdeps/unix/sysv/linux/kernel-features.h
20460         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
20461         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
20462         Make code unconditional.
20463         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20464         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
20466         [__NR_vfork]: Make code unconditional.
20467         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20468         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
20470         [__NR_vfork]: Make code unconditional.
20471         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20472         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20473
20474 2012-08-01  Roland McGrath  <roland@hack.frob.com>
20475
20476         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
20477         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
20478
20479         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20480         Define mkstemp64 as an alias.
20481         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20482         Define mkstemps64 as an alias.
20483         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20484         Define mkostemp64 as an alias.
20485         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20486         Define mkostemps64 as an alias.
20487         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
20488         Conditionalize body on this.
20489         * misc/mkostemp64.c: Likewise.
20490         * misc/mkostemps64.c: Likewise.
20491         * misc/mkstemps64.c: Likewise.
20492         * sysdeps/wordsize-64/mkstemp64.c: File removed.
20493         * sysdeps/wordsize-64/mkostemp64.c: File removed.
20494         * sysdeps/wordsize-64/mkostemp.c: File removed.
20495         * sysdeps/wordsize-64/mkstemp.c: File removed.
20496         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
20497         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
20498         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
20499         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
20500
20501         [BZ #14138]
20502         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
20503         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
20504         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
20505         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
20506
20507         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
20508         compat_symbol macros from <shlib-compat.h> rather than the underlying
20509         default_symbol_version and symbol_version macros, so that DEFAULT
20510         lines in shlib-versions are respected.
20511         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
20512
20513 2012-08-01  Florian Weimer  <fweimer@redhat.com>
20514
20515         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
20516         Declare with warn_unused_result.
20517         (setgid, setregid, setegid, setresgid): Likewise.
20518         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
20519         Likewise.
20520         * WUR-REPORT: Remove set*id functions.
20521
20522 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
20523
20524         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
20525
20526 2012-07-31  Roland McGrath  <roland@hack.frob.com>
20527
20528         [BZ #10191]
20529         * include/sys/socket.h (__libc_accept, __libc_accept4):
20530         Add attribute_hidden.
20531         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
20532
20533         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
20534         use of PTR_MANGLE.
20535         * inet/getnetgrent_r.c (setup): Likewise.
20536
20537         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
20538
20539 2012-07-31  David S. Miller  <davem@davemloft.net>
20540
20541         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20542
20543 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
20544
20545         [BZ #13629]
20546         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
20547         value between 1.0 and 2.0 and smaller part has absolute value less
20548         than 1.0.
20549         * math/s_clog10.c (__clog10): Likewise.
20550         * math/s_clog10f.c (__clog10f): Likewise.
20551         * math/s_clog10l.c (__clog10l): Likewise.
20552         * math/s_clogf.c (__clogf): Likewise.
20553         * math/s_clogl.c (__clogl): Likewise.
20554         * math/libm-test.inc (clog_test): Add more tests.
20555         (clog10_test): Likewise.
20556         * sysdeps/i386/fpu/libm-test-ulps: Update.
20557         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20558
20559 2012-07-31  Florian Weimer  <fweimer@redhat.com>
20560
20561         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
20562         Exit with zero in case no suitable GID is found, and write a
20563         message to standard error.
20564
20565 2012-07-30  Roland McGrath  <roland@hack.frob.com>
20566
20567         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
20568         rather than to 1.
20569         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
20570         (MAXPATHLEN): Removed.
20571         (NOGROUP, NODEV): New macros.
20572         (setbit, clrbit, isset, isclr): New macros.
20573         (howmany, roundup, powerof2): New macros.
20574         (DEV_BSIZE): New macro.
20575
20576         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
20577         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
20578
20579         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
20580         definition on [!__NO_LONG_DOUBLE_MATH].
20581
20582         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
20583         PTR_MANGLE and PTR_DEMANGLE.
20584
20585         * socket/accept4.c (accept4): Rename to __libc_accept4.
20586         Define accept4 as a weak alias.
20587
20588         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
20589         on [_DIRENT_HAVE_D_TYPE].
20590         * io/ftw.c (ftw_dir): Likewise.
20591
20592         * io/xmknod.c (__xmknod): Don't check PATH for being null.
20593
20594         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
20595
20596         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
20597         Use the BSD numbers rather than the arbitrary ones we had.
20598         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
20599         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
20600         (SIGXCPU, SIGXFSZ): New macros.
20601         (_NSIG): Now 32.
20602
20603         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
20604         initializer on [_LIBC_REENTRANT].
20605
20606         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
20607         definitions inside [_POSIX_MAPPED_FILES].
20608
20609         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
20610
20611         * dirent/opendir.c: Include <fcntl.h>.
20612
20613         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
20614         (__libc_getspecific): Likewise.
20615         (__libc_key_create): Likewise.
20616
20617         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
20618         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
20619         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
20620         (tmpfile64): Define as alias.
20621         * sysdeps/wordsize-64/tmpfile.c: File removed.
20622         * sysdeps/wordsize-64/tmpfile64.c: File removed.
20623         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
20624         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
20625
20626         * stdio-common/vfscanf.c: Include <stdbool.h>.
20627         * nss/makedb.c: Likewise.
20628         * stdio-common/_i18n_number.h: Likewise.
20629         * argp/argp-help.c: Likewise.
20630         * posix/wordexp.c: Likewise.
20631         * sysdeps/posix/spawni.c: Likewise.
20632         * nss/nss_files/files-initgroups.c: Likewise.
20633         * stdio-common/reg-modifier.c: Include <stdlib.h>.
20634         * nss/nss_files/files-initgroups.c: Likewise.
20635         * nss/nss_db/db-netgrp.c: Likewise.
20636         * nss/nss_db/db-initgroups.c: Likewise.
20637         * io/fchmodat.c: Include <sys/stat.h>.
20638
20639         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
20640         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
20641
20642         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
20643         [HAVE_MMAP].
20644
20645         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
20646         Add multiple inclusion protection.
20647
20648 2012-07-27  David S. Miller  <davem@davemloft.net>
20649
20650         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20651
20652 2012-07-27  Gary Benson  <gbenson@redhat.com>
20653
20654         [BZ #14298]
20655         * elf/rtld.c: Include <stap-probe.h>.
20656         (dl_main): Added static probes "init_start" and "init_complete".
20657         * elf/dl-load.c: Include <stap-probe.h>.
20658         (lose): Take new parameter "nsid".
20659         Added static probe "map_failed".
20660         (_dl_map_object_from_fd): Pass namespace id to lose.
20661         Added static probe "map_start".
20662         (open_verify): Pass namespace id to lose.
20663         * elf/dl-open.c: Include <stap-probe.h>.
20664         (dl_open_worker) Added static probes "map_complete", "reloc_start"
20665         and "reloc_complete".
20666         * elf/dl-close.c: Include <stap-probe.h>.
20667         (_dl_close_worker): Added static probes "unmap_start" and
20668         "unmap_complete".
20669         * elf/rtld-debugger-interface.txt: New file documenting the above.
20670
20671 2012-07-26  Roland McGrath  <roland@hack.frob.com>
20672
20673         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
20674         rather than a string variable.
20675         * sunrpc/rpc_main.c (h_output): Likewise.
20676         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
20677
20678 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
20679
20680         * inet/check_native.c: New file.
20681
20682 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
20683
20684         [BZ #13629]
20685         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
20686         if larger part has absolute value 1.0.
20687         * math/s_clog10.c (__clog10): Likewise.
20688         * math/s_clog10f.c (__clog10f): Likewise.
20689         * math/s_clog10l.c (__clog10l): Likewise.
20690         * math/s_clogf.c (__clogf): Likewise.
20691         * math/s_clogl.c (__clogl): Likewise.
20692         * math/libm-test.inc (clog_test): Add more tests.
20693         (clog10_test): Likewise.
20694         * sysdeps/i386/fpu/libm-test-ulps: Update.
20695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20696
20697         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
20698         (pltexit): Likewise.
20699         (La_regs): Likewise.
20700         (La_retval): Likewise.
20701         (int_retval): Likewise.
20702         Update #error for removed macros to refer only to definitions in
20703         tst-audit.h.
20704         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
20705         macro.
20706         (pltexit): Likewise.
20707         (La_regs): Likewise.
20708         (La_retval): Likewise.
20709         (int_retval): Likewise.
20710         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
20711         macro.
20712         (pltexit): Likewise.
20713         (La_regs): Likewise.
20714         (La_retval): Likewise.
20715         (int_retval): Likewise.
20716         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
20717         macro.
20718         (pltexit): Likewise.
20719         (La_regs): Likewise.
20720         (La_retval): Likewise.
20721         (int_retval): Likewise.
20722         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
20723         macro.
20724         (pltexit): Likewise.
20725         (La_regs): Likewise.
20726         (La_retval): Likewise.
20727         (int_retval): Likewise.
20728         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
20729         macro.
20730         (pltexit): Likewise.
20731         (La_regs): Likewise.
20732         (La_retval): Likewise.
20733         (int_retval): Likewise.
20734         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
20735         macro.
20736         (pltexit): Likewise.
20737         (La_regs): Likewise.
20738         (La_retval): Likewise.
20739         (int_retval): Likewise.
20740         * sysdeps/generic/tst-audit.h: Update comment to refer only to
20741         macro definitions in tst-audit.h.
20742         * sysdeps/i386/tst-audit.h: New file.
20743         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
20744         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
20745         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
20746         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
20747         * sysdeps/sh/tst-audit.h: Likewise.
20748         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
20749         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
20750         * sysdeps/x86_64/tst-audit.h: Likewise.
20751
20752 2012-07-26  Andreas Jaeger  <aj@suse.de>
20753
20754         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
20755         ptrace.
20756
20757         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
20758         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
20759         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
20760         PTRACE_O_MASK.
20761         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
20762         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
20763         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
20764
20765         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
20766         value.
20767
20768         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
20769         _sigsys.
20770         (si_call_addr, si_syscall, si_arch): Define new macro.
20771         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
20772         _sigsys.
20773         (si_call_addr, si_syscall, si_arch): Define new marcro.
20774         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
20775         _sigsys.
20776         (si_call_addr, si_syscall, si_arch): Define new macro.
20777         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
20778         _sigsys.
20779         (si_call_addr, si_syscall, si_arch): Define new macro.
20780
20781 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
20782
20783         [BZ #13717]
20784         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20785         Change to 2.4.21 where previously 2.4.1.
20786         * sysdeps/unix/sysv/linux/configure: Regenerated.
20787         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
20788         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
20789         Linux kernel version.
20790         (__ASSUME_STD_AUXV): Remove.
20791         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
20792         kernel version.
20793         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
20794         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
20795         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
20796         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
20797         (__ASSUME_NETLINK_SUPPORT): Likewise.
20798         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
20799         (__no_netlink_support): Remove conditional definition.
20800         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
20801         Remove.
20802         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
20803         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
20804         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
20805         (if_nameindex_ioctl): Remove.
20806         (if_nameindex_netlink): Do not handle __no_netlink_support.
20807         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
20808         code.
20809         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
20810         Remove conditional code.
20811         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
20812         code.
20813         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
20814         unconditional.
20815         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
20816         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
20817         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
20818         Remove.
20819         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
20820         [!__ASSUME_STD_AUXV]: Remove conditional code.
20821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
20822         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
20823         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
20824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
20825         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
20826         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
20827         code.
20828         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
20829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
20830         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
20831         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
20832         conditional code.
20833         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
20834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
20835         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
20836         code.
20837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
20838         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
20839         conditional code.
20840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
20841         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
20842         code unconditional.
20843         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20844         conditional code.
20845         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20846         unconditional.
20847         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20848         conditional code.
20849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20850         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20851         unconditional.
20852         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20853         conditional code.
20854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
20855         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
20856         code unconditional.
20857         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20858         conditional code.
20859         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20860         unconditional.
20861         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20862         conditional code.
20863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
20864         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
20865         code unconditional.
20866         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20867         conditional code.
20868         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20869         unconditional.
20870         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20871         conditional code.
20872
20873 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
20874
20875         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
20876         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
20877         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
20878         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
20879         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
20880         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
20881         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
20882         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
20883         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
20884         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
20885         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
20886         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
20887         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
20888         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
20889         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
20890         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
20891         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
20892         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
20893         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
20894         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
20895         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
20896         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
20897         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
20898
20899 2012-07-25  Florian Weimer  <fweimer@redhat.com>
20900
20901         * Versions.def: Add GLIBC_2.17.
20902         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
20903         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
20904         Introduce __libc_secure_getenv.
20905         * stdlib/Versions (2.17): Add secure_getenv
20906         (GLIBC_PRIVATE): Add __libc_secure_getenv.
20907         * stdlib/secure-getenv.c: Rename __secure_getenv to
20908         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
20909         symbol __secure_getenv for GLIBC_2.0.
20910         * stdlib/tst-secure-getenv.c: New.
20911         * stdlib/Makefile (tests): Add testcase.
20912         * manual/startup.texi (Environment Access): Document
20913         secure_getenv.
20914         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
20915         __libc_secure_getenv.
20916         * inet/ruserpass.c (ruserpass): Likewise.
20917         * malloc/mtrace.c (mtrace): Likewise.
20918         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
20919         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
20920         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
20921         * sysdeps/posix/tempname.c: Likewise.  Evaluate
20922         HAVE_SECURE_GETENV.
20923         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
20924         __secure_getenv to __libc_secure_getenv.
20925         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
20926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
20927         Likewise.
20928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
20929         Likewise.
20930         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
20931         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
20932         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
20933         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
20934         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
20935         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
20936         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
20937
20938 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
20939
20940         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
20941         (struct La_i86_retval): Likewise.
20942         (struct La_x86_64_regs): Likewise.
20943         (struct La_x86_64_retval): Likewise.
20944         (struct La_x32_regs): Likewise.
20945         (struct La_x32_retval): Likewise.
20946         (struct La_ppc32_regs): Likewise.
20947         (struct La_ppc32_retval): Likewise.
20948         (struct La_ppc64_regs): Likewise.
20949         (struct La_ppc64_retval): Likewise.
20950         (struct La_sh_regs): Likewise.
20951         (struct La_sh_retval): Likewise.
20952         (struct La_s390_32_regs): Likewise.
20953         (struct La_s390_32_retval): Likewise.
20954         (struct La_s390_64_regs): Likewise.
20955         (struct La_s390_64_retval): Likewise.
20956         (struct La_sparc32_regs): Likewise.
20957         (struct La_sparc32_retval): Likewise.
20958         (struct La_sparc64_regs): Likewise.
20959         (struct La_sparc64_retval): Likewise.
20960         (struct audit_ifaces): Remove architecture-specific pltenter and
20961         pltexit members.
20962         * sysdeps/i386/ldsodefs.h: New file.
20963         * sysdeps/powerpc/ldsodefs.h: Likewise.
20964         * sysdeps/s390/ldsodefs.h: Likewise.
20965         * sysdeps/sh/ldsodefs.h: Likewise.
20966         * sysdeps/sparc/ldsodefs.h: Likewise.
20967         * sysdeps/x86_64/ldsodefs.h: Likewise.
20968
20969 2012-07-25  Marek Polacek  <polacek@redhat.com>
20970
20971         [BZ #6808]
20972         * math/libm-test.inc (yn_test): Add another test.
20973         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
20974         to ERANGE when the result is +-Inf.
20975         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
20976         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
20977         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
20978         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
20979
20980 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
20981
20982         * conform/data/time.h-data (NULL): Use macro-constant.  Require
20983         equal to 0.
20984         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
20985         clock_t.
20986         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
20987
20988 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
20989
20990         * configure.in <sysdeps resolving>: Correct printing
20991         Implies_before.
20992         * configure: Regenerate.
20993
20994 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
20995
20996         * math/w_ilogb.c: Include <limits.h>.
20997         * math/w_ilogbl.c: Likewise.
20998
20999 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21000
21001         * manual/lang.texi (__va_copy): Document primarily as ISO C99
21002         va_copy.  Document allowing for unavailable va_copy only as
21003         pre-C99 compatibility.
21004         * manual/string.texi (Copying and Concatenation): Use va_copy
21005         instead of __va_copy in concat example.
21006
21007 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
21008
21009         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
21010         (__sendto): Use create_address_port.  Initialize APORT and deallocate
21011         it if not null.
21012
21013         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
21014         with O_NOLINK passed to __file_name_lookup.
21015
21016         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
21017         with O_NOLINK passed to __file_name_lookup.
21018
21019         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
21020         negative N or less than NGIDS.
21021
21022         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
21023         type to string_t.  Set ERANGE as errno and return it if NAME is not big
21024         enough.  Use memcpy instead of strncpy.
21025
21026 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21027
21028         * elf/Makefile (check-data): Remove.
21029         (localplt.data): New vpath directive.
21030         ($(objpfx)check-localplt.out): Use localplt.data from vpath
21031         instead of $(check-data).
21032         * scripts/data/localplt-generic.data: Move to ...
21033         * sysdeps/generic/localplt.data: ... here.
21034         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
21035         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
21036         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
21037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
21038         ... here.
21039         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
21040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
21041         ... here.
21042         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
21043         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
21044         ... here.
21045         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
21046         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
21047         ... here.
21048         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
21049         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
21050         ... here.
21051         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
21052         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
21053         ... here.
21054
21055 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21056
21057         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
21058         PPC32 and PPC64 files.
21059         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
21060         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
21061
21062 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21063
21064         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
21065         __makecontext_ret to ...
21066         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21067         ... here and call exit if uc_link is NULL.  New file.
21068         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
21069         __makecontext_ret.S.
21070         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
21071         __makecontext_ret to ...
21072         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21073         ... here and call exit if uc_link is NULL.  New file.
21074         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
21075         __makecontext_ret.S.
21076
21077 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21078
21079         * elf/elf.h (R_390_IRELATIVE): New definition.
21080         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
21081         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
21082         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
21083         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
21084         (elf_machine_lazy_rel): Likewise.
21085         * sysdeps/s390/dl-irel.h: New file.
21086         * sysdeps/s390/s390-64/memcpy.S: New asm code.
21087         * sysdeps/s390/s390-64/memset.S: New asm code.
21088         * sysdeps/s390/s390-64/memcmp.S: New asm code.
21089         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
21090         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
21091         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
21092         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
21093         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
21094         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
21095         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
21096         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
21097         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
21098         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
21099         * sysdeps/s390/s390-32/memcpy.S: New asm code.
21100         * sysdeps/s390/s390-32/memset.S: New asm code.
21101         * sysdeps/s390/s390-32/memcmp.S: New asm code.
21102
21103 2012-07-17  Marek Polacek  <polacek@redhat.com>
21104
21105         [BZ #14349]
21106         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
21107         * sysdeps/s390/s390-64/configure.in: Likewise.
21108         * sysdeps/sparc/configure.in: Likewise.
21109         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
21110         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
21111         * sysdeps/i386/configure.in: Likewise.
21112         * sysdeps/x86_64/configure.in: Likewise.
21113         * sysdeps/sh/configure.in: Likewise.
21114         * sysdeps/s390/s390-32/configure: Regenerated.
21115         * sysdeps/s390/s390-64/configure: Likewise.
21116         * sysdeps/x86_64/configure: Likewise.
21117         * sysdeps/sh/configure: Likewise.
21118         * sysdeps/powerpc/powerpc64/configure: Likewise.
21119         * sysdeps/powerpc/powerpc32/configure: Likewise.
21120         * sysdeps/sparc/configure: Likwise.
21121         * sysdeps/i386/configure: Likewise.
21122
21123         * elf/dl-open.c: Comment fixes.
21124
21125 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
21126
21127         * Makefile [CXX] (check-data): Remove.
21128         [CXX] (c++-types.data): New vpath directive.
21129         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
21130         vpath.  Do not allow for C++ type data being missing.
21131         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
21132         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
21133         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
21134         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
21135         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
21136         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
21137         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
21138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
21139         ... here.
21140         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
21141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
21142         ... here.
21143         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
21144         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
21145         ... here.
21146         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
21147         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
21148         ... here.
21149         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
21150         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
21151         ... here.
21152         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
21153         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
21154         ... here.
21155         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
21156         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
21157         ... here.
21158         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
21159         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
21160
21161         * elf/tls-macros.h (TLS_LE): Move architecture-specific
21162         definitions to architecture-specific files.
21163         (TLS_IE): Likewise.
21164         (TLS_LD): Likewise.
21165         (TLS_GD): Likewise.
21166         * sysdeps/i386/tls-macros.h: New file.
21167         * sysdeps/powerpc/tls-macros.h: Likewise.
21168         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
21169         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
21170         * sysdeps/sh/tls-macros.h: Likewise.
21171         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
21172         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
21173         * sysdeps/x86_64/tls-macros.h: Likewise.
21174
21175 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21176
21177         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
21178         zero value for regular exit case.
21179
21180         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
21181         (__start_context): Preserve zero value for regular exit case.
21182
21183 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21184             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21185
21186         * manual/setjmp.texi (setcontext): Clarify normal process
21187         termination when uc_link is the null pointer.
21188         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
21189         exit call.
21190
21191 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
21192
21193         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
21194         preprocessor.  Test for each exception mask separately.
21195
21196 2012-07-16  Andreas Jaeger  <aj@suse.de>
21197
21198         * po/ru.po: Update from translation team.
21199
21200 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
21201
21202         * conform/data/string.h-data (NULL): Use macro-constant.  Require
21203         equal to 0.
21204         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
21205         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
21206         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
21207         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
21208         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21209
21210 2012-07-13  Andreas Jaeger  <aj@suse.de>
21211
21212         * po/fr.po: Update from translation team.
21213
21214 2012-07-12  Marek Polacek  <polacek@redhat.com>
21215
21216         [BZ #14173]
21217         * math/libm-test.inc (yn_test): Add test for BZ #14173.
21218         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
21219         loop condition.
21220
21221 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
21222
21223         [BZ #13717]
21224         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21225         Change to 2.4.1 where previously 2.4.0.
21226         * sysdeps/unix/sysv/linux/configure: Regenerated.
21227         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
21228         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
21229         version.
21230         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
21231         (__ASSUME_AT_CLKTCK): Remove.
21232         (__ASSUME_AT_PAGESIZE): Likewise.
21233         (__ASSUME_AT_XID): Likewise.
21234         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
21235         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
21236         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
21237         unconditionally.
21238         (HAVE_AUX_PAGESIZE): Likewise.
21239         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
21240         [__ASSUME_AT_CLKTCK]: Make code unconditional.
21241         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
21242
21243 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
21244
21245         [BZ #14307]
21246         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
21247         the temporary buffer used to invoke __gethostbyname2_r,
21248         __gethostbyaddr_r and gethostbyname4_r to make room for struct
21249         host_data / struct gaih_addrtuple.
21250         * resolv/nss_dns/dns-host.c (global scope): Move definition of
21251         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
21252         header file nss/nsswitch.h.
21253         * nss/nsswitch.h (global scope): Add definition of implementation
21254         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
21255         resolv/nss_dns/dns-host.c).
21256
21257 2012-07-11  Andreas Jaeger  <aj@suse.de>
21258
21259         * po/fr.po: Update from translation team.
21260
21261         * po/sv.po: Update from translation team
21262         * po/fr.po: Another update from translation team.
21263
21264 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21265
21266         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
21267         for subnormals or multiply small sinh result by itself.
21268         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
21269         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21270
21271 2012-07-11  David S. Miller  <davem@davemloft.net>
21272
21273         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21274
21275 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
21276
21277         [BZ #14347]
21278         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
21279         (INTERNAL_MARK): Shift it here.
21280
21281 2012-07-10  Marek Polacek  <polacek@redhat.com>
21282
21283         [BZ #14151]
21284         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
21285         libc_cv_asm_global_directive with .globl.
21286         * configure: Regenerated.
21287         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
21288         with .globl.
21289         * sysdeps/i386/configure: Regenerated.
21290         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
21291         with .globl.
21292         * sysdeps/x86_64/configure: Regenerated.
21293         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
21294         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
21295         * elf/tst-unique2mod2.c: Likewise.
21296         * elf/tst-unique2mod1.c: Likewise.
21297         * elf/tst-unique1mod2.c: Likewise.
21298         * elf/tst-unique1mod1.c: Likewise.
21299         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21300         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
21301         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21302         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
21303         * sysdeps/mach/sysdep.h: Likewise.
21304         * sysdeps/i386/sysdep.h: Likewise.
21305         * sysdeps/i386/i386-mcount.S: Likewise.
21306         * sysdeps/x86_64/_mcount.S: Likewise.
21307         * sysdeps/x86_64/sysdep.h: Likewise.
21308         * sysdeps/sh/_mcount.S: Likewise.
21309         * sysdeps/sh/sysdep.h: Likewise.
21310         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
21311         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
21312         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
21313         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21314         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
21315         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
21316         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
21317         * locale/localeinfo.h: Likewise.
21318         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
21319         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
21320
21321 2012-07-09  Roland McGrath  <roland@hack.frob.com>
21322
21323         [BZ #14336]
21324         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
21325         system".
21326         * manual/message.texi (The Uniforum approach): Likewise.
21327         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
21328         (glibc iconv Implementation): Likewise.
21329
21330 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
21331
21332         [BZ #14337]
21333         * math/s_clog.c (__clog): Avoid scaling a value down where that
21334         could result in underflow.
21335         * math/s_clog10.c (__clog10): Likewise.
21336         * math/s_clog10f.c (__clog10f): Likewise.
21337         * math/s_clog10l.c (__clog10l): Likewise.
21338         * math/s_clogf.c (__clogf): Likewise.
21339         * math/s_clogl.c (__clogl): Likewise.
21340         * math/libm-test.inc (clog_test): Add more tests.
21341         (clog10_test): Likewise.
21342         * sysdeps/i386/fpu/libm-test-ulps: Update.
21343         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21344
21345 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
21346
21347         [BZ #14283]
21348         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
21349         by 7 not 8 to examine high bit of fractional part.
21350
21351         [BZ #14042]
21352         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
21353         for call to __mcount_internal.
21354         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
21355         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
21356         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
21357
21358 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
21359
21360         [BZ #14154]
21361         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
21362         approximation for values within 0x1p-13f of an odd multiple of
21363         pi/4.
21364         * math/libm-test.inc (tan_test): Do not allow spurious underflow
21365         exception.  Add more tests.
21366         * sysdeps/i386/fpu/libm-test-ulps: Update.
21367
21368         [BZ #6778]
21369         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
21370         inputs and return -1 for them.  Do not check for +Inf in case not
21371         reachable for +Inf.
21372         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
21373         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
21374         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21375         and return -1 for them.  Do not check for +Inf in case not
21376         reachable for +Inf.
21377         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
21378         define.
21379         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21380         and return -1 for them.  Do not check for +Inf in case not
21381         reachable for +Inf.
21382         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
21383         spurious underflow.
21384         * sysdeps/i386/fpu/libm-test-ulps: Update.
21385         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21386
21387 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
21388
21389         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
21390
21391 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
21392
21393         [BZ #14157]
21394         [BZ #14331]
21395         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
21396         could result in spurious underflow.  Scale down values above
21397         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
21398         * math/s_csqrtf.c (__csqrtf): Likewise.
21399         * math/s_csqrtl.c (__csqrtl): Likewise.
21400         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
21401         spurious underflow.
21402         * sysdeps/i386/fpu/libm-test-ulps: Update.
21403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21404
21405 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
21406
21407         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
21408         xopen-msg.sed.
21409         * catgets/xopen-msg.awk: New file.
21410         * catgets/xopen-msg.sed: Removed.
21411
21412         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
21413         po2text.sed.
21414         * intl/po2test.awk: New file.
21415         * intl/po2test.sed: Removed.
21416
21417 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
21418
21419         [BZ #14328]
21420         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
21421         or multiply small sinh result by itself.
21422         * math/s_ctanf.c (__ctanf): Likewise.
21423         * math/s_ctanh.c (__ctanh): Likewise.
21424         * math/s_ctanhf.c (__ctanhf): Likewise.
21425         * math/s_ctanhl.c (__ctanhl): Likewise.
21426         * math/s_ctanl.c (__ctanl): Likewise.
21427         * math/libm-test.inc (ctan_test_tonearest): New function.
21428         (ctan_test_towardzero): Likewise.
21429         (ctan_test_downward): Likewise.
21430         (ctan_test_upward): Likewise.
21431         (ctanh_test_tonearest): Likewise.
21432         (ctanh_test_towardzero): Likewise.
21433         (ctanh_test_downward): Likewise.
21434         (ctanh_test_upward): Likewise.
21435         (main): Call these new functions.
21436         * sysdeps/i386/fpu/libm-test-ulps: Update.
21437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21438
21439 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
21440
21441         * .gitignore: Delete /ports entry.
21442
21443 2012-07-03  Andreas Jaeger  <aj@suse.de>
21444
21445         * po/bg.po: Update from translation team.
21446         * po/cs.po: Likewise.
21447         * po/de.po: Likewise.
21448         * po/hr.po: Likewise.
21449         * po/nl.pl: Likewise.
21450         * po/pl.po: Likewise.
21451         * po/vi.po: Likewise.
21452
21453 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
21454
21455         * Makeconfig [!+link] (+link-before-libc): New variable.
21456         [!+link] (+link-after-libc): Likewise.
21457         [!+link] (+link-tests): Likewise.
21458         [!+link] (+link): Define in terms of $(+link-before-libc) and
21459         $(+link-after-libc).
21460         [!+link-static] (+link-static-before-libc): New variable.
21461         [!+link-static] (+link-static-after-libc): Likewise.
21462         [!+link-static] (+link-static-tests): Likewise.
21463         [!+link-static] (+link-static): Define in terms of
21464         $(+link-static-before-libc) and $(+link-static-after-libc).
21465         [build-shared] (link-libc-before-gnulib): New variable.
21466         [build-shared] (link-libc-tests): Likewise.
21467         [build-shared] (link-libc): Define in terms of
21468         $(link-libc-before-gnulib).
21469         [!build-shared] (link-libc-tests): New variable.
21470         (link-libc-static-tests): New variable.
21471         [!gnulib] (gnulib-arch): New variable.
21472         [!gnulib] (gnulib-tests): Likewise.
21473         [!gnulib] (static-gnulib-arch): Likewise.
21474         [!gnulib] (static-gnulib-tests): Likewise.
21475         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
21476         Define with "=" instead of ":=".
21477         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
21478         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
21479         * Rules (binaries-all-notests): New variable.
21480         (binaries-all-tests): Likewise.
21481         (binaries-static-notests): Likewise.
21482         (binaries-static-tests): Likewise.
21483         (binaries-all): Define using $(binaries-all-notests) and
21484         $(binaries-all-tests).
21485         (binaries-static): Define using $(binaries-static-notests) and
21486         $(binaries-static-tests).
21487         (binaries-shared-tests): New variable.
21488         (binaries-shared-notests): Likewise.
21489         (binaries-shared): Remove variable.
21490         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
21491         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
21492         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
21493         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
21494         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
21495         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
21496         * elf/Makefile (sln-modules): New variable.
21497         (extra-objs): Add $(sln-modules:=.o).
21498         (ldconfig-modules): Add static-stubs.
21499         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
21500         * elf/static-stubs.c: New file.
21501
21502         [BZ #14283]
21503         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
21504         by 7 not 8 to examine high bit of fractional part.  Use volatile
21505         variables when splitting into final array of floats if
21506         __FLT_EVAL_METHOD__ != 0.
21507         * math/libm-test.inc (cos_test): Add another test.
21508         (sin_test): Likewise.
21509         * sysdeps/i386/fpu/libm-test-ulps: Update.
21510
21511         [BZ #14273]
21512         * math/libm-test.inc (cosh_test): Add more tests.
21513
21514         * version.h (RELEASE): Set to "development".
21515         (VERSION): Set to "2.16.90".
21516
21517 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
21518
21519         * NEWS: Update copyright. Remove last-updated date.
21520         Mention math library bug fixes and timezone data changes.
21521         * README: Mention GNU/Hurd, x32, and HPPA support status.
21522
21523 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
21524
21525         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
21526
21527 2012-06-27  Andreas Jaeger  <aj@suse.de>
21528
21529         * manual/contrib.texi (Contributors): Add Samuel Thibault.
21530
21531 2012-06-25  Andreas Jaeger  <aj@suse.de>
21532
21533         * sysdeps/s390/fpu/libm-test-ulps: Update.
21534
21535 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
21536             Thomas Schwinge  <thomas@codesourcery.com>
21537
21538         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
21539         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
21540         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
21541         fanotify_mark.
21542
21543 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
21544
21545         * sysdeps/mach/start.c: Remove file.
21546         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
21547         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
21548         * sysdeps/sh/init-first.c: Likewise.
21549
21550         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
21551         registers for frame unwinding purposes, add CFI directives.
21552         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
21553         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
21554         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
21555         Likewise.
21556
21557         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
21558         __fortify_fail returning.
21559         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
21560
21561         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
21562         sysdeps/sh/____longjmp_chk.S.
21563         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
21564         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
21565         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
21566         (gen-as-const-headers): Append sigaltstack-offsets.sym.
21567
21568         * sysdeps/sh/abort-instr.h: New file.
21569         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
21570         process in case exit returns.
21571
21572         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
21573         initialize the GOT register before use.
21574
21575         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
21576         calculation of ARGC > 4.
21577
21578         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
21579         meaningful names to some local labels.
21580
21581 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21582             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21583
21584         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
21585         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
21586         (__arch_compare_and_exchange_val_16_acq): Likewise.
21587         (__arch_compare_and_exchange_val_32_acq): Likewise.
21588         (atomic_exchange_and_add): Fix gUSA sequence.
21589         (atomic_add): Likewise.
21590         (atomic_add_negative): Likewise.
21591         (atomic_add_zero): Likewise.
21592         (atomic_bit_test_set): Likewise.
21593
21594 2012-06-22  Andreas Schwab  <schwab@redhat.com>
21595
21596         [BZ #13579]
21597         * include/link.h (struct link_map): Add l_free_initfini.
21598         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
21599         l_initfini.
21600         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
21601         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
21602         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
21603         set.
21604
21605 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
21606
21607         * configure.in: Use AC_LANG_SOURCE.
21608         * configure: Regenerate.
21609
21610 2012-06-22  Roland McGrath  <roland@hack.frob.com>
21611
21612         * configure.in (libc_cv_localstatedir): New substituted variable.
21613         * configure: Regenerated.
21614         * config.make.in (localstatedir): New variable, substituted from
21615         libc_cv_localstatedir.
21616         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
21617         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
21618         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
21619         * sysdeps/gnu/configure: Regenerated.
21620
21621 2012-06-21  Jeff Law  <law@redhat.com>
21622
21623         [BZ #14277]
21624         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
21625         free.  Simplify list management for _LIBC case.
21626
21627 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
21628
21629         [BZ #14273]
21630         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
21631         Clear sign bit of 64-bit integer value before comparing against
21632         overflow value.
21633
21634         * sysdeps/mach/configure: Regenerated.
21635
21636 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
21637
21638         [BZ #14278]
21639         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
21640
21641 2012-06-21  Jeff Law  <law@redhat.com>
21642
21643         [BZ #13882]
21644         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
21645         uint16_t for elements in the "seen" array to avoid char overflows.
21646         * elf/dl-fini.c (_dl_sort_fini): Likewise.
21647         * elf/dl-open.c (dl_open_worker): Likewise.
21648
21649 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
21650
21651         * scripts/list-sources.sh: Scan PORTS for translations.
21652         * po/libc.pot: Regenerated.
21653
21654 2012-06-21  Andreas Jaeger  <aj@suse.de>
21655
21656         [BZ #12194]
21657         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
21658         warning.
21659         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
21660         * bits/byteswap-16.h (__bswap_16): Likewise.
21661         * bits/byteswap.h (__bswap_constant_16): Likewise.
21662
21663 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
21664
21665         [BZ #14117]
21666         * sysdeps/i386/fpu_control.h: Removed.
21667         * sysdeps/x86_64/fpu_control.h: Moved to ...
21668         * sysdeps/x86/fpu_control.h: Here.
21669
21670         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
21671         (_FPU_SETCW): Likewise.
21672
21673 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
21674
21675         [BZ #14117]
21676         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
21677         * sysdeps/x86/fpu/bits/mathinline.h: This.
21678         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
21679
21680         [BZ #14050]
21681         [BZ #14117]
21682         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
21683         functions if __x86_64__ is defined.
21684
21685 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
21686
21687         * string/endian.h: Add !__ASSEMBLER__ condition for including
21688         conversion interfaces.
21689
21690 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
21691
21692         [BZ #14241]
21693         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
21694         of ABS(x) in calculating zero to negative powers other than odd
21695         integers.
21696         * math/libm-test.inc (pow_test): Add more tests.
21697
21698 2012-06-15  Andreas Jaeger  <aj@suse.de>
21699
21700         * manual/contrib.texi (Contributors): Update entry of Liubov
21701         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
21702         Machado Filho.
21703
21704 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
21705
21706         * string/string.h: Add __wur to GNU version of strerror_r.
21707
21708 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
21709
21710         [BZ #14229]
21711         * string/Makefile (tests): Add tst-strtok_r.
21712         * string/tst-strtok_r.c: New file.
21713         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
21714         RAX_LP/RDX_LP on SAVE_PTR.
21715
21716 2012-06-14  Roland McGrath  <roland@hack.frob.com>
21717
21718         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
21719
21720 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
21721
21722         * libm_test.inc (csqrt_test): Allow more spurious underflow
21723         exceptions.
21724         (j0_test): Likewise.
21725         (j1_test): Likewise.
21726         (y0_test): Likewise.
21727         (y1_test): Likewise.
21728
21729 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
21730
21731         * po/Makefile (libc.pot): Use UTF-8 charset.
21732
21733 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
21734
21735         [BZ #14210]
21736         Suppress sign-conversion warning from FD_SET.
21737         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
21738         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
21739         not unsigned long int.
21740         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
21741
21742 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
21743
21744         [BZ #14050]
21745         [BZ #14117]
21746         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
21747         __extern_always_inline instead of __extern_inline.
21748         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
21749         (__signbit): Likewise.
21750         (__signbitl): Support C++ namespace.
21751         (lrintf): New inline function.
21752         (lrint): Likewise.
21753         (llrintf): Likewise.
21754         (llrint): Likewise.
21755         (fmaxf): Likewise.
21756         (fmax): Likewise.
21757         (fminf): Likewise.
21758         (fmin): Likewise.
21759         (rint): Likewise.
21760         (rintf): Likewise.
21761         (ceil): Likewise.
21762         (ceilf): Likewise.
21763         (floor): Likewise.
21764         (floorf): Likewise.
21765         (nearbyint): Likewise.
21766         (nearbyintf): Likewise.
21767
21768 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
21769
21770         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
21771         non-default versions.
21772
21773 2012-06-11  Roland McGrath  <roland@hack.frob.com>
21774
21775         [BZ #14218]
21776         * manual/argp.texi (Argp): Reword argp_parse description slightly.
21777
21778 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
21779
21780         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
21781         (FE_UPWARD, FE_DOWNWARD): Don't define.
21782         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
21783         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21784
21785         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
21786         reading it.
21787         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
21788         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21789
21790 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21791
21792         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
21793         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
21794         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
21795         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
21796
21797 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
21798
21799         [BZ #14117]
21800         * sysdeps/i386/fpu/bits/fenv.h: Removed.
21801         * sysdeps/i386/fpu/Implies: New file.
21802         * sysdeps/x86_64/fpu/Implies: Likewise.
21803         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
21804         * sysdeps/x86/fpu/bits/fenv.h: This.
21805
21806         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
21807         __SSE_MATH__.
21808
21809 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
21810
21811         [BZ #14134]
21812         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
21813         character 0xffff that matches the last element of the
21814         conversion table.
21815
21816 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21817
21818         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
21819         fmodl commit.
21820
21821 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21822
21823         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
21824         values higher than 25.6283.
21825
21826 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21827
21828         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
21829         subnormal exponent extraction and add some __builtin_expect.
21830         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
21831         Fix for subnormal mantissa calculation.
21832
21833 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
21834
21835         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
21836         cpu2 is -1 and errno is not ENOSYS.
21837
21838 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
21839
21840         [BZ #14117]
21841         * sysdeps/i386/i486/bits/string.h: Renamed to ...
21842         * sysdeps/x86/bits/string.h: This.
21843         * sysdeps/x86_64/bits/string.h: Removed.
21844
21845         * sysdeps/i386/i486/bits/string.h: Define inline functions only
21846         if not compiling for x86-64, but compiling for >= i486.
21847
21848         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
21849         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
21850
21851         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
21852         New macro from Linux kernel 3.4.0.
21853         (FP_XSTATE_MAGIC2): Likewise.
21854         (FP_XSTATE_MAGIC2_SIZE): Likewise.
21855         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
21856         (struct _fpx_sw_bytes): New struct.
21857         (struct _xsave_hdr): Likewise.
21858         (struct _ymmh_state): Likewise.
21859         (struct _xstate): Likewise.
21860
21861         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
21862         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
21863         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
21864         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
21865         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
21866         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
21867
21868         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
21869         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
21870         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
21871         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
21872         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
21873         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
21874
21875 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21876
21877         [BZ #13743]
21878         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
21879         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
21880         (sysdep_headers): Include sys/platform/ppc.h.
21881         * sysdeps/powerpc/test-gettimebase.c: Test for
21882         __ppc_get_timebase() to catch future ISA opcode/insn changes.
21883         * manual/Makefile (appendices): Include platform.texi.
21884         * manual/contrib.texi (Contributors): Update @node pointers.
21885         * manual/maint.texi (Maintenance): Likewise.
21886         (Platform): New node.
21887         * manual/platform.texi: New file.  Document the new features.
21888
21889 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
21890             Jakub Jelinek  <jakub@redhat.com>
21891
21892         [BZ #14188]
21893         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
21894         where __builtin_expect is unavailable.
21895
21896 2012-06-03  David S. Miller  <davem@davemloft.net>
21897
21898         * stdlib/longlong.h: Updated from GCC.
21899
21900 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
21901
21902         [BZ #14042]
21903         * sysdeps/powerpc/powerpc32/mcount.c: New file.
21904         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
21905         __mcount_internal.
21906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
21907         (GLIBC_2.16): Likewise.
21908
21909 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
21910
21911         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
21912
21913 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
21914
21915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
21916         (default-abi): New variable.
21917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
21918         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
21919         variable.
21920         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
21921         Likewise.
21922         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
21923         Likewise.
21924         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
21925         Likewise.
21926
21927         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
21928         definition.  Document in comment.
21929
21930 2012-06-01  David S. Miller  <davem@davemloft.net>
21931
21932         * stdlib/longlong.h: Updated from GCC.
21933
21934 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
21935
21936         [BZ #14117]
21937         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
21938         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
21939         sys/debugreg.h sys/io.h here.
21940         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
21941         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
21942         sys/io.h.
21943         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
21944         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
21945         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
21946         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
21947         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
21948         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
21949
21950         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
21951         Define only if __x86_64__ is defined.
21952
21953 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
21954
21955         [BZ #14048]
21956         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
21957         Use int64_t for variable i.
21958         * math/libm-test.inc (fmod_test): Add more tests.
21959
21960         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
21961         z computation is not scheduled after fetestexcept.
21962         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
21963         Use math_force_eval instead of asm to ensure calculation scheduled
21964         before exception test.
21965         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
21966         Ensure a1 + u.d computation is not scheduled after fetestexcept.
21967
21968 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
21969
21970         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
21971         computation is not scheduled after fetestexcept.
21972
21973 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
21974
21975         [BZ #14117]
21976         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
21977         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
21978
21979 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21980
21981         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
21982         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
21983
21984 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
21985
21986         [BZ #14117]
21987         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
21988         <bits/wordsize.h>.
21989         (__WCHAR_MIN): Support __WORDSIZE == 64.
21990         (__WCHAR_MAX): Likewise.
21991
21992         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
21993         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
21994
21995         [BZ #14183]
21996         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
21997         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
21998
21999         [BZ #14117]
22000         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
22001         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
22002
22003         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
22004         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
22005
22006         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
22007         Defined to 1 if __x86_64__ isn't defined.
22008         (_STAT_VER_LINUX_OLD): New.
22009         (st_atime): Remove duplicate.
22010         (st_mtime): Likewise.
22011         (st_ctime): Likewise.
22012
22013 2012-05-31  David S. Miller  <davem@davemloft.net>
22014
22015         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
22016         entries.
22017
22018 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
22019
22020         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
22021         gen-libm-test.pl.
22022
22023         [BZ #14132]
22024         * elf/dl-reloc.c: Include <_itoa.h>.
22025         (_dl_reloc_bad_type): Remove use of INTUSE.
22026         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
22027         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
22028         * stdio-common/psiginfo.c (psiginfo): Likewise.
22029         * stdio-common/psignal.c (psignal): Likewise.
22030         * string/strsignal.c (strsignal): Likewise.
22031         * include/signal.h (_sys_siglist): Declare hidden proto.
22032         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
22033         INTVARDEF with libc_hidden_data_def.
22034         * stdio-common/itoa-udigits.c: Likewise.
22035         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
22036         (_itoa_lower_digits_internal): Remove declaration.
22037         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
22038         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
22039         (_sys_sigabbrev_internal): Remove aliases.
22040         (_sys_siglist): Define hidden alias.
22041
22042 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
22043
22044         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22045         bits/sysctl.h.
22046
22047 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22048
22049         [BZ #14117]
22050         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
22051         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
22052
22053         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
22054         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
22055         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
22056         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
22057         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
22058         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
22059
22060         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
22061         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
22062         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
22063
22064         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
22065         with __addr.
22066         (insw): Likewise.
22067         (insl): Likewise.
22068         (outsb): Likewise.
22069         (outsw): Likewise.
22070         (outsl): Likewise.
22071
22072         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
22073         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
22074         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
22075
22076         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
22077         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
22078         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
22079         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
22080         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
22081         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
22082
22083         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
22084         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
22085
22086         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
22087         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
22088
22089         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
22090         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
22091         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
22092
22093         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
22094         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
22095         to ...
22096         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
22097
22098         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
22099         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
22100         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
22101
22102         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
22103         for x86-64.
22104         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
22105
22106 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
22107
22108         * math/math.h (M_El): Use two more decimal places.
22109         (M_LOG2El): Likewise.
22110         (M_LOG10El): Likewise.
22111         (M_LN2l): Likewise.
22112         (M_LN10l): Likewise.
22113         (M_PIl): Likewise.
22114         (M_PI_2l): Likewise.
22115         (M_PI_4l): Likewise.
22116         (M_1_PIl): Likewise.
22117         (M_2_PIl): Likewise.
22118         (M_2_SQRTPIl): Likewise.
22119         (M_SQRT2l): Likewise.
22120         (M_SQRT1_2l): Likewise.
22121
22122 2012-05-31  David S. Miller  <davem@davemloft.net>
22123
22124         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
22125         values between float registers.
22126         * sysdeps/sparc/sparc64/memset.S: Likewise.
22127         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
22128
22129 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
22130
22131         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
22132         -D_FORTIFY_SOURCE=1.
22133         (CPPFLAGS-tst-longjmp_chk.c): Define.
22134         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
22135         (CPPFLAGS-tst-longjmp_chk2.c): Define.
22136         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
22137         CFLAGS-tst-wchar-h.c.
22138
22139 2012-05-31  Marek Polacek  <polacek@redhat.com>
22140
22141         [BZ #14132]
22142         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
22143         __endmntent_internal): Remove declaration.
22144         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
22145         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
22146         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
22147
22148 2012-05-30  David S. Miller  <davem@davemloft.net>
22149
22150         * sysdeps/sparc/sparc32/soft-fp/q_util.c
22151         (___Q_simulate_exceptions): Use real FP ops rather than writing
22152         into the %fsr.
22153         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
22154         Likewise.
22155
22156 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22157
22158         [BZ #14117]
22159         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
22160         * sysdeps/x86/bits/xtitypes.h: This.
22161
22162         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
22163         * sysdeps/x86/bits/wordsize.h: This.
22164
22165         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
22166         * sysdeps/x86/bits/huge_vall.h: This.
22167
22168         * sysdeps/i386/bits/select.h: Removed.
22169         * sysdeps/x86_64/bits/select.h: Renamed to ...
22170         * sysdeps/x86/bits/select.h: This.
22171
22172         * sysdeps/i386/bits/setjmp.h: Removed.
22173         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
22174         * sysdeps/x86/bits/setjmp.h: This.
22175
22176         * sysdeps/i386/bits/mathdef.h: Removed.
22177         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
22178         * sysdeps/x86/bits/mathdef.h: This.
22179
22180 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
22181
22182         [BZ #14132]
22183         * include/sys/socket.h (__connect_internal)
22184         (__libc_sa_len_internal): Remove declaration.
22185         (__connect, __libc_sa_len): Declare hidden_proto.
22186         (SA_LEN): Remove use of INTUSE.
22187         * socket/connect.c: Add libc_hidden_def.
22188         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
22189         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
22190         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
22191         alias.
22192         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
22193         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
22194         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
22195         of adding _internal alias.
22196
22197 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22198
22199         [BZ #14117]
22200         * sysdeps/i386/bits/link.h: Removed.
22201         * sysdeps/i386/bits/linkmap.h: Likewise.
22202         * sysdeps/x86_64/bits/link.h: Renamed to ...
22203         * sysdeps/x86/bits/link.h: This.
22204         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
22205         * sysdeps/x86/bits/linkmap.h: This.
22206
22207         * sysdeps/i386/bits/endian.h: Removed.
22208         * sysdeps/x86_64/bits/endian.h: Renamed to ...
22209         * sysdeps/x86/bits/endian.h: This.
22210
22211         * sysdeps/i386/bits/byteswap.h: Removed.
22212         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22213         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
22214         * sysdeps/x86/bits/byteswap.h: This.
22215         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
22216         * sysdeps/x86/bits/byteswap-16.h: This.
22217         * sysdeps/i386/Implies: Add x86.
22218         * sysdeps/x86_64/Implies: Likewise.
22219
22220 2012-05-30  David S. Miller  <davem@davemloft.net>
22221
22222         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
22223         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
22224         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
22225         (FP_TRAPPING_EXCEPTIONS): Define.
22226         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
22227         (FP_TRAPPING_EXCEPTIONS): Define.
22228         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
22229         subnormals only when inexact has been signalled or underflow
22230         exceptions are enabled.
22231         (_FP_PACK_CANONICAL): Likewise.
22232
22233 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22234
22235         [BZ #14183]
22236         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
22237         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
22238
22239 2012-05-30  Richard Henderson  <rth@twiddle.net>
22240
22241         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
22242         with #ifndef NOT_IN_libc.
22243
22244         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
22245         marked to avoid plt entry.
22246
22247 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22248
22249         [BZ #14112]
22250         * Makeconfig (default-abi): New macro.
22251         (abi-includes): Likewise.
22252         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
22253         $(abi-$(default-abi)-lib-soname) for soname if defined.
22254         ($(common-objpfx)gnu/lib-names.stmp): Generate from
22255         abi-variants.
22256         * Makefile (installed-stubs): Likewise.
22257         * include/stubs-biarch.h: Removed.
22258         * scripts/lib-names.awk: Only handle one library at a time.
22259         * scripts/soversions.awk: Remove WORDSIZE support.
22260         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
22261         entries.
22262         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
22263         Removed.
22264         (syscall-list-default-condition): Likewise.
22265         (syscall-list-default-condition): Likewise.
22266         (syscall-list-includes): Likewise.
22267         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
22268         syscall-list-* with abi-*.  Handle undefined abi-variants.
22269         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
22270         * sysdeps/unix/sysv/linux/i386/Implies: New file.
22271         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
22272         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
22273         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
22274         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
22275         Removed.
22276         (syscall-list-32-options): Likewise.
22277         (syscall-list-32-condition): Likewise.
22278         (syscall-list-64-options): Likewise.
22279         (syscall-list-64-condition): Likewise.
22280         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
22281         macro.
22282         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
22283         Renamed to ...
22284         (abi-*): This.
22285         (abi-64-ld-soname): New macro.
22286         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
22287         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
22288         Renamed to ...
22289         (abi-*): This.
22290         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
22291         * sysdeps/x86_64/x32/shlib-versions: Likewise.
22292
22293 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
22294
22295         * sysdeps/unix/sysv/linux/kernel-features.h
22296         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
22297         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
22298         include <kernel-features.h>.
22299         [!__NR_ftruncate64]: Remove conditional code.
22300         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22301         [__NR_ftruncate64]: Make code unconditional.
22302         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22303         * sysdeps/unix/sysv/linux/truncate64.c: Do not
22304         include <kernel-features.h>.
22305         [!__NR_ftruncate64]: Remove conditional code.
22306         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22307         [__NR_ftruncate64]: Make code unconditional.
22308         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
22310         include <kernel-features.h>.
22311         [!__NR_ftruncate64]: Remove conditional code.
22312         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22313         [__NR_ftruncate64]: Make code unconditional.
22314         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22316         include <kernel-features.h>.
22317         [!__NR_ftruncate64]: Remove conditional code.
22318         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22319         [__NR_ftruncate64]: Make code unconditional.
22320         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22321
22322         * configure.in (libc_cv_fpie): Weaken to a compile test using
22323         LIBC_TRY_CC_OPTION.
22324         * configure: Regenerated.
22325
22326 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22327
22328         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
22329         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
22330         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
22331         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22332         Refreshed.
22333         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
22334         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
22335         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
22336         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
22337         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
22338         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22339         Refreshed.
22340
22341 2012-05-27  David S. Miller  <davem@davemloft.net>
22342
22343         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
22344         (___Q_zero): New.
22345         (__Q_simulate_exceptions): Return void.  Change to simulate
22346         exceptions by writing into the %fsr.
22347         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
22348         (__Qp_handle_exceptions): Likewise.
22349         (numbers): Delete.
22350         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
22351         __Qp_handle_exceptions.
22352         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
22353         __Qp_handle_exceptions.
22354         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22355         as unused and give dummy FP_RND_NEAREST initializer.
22356         (FP_INHIBIT_RESULTS): Define.
22357         (___Q_simulate_exceptions): Update declaration.
22358         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
22359         formatting.
22360         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22361         as unused and give dummy FP_RND_NEAREST initializer.
22362         (__Qp_handle_exceptions): Update declaration.
22363         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
22364         formatting.
22365
22366 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
22367
22368         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
22369         the temporary FPU control word.
22370         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
22371         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
22372         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22373         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22374         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22375         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22376         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22377         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22378         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22379         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
22380         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22381
22382 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22383
22384         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
22385         fields.
22386
22387 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
22388
22389         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
22390         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
22391         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
22392         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
22393         Likewise.
22394         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
22395         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
22396         Likewise.
22397
22398 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
22399
22400         * po/h.po: Update from translation team.
22401
22402 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
22403
22404         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
22405
22406         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
22407         handling of denormals.
22408         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
22409         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
22410         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
22411         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
22412         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
22413         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
22414         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
22415         Likewise.
22416
22417 2012-05-26  Marek Polacek  <polacek@redhat.com>
22418
22419         [BZ #14152]
22420         * math/libm-test.inc (fma_test): Don't always expect underflow
22421         exception.
22422
22423 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22424
22425         [BZ #12416]
22426         * elf/tst-execstack.c: Include stackinfo.h.
22427         (do_test): Adjust test case to ensure that pthread_getattr_np
22428         behaviour remains the same after marking stack executable.
22429
22430 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
22431
22432         * sysdeps/unix/sysv/linux/kernel-features.h
22433         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
22434         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
22435         kernel-features.h.
22436         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
22437         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
22438         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
22439         kernel-features.h.
22440         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
22441         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
22442
22443 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
22444
22445         * configure.in: Define the default includes to being none.
22446         * configure: Regenerated.
22447
22448 2012-05-25  Roland McGrath  <roland@hack.frob.com>
22449
22450         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
22451         * sysdeps/x86_64/setjmp.S: Likewise.
22452         * sysdeps/i386/bsd-setjmp.S: Likewise.
22453         * sysdeps/i386/bsd-_setjmp.S: Likewise.
22454         * sysdeps/i386/setjmp.S: Likewise.
22455         * sysdeps/i386/__longjmp.S: Likewise.
22456         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
22457         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
22458
22459         * include/stap-probe.h: New file.
22460         * configure.in: Handle --enable-systemtap.
22461         * configure: Regenerated.
22462         * config.h.in (USE_STAP_PROBE): New #undef.
22463         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
22464         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
22465         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
22466
22467 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
22468
22469         [BZ #13717]
22470         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
22471         to 2.4.0 where earlier.
22472         * sysdeps/unix/sysv/linux/configure: Regenerated.
22473         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22474         <kernel-features.h>.
22475         [__ASSUME_32BITUIDS]: Make code unconditional.
22476         [!__ASSUME_32BITUIDS]: Remove conditional code.
22477         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
22478         <kernel-features.h>.
22479         [__ASSUME_32BITUIDS]: Make code unconditional.
22480         [!__ASSUME_32BITUIDS]: Remove conditional code.
22481         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
22482         [__ASSUME_32BITUIDS]: Make code unconditional.
22483         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
22484         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
22485         <kernel-features.h>.
22486         [__ASSUME_32BITUIDS]: Make code unconditional.
22487         [!__ASSUME_32BITUIDS]: Remove conditional code.
22488         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
22489         <kernel-features.h>.
22490         [__ASSUME_32BITUIDS]: Make code unconditional.
22491         [!__ASSUME_32BITUIDS]: Remove conditional code.
22492         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
22493         <kernel-features.h>.
22494         [__ASSUME_32BITUIDS]: Make code unconditional.
22495         [!__ASSUME_32BITUIDS]: Remove conditional code.
22496         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
22497         <kernel-features.h>.
22498         [__ASSUME_32BITUIDS]: Make code unconditional.
22499         [!__ASSUME_32BITUIDS]: Remove conditional code.
22500         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22501         <kernel-features.h>.
22502         [__ASSUME_32BITUIDS]: Make code unconditional.
22503         [!__ASSUME_32BITUIDS]: Remove conditional code.
22504         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22505         <kernel-features.h>.
22506         [__ASSUME_32BITUIDS]: Make code unconditional.
22507         [!__ASSUME_32BITUIDS]: Remove conditional code.
22508         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
22509         <kernel-features.h>.
22510         [__ASSUME_32BITUIDS]: Make code unconditional.
22511         [!__ASSUME_32BITUIDS]: Remove conditional code.
22512         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22513         <kernel-features.h>.
22514         [__ASSUME_32BITUIDS]: Make code unconditional.
22515         [!__ASSUME_32BITUIDS]: Remove conditional code.
22516         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22517         <kernel-features.h>.
22518         [__ASSUME_32BITUIDS]: Make code unconditional.
22519         [!__ASSUME_32BITUIDS]: Remove conditional code.
22520         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
22521         <kernel-features.h>.
22522         [__ASSUME_32BITUIDS]: Make code unconditional.
22523         [!__ASSUME_32BITUIDS]: Remove conditional code.
22524         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
22525         <kernel-features.h>.
22526         [__NR_setresgid] (__setresgid): Do not declare.
22527         [__ASSUME_32BITUIDS]: Make code unconditional.
22528         [!__ASSUME_32BITUIDS]: Remove conditional code.
22529         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
22530         <kernel-features.h>.
22531         [__NR_setresuid] (__setresuid): Do not declare.
22532         [__ASSUME_32BITUIDS]: Make code unconditional.
22533         [!__ASSUME_32BITUIDS]: Remove conditional code.
22534         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
22535         <kernel-features.h>.
22536         [__ASSUME_32BITUIDS]: Make code unconditional.
22537         [!__ASSUME_32BITUIDS]: Remove conditional code.
22538         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
22539         <kernel-features.h>.
22540         [__ASSUME_32BITUIDS]: Make code unconditional.
22541         [!__ASSUME_32BITUIDS]: Remove conditional code.
22542         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
22543         <kernel-features.h>.
22544         [__ASSUME_32BITUIDS]: Make code unconditional.
22545         [!__ASSUME_32BITUIDS]: Remove conditional code.
22546         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
22547         <kernel-features.h>.
22548         [__ASSUME_32BITUIDS]: Make code unconditional.
22549         [!__ASSUME_32BITUIDS]: Remove conditional code.
22550         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
22551         <kernel-features.h>.
22552         [__ASSUME_32BITUIDS]: Make code unconditional.
22553         [!__ASSUME_32BITUIDS]: Remove conditional code.
22554         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
22555         <kernel-features.h>.
22556         [__ASSUME_32BITUIDS]: Make code unconditional.
22557         [!__ASSUME_32BITUIDS]: Remove conditional code.
22558         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
22559         <kernel-features.h>.
22560         [__ASSUME_32BITUIDS]: Make code unconditional.
22561         [!__ASSUME_32BITUIDS]: Remove conditional code.
22562         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
22563         <kernel-features.h>.
22564         [__ASSUME_32BITUIDS]: Make code unconditional.
22565         [!__ASSUME_32BITUIDS]: Remove conditional code.
22566         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
22567         <kernel-features.h>.
22568         [__ASSUME_32BITUIDS]: Make code unconditional.
22569         [!__ASSUME_32BITUIDS]: Remove conditional code.
22570         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
22571         <kernel-features.h>.
22572         [__ASSUME_32BITUIDS]: Make code unconditional.
22573         [!__ASSUME_32BITUIDS]: Remove conditional code.
22574         * sysdeps/unix/sysv/linux/kernel-features.h
22575         (__ASSUME_SETRESUID_SYSCALL): Remove.
22576         (__ASSUME_SETRESGID_SYSCALL): Likewise.
22577         (__ASSUME_32BITUIDS): Likewise.
22578         (__ASSUME_LDT_WORKS): Likewise.
22579         (__ASSUME_O_DIRECTORY): Likewise.
22580         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
22581         architecture but not kernel version.
22582         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
22583         (__ASSUME_MMAP2_SYSCALL): Likewise.
22584         (__ASSUME_STAT64_SYSCALL): Likewise.
22585         (__ASSUME_IPC64): Likewise.
22586         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
22587         <kernel-features.h>.
22588         [__ASSUME_32BITUIDS]: Make code unconditional.
22589         [!__ASSUME_32BITUIDS]: Remove conditional code.
22590         * sysdeps/unix/sysv/linux/opendir.c: Do not include
22591         <kernel-features.h>.
22592         [__ASSUME_O_DIRECTORY]: Make code unconditional.
22593         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
22594         132096]: Remove conditional code.
22595         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
22596         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
22597         <kernel-features.h>.
22598         [__ASSUME_32BITUIDS]: Make code unconditional.
22599         [!__ASSUME_32BITUIDS]: Remove conditional code.
22600         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
22601         <kernel-features.h>.
22602         [__ASSUME_32BITUIDS]: Make code unconditional.
22603         [!__ASSUME_32BITUIDS]: Remove conditional code.
22604         * sysdeps/unix/sysv/linux/setegid.c: Do not include
22605         <kernel-features.h>.
22606         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
22607         unconditional.
22608         (__setresgid): Do not declare.
22609         [__ASSUME_32BITUIDS]: Make code unconditional.
22610         [!__ASSUME_32BITUIDS]: Remove conditional code.
22611         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
22612         <kernel-features.h>.
22613         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
22614         unconditional.
22615         (__setresuid): Do not declare.
22616         [__ASSUME_32BITUIDS]: Make code unconditional.
22617         [!__ASSUME_32BITUIDS]: Remove conditional code.
22618         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22619         <kernel-features.h>.
22620         [__ASSUME_32BITUIDS]: Make code unconditional.
22621         [!__ASSUME_32BITUIDS]: Remove conditional code.
22622         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
22623         <kernel-features.h>.
22624         [__ASSUME_32BITUIDS]: Make code unconditional.
22625         [!__ASSUME_32BITUIDS]: Remove conditional code.
22626
22627 2012-05-25  Richard Henderson  <rth@twiddle.net>
22628
22629         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
22630         dl_hwcap to ifunc resolver.
22631         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
22632         elf_ifunc_invoke.
22633         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
22634         dl_hwcap to ifunc resolver.
22635         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
22636
22637 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22638
22639         [BZ #14153]
22640         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
22641         for |x| <= 2**-26, not 2**-57.
22642         * math/libm-test.inc (acos_test): Do not allow spurious underflow
22643         exception.
22644
22645 2012-05-24  Jeff Law  <law@redhat.com>
22646
22647         * stdio-common/Makefile (tests): Add bug25.
22648         * stdio-common/bug25.c: New test.
22649
22650 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
22651
22652         [BZ #13576]
22653         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
22654         multiple of MALLOC_ALIGNMENT in size.
22655         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
22656
22657 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22658
22659         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
22660         Require >= 256.
22661         (FILENAME_MAX): Use macro-int-constant.
22662         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
22663         (_IOFBF): Use macro-int-constant.
22664         (_IOLBF): Likewise.
22665         (_IONBF): Likewise.
22666         (SEEK_CUR): Likewise.
22667         (SEEK_END): Likewise.
22668         (SEEK_SET): Likewise.
22669         (TMP_MAX): Likewise.
22670         (EOF): Use macro-int-constant.  Require < 0.
22671         (NULL): Use macro-constant.  Require == 0.
22672         (stdin): Require type to be FILE *.
22673         (stdout): Likewise.
22674         (stderr): Likewise.
22675         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
22676         macro-int-constant.
22677         (EXIT_SUCCESS): Likewise.
22678         (NULL): Use macro-constant.  Require == 0.
22679         (RAND_MAX): Use macro-int-constant.
22680         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
22681         [C99-based standards] (strtof): Require function.
22682         [C99-based standards] (strtold): Likewise.
22683         [C99-based standards] (strtoll): Likewise.
22684         [C99-based standards] (strtoull): Likewise.
22685         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
22686         [ISO || ISO99 || ISO11] (limits.h): Likewise.
22687         [ISO || ISO99 || ISO11] (math.h): Likewise.
22688         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
22689         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
22690         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22691
22692 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
22693
22694         [BZ #14132]
22695         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
22696         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
22697         * intl/dgettext.c (DCGETTEXT): Likewise.
22698         * intl/gettext.c (DCGETTEXT): Likewise.
22699         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
22700         * posix/regex_internal.h (gettext): Likewise.
22701         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
22702         Remove declaration.
22703         * include/argz.h (__argz_count_internal)
22704         (__argz_stringify_internal): Remove declaration.
22705         (__argz_count, __argz_stringify): Declare hidden proto.
22706         * intl/dcgettext.c: Remove use of INTDEF.
22707         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
22708         * string/argz-stringify.c: Likewise.
22709         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
22710         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
22711         Declare hidden proto.
22712         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
22713         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
22714         Declare hidden proto.
22715         * include/stdio.h (__asprintf_internal): Don't declare.
22716         (__asprintf): Don't define as macro.  Declare hidden proto.
22717         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
22718         (__fsetlocking): Declare hidden proto.
22719         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
22720         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
22721         hidden proto.
22722         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
22723         (_IO_setlinebuf): Remove use of INTUSE.
22724         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
22725         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
22726         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
22727         Remove declaration.
22728         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
22729         (_IO_do_flush): Remove use of INTUSE.
22730         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
22731         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
22732         (_IO_adjust_column, _IO_least_wmarker)
22733         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
22734         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
22735         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
22736         (_IO_default_doallocate, _IO_wdefault_doallocate)
22737         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
22738         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
22739         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
22740         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
22741         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
22742         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
22743         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
22744         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
22745         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
22746         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
22747         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
22748         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
22749         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
22750         proto.
22751         (_IO_flush_all_internal, _IO_adjust_column_internal)
22752         (_IO_default_uflow_internal, _IO_default_finish_internal)
22753         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
22754         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
22755         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
22756         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
22757         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
22758         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
22759         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
22760         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
22761         (_IO_file_close_internal, _IO_file_close_it_internal)
22762         (_IO_file_underflow_internal, _IO_file_overflow_internal)
22763         (_IO_file_init_internal, _IO_file_attach_internal)
22764         (_IO_file_fopen_internal, _IO_file_read_internal)
22765         (_IO_file_sync_internal, _IO_file_seek_internal)
22766         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
22767         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
22768         (_IO_str_underflow_internal, _IO_str_overflow_internal)
22769         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
22770         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
22771         (_IO_list_all_internal, _IO_link_in_internal)
22772         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
22773         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
22774         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
22775         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
22776         (_IO_do_write_internal, _IO_padn_internal)
22777         (_IO_getline_info_internal, _IO_getline_internal)
22778         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
22779         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
22780         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
22781         (_IO_vfscanf_internal, _IO_vfprintf_internal)
22782         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
22783         (_IO_init_internal, _IO_un_link_internal): Don't declare.
22784         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
22785         with libc_hidden_ver, remove use of INTUSE.
22786         * libio/genops.c: Likewise.
22787         * libio/freopen.c: Likewise.
22788         * libio/freopen64.c: Likewise.
22789         * libio/iofclose.c: Likewise.
22790         * libio/iofdopen.c: Likewise.
22791         * libio/iofflush.c: Likewise.
22792         * libio/iofflush_u.c: Likewise.
22793         * libio/iofgets.c: Likewise.
22794         * libio/iofgets_u.c: Likewise.
22795         * libio/iofopen.c: Likewise.
22796         * libio/iofopncook.c: Likewise.
22797         * libio/iofread.c: Likewise.
22798         * libio/iofread_u.c: Likewise.
22799         * libio/ioftell.c: Likewise.
22800         * libio/iofwrite.c: Likewise.
22801         * libio/iogetline.c: Likewise.
22802         * libio/iogets.c: Likewise.
22803         * libio/iogetwline.c: Likewise.
22804         * libio/iopadn.c: Likewise.
22805         * libio/iopopen.c: Likewise.
22806         * libio/ioseekoff.c: Likewise.
22807         * libio/ioseekpos.c: Likewise.
22808         * libio/iosetbuffer.c: Likewise.
22809         * libio/iosetvbuf.c: Likewise.
22810         * libio/ioungetc.c: Likewise.
22811         * libio/ioungetwc.c: Likewise.
22812         * libio/iovdprintf.c: Likewise.
22813         * libio/iovsprintf.c: Likewise.
22814         * libio/iovsscanf.c: Likewise.
22815         * libio/memstream.c: Likewise.
22816         * libio/obprintf.c: Likewise.
22817         * libio/oldfileops.c: Likewise.
22818         * libio/oldiofclose.c: Likewise.
22819         * libio/oldiofdopen.c: Likewise.
22820         * libio/oldiofopen.c: Likewise.
22821         * libio/oldiopopen.c: Likewise.
22822         * libio/oldstdfiles.c: Likewise.
22823         * libio/putc.c: Likewise.
22824         * libio/setbuf.c: Likewise.
22825         * libio/setlinebuf.c: Likewise.
22826         * libio/stdfiles.c: Likewise.
22827         * libio/strops.c: Likewise.
22828         * libio/vasprintf.c: Likewise.
22829         * libio/vscanf.c: Likewise.
22830         * libio/vsnprintf.c: Likewise.
22831         * libio/vswprintf.c: Likewise.
22832         * libio/wfiledoalloc.c: Likewise.
22833         * libio/wfileops.c: Likewise.
22834         * libio/wgenops.c: Likewise.
22835         * libio/wmemstream.c: Likewise.
22836         * libio/wstrops.c: Likewise.
22837         * libio/__fpurge.c: Likewise.
22838         * libio/__fsetlocking.c: Likewise.
22839         * assert/assert.c: Likewise.
22840         * debug/fgets_chk.c: Likewise.
22841         * debug/fgets_u_chk.c: Likewise.
22842         * debug/fread_chk.c: Likewise.
22843         * debug/fread_u_chk.c: Likewise.
22844         * debug/gets_chk.c: Likewise.
22845         * debug/obprintf_chk.c: Likewise.
22846         * debug/vasprintf_chk.c: Likewise.
22847         * debug/vdprintf_chk.c: Likewise.
22848         * debug/vsnprintf_chk.c: Likewise.
22849         * debug/vsprintf_chk.c: Likewise.
22850         * malloc/mtrace.c: Likewise.
22851         * misc/error.c: Likewise.
22852         * misc/syslog.c: Likewise.
22853         * stdio-common/asprintf.c: Likewise.
22854         * stdio-common/fxprintf.c: Likewise.
22855         * stdio-common/getw.c: Likewise.
22856         * stdio-common/isoc99_fscanf.c: Likewise.
22857         * stdio-common/isoc99_scanf.c: Likewise.
22858         * stdio-common/isoc99_vfscanf.c: Likewise.
22859         * stdio-common/isoc99_vscanf.c: Likewise.
22860         * stdio-common/isoc99_vsscanf.c: Likewise.
22861         * stdio-common/printf-prs.c: Likewise.
22862         * stdio-common/printf_fp.c: Likewise.
22863         * stdio-common/printf_fphex.c: Likewise.
22864         * stdio-common/printf_size.c: Likewise.
22865         * stdio-common/putw.c: Likewise.
22866         * stdio-common/scanf.c: Likewise.
22867         * stdio-common/sprintf.c: Likewise.
22868         * stdio-common/tmpfile.c: Likewise.
22869         * stdio-common/vfprintf.c: Likewise.
22870         * stdio-common/vfscanf.c: Likewise.
22871         * stdlib/strfmon_l.c: Likewise.
22872         * sunrpc/openchild.c: Likewise.
22873         * sunrpc/xdr_stdio.c: Likewise.
22874         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
22875         * sysdeps/mach/hurd/tmpfile.c: Likewise.
22876
22877 2012-05-24  Roland McGrath  <roland@hack.frob.com>
22878
22879         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
22880
22881         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
22882         in the third column, to generate for the shared library an IFUNC
22883         that uses _dl_vdso_vsym.
22884         * Makerules (COMPILE.c, compile-stdin.c): New variables.
22885         * Makeconfig (object-suffixes-noshared): New variable.
22886
22887         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
22888         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
22889         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
22890         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
22891
22892         [BZ #14132]
22893         * include/sys/time.h (__gettimeofday): Remove macro.
22894         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
22895         * time/gettimeofday.c (__gettimeofday): Remove #undef.
22896         Remove INTDEF.
22897         (__gettimeofday): Add libc_hidden_def.
22898         (gettimeofday): Add libc_hidden_weak.
22899         * sysdeps/mach/gettimeofday.c: Likewise.
22900         * sysdeps/posix/gettimeofday.c: Likewise.
22901         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
22902         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
22903         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
22904         (__gettimeofday_internal): Remove strong_alias.
22905         (__gettimeofday): Add libc_hidden_def.
22906         (gettimeofday): Add libc_hidden_weak.
22907         * sysdeps/unix/syscalls.list (gettimeofday):
22908         Remove __gettimeofday_internal alias.
22909
22910 2012-05-24  Daniel Jacobowitz  <drow@false.org>
22911             H.J. Lu  <hongjiu.lu@intel.com>
22912
22913         [BZ #12495]
22914         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
22915         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
22916         (largebin_index_32_big): New.
22917         (largebin_index): Use it for 16-byte alignment.
22918         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
22919         correction with front_misalign.
22920
22921 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
22922
22923         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
22924         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
22925         Likewise.
22926         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
22927         Likewise.
22928         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
22929         Likewise.
22930         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
22931         Likewise.
22932         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
22933         Likewise.
22934         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
22935         Likewise.
22936         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
22937         Likewise.
22938         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
22939         Likewise.
22940         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
22941         Likewise.
22942         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
22943         Likewise.
22944         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
22945         Likewise.
22946         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
22947         Likewise.
22948
22949         * scripts/data/c++-types-x32-linux-gnu.data: New file.
22950         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
22951
22952 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22953
22954         [BZ #10846]
22955         [BZ #14036]
22956         * math/libm-test.inc (exp_test): Add test from bug 14036.
22957         (pow_test): Add test from bug 10846.
22958
22959         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
22960         and other flags.
22961         (special_function): Do not include flags in test name.
22962         (parse_args): Likewise.
22963         * sysdeps/i386/fpu/libm-test-ulps: Update.
22964         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
22965         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
22966         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
22967         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22968
22969         * math/gen-libm-test.pl (%beautify): Add entries for underflow
22970         exceptions.
22971         * math/libm-test.inc ("Philosophy"): Update comment about
22972         exception testing.
22973         (UNDERFLOW_EXCEPTION): New macro.
22974         (UNDERFLOW_EXCEPTION_OK): Likewise.
22975         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
22976         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
22977         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
22978         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
22979         (INVALID_EXCEPTION_OK): Update value.
22980         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
22981         (OVERFLOW_EXCEPTION_OK): Likewise.
22982         (IGNORE_ZERO_INF_SIGN): Likewise.
22983         (test_exceptions): Handle underflow exceptions.
22984         (acos_test): Update for underflow exception expectations.
22985         (cexp_test): Likewise.
22986         (clog_test): Likewise.
22987         (clog10_test): Likewise.
22988         (csqrt_test): Likewise.
22989         (ctan_test): Likewise.
22990         (ctanh_test): Likewise.
22991         (exp_test): Likewise.
22992         (exp10_test): Likewise.
22993         (exp2_test): Likewise.
22994         (expm1_test): Likewise.
22995         (fma_test): Likewise.
22996         (j0_test): Likewise.
22997         (jn_test): Likewise.
22998         (nexttoward_test): Likewise.
22999         (pow_test): Likewise.
23000         (scalbn_test): Likewise.
23001         (scalbln_test): Likewise.
23002         (tan_test): Likewise.
23003         (y1_test): Likewise.
23004         * sysdeps/i386/fpu/libm-test-ulps: Update.
23005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23006
23007 2012-05-23  David S. Miller  <davem@davemloft.net>
23008
23009         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
23010         (__libc_sigaction): Remove unused local variables.
23011
23012 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23013
23014         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
23015
23016 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23017
23018         mktime: avoid signed integer overflow
23019         * time/mktime.c (__mktime_internal): Do not mishandle the case
23020         where diff == INT_MIN.
23021
23022         mktime: simplify computation of average
23023         * time/mktime.c (ranged_convert): Use new time_t_avg function
23024         instead of rolling our own (probably-slower) code.
23025
23026         mktime: do not assume signed right shift propagates sign bit
23027         * time/mktime.c (isdst_differ): New static function.
23028         (__mktime_internal): No need to normalize tm_isdst now.
23029         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
23030         tm_isdst values.
23031
23032         mktime: merge another wrapv change from gnulib
23033         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
23034         from some compilers.
23035
23036         mktime: remove incorrect attempt at unusual arithmetics
23037         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
23038         The code didn't really work on such machines anyway.
23039         (TYPE_MINIMUM): Assume two's complement.
23040         (twos_complement_arithmetic): Verify that long_int and time_t
23041         are two's complement (or unsigned, in the latter case).
23042
23043         mktime: check signed shifts on long_int and time_t, too
23044         * time/mktime.c (SHR): Check that shifts work as desired
23045         on the types long_int and time_t too, as SHR is used on
23046         such types.
23047
23048         mktime: do not assume 'long' is wide enough
23049         * time/mktime.c (verify): Move decl up.
23050         (long_int): New type.
23051         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
23052         to remove assumption in the code that 'long' is wide enough to
23053         store year values.  This assumption is not true on x32 and on
23054         some non-glibc platforms.
23055
23056         mktime: merge wrapv change from gnulib
23057         * time/mktime.c (WRAPV): New macro.
23058         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
23059         (guess_time_tm, __mktime_internal): Do not assume that signed
23060         integer overflow wraps around; modern compilers generate code
23061         where this assumption is no longer valid.
23062
23063 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23064
23065         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23066         Replace "jmp L(pseudo_end)" with "ret".
23067         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
23068         Likewise.
23069
23070 2012-05-23  Andreas Jaeger  <aj@suse.de>
23071
23072         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
23073         * sysdeps/unix/sysv/linux/poll.c: Remove file.
23074
23075 2012-05-23  Andreas Jaeger  <aj@suse.de>
23076             Maximilian Attems  <max@stro.at>
23077
23078         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
23079         New macros.
23080
23081 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23082
23083         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
23084         code so that pseudo_end is just ret and the stack pointer is
23085         correct also for static library in error case.
23086
23087 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
23088
23089         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
23090         move to syscalls.list.
23091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
23092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
23093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
23094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
23095
23096         * manual/install.texi (Running make install): Do not mention Linux
23097         kernel version for which pt_chown is not needed.
23098         (Linux): Do not mention problems with nscd with 2.0 kernels.
23099         * INSTALL: Regenerated.
23100
23101 2012-05-23  Andreas Jaeger  <aj@suse.de>
23102
23103         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
23104         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
23105         macro.
23106         * sysdeps/unix/sysv/linux/s390/bits/mman.h
23107         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23108         * sysdeps/unix/sysv/linux/sh/bits/mman.h
23109         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23110         * sysdeps/unix/sysv/linux/i386/bits/mman.h
23111         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23112         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
23113         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23114         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
23115         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23116         * sysdeps/unix/sysv/linux/bits/in.h
23117         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
23118
23119 2012-05-22  Roland McGrath  <roland@hack.frob.com>
23120
23121         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
23122         (PREPARE_VERSION): Just use assert instead, it will be elided
23123         under [NDEBUG] anyway.
23124
23125 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23126
23127         * sysdeps/unix/sysv/linux/Makefile: Include
23128         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
23129         (sysdep_routines): Remove sysctl.
23130         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
23131         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
23132         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
23133         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
23134         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
23135
23136 2012-05-22  Andreas Jaeger  <aj@suse.de>
23137
23138         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
23139         that pseudo_end is just ret and the stack pointer is correct also
23140         for static library in error case.
23141
23142 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
23143
23144         [BZ #14122]
23145         * nss/nsswitch.c (defconfig_entries): New variable.
23146         (__nss_database_lookup): Don't leak defconfig entries.
23147         (nss_parse_service_list): Don't leak on error paths.
23148         (free_database_entries): New function.
23149         (free_defconfig): New function.
23150         (free_mem): Move common code to free_database_entries.
23151
23152 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23153
23154         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
23155         Add arch_prctl.
23156         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
23157
23158         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
23159         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
23160         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
23161         New macro.
23162         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
23163         (INTERNAL_SYSCALL_TYPES): Likewise.
23164         (LOAD_ARGS_TYPES_[1-6]): Likewise.
23165         (LOAD_REGS_TYPES_[1-6]): Likewise.
23166         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
23167         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
23168
23169 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23170
23171         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
23172         copysignl for GLIBC_2_0.
23173         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
23174         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
23175         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
23176         logbl for GLIBC_2_0.
23177         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23178         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23179
23180 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23181
23182         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
23183         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23184
23185         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23186         Use "neg %eax".
23187
23188         * time/mktime.c: Update copyright years.
23189
23190 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23191
23192         mktime: merge comment-quoting-style change from gnulib
23193         * time/mktime.c: Quote 'like this' in comments.
23194         The GNU coding standards suggest that we no longer quote `like this',
23195         as "`" and "'" are typically rendered asymmetrically nowadays.
23196         The typical gnulib style is to quote 'like this' when quoting
23197         code, and "like this" when quoting English.
23198
23199         * time/mktime.c (compile-command): Add "-I.".
23200
23201         mktime: merge mktime-internal.h change from gnulib
23202         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
23203
23204         mktime: merge time_r change from gnulib
23205         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
23206
23207         mktime: merge DEBUG change from gnulib
23208         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
23209         case system <time.h> has a #define.
23210
23211         mktime: merge <sys/types.h> change from gnulib
23212         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
23213         since <time.t> is now guaranteed to define time_t.
23214
23215         mktime: merge HAVE_CONFIG_H change from gnulib
23216         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
23217
23218 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23219
23220         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23221         Use "neg %eax".
23222
23223         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
23224         __rlim_t cast.
23225         (struct rusage): Use anonymous union to pad each field to
23226         __syscall_slong_t.
23227
23228 2012-05-21  David S. Miller  <davem@davemloft.net>
23229
23230         * Makefules (o-iterator): Remove .s cases.
23231         (compile-command.s): Delete.
23232         (COMPILE.s): Delete.
23233         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
23234
23235 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
23236
23237         * configure.in (libc_cv_predef_stack_protector): Only consider
23238         "foobar" and "__stack_chk_fail" lines in libc_undefs.
23239         * configure: Regenerated.
23240
23241 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23242
23243         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23244         New macro.  Use R*LP on int and pointer.
23245         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
23246         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
23247         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
23248         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
23249
23250         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
23251         [__WORDSIZE_TIME64_COMPAT32] instead of
23252         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
23253         (struct utmp): Likewise.
23254         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
23255         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
23256         Renamed to ...
23257         (__WORDSIZE_TIME64_COMPAT32): This.
23258         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
23259         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
23260         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
23261         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
23262         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
23263         (__WORDSIZE_TIME64_COMPAT32): New macro.
23264
23265 2012-05-21  Andreas Jaeger  <aj@suse.de>
23266
23267         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
23268         only if [SHARED]. Add prototype for __wcschr_ia32.
23269
23270 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23271
23272         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
23273         of %rbp unmolested in the jmp_buf while mangling the low bits.
23274         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
23275         unmolested high bits of %rbp while demangling the low bits.
23276         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23277
23278 2012-05-21  Andreas Jaeger  <aj@suse.de>
23279
23280         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
23281         * sunrpc/svc_simple.c: Use it for registerrpc.
23282         * sunrpc/xcrypt.c: Use it for passwd2des.
23283
23284         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
23285
23286 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23287
23288         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
23289         Don't define if [__SYSCALL_WORDSIZE != 32].
23290         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
23291         New macro.
23292
23293 2012-05-21  Bruno Haible  <bruno@clisp.org>
23294             Andreas Jaeger  <aj@suse.de>
23295
23296         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
23297         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
23298         inptr and inend for must_buffer_ch.
23299         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
23300         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
23301         * stdio-common/Makefile (tests): Remove bug15.
23302         (bug15-ENV): Remove macro.
23303         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
23304         anymore.
23305
23306 2012-05-19  Andreas Jaeger  <aj@suse.de>
23307             Roland McGrath  <roland@hack.frob.com>
23308
23309         * manual/contrib.texi: Completely rewritten. It contains now an
23310         alphabetical list of contributors and their contributions.
23311
23312 2012-05-21  Richard Henderson  <rth@twiddle.net>
23313
23314         * misc/getauxval.c (__getauxval): Use unsigned long int.
23315         * misc/sys/auxv.h: Include <sys/cdefs.h>.
23316         (getauxval): Use unsigned long int.
23317
23318 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23319
23320         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23321
23322 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23323
23324         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
23325         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
23326         __alignof__ (long double).
23327
23328 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23329
23330         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23331
23332 2012-05-20  Richard Henderson  <rth@twiddle.net>
23333
23334         * misc/getauxval.c: New file.
23335         * misc/sys/auxv.h: New file.
23336         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
23337         (routines): Add getauxval.
23338         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
23339         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
23340         * elf/dl-sysdep.c (_dl_auxv): Remove.
23341         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
23342         * elf/dl-support.c (_dl_auxv): New variable.
23343         (_dl_aux_init): Initialize it.
23344         * manual/startup.texi (Auxiliary Vector): New node.
23345         * sysdeps/generic/bits/hwcap.h: New file.
23346         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
23347         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
23348         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
23349         * sysdeps/sparc/sysdep.h: ... here.  Include it.
23350         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
23351         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
23352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23353         Update.
23354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
23355         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
23356         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
23357         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
23358         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23359         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
23361         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
23362
23363 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23364
23365         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23366
23367 2012-05-19  David S. Miller  <davem@davemloft.net>
23368
23369         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23370
23371 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23372
23373         [BZ #14123]
23374         * math/s_ccosh.c: Include <float.h>
23375         (__ccosh): Avoid internal overflow calculating sinh and cosh
23376         values before multiplying by sin and cos values.
23377         * math/s_ccoshf.c: Likewise.
23378         * math/s_ccoshl.c: Likewise.
23379         * math/s_csin.c: Likewise.
23380         * math/s_csinf.c: Likewise.
23381         * math/s_csinl.c: Likewise.
23382         * math/s_csinh.c: Likewise.
23383         * math/s_csinhf.c: Likewise.
23384         * math/s_csinhl.c: Likewise.
23385         * math/libm-test.inc (ccos_test): Add more tests.
23386         (ccosh_test): Likewise.
23387         (csin_test): Likewise.
23388         (csinh_test): Likewise.
23389         * sysdeps/i386/fpu/libm-test-ulps: Update.
23390         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23391
23392 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
23393
23394         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
23395         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
23396
23397         * sysdeps/x86_64/x32/_itoa.h: Add comment.
23398
23399 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23400
23401         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
23402         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
23403         * sysdeps/powerpc/soft-fp/Versions: Likewise.
23404         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
23405         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
23406         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
23407         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
23408         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
23409         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
23410         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
23411         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
23412         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
23413         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
23414         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
23415         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
23416         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
23417         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
23418         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
23419         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
23420         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
23421         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
23422         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
23423         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
23424         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
23425         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
23426         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
23427         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
23428         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
23429         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
23430         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
23431         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
23432
23433 2012-05-18  Andreas Jaeger  <aj@suse.de>
23434
23435         * csu/.gitignore: Delete.
23436
23437 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23438
23439         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
23440         (timex): Use __syscall_slong_t.
23441
23442 2012-05-18  Andreas Jaeger  <aj@suse.de>
23443             Carlos O'Donell  <carlos_odonell@mentor.com>
23444
23445         * manual/install.texi (Configuring and compiling): Update
23446         description about files modified in the source directory.
23447         * INSTALL: Regenerated.
23448
23449 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23450
23451         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
23452         value.  Use "or" to set return value to -1.
23453         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
23454         negate return value.
23455
23456 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23457
23458         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
23459         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
23460         failure if the compiler has Graphite support disabled.
23461         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
23462         Likewise.
23463         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
23464         CFLAGS-memmove.c): Likewise.
23465         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
23466         Likewise.
23467
23468 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23469
23470         * sysdeps/x86_64/x32/_itoa.h: New file.
23471
23472         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
23473         getdents system call only if kernel and user dirents have the
23474         same d_ino and d_off.
23475
23476         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
23477         LLONG_MAX != LONG_MAX.
23478         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23479         (_fitoa_word): Likewise.
23480
23481         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
23482         years.
23483         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
23484         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
23485         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
23486
23487         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
23488         include <bits/wordsize.h>.  Check __x86_64__ instead of
23489         __WORDSIZE.
23490         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
23491         if __x86_64__ is defined.  Use anonymous union on fpstate.
23492
23493         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
23494         anonymous union.
23495
23496 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
23497
23498         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
23499         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
23500         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
23501         Refer to _rtld_local_ro instead of _rtld_global_ro.
23502         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
23503         Likewise.
23504         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
23505         Likewise.
23506         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
23507         Likewise.
23508         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
23509         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
23510         of _rtld_global, and rtld_progname instead of _dl_argv[0].
23511
23512         * sysdeps/powerpc/powerpc32/dl-machine.c
23513         (__elf_machine_runtime_setup) [PROF]: Don't reference
23514         _dl_prof_resolve.
23515
23516 2012-05-18  Andreas Jaeger  <aj@suse.de>
23517
23518         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
23519         function only available for GCCs before 3.4 since GCC 3.4
23520         introduced a builtin.
23521         (lrint): Likewise.
23522         (llrintf): Likewise.
23523         (llrint): Likewise.
23524         (fmaxf): Likewise.
23525         (fmax): Likewise.
23526         (fminf): Likewise.
23527         (fmin): Likewise.
23528         (rint): Likewise.
23529         (rintf): Likewise.
23530         (nearbyint): Likewise.
23531         (nearbyintf): Likewise.
23532         (ceil): Likewise.
23533         (ceilf): Likewise.
23534         (floor): Likewise.
23535         (floorf): Likewise.
23536
23537 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23538
23539         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
23540         on both fields and cast pointer to __syscall_ulong_t.
23541
23542         * bits/types.h (__fsword_t): New type.
23543         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
23544         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
23545         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23546         (__FSWORD_T_TYPE): Likewise.
23547         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23548         (__FSWORD_T_TYPE): Likewise.
23549         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23550         (__FSWORD_T_TYPE): Likewise.
23551         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
23552         (__FSWORD_T_TYPE): Likewise.
23553         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
23554         __SWORD_TYPE with __fsword_t.
23555         (statfs64): Likewise.
23556
23557 2012-05-17  David S. Miller  <davem@davemloft.net>
23558
23559         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
23560
23561 2012-05-17  Andreas Jaeger  <aj@suse.de>
23562
23563         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
23564         warning.
23565
23566 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23567
23568         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
23569
23570 2012-05-17  Andreas Jaeger  <aj@suse.de>
23571
23572         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
23573         when it is used.
23574
23575 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
23576
23577         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
23578
23579 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23580
23581         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
23582         * sysdeps/x86_64/tst-mallocalign1.c: New file.
23583
23584 2012-05-17  Andreas Jaeger  <aj@suse.de>
23585             Carlos O'Donell  <carlos_odonell@mentor.com>
23586
23587         [BZ #14059]
23588         * sysdeps/x86_64/multiarch/init-arch.h
23589         (bit_YMM_Usable): Rename to...
23590         (bit_AVX_Usable): ... this.
23591         (bit_FMA4_Usable): New macro.
23592         (bit_XMM_state): New macro.
23593         (bit_YMM_state): New macro.
23594         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
23595         [__ASSEMBLER__] (index_AVX_Usable): ... this.
23596         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
23597         (CPUID_OSXSAVE): New macro.
23598         (CPUID_AVX): New macro.
23599         (CPUID_FMA4): New macro.
23600         (index_YMM_Usable): Rename to...
23601         (index_AVX_Usable): ... this.
23602         (HAS_AVX): Use HAS_ARCH_FEATURE.
23603         (HAS_FMA4): Likewise.
23604         (HAS_YMM_USABLE): Remove.
23605         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23606         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
23607         are present.
23608         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
23609         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
23610         * sysdeps/x86_64/multiarch/Makefile: Likewise.
23611         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
23612         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
23613
23614 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
23615
23616         * math/libm-test.c: Support platforms without multiple rounding modes.
23617         * math/bug-nextafter.c: Support platforms without FP exceptions.
23618         * math/bug-nexttoward.c: Likewise.
23619         * math/test-fenv.c: Likewise.
23620         * math/test-misc.c: Likewise.
23621         * stdlib/bug-getcontext.c: Likewise.
23622
23623 2012-05-17  Andreas Jaeger  <aj@suse.de>
23624
23625         * manual/examples/search.c (critter_cmp): Change signature to
23626         avoid warnings.
23627         * manual/string.texi (Collation Functions): Likewise.
23628
23629 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23630
23631         * bits/types.h: Fold copyright years.
23632         * bits/typesizes.h: Likewise.
23633         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
23634         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
23635         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
23636         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
23637         * time/time.h: Likewise.
23638
23639 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
23640
23641         [BZ #208]
23642         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
23643         in instead of returning them.  Return void.
23644         (__libc_mallinfo): Accumulate over all arenas.
23645         (__malloc_stats): Adjust for change in int_mallinfo interface.
23646
23647 2012-05-16  Roland McGrath  <roland@hack.frob.com>
23648
23649         [BZ #10375]
23650         * configure.in (NM): Add AC_CHECK_TOOL for it.
23651         (libc_extra_cflags): New substituted variable.
23652         Check for -fstack-protector being used implicitly.
23653         * configure: Regenerated.
23654         * config.make.in (config-extra-cflags): New variable,
23655         gets @libc_extra_cflags@.
23656         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
23657
23658         [BZ #10375]
23659         * configure.in: Check for _FORTIFY_SOURCE being predefined.
23660         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
23661         * configure: Regenerated.
23662         * config.make.in (CPPUNDEFS): New substituted variable.
23663         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
23664         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
23665         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
23666
23667 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23668
23669         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
23670         (mq_attr): Use __syscall_slong_t.
23671
23672 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23673
23674         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
23675         Check __x86_64__ instead of __WORDSIZE.
23676         (_STAT_VER_LINUX): Likewise.
23677         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
23678         __syscall_ulong_t and __syscall_slong_t.
23679         (stat64): Likewise.
23680
23681 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23682
23683         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
23684
23685 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23686
23687         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
23688
23689 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23690
23691         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
23692         __syscall_ulong_t.
23693
23694         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
23695         include <bits/wordsize.h>.  Check __x86_64__ instead of
23696         __WORDSIZE.
23697         (greg_t): Use "__extension__ long long int" if __x86_64__ is
23698         defined.
23699         (mcontext_t): Replace "unsigned long" with "unsigned long long".
23700
23701         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
23702         include <bits/wordsize.h>.  Check __x86_64__ instead of
23703         __WORDSIZE.
23704         (user_regs_struct): Use "__extension__ unsigned long long"
23705         instead of "unsigned long" if __x86_64__ is defined.
23706         (user): Likewise.  Pad after pointer field if __ILP32__ is
23707         defined.
23708
23709 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
23710
23711         * configure.in (makeinfo): Require version 4.5 or later.  Allow
23712         versions 5 to 9.
23713         * configure: Regenerated.
23714         * manual/install.texi (texinfo): Increase version requirement to
23715         4.5 or later.
23716         * INSTALL: Regenerated.
23717
23718         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
23719
23720 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23721
23722         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
23723
23724         * sysdeps/x86_64/x32/ffs.c: New file.
23725
23726         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
23727         __syscall_ulong_t.
23728         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
23729         defined.  Use __syscall_ulong_t.
23730         (shminfo): Use __syscall_ulong_t.
23731         (shm_info): Likewise.
23732
23733         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
23734         __syscall_ulong_t.
23735
23736         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
23737         <bits/wordsize.h>.
23738         (msgqnum_t): Use __syscall_ulong_t.
23739         (msglen_t): Likewise.
23740         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
23741         __syscall_ulong_t.
23742
23743         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
23744         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23745
23746         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
23747
23748         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
23749         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
23750
23751         * sysvipc/sys/msg.h (msgbuf): Replace long int with
23752         __syscall_slong_t.
23753
23754         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
23755         include <bits/wordsize.h>.  Check __x86_64__ instead of
23756         __WORDSIZE.
23757
23758         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
23759         "unsigned long long int" if __x86_64__ is defined.
23760         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
23761
23762         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
23763         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23764         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
23765
23766         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
23767         <stdint.h>.
23768         (GET_PC): Cast to uintptr_t first.
23769         (GET_FRAME): Likewise.
23770         (GET_STACK): Likewise.
23771
23772         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
23773         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
23774         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
23775         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
23776         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
23777         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
23778         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
23779         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
23780         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
23781         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
23782         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
23783         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
23784         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
23785         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
23786         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
23787         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
23788         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
23789         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
23790         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
23791         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
23792         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
23793         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
23794         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
23795         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
23796         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
23797         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
23798         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
23799         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
23800         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
23801
23802 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
23803
23804         * Makerules (+depfiles): Also collect depfiles from .oS in
23805         $(extra-objs).
23806         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
23807         .oS, $(libnldbl-routines)).
23808
23809         * Makerules (native-compile-mkdep-flags): Define.
23810         * sunrpc/Makefile (extra-objs): Add $(addprefix
23811         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
23812         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
23813         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
23814         calling $(make-target-directory).
23815
23816 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23817
23818         * bits/types.h (__snseconds_t): Removed.
23819         * time/time.h (struct timespec): Replace __snseconds_t with
23820         __syscall_slong_t.
23821         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
23822         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
23823         Likewise.
23824         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23825         (__SNSECONDS_T_TYPE): Likewise.
23826         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23827         (__SNSECONDS_T_TYPE): Likewise.
23828         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23829         (__SNSECONDS_T_TYPE): Likewise.
23830
23831 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23832
23833         * sysdeps/mach/hurd/bits/typesizes.h
23834         (__SYSCALL_SLONG_TYPE): New macro.
23835         (__SYSCALL_ULONG_TYPE): Likewise.
23836
23837 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23838
23839         * bits/types.h (__syscall_slong_t): New type.
23840         (__syscall_ulong_t): Likewise.
23841
23842         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
23843         (__SYSCALL_ULONG_TYPE): Likewise.
23844         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23845         (__SYSCALL_SLONG_TYPE): Likewise.
23846         (__SYSCALL_ULONG_TYPE): Likewise.
23847         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23848         (__SYSCALL_SLONG_TYPE): Likewise.
23849         (__SYSCALL_ULONG_TYPE): Likewise.
23850         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23851         (__SYSCALL_SLONG_TYPE): Likewise.
23852         (__SYSCALL_ULONG_TYPE): Likewise.
23853
23854 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23855
23856         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
23857         Add sigaltstack-offsets.sym.
23858         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
23859         <sigaltstack-offsets.h>.
23860         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
23861         longjmp_msg pointer.
23862         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
23863         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
23864         signal stack.
23865         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
23866
23867 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
23868
23869         * elf/stackguard-macros.h: Remove file.
23870         * sysdeps/generic/stackguard-macros.h: New file.
23871         * sysdeps/i386/stackguard-macros.h: Likewise.
23872         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
23873         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
23874         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
23875         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
23876         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
23877         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
23878         * sysdeps/x86_64/stackguard-macros.h: Likewise.
23879         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
23880         <elf/stackguard-macros.h>.
23881
23882         [BZ #14109]
23883         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
23884         __aligned__ in attribute.
23885         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
23886         (gregset_t): Likewise.
23887
23888 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23889
23890         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
23891         * sysdeps/x86_64/64/Implies-after: Here.  New file.
23892         * sysdeps/x86_64/x32/Implies-after: New file.
23893
23894 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23895
23896         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
23897         and access return value for _dl_profile_fixup.  Use R10_LP to
23898         load frame size.
23899
23900 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23901
23902         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
23903
23904 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23905
23906         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
23907         * sysdeps/x86_64/x32/sysdep.h: New file.
23908
23909 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23910
23911         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
23912         * sysdeps/x86_64/setjmp.S: Likewise.
23913
23914 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23915
23916         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
23917         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
23918         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
23919         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
23920         remove unused global constant.
23921
23922 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
23923
23924         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
23925         include of <not-cancel.h>.
23926
23927 2012-05-15  Roland McGrath  <roland@hack.frob.com>
23928
23929         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
23930
23931 2012-05-15  Jeff Law  <law@redhat.com>
23932             Andreas Jaeger  <aj@suse.de>
23933
23934         [BZ #13594]
23935         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
23936         out from...
23937         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
23938         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
23939         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
23940         code changing __hst_map_handle.map.
23941
23942 2012-05-15  Roland McGrath  <roland@hack.frob.com>
23943
23944         * configure.in (sysnames): Look for Implies-before and Implies-after
23945         files.
23946         * configure: Regenerated.
23947
23948 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23949
23950         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
23951         8-byte data alignment with LP_SIZE alignment.
23952
23953 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23954
23955         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
23956         into R10_LP.
23957
23958 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23959
23960         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
23961
23962 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23963
23964         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
23965         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
23966         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
23967         Likewise.
23968         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
23969
23970 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23971
23972         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
23973         (stackinfo_sub_sp): Likewise.
23974
23975 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23976
23977         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
23978         RAX_LP.
23979
23980 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23981
23982         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
23983         into R*_LP.
23984
23985 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23986
23987         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
23988         sizes into R*_LP.
23989
23990 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23991
23992         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
23993
23994 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23995
23996         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
23997         into R11_LP and load __x86_64_shared_cache_size_half into
23998         R8_LP.
23999
24000 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24001
24002         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
24003         R8_LP.
24004
24005 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24006
24007         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
24008         logb for POWER7.
24009         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
24010         logbf for POWER7.
24011         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
24012         logbl for POWER7.
24013         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
24014         powerpc32/power7/fpu/s_logb.c via #include.
24015         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
24016         powerpc32/power7/fpu/s_logbf.c via #include.
24017         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
24018         powerpc32/power7/fpu/s_logbl.c via #include.
24019
24020 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24021
24022         * README.libm: Remove file.
24023
24024 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24025
24026         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
24027         count for x32.  Use R*_LP and omit operand-size suffix.
24028
24029 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24030
24031         * shlib-versions: Move x86_64-.*-linux.* entries to ...
24032         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
24033         * sysdeps/x86_64/x32/shlib-versions: New file.
24034
24035 2012-05-14  Roland McGrath  <roland@hack.frob.com>
24036
24037         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
24038         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
24039         Use _dl_fatal_printf instead.
24040
24041 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24042
24043         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
24044         set if not set by the user.  Do not allow for being unset.
24045         * sysdeps/unix/sysv/linux/configure: Regenerated.
24046
24047 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24048
24049         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
24050         the `q' suffix from lea and replace .quad with ASM_ADDR.
24051
24052 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24053
24054         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
24055         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
24056         instead of $17.
24057         (PTR_DEMANGLE): Likewise.
24058
24059 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24060
24061         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
24062         (LP_OP): Likewise.
24063         (ASM_ADDR): Likewise.
24064         (RAX_LP): Likewise.
24065         (RBP_LP): Likewise.
24066         (RBX_LP): Likewise.
24067         (RCX_LP): Likewise.
24068         (RDI_LP): Likewise.
24069         (RSI_LP): Likewise.
24070         (RSP_LP): Likewise.
24071         (R8_LP): Likewise.
24072         (R9_LP): Likewise.
24073         (R10_LP): Likewise.
24074         (R10_LP): Likewise.
24075         (R11_LP): Likewise.
24076         (R12_LP): Likewise.
24077         (R13_LP): Likewise.
24078         (R14_LP): Likewise.
24079         (R15_LP): Likewise.
24080
24081 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24082
24083         * sysdeps/x86_64/x32/dl-machine.h: New file.
24084
24085 2012-05-14  Andreas Jaeger  <aj@suse.de>
24086
24087         * manual/Makefile (subdir): Remove export of subdir.
24088         (all): Remove target.
24089         (.PHONY): Remove all from list.
24090         (mkinstalldirs): Remove.
24091         (.PHONY): Remove installdirs from list.
24092         ($(inst_infodir)/libc.info): Use make-target-directory.
24093         (installdirs): Remove.
24094         (subdir_%): Remove.
24095         (glibc-targets): Remove.
24096         (lib): Remove.
24097         (stubs): Remove.
24098         ($(objpfx)stubs ../po/manual.pot): Remove.
24099         ($(objpfx)stamp%): Remove.
24100         (make-target-directory): Remove.
24101         (subdir_install): Remove.
24102         (routines): Remove.
24103         (aux): Remove.
24104         (sources): Remove.
24105         (objects): Remove.
24106         (headers): Remove.
24107
24108         [BZ #13750]
24109         * manual/.gitignore: Remove, it's not needed anymore.
24110         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
24111         all files in it.
24112         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
24113         directory.
24114         (texis): Renamed to $(objpfx)texis.
24115         (texis-path): New, contains path to generated files.
24116         (chapters.%): Use texis-path for complete path, add extra argument
24117         libc-texinfo.sh.
24118         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
24119         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
24120         (summary,texi, stamp-summary): Use complete path of
24121         files. Generate files in build dir.
24122         (dir-add.texi): Build in build dir.
24123         (libm-err.texi,stamp-libm-err): Likewise.
24124         (version.texi, stamp-version): Likewise.
24125         (.%c.texi): Likewise.
24126         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
24127         (mostlyclean): Remove target.
24128         (realclean): Remove target.
24129         (generated): Add new variable with contents from mostlyclean and
24130         realclean, remove entries duplicated in common-mostlyclean, add
24131         stamp-libm-err and stamp-version.
24132         (generated-dirs): Add libc directory.
24133         ($(inst_infodir)/libc.info): Install files from build dir.
24134
24135         * manual/install.texi (Configuring and compiling): Adjust since
24136         the info files are not part of the tar ball anymore.
24137
24138 2012-05-14  Andreas Jaeger  <aj@suse.de>
24139
24140         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
24141         variable.
24142
24143 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24144
24145         [BZ #13717]
24146         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
24147         to 2.2.0 where earlier.
24148         * sysdeps/unix/sysv/linux/configure: Regenerated.
24149         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
24150         Remove conditional code.
24151         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
24152         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
24153         Remove conditional code.
24154         [!__NR_lchown]: Likewise.
24155         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24156         [__NR_lchown]: Likewise.
24157         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
24158         comment referencing __ASSUME_LCHOWN_SYSCALL.
24159         * sysdeps/unix/sysv/linux/i386/sigaction.c
24160         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24161         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24162         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
24163         Remove conditional code.
24164         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
24165         (__protocol_available): Remove #if 0 code.
24166         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
24167         conditional code.
24168         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
24169         * sysdeps/unix/sysv/linux/kernel-features.h
24170         (__ASSUME_GETCWD_SYSCALL): Don't define.
24171         (__ASSUME_REALTIME_SIGNALS): Likewise.
24172         (__ASSUME_PREAD_SYSCALL): Likewise.
24173         (__ASSUME_PWRITE_SYSCALL): Likewise.
24174         (__ASSUME_POLL_SYSCALL): Likewise.
24175         (__ASSUME_LCHOWN_SYSCALL): Likewise.
24176         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
24177         non-SPARC.
24178         (__ASSUME_SIOCGIFNAME): Don't define.
24179         (__ASSUME_MSG_NOSIGNAL): Likewise.
24180         (__ASSUME_SENDFILE): Define unconditionally.
24181         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
24182         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
24183         conditional code.
24184         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
24185         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
24186         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24187         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24188         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
24189         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24190         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
24192         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24193         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
24195         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24196         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
24198         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24199         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
24201         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24202         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
24204         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24205         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
24207         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24208         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
24210         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24211         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
24213         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24214         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24215         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
24216         Remove conditional code.
24217         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24218         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24219         Remove conditional code.
24220         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24221         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
24222         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
24223         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24224         Remove conditional code.
24225         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24226         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
24227         Remove conditional code.
24228         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24229         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
24230         Remove conditional code.
24231         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24232         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24233         Remove conditional code.
24234         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24235         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24236         Remove conditional code.
24237         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24238         * sysdeps/unix/sysv/linux/sh/pwrite64.c
24239         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24240         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24241         * sysdeps/unix/sysv/linux/sigaction.c
24242         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24243         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24244         * sysdeps/unix/sysv/linux/sigpending.c
24245         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24246         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24247         * sysdeps/unix/sysv/linux/sigprocmask.c
24248         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24249         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24250         * sysdeps/unix/sysv/linux/sigsuspend.c
24251         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24252         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24253         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
24254         (__libc_missing_rt_sigs): Remove.
24255         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
24256         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
24257         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
24258         Remove conditional code.
24259         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
24260         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
24261         return 1.
24262         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
24263         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
24264         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
24265         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
24266
24267 2012-05-14  Andreas Jaeger  <aj@suse.de>
24268
24269         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
24270         it's not used in glibc.
24271         (__coshm1): Likewise.
24272         (__acosh1p): Likewise.
24273         (__sgn): Likewise.
24274
24275         * manual/string.texi (Copying and Concatenation): Add missing
24276         variable in concat example.
24277         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
24278
24279 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24280
24281         [BZ #14103]
24282         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
24283         __builtin_clzl with __builtin_clzll.
24284
24285 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24286
24287         [BZ #14104]
24288         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
24289         libc_freeres_ptr.
24290
24291 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24292
24293         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
24294         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
24295         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
24296         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
24297
24298 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
24299
24300         * NEWS: Update ia64 info.
24301
24302 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
24303
24304         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
24305         used as bcopy.
24306
24307 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
24308
24309         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
24310         * sysdeps/unix/syscalls.list (dup3): Likewise.
24311         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
24312         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
24313
24314 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24315
24316         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
24317         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
24318
24319 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24320
24321         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
24322         thread pointer.
24323         (TLS_IE): Use mov/add instead of movq/addq to load thread
24324         pointer.
24325         (TLS_GD_PREFIX): New.
24326         (TLS_GD): Use it.
24327
24328 2012-05-11  David S. Miller  <davem@davemloft.net>
24329
24330         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
24331         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
24332         (_FPU_SETCW): Likewise.
24333
24334 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24335
24336         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
24337         is 32-byte aligned.
24338
24339 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
24340
24341         [BZ #11837]
24342         * iconvdata/gb18030.c: Update tables.
24343         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
24344         characters specially.
24345         (BODY for TO_LOOP): Add encoding of missing ranges.
24346
24347 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
24348
24349         [BZ #13673]
24350         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
24351         * sysdeps/mach/hurd/dup3.c: Likewise.
24352         * sysdeps/mach/hurd/readlinkat.c: Likewise.
24353         * sysdeps/powerpc/memmove.c:: Likewise.
24354
24355 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24356
24357         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
24358         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
24359
24360 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24361
24362         * elf/elf.h (R_X86_64_RELATIVE64): New.
24363         (R_X86_64_NUM): Updated.
24364         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
24365         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
24366         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
24367         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
24368         tst-quad1pie tst-quad2pie
24369         (modules-names): Add tst-quadmod1 tst-quadmod2.
24370         ($(objpfx)tst-quad1): New dependency.
24371         ($(objpfx)tst-quad2): Likewise.
24372         ($(objpfx)tst-quad1pie): Likewise.
24373         ($(objpfx)tst-quad2pie): Likewise.
24374         * sysdeps/x86_64/tst-quad1.c: New file.
24375         * sysdeps/x86_64/tst-quad1pie.c: New file.
24376         * sysdeps/x86_64/tst-quad2.c: Likewise.
24377         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
24378         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
24379         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
24380         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
24381         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
24382
24383 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24384
24385         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
24386         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
24387         * streams/stropts.h (t_scalar_t): Define type.
24388
24389         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
24390         (_PATH_PRESERVE): Set to "/var/lib".
24391         (_PATH_RWHODIR): Set to "/var/spool/rwho".
24392
24393         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
24394         instead of int.
24395
24396         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
24397         if __dir_mkfile succeeded.
24398
24399         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
24400         checking for _hurd_dtablesize.  Unlock it right after having
24401         finished _hurd_dtable allocation.
24402
24403 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24404
24405         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
24406         * sysdeps/mach/hurd/configure: Regenerated.
24407         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
24408         special-casing to...
24409         * sysdeps/gnu/configure.in: ... this new file.
24410         * sysdeps/unix/sysv/linux/configure: Regenerated.
24411         * sysdeps/gnu/configure: New generated file.
24412
24413         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
24414         for Linux: use nsec instead of usec, as well as:
24415         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
24416         members of type struct timespec.
24417         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
24418         New macros.
24419         (struct stat64): Likewise.
24420         (_STATBUF_ST_NSEC): New macro.
24421         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
24422
24423         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
24424         __strtoul_internal rather than strtoul.
24425
24426 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24427
24428         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
24429         and reject them.
24430
24431 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24432
24433         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
24434         which preserves existing values.
24435         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
24436
24437 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24438
24439         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
24440         TIMEOUT values.  Return EINVAL for NFDS values either negative or
24441         greater than FD_SETSIZE.
24442
24443 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24444
24445         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
24446         allocated, call __vm_protect to finish enabling the existing space, and
24447         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
24448         allocate the remainder.
24449
24450 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24451
24452         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
24453         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
24454
24455 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24456
24457         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
24458         sysdeps/mach/hurd/readlink.c.
24459
24460         * posix/tst-sysconf.c (posix_options): Only use
24461         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
24462         _POSIX_SYNCHRONIZED_IO when they are defined
24463         * sysdeps/mach/hurd/bits/posix_opt.h:
24464         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
24465         (_XOPEN_REALTIME): Undefine macro.
24466         (_XOPEN_REALTIME_THREADS): Undefine macro.
24467         (_XOPEN_SHM): Undefine macro.
24468         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
24469         macro to -1.
24470         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
24471         macro to -1.
24472         (_POSIX_ASYNC_IO): Undefine macro.
24473         (_POSIX_PRIORITIZED_IO): Undefine macro.
24474         (_POSIX_SPIN_LOCKS): Define macro to -1.
24475
24476         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
24477         SA_NODEFER, SA_RESETHAND.
24478         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
24479         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
24480         F_DUPFD_CLOEXEC.
24481
24482 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24483
24484         * elf/Makefile (pldd-modules): Define unconditionally.
24485
24486 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24487
24488         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
24489
24490 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24491
24492         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
24493         Return ENOENT when name is empty.
24494         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
24495
24496 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24497
24498         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
24499
24500         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
24501
24502 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24503
24504         Fix mlock in all cases except non-readable pages.
24505         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
24506         instead of VM_PROT_ALL as parameter to __vm_wire function.
24507
24508         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
24509         (__mkdir): When path is `/', just fail with EEXIST.
24510         * sysdeps/mach/hurd/mkdirat.c: Likewise.
24511
24512 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24513
24514         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
24515         <sys/uio.h> (for writev).
24516         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
24517         and <sys/param.h> (for MIN).
24518
24519 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24520
24521         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
24522         REQUESTED_TIME.  Properly set the remaining time and return EINTR
24523         if interrupted.
24524
24525 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24526
24527         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
24528         Depend on against $(link-rpcuserlibs).
24529
24530 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24531
24532         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
24533         (__libc_stack_end): Do not use attribute_relro.
24534         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
24535         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
24536         to libthread-provided value.
24537         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
24538         attribute_relro.
24539
24540 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24541
24542         [BZ #3748]
24543         * bits/libc-lock.h (__libc_once_get): New macro.
24544         * sysdeps/mach/bits/libc-lock.h: Likewise.
24545         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
24546         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
24547         instead of using implementation details.
24548
24549         * libio/fileops.c: Unconditionally include <kernel-features.h>.
24550         * libio/freopen.c: Likewise.
24551         * libio/freopen64.c: Likewise.
24552         * misc/syslog.c: Likewise.
24553         * nscd/connections.c: Likewise.
24554         * nscd/netgroupcache.c: Likewise.
24555         * sysdeps/posix/getcwd.c: Likewise.
24556
24557 2012-05-10  Roland McGrath  <roland@hack.frob.com>
24558
24559         * math/w_ilogbf.c: Add #include <limits.h>.
24560
24561 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24562
24563         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
24564         path instead of returning without unlocking.
24565
24566         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
24567         immediate-write ioctls.
24568         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
24569
24570 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24571
24572         * sysdeps/mach/hurd/i386/init-first.c (init): Use
24573         __builtin_frame_address instead of making assumptions about the
24574         location of the return address relative to DATA.  Force early load of
24575         the return address.
24576         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
24577         __builtin_frame_address.
24578
24579         dup3 for GNU Hurd.
24580         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
24581         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
24582         implement dup3 and do some further code clean-ups.
24583         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
24584         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
24585
24586 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24587
24588         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
24589
24590         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
24591         HURD_CRITICAL_END around holding _hurd_dtable_lock.
24592         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
24593         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
24594         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
24595         d->port.lock.
24596
24597         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
24598         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
24599         when handler == SIG_ERR, not when handler != SIG_ERR.
24600
24601 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24602
24603         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
24604         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
24605         definitions.
24606
24607         accept4 for GNU Hurd.
24608         * include/sys/socket.h (__libc_accept4): New prototype.
24609         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
24610         to implement __libc_accept4.
24611         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
24612         __libc_accept4.
24613         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
24614
24615         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
24616         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
24617         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
24618         signal-defines.sym.
24619
24620 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24621
24622         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
24623
24624 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24625
24626         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
24627         assertion on O_CLOEXEC flag.
24628         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
24629         * hurd/intern-fd.c: Likewise.
24630         * hurd/port2fd.c: Likewise.
24631
24632 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24633
24634         [BZ #3906]
24635         * bits/in.h (IPV6_PKTINFO): Define new macro.
24636         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
24637
24638 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24639
24640         [BZ #13954]
24641         [BZ #13955]
24642         [BZ #13956]
24643         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
24644         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
24645         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
24646         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
24647         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24648         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
24649         * math/libm-test.inc (logb_test) : Additional logb tests.
24650
24651 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
24652             Andreas Jaeger  <aj@suse.de>
24653
24654         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
24655         * configure: Regenerated.
24656         * config.h.in (LINK_OBSOLETE_RPC): New macro.
24657         * config.make.in (link-obsolete-rpc): New substituted variable.
24658         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
24659         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
24660         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
24661         (shared-only-routines): Don't set it under [link-obsolete-rpc],
24662         so that libc.a contains the symbols.
24663         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
24664         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
24665         * sunrpc/auth_none.c: Likewise.
24666         * sunrpc/auth_unix.c: Likewise.
24667         * sunrpc/authdes_prot.c: Likewise.
24668         * sunrpc/authuxprot.c: Likewise.
24669         * sunrpc/clnt_gen.c: Likewise.
24670         * sunrpc/clnt_perr.c: Likewise.
24671         * sunrpc/clnt_raw.c: Likewise.
24672         * sunrpc/clnt_simp.c: Likewise.
24673         * sunrpc/clnt_tcp.c: Likewise.
24674         * sunrpc/clnt_udp.c: Likewise.
24675         * sunrpc/clnt_unix.c: Likewise.
24676         * sunrpc/des_crypt.c: Likewise.
24677         * sunrpc/des_soft.c: Likewise.
24678         * sunrpc/get_myaddr.c: Likewise.
24679         * sunrpc/key_call.c: Likewise.
24680         * sunrpc/key_prot.c: Likewise.
24681         * sunrpc/netname.c: Likewise.
24682         * sunrpc/pm_getmaps.c: Likewise.
24683         * sunrpc/pm_getport.c: Likewise.
24684         * sunrpc/pmap_clnt.c: Likewise.
24685         * sunrpc/pmap_prot.c: Likewise.
24686         * sunrpc/pmap_prot2.c: Likewise.
24687         * sunrpc/pmap_rmt.c: Likewise.
24688         * sunrpc/publickey.c: Likewise.
24689         * sunrpc/rpc_cmsg.c: Likewise.
24690         * sunrpc/rpc_common.c: Likewise.
24691         * sunrpc/rpc_dtable.c: Likewise.
24692         * sunrpc/rpc_prot.c: Likewise.
24693         * sunrpc/rpc_thread.c: Likewise.
24694         * sunrpc/rtime.c: Likewise.
24695         * sunrpc/svc.c: Likewise.
24696         * sunrpc/svc_auth.c: Likewise.
24697         * sunrpc/svc_raw.c: Likewise.
24698         * sunrpc/svc_run.c: Likewise.
24699         * sunrpc/svc_tcp.c: Likewise.
24700         * sunrpc/svc_udp.c: Likewise.
24701         * sunrpc/svc_unix.c: Likewise.
24702         * sunrpc/svcauth_des.c: Likewise.
24703         * sunrpc/xcrypt.c: Likewise.
24704         * sunrpc/xdr.c: Likewise.
24705         * sunrpc/xdr_array.c: Likewise.
24706         * sunrpc/xdr_float.c: Likewise.
24707         * sunrpc/xdr_intXX_t.c: Likewise.
24708         * sunrpc/xdr_mem.c: Likewise.
24709         * sunrpc/xdr_rec.c: Likewise.
24710         * sunrpc/xdr_ref.c: Likewise.
24711         * sunrpc/xdr_sizeof.c: Likewise.
24712         * sunrpc/xdr_stdio.c: Likewise.
24713
24714 2012-05-10  Roland McGrath  <roland@hack.frob.com>
24715
24716         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
24717         change.  Update copyright years.
24718
24719 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
24720
24721         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
24722
24723 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
24724             Joseph Myers  <joseph@codesourcery.com>
24725             Paul Pluzhnikov  <ppluzhnikov@google.com>
24726
24727         [BZ #14012]
24728         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
24729         requiring rpcgen.
24730         [cross-compiling] (extra-libs): Likewise.
24731         [cross-compiling] (extra-libs-others): Likewise.
24732         [cross-compiling] (librpcsvc-routines): Likewise.
24733         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
24734         [cross-compiling] (omit-deps): Likewise.
24735         (sunrpc-CPPFLAGS): New variable.
24736         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
24737         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
24738         (cross-rpcgen-objs): New variable.
24739         (extra-objs): Append $(cross-rpcgen-objs).
24740         ($(cross-rpcgen-objs)): New rule.
24741         ($(objpfx)cross-rpcgen): Likewise.
24742         (rpcgen-cmd): Define to use $(built-program-file).  Expand
24743         comment.
24744         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
24745         ($(objpfx)x%.stmp): Likewise.
24746         * sunrpc/proto.h [IS_IN_build] (_): Define.
24747         [IS_IN_build] (_libc_intl_domainname): Likewise.
24748
24749 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24750
24751         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
24752         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
24753         and R_X86_64_TPOFF64.
24754
24755 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
24756
24757         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
24758         sysdeps/unix/sysv/syscalls.list.
24759         (stime): Likewise.
24760         (utime): Likewise.
24761         * sysdeps/unix/sysv/syscalls.list: Remove file.
24762
24763 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
24764
24765         [BZ #3440]
24766         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
24767         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
24768         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
24769         (__LC_IDENTIFICATION): Make these macros useful in #if
24770         expressions, as required by C99.
24771
24772 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
24773
24774         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
24775         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
24776         after this.
24777
24778 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
24779
24780         * stdlib/longlong.h: Updated from GCC.
24781
24782 2012-05-09  Andreas Jaeger  <aj@suse.de>
24783
24784         * nscd/nscd.c (run_modes): Make named enum, reorder so that
24785         default is first entry.
24786         (run_mode): Set type.
24787         (main): Remove informal message about syslog.
24788         (options): Fix typo.
24789
24790         [BZ #14053]
24791         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
24792         to asm.
24793         (lrint): Likewise.
24794         (llrintf): Likewise.
24795         (llrint): Likewise.
24796         (rint): Likewise.
24797         (rintf): Likewise.
24798         (nearbyint): Likewise.
24799         (nearbyintf): Likewise.
24800
24801 2012-05-09  Andreas Jaeger  <aj@suse.de>
24802             Pedro Alves  <palves@redhat.com>
24803
24804         * nscd/nscd.c (run_mode): Use enum.
24805         (main): Cleanup coding style issue.
24806
24807 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
24808             Andreas Jaeger  <aj@suse.de>
24809
24810         * nscd/nscd.c (go_background): Replaced with...
24811         (run_mode): ... this.
24812         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
24813         (options): Add -F --foreground.
24814         (main): Implement it.
24815         (parse_opt): Parse it.
24816
24817 2012-05-09  Andreas Jaeger  <aj@suse.de>
24818
24819         [BZ #14083]
24820         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
24821         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
24822         -Wconversion warning.
24823         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
24824         Likewise.
24825
24826 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
24827
24828         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
24829         == 0.
24830         (LC_ALL): Use macro-int-constant.
24831         (LC_COLLATE): Likewise.
24832         (LC_CTYPE): Likewise.
24833         (LC_MESSAGES): Likewise.
24834         (LC_MONETARY): Likewise.
24835         (LC_NUMERIC): Likewise.
24836         (LC_TIME): Likewise.
24837         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
24838         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
24839         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24840         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
24841         Specify type.
24842         [C99-based standards] (float_t): Expect type.
24843         [C99-based standards] (double_t): Expect type.
24844         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
24845         type.
24846         [C99-based standards] (HUGE_VALL): Likewise.
24847         [C99-based standards] (INFINITY): Likewise.
24848         [C99-based standards] (NAN): Likewise.
24849         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
24850         [C99-based standards] (FP_NAN): Likewise.
24851         [C99-based standards] (FP_NORMAL): Likewise.
24852         [C99-based standards] (FP_SUBNORMAL): Likewise.
24853         [C99-based standards] (FP_ZERO): Likewise.
24854         [C99-based standards] (FP_FAST_FMA): Use
24855         optional-macro-int-constant.  Specify type.  Require == 1.
24856         [C99-based standards] (FP_FAST_FMAF): Likewise.
24857         [C99-based standards] (FP_FAST_FMAL): Likewise.
24858         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
24859         [C99-based standards] (FP_ILOGBNAN): Likewise.
24860         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
24861         Specify type.
24862         [C99-based standards] (MATH_ERREXCEPT): Likewise.
24863         [C99-based standards] (math_errhandling): Specify type.
24864         [ISO99 || ISO11] (signgam): Do not allow.
24865         [non-C99-based standards] (copysignf): Do not allow.
24866         [non-C99-based standards] (exp2f): Likewise.
24867         [non-C99-based standards] (log2f): Likewise.
24868         [non-C99-based standards] (modff): Allow.
24869         [non-C99-based standards] (erff): Do not allow.
24870         [non-C99-based standards] (erfcf): Likewise.
24871         [non-C99-based standards] (gammaf): Likewise.
24872         [non-C99-based standards] (hypotf): Likewise.
24873         [non-C99-based standards] (j0f): Likewise.
24874         [non-C99-based standards] (j1f): Likewise.
24875         [non-C99-based standards] (jnf): Likewise.
24876         [non-C99-based standards] (lgammaf): Likewise.
24877         [non-C99-based standards] (tgammaf): Likewise.
24878         [non-C99-based standards] (y0f): Likewise.
24879         [non-C99-based standards] (y1f): Likewise.
24880         [non-C99-based standards] (ynf): Likewise.
24881         [non-C99-based standards] (isnanf): Likewise.
24882         [non-C99-based standards] (acoshf): Likewise.
24883         [non-C99-based standards] (asinhf): Likewise.
24884         [non-C99-based standards] (atanhf): Likewise.
24885         [non-C99-based standards] (cbrtf): Likewise.
24886         [non-C99-based standards] (expm1f): Likewise.
24887         [non-C99-based standards] (ilogbf): Likewise.
24888         [non-C99-based standards] (log1pf): Likewise.
24889         [non-C99-based standards] (logbf): Likewise.
24890         [non-C99-based standards] (nextafterf): Likewise.
24891         [non-C99-based standards] (remainderf): Likewise.
24892         [non-C99-based standards] (rintf): Likewise.
24893         [non-C99-based standards] (scalbf): Likewise.
24894         [non-C99-based standards] (copysignl): Likewise.
24895         [non-C99-based standards] (exp2l): Likewise.
24896         [non-C99-based standards] (log2l): Likewise.
24897         [non-C99-based standards] (modfl): Allow.
24898         [non-C99-based standards] (erfl): Do not allow.
24899         [non-C99-based standards] (erfcl): Likewise.
24900         [non-C99-based standards] (gammal): Likewise.
24901         [non-C99-based standards] (hypotl): Likewise.
24902         [non-C99-based standards] (j0l): Likewise.
24903         [non-C99-based standards] (j1l): Likewise.
24904         [non-C99-based standards] (jnl): Likewise.
24905         [non-C99-based standards] (lgammal): Likewise.
24906         [non-C99-based standards] (tgammal): Likewise.
24907         [non-C99-based standards] (y0l): Likewise.
24908         [non-C99-based standards] (y1l): Likewise.
24909         [non-C99-based standards] (ynl): Likewise.
24910         [non-C99-based standards] (isnanl): Likewise.
24911         [non-C99-based standards] (acoshl): Likewise.
24912         [non-C99-based standards] (asinhl): Likewise.
24913         [non-C99-based standards] (atanhl): Likewise.
24914         [non-C99-based standards] (cbrtl): Likewise.
24915         [non-C99-based standards] (expm1l): Likewise.
24916         [non-C99-based standards] (ilogbl): Likewise.
24917         [non-C99-based standards] (log1pl): Likewise.
24918         [non-C99-based standards] (logbl): Likewise.
24919         [non-C99-based standards] (nextafterl): Likewise.
24920         [non-C99-based standards] (remainderl): Likewise.
24921         [non-C99-based standards] (rintl): Likewise.
24922         [non-C99-based standards] (scalbl): Likewise.
24923         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24924         [non-C99-based standards] (FP_*): Do not allow.
24925         [C99-based standards] (FP_*): Change to
24926         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
24927         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
24928         allow.
24929         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
24930         (SIG_ERR): Likewise.
24931         [X/Open-based standards] (SIG_HOLD): Likewise.
24932         (SIG_IGN): Likewise.
24933         (SIGABRT): Use macro-int-constant.  Specify type.  Require
24934         positive value.
24935         (SIGFPE): Likewise.
24936         (SIGILL): Likewise.
24937         (SIGINT): Likewise.
24938         (SIGSEGV): Likewise.
24939         (SIGTER): Likewise.
24940         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
24941         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
24942         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
24943         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
24944         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
24945         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
24946         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
24947         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
24948         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
24949         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
24950         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
24951         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
24952         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
24953         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
24954         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
24955         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
24956         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
24957         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
24958         [X/Open-based standards] (SIGTRAP): Likewise.
24959         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
24960         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
24961         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
24962         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
24963         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
24964         allow.
24965
24966 2012-05-08  Ian Wienand  <ianw@vmware.com>
24967
24968         [BZ #14080]
24969         * time/tzset.c (__tzset_parse_tz): Update default rules for
24970         daylight time changes in the Energy Policy Act of 2005.
24971
24972 2012-05-09  Andreas Jaeger  <aj@suse.de>
24973
24974         [BZ #13983]
24975         * elf/ldconfig.c (parse_conf): Change string to make clear that
24976         ldconfig only issued a warning if ld.so.conf does not exist.
24977
24978 2012-05-08  David S. Miller  <davem@davemloft.net>
24979
24980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
24981         movxtod instead of popping the value on the stack.
24982
24983         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24984
24985 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
24986
24987         * config.h.in: Add HAVE_ARM_PCS_VFP.
24988
24989 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
24990
24991         [BZ #13979]
24992         * include/features.h: Warn if user requests __FORTIFY_SOURCE
24993         checking but the checks are disabled for any reason.
24994
24995 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
24996
24997         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
24998         and ELF64_R_TYPE with ELFW(R_TYPE).
24999
25000 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
25001
25002         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
25003         (ulimit): Likewise.
25004
25005         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
25006         (settimeofday): Likewise.
25007
25008 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
25009
25010         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
25011         a struct th_u2 inside the union, and move tu_block/tu_code into
25012         a new th_u3 union of tu_block/tu_code inside of that.  Move
25013         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
25014         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
25015         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
25016         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
25017         (th_stuff): Change to th_u1.tu_stuff.
25018         (th_data): Define.
25019         (th_msg): Change to th_u1.th_u2.tu_data.
25020
25021 2012-05-07  David S. Miller  <davem@davemloft.net>
25022
25023         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25024
25025         [BZ #14074]
25026         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
25027         (SETUP_PIC_REG): Use it.
25028         (SETUP_PIC_REG_LEAF): Use it.
25029
25030 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
25031
25032         [BZ #13885]
25033         [BZ #13923]
25034         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25035         USE_AS_EXPM1L.
25036         (EXPL_FINITE): Likewise.
25037         (FLDLOG): Likewise.
25038         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25039         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25040         e_expl.S.
25041         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25042         USE_AS_EXPM1L.
25043         (EXPL_FINITE): Likewise.
25044         (FLDLOG): Likewise.
25045         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25046         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25047         e_expl.S.
25048         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
25049         test of -max_value argument for long double.
25050         * sysdeps/i386/fpu/libm-test-ulps: Update.
25051         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25052
25053 2012-05-06  David S. Miller  <davem@davemloft.net>
25054
25055         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
25056         quad soft-float symbols whose references which are compiler
25057         generated.
25058         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25059
25060 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
25061
25062         [BZ #13884]
25063         [BZ #13914]
25064         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25065         USE_AS_EXP10L.
25066         (EXPL_FINITE): Likewise.
25067         (FLDLOG): Likewise.
25068         (c0): Likewise.
25069         (c1): Likewise.
25070         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25071         Adjust comments for base varying.
25072         (__expl_finite): Change alias to EXPL_FINITE.
25073         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
25074         e_expl.S.
25075         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
25076         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
25077         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
25078         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
25079         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25080         USE_AS_EXP10L.
25081         (EXPL_FINITE): Likewise.
25082         (FLDLOG): Likewise.
25083         (c0): Likewise.
25084         (c1): Likewise.
25085         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25086         Adjust comments for base varying.
25087         (__expl_finite): Change alias to EXPL_FINITE.
25088         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
25089         tests for bugs.
25090         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25091
25092         [BZ #14064]
25093         * math/libm-test.inc (check_float_internal): Correct ulp
25094         calculation for subnormal expected results.
25095
25096 2012-05-06  Andreas Jaeger  <aj@suse.de>
25097
25098         * Makeconfig (+math-flags): New, set to -frounding-math.
25099         (+cflags): Add +math-flags so that all of glibc gets compiled with
25100         it.
25101
25102         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
25103
25104 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
25105
25106         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
25107         Disable one test.
25108
25109         [BZ #13787]
25110         [BZ #13922]
25111         [BZ #14036]
25112         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
25113         (__ieee754_expl): Allow for and saturate large arguments.
25114         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
25115         (u_threshold): Likewise.
25116         (__exp): Call __ieee754_exp before checking for overflow and
25117         underflow.
25118         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
25119         (u_threshold): Likewise.
25120         (__expf): Call __ieee754_expf before checking for overflow and
25121         underflow.
25122         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
25123         (u_threshold): Likewise.
25124         (__expl): Call __ieee754_expl before checking for overflow and
25125         underflow.
25126         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
25127         (__ieee754_expl): Allow for and saturate large arguments.
25128         * math/libm-test.inc (exp_test): Add another test.  Do not allow
25129         missing overflow exception on overflow.
25130         (expm1_test): Do not allow missing overflow exception on overflow.
25131
25132         * sysdeps/i386/fpu/e_expl.c: Move to ...
25133         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
25134         rather than using inline asm.
25135         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
25136         * sysdeps/x86_64/fpu/e_expl.S: Copy from
25137         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
25138
25139         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
25140         (nice): Likewise.
25141         (poll): Likewise.
25142         (signal): Likewise.
25143         (time): Likewise.
25144         (times): Likewise.
25145
25146 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25147
25148         * sysdeps/unix/syscalls.list (adjtime): Add entry from
25149         sysdeps/unix/common/syscalls.list.
25150         (fchmod): Likewise.
25151         (fchown): Likewise.
25152         (ftruncate): Likewise.
25153         (getrusage): Likewise.
25154         (gettimeofday): Likewise.
25155         (setpgid): Likewise.
25156         (setregid): Likewise.
25157         (setreuid): Likewise.
25158         (sigaction): Likewise.
25159         (truncate): Likewise.
25160         (vhangup): Likewise.
25161         * sysdeps/unix/common/syscalls.list: Remove file.
25162         * sysdeps/unix/bsd/Implies: Don't include unix/common.
25163         * sysdeps/unix/sysv/linux/Implies: Likewise.
25164
25165 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
25166
25167         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
25168         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
25169         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
25170         Moved to ...
25171         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
25172         Here.
25173         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
25174         to ...
25175         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
25176         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
25177         to ...
25178         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
25179         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
25180         to ...
25181         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
25182         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
25183         to ...
25184         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
25185         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
25186         to ...
25187         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
25188         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
25189         to ...
25190         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
25191         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
25192         to ...
25193         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
25194         Here.
25195         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
25196         to ...
25197         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
25198         Here.
25199         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
25200         to ...
25201         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
25202         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
25203         Moved to ...
25204         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
25205         Here.
25206         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
25207         to ...
25208         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
25209
25210 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25211
25212         * sysdeps/unix/common/bits/dirent.h: Remove file.
25213         * sysdeps/unix/common/bits/fcntl.h: Likewise.
25214
25215         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
25216         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
25217         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
25218         * sysdeps/unix/bsd/isatty.c: Likewise.
25219         * sysdeps/unix/bsd/tcdrain.c: Likewise.
25220         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
25221         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
25222
25223 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25224
25225         [BZ #13563]
25226         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
25227         long double comparison inaccuracies.
25228         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
25229         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25230
25231 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
25232
25233         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
25234         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
25235
25236 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25237
25238         [BZ #14049]
25239         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
25240         nonzero digits before rounding a hex value.
25241         * stdlib/tst-strtod.c (tests): Add another test.
25242
25243 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25244
25245         * sysdeps/s390/fpu/libm-test-ulps: Update.
25246
25247 2012-05-03  Andreas Jaeger  <aj@suse.de>
25248
25249         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
25250         does not get optimized out.
25251         (malloc_opt_barrier): New.
25252
25253 2012-05-03  Andreas Jaeger  <aj@suse.de>
25254             Roland McGrath  <roland@hack.frob.com>
25255
25256         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
25257         intermediate file deletion.
25258         (generated): Add .symlist files.
25259
25260 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
25261
25262         [BZ #13775]
25263         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
25264         Redirect under this condition.
25265         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25266         [__USE_GNU] (__dprintf_chk): Not under this condition.
25267         [__USE_GNU] (__vdprintf_chk): Likewise.
25268         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
25269         under this condition.
25270         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25271         [__USE_XOPEN2K8] (dprintf): Define under this condition.
25272         [__USE_XOPEN2K8] (vdprintf): Likewise.
25273         [__USE_GNU] (__dprintf_chk): Not under this condition.
25274         [__USE_GNU] (__vdprintf_chk): Likewise.
25275         [__USE_GNU] (dprintf): Likewise.
25276         [__USE_GNU] (vdprintf): Likewise.
25277
25278 2012-05-03  Roland McGrath  <roland@hack.frob.com>
25279
25280         * elf/Makefile (common-generated): Set this instead of generated for
25281         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
25282         $(all-built-dso)-derived lists.
25283
25284 2012-05-03  Andreas Jaeger  <aj@suse.de>
25285
25286         * sysdeps/i386/fpu/libm-test-ulps: Update.
25287
25288         * FAQ: Removed.
25289         * FAQ.in: Likewise.
25290         * scripts/gen-FAQ.pl: Likewise.
25291         * manual/install.texi (Installation): Point to online location of
25292         FAQ.
25293         * Makefile (files-for-dist): Remove FAQ.
25294         (FAQ): Remove.
25295
25296 2012-05-02  Allan McRae  <allan@archlinux.org>
25297
25298         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
25299         (LDFLAGS-reldepmod5.so): Likewise.
25300         (LDFLAGS-reldep6mod1.so): Likewise.
25301         (LDFLAGS-reldep6mod4.so): Likewise.
25302         (LDFLAGS-reldep8mod3.so): Likewise.
25303         (LDFLAGS-unload4mod1.so): Likewise.
25304         (LDFLAGS-unload4mod2.so): Likewise.
25305         (LDFLAGS-tst-initorder): Likewise.
25306         (LDFLAGS-tst-initordera2.so): Likewise.
25307         (LDFLAGS-tst-initordera3.so): Likewise.
25308         (LDFLAGS-tst-initordera4.so): Likewise.
25309         (LDFLAGS-tst-initorderb2.so): Likewise.
25310         (LDFLAGS-noload): Likewise.
25311         (LDFLAGS-next): Likewise.
25312         (LDFLAGS-order2mod1.so): Likewise.
25313         (LDFLAGS-order2mod2.so): Likewise.
25314         (LDFLAGS-tst-initorder2): Likewise.
25315         (LDFLAGS-tst-initorder2a.so): Likewise.
25316         (LDFLAGS-tst-initorder2b.so): Likewise.
25317         (LDFLAGS-tst-initorder2c.so): Likewise.
25318         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
25319
25320 2012-05-02  David S. Miller  <davem@davemloft.net>
25321
25322         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25323
25324 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
25325
25326         [BZ #14055]
25327         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
25328
25329 2012-05-02  Andreas Jaeger  <aj@suse.de>
25330
25331         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
25332         since we manipulate rounding mode.
25333         (CPPFLAGS-test-idouble.c): Likewise.
25334         (CPPFLAGS-test-ifloat.c): Likewise.
25335         (CFLAGS-test-ldouble.c): Likewise.
25336         (CFLAGS-test-double.c): Likewise.
25337         (CFLAGS-test-float.c): Likewise.
25338         (CFLAGS-test-misc.c): Likewise.
25339         (CFLAGS-test-test-fenv.c): Likewise.
25340
25341 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25342
25343         [BZ #2550]
25344         [BZ #2570]
25345         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
25346         comparisons to determine direction to adjust input.
25347
25348 2012-05-01  Roland McGrath  <roland@hack.frob.com>
25349
25350         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
25351         output to the target.
25352
25353         * scripts/localplt.awk: New file.
25354         * elf/Makefile ($(objpfx)check-localplt): Target removed.
25355         (check-localplt-CFLAGS): Variable removed.
25356         ($(all-built-dso:=.jmprel)): New static pattern rule.
25357         (generated): Add those targets.
25358         (localplt-built-dso): New variable.
25359         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
25360
25361         * elf/check-localplt.c: File removed.
25362
25363         * scripts/check-execstack.awk: New file.
25364         * elf/Makefile ($(objpfx)check-execstack): Target removed.
25365         (check-execstack-CFLAGS): Variable removed.
25366         ($(objpfx)check-execstack.h): Target removed.
25367         ($(objpfx)execstack-default): New target.
25368         (generated): Add that instead of check-execstack.h.
25369         ($(all-built-dso:=.phdr)): New static pattern rule.
25370         (generated): Add those targets.
25371         * elf/check-execstack.c: File removed.
25372
25373         * scripts/check-textrel.awk: New file.
25374         * elf/Makefile ($(objpfx)check-textrel): Target removed.
25375         (check-textrel-CFLAGS): Variable removed.
25376         (all-built-dso): Use := to define.o
25377         ($(all-built-dso:=.dyn)): New static pattern rule.
25378         (generated): Add those targets.
25379         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
25380         * config.make.in (READELF): New substituted variable.
25381         * elf/check-textrel.c: File removed.
25382
25383 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
25384
25385         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25386         allow.
25387         * conform/data/ctype.h-data [C99-based standards] (isblank):
25388         Expect function.
25389         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
25390         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
25391         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25392         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
25393         Specify type.  Require positive value.
25394         (EILSEQ): Likewise.
25395         (ERANGE): Likewise.
25396         [ISO || POSIX] (EILSEQ): Do not expect.
25397         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
25398         Specify type.  Require positive value.
25399         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
25400         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
25401         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
25402         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
25403         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
25404         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
25405         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
25406         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
25407         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
25408         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
25409         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
25410         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
25411         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
25412         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
25413         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
25414         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
25415         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
25416         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
25417         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
25418         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
25419         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
25420         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
25421         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
25422         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
25423         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
25424         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
25425         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
25426         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
25427         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
25428         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
25429         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
25430         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
25431         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
25432         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
25433         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
25434         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
25435         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
25436         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
25437         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
25438         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
25439         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
25440         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
25441         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
25442         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
25443         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
25444         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
25445         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
25446         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
25447         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
25448         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
25449         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
25450         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
25451         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
25452         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
25453         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
25454         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
25455         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
25456         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
25457         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
25458         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
25459         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
25460         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
25461         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
25462         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
25463         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
25464         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
25465         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
25466         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
25467         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
25468         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
25469         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
25470         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
25471         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
25472         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
25473         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
25474         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
25475         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
25476         Require >= 2.
25477         (FLT_ROUNDS): Expect as macro, not constant.
25478         (FLT_MANT_DIG): Use macro-int-constant.
25479         (DBL_MANT_DIG): Likewise.
25480         (LDBL_MANT_DIG): Likewise.
25481         (FLT_DIG): Likewise.
25482         (DBL_DIG): Likewise.
25483         (LDBL_DIG): Likewise.
25484         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
25485         (DBL_MIN_EXP): Likewise.
25486         (LDBL_MIN_EXP): Likewise.
25487         (FLT_MAX_EXP): Use macro-int-constant.
25488         (DBL_MAX_EXP): Likewise.
25489         (LDBL_MAX_EXP): Likewise.
25490         (FLT_MAX_10_EXP): Likewise.
25491         (DBL_MAX_10_EXP): Likewise.
25492         (LDBL_MAX_10_EXP): Likewise.
25493         (FLT_MAX): Use macro-constant.
25494         (DBL_MAX): Likewise.
25495         (LDBL_MAX): Likewise.
25496         (FLT_EPSILON): Use macro-constant.  Give upper bound.
25497         (DBL_EPSILON): Likewise.
25498         (LDBL_EPSILON): Likewise.
25499         (FLT_MIN): Likewise.
25500         (DBL_MIN): Likewise.
25501         (LDBL_MIN): Likewise.
25502         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
25503         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
25504         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
25505         [ISO11] (FLT_HAS_SUBNORM): Likewise.
25506         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
25507         [ISO11] (DBL_DECIMAL_DIG): Likewise.
25508         [ISO11] (FLT_DECIMAL_DIG): Likewise.
25509         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
25510         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
25511         [ISO11] (FLT_TRUE_MIN): Likewise.
25512         [ISO11] (LDBL_TRUE_MIN): Likewise.
25513         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25514         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
25515         (SCHAR_MIN): Use macro-int-constant.  Specify type.
25516         (SCHAR_MAX): Likewise.
25517         (UCHAR_MAX): Likewise.
25518         (CHAR_MIN): Likewise.
25519         (CHAR_MAX): Likewise.
25520         (MB_LEN_MAX): Use macro-int-constant.
25521         (SHRT_MIN): Use macro-int-constant.  Specify type.
25522         (SHRT_MAX): Likewise.
25523         (USHRT_MAX): Likewise.
25524         (INT_MAX): Likewise.
25525         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
25526         bound negative.
25527         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25528         bound with "U".
25529         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25530         bound with "L".
25531         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
25532         bound negative.  Suffix upper bound with "L".
25533         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25534         bound with "UL".
25535         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
25536         Specify type.
25537         [C99-based standards] (LLONG_MAX): Likewise.
25538         [C99-based standards] (ULLONG_MAX): Likewise.
25539         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
25540         == 0.
25541         [ISO11] (max_align_t): Require type.
25542         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25543
25544         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
25545         from $CFLAGS, without defining away __attribute__ calls.
25546         (checknamespace): Use $CFLAGS_namespace.
25547
25548         * conform/conformtest.pl (@keywords): Only include C99 keywords
25549         for standards based on C99 or C11.
25550
25551         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
25552         Disable tests.
25553         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
25554         UNIX98]: Likewise.
25555
25556         * conform/conformtest.pl: Handle "macro-int-constant" and test for
25557         usability of symbols in #if.
25558
25559         * conform/conformtest.pl: If macro or constant types start
25560         "promoted:", expect the symbol to be of the following type
25561         promoted by the integer promotions.
25562
25563         * conform/conformtest.pl: Parse all "constant" and "macro" lines
25564         in one place.  Also handle "macro-constant".
25565
25566         * conform/conformtest.pl: Only accept expected macro values with
25567         "==".  Parse all "macro" lines in one place.
25568         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
25569
25570         * conform/conformtest.pl: Handle braced types on "constant" lines
25571         instead of handling "typed-constant".
25572         * conform/data/signal.h-data: Use "constant" instead of
25573         "typed-constant".
25574
25575         * conform/conformtest.pl: Handle "optional-" at start of lines in
25576         one place rather than duplicating several cases.  Handle each
25577         format of "macro" line with initial "optional-".
25578
25579         * conform/conformtest.pl: Only accept expected constant or
25580         optional-constant values with "==".  Parse all "constant" lines in
25581         one place.  Parse all "optional-constant" lines in one place.
25582         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
25583         * conform/data/fmtmsg.h-data: Likewise.
25584         * conform/data/netinet/in.h-data: Likewise.
25585         * conform/data/tar.h-data: Likewise.
25586         * conform/data/limits.h-data: Use "==" form on "constant" and
25587         "optional-constant" lines.
25588
25589         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
25590         Use -std=c99 for XOPEN2K.
25591         (@knownproblems): Remove.
25592         (newtoken): Don't check %isknown.
25593
25594         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
25595         Do not expect macro.
25596         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
25597         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
25598         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
25599         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
25600         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
25601         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
25602         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
25603         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
25604         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
25605         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
25606         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
25607         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
25608         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
25609         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
25610         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
25611         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
25612         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
25613         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
25614         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
25615         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
25616         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
25617         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
25618         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
25619         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
25620         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
25621         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
25622         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
25623         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
25624         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
25625         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
25626         [XPG3] (acosh): Likewise.
25627         [XPG3] (asinh): Likewise.
25628         [XPG3] (atanh): Likewise.
25629         [XPG3] (cbrt): Likewise.
25630         [XPG3] (expm1): Likewise.
25631         [XPG3] (ilogb): Likewise.
25632         [XPG3] (log1p): Likewise.
25633         [XPG3] (logb): Likewise.
25634         [XPG3] (nextafter): Likewise.
25635         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
25636         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
25637         [XPG3] (remainder): Likewise.
25638         [XPG3] (rint): Likewise.
25639         [XPG3 || XPG4 || UNIX98] (round): Likewise.
25640         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
25641         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
25642         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
25643         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
25644         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
25645         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
25646         [UNIX98 || XOPEN2K] (scalb): Expect.
25647         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
25648         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
25649         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
25650         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
25651         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
25652         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
25653         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
25654         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
25655         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
25656         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
25657         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
25658         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
25659         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
25660         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
25661         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
25662         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
25663         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
25664         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
25665         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
25666         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
25667         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
25668         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
25669         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
25670         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
25671         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
25672         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
25673         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
25674         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
25675         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
25676         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
25677         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
25678         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
25679         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
25680         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
25681         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
25682         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
25683         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
25684         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
25685         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
25686         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
25687         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
25688         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
25689         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
25690         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
25691         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
25692         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
25693         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
25694         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
25695         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
25696         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
25697         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
25698         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
25699         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
25700         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
25701         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
25702         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
25703         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
25704         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
25705         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
25706         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
25707         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
25708         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
25709         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
25710         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
25711         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
25712         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
25713         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
25714         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
25715         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
25716         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
25717         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
25718         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
25719         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
25720         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
25721         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
25722         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
25723         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
25724         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
25725         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
25726         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
25727         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
25728         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
25729         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
25730         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
25731         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
25732         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
25733         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
25734         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
25735         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
25736         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
25737         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
25738         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
25739         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
25740         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
25741         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
25742         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
25743         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
25744         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
25745         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
25746         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
25747         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
25748         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
25749         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
25750         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
25751         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
25752         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
25753         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
25754         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
25755         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
25756         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
25757         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
25758         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
25759         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
25760         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
25761         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
25762         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
25763         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
25764         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
25765         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
25766         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
25767         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
25768         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
25769         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
25770         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
25771         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
25772         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
25773         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
25774         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
25775         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
25776         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
25777         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
25778         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
25779         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
25780         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
25781         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
25782         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
25783         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
25784
25785         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
25786         _XOPEN_SOURCE_EXTENDED for XPG4.
25787
25788         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
25789
25790         * Makeconfig (localtime): Remove variable.
25791         (inst_localtime-file): Likewise.
25792
25793 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
25794
25795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
25796         Update.
25797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25798         Update.
25799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
25800         Update.
25801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
25802         Update.
25803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
25804         Update.
25805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
25806         Update.
25807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25808         Update.
25809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
25810         Update.
25811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
25812         Update.
25813
25814 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
25815
25816         [BZ #2550]
25817         [BZ #2570]
25818         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
25819         comparisons to determine direction to adjust input.
25820         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
25821         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
25822         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
25823         Likewise.
25824         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
25825         Likewise.
25826         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
25827         Likewise.
25828         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
25829         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
25830         Likewise.
25831         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
25832         Likewise.
25833         * math/libm-test.inc (nexttoward_test): Add more tests.
25834
25835 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
25836
25837         [BZ #14040]
25838         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
25839         in version GLIBC_2.1, not GLIBC_2.0.
25840         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
25841         Likewise.
25842
25843 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
25844
25845         [BZ #13942]
25846         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
25847         (1 - x) * (1 + x).
25848         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
25849         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
25850         * math/libm-test.inc (acos_test): Add more tests.
25851         (asin_test): Likewise.
25852         * sysdeps/i386/fpu/libm-test-ulps: Update.
25853         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25854
25855         [BZ #14034]
25856         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
25857         of square root.
25858         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
25859         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
25860         * math/libm-test.inc (acos_test_tonearest): New function.
25861         (acos_test_towardzero): Likewise.
25862         (acos_test_downward): Likewise.
25863         (acos_test_upward): Likewise.
25864         (asin_test_tonearest): Likewise.
25865         (asin_test_towardzero): Likewise.
25866         (asin_test_downward): Likewise.
25867         (asin_test_upward): Likewise.
25868         (main): Call the new functions.
25869         * sysdeps/i386/fpu/libm-test-ulps: Update.
25870         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25871
25872         [BZ #13884]
25873         [BZ #13924]
25874         * math/e_exp10.c: Include <float.h>.
25875         (__ieee754_exp10): Handle underflow here rather than multiplying
25876         large negative argument by M_LN10.
25877         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
25878         of __ieee754_expf.
25879         * math/e_exp10l.c: Include <float.h>.
25880         (__ieee754_exp10l): Handle underflow here rather than multiplying
25881         large negative argument by M_LN10l.
25882         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
25883         spurious overflow exception on underflow.
25884
25885 2012-04-29  Marek Polacek  <polacek@redhat.com>
25886
25887         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
25888         (__fortify_function): New macro.
25889         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
25890         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
25891         __extern_always_inline.
25892         * libio/bits/stdio2.h: Likewise.
25893         * libio/bits/stdio.h: Likewise.
25894         * string/string.h: Likewise.
25895         * string/bits/string3.h: Likewise.
25896         * include/stdio.h: Likewise.
25897         * stdlib/bits/stdlib.h: Likewise.
25898         * stdlib/stdlib.h: Likewise.
25899         * rt/bits/mqueue2.h: Likewise.
25900         * rt/mqueue.h: Likewise.
25901         * posix/bits/unistd.h: Likewise.
25902         * posix/unistd.h: Likewise.
25903         * io/bits/poll2.h: Likewise.
25904         * io/bits/fcntl2.h: Likewise.
25905         * io/fcntl.h: Likewise.
25906         * io/sys/poll.h: Likewise.
25907         * misc/bits/syslog.h: Likewise.
25908         * misc/bits/syslog-ldbl.h: Likewise.
25909         * misc/sys/syslog.h: Likewise.
25910         * socket/bits/socket2.h: Likewise.
25911         * socket/sys/socket.h: Likewise.
25912         * debug/tst-chk1.c: Likewise.
25913         * wcsmbs/bits/wchar2.h: Likewise.
25914         * wcsmbs/bits/wchar-ldbl.h: Likewise.
25915         * wcsmbs/wchar.h: Likewise.
25916
25917 2012-04-29  Andreas Jaeger  <aj@suse.de>
25918
25919         * Makerules (tests): Remove enable-check-abi protection.
25920         (check-abi-warn): Remove.
25921         (check-abi-%): Remove check-abi-warn usage.
25922
25923         * configure.in: Remove check-abi configure option.
25924         * configure: Regenerated.
25925         * config.make.in (enable-check-abi): Remove.
25926
25927 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
25928
25929         [BZ #14033]
25930         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
25931         double functions to double *_finite functions.
25932
25933         [BZ #13941]
25934         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
25935         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
25936         LDBL_MIN_EXP.
25937         * stdio-common/Makefile (tests): Add tst-sprintf3.
25938         * stdio-common/tst-sprintf3.c: New file.
25939
25940         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
25941         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
25942
25943 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
25944
25945         * conform/conformtest.pl: Remove duplicate typed-constant
25946         handling.
25947
25948 2012-04-28  David S. Miller  <davem@davemloft.net>
25949
25950         * Makerules (%.abilist): Add vpath on sysdep_dirs.
25951         (check-abi-%): Remove AWK script prerequisite and explicit
25952         abilist directory.
25953         (check-abi): Rewrite to just diff the symlist with the abilist.
25954         (config-tls, config-abi-config): Delete, no longer used.
25955         (update-abi-%): Remove AWK script and explicit abilist directory.
25956         (update-abi): Rewrite to simply compare and conditionally copy the
25957         symlist and the sysdep abilist file.  Remove update-abi-config
25958         checks.
25959         * abilist/ld.abilist: Remove.
25960         * abilist/libBrokenLocale.abilist: Remove.
25961         * abilist/libanl.abilist: Remove.
25962         * abilist/libcrypt.abilist: Remove.
25963         * abilist/libdl.abilist: Remove.
25964         * abilist/librt.abilist: Remove.
25965         * abilist/libthread_db.abilist: Remove.
25966         * abilist/libutil.abilist: Remove.
25967         * scripts/extract-abilist.awk: Remove.
25968         * scripts/merge-abilist.awk: Remove.
25969         * sysdeps/generic/libcidn.abilist: New file.
25970         * sysdeps/generic/libnss_compat.abilist: New file.
25971         * sysdeps/generic/libnss_db.abilist: New file.
25972         * sysdeps/generic/libnss_dns.abilist: New file.
25973         * sysdeps/generic/libnss_files.abilist: New file.
25974         * sysdeps/generic/libnss_hesiod.abilist: New file.
25975         * sysdeps/generic/libnss_nis.abilist: New file.
25976         * sysdeps/generic/libnss_nisplus.abilist: New file.
25977         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
25978         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
25979         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
25980         file.
25981         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
25982         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
25983         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
25984         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
25985         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
25986         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
25987         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
25988         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
25989         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
25990         file.
25991         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
25992         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
25993         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
25994         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
25995         file.
25996         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
25997         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
25998         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
25999         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
26000         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
26001         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
26002         file.
26003         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
26004         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
26005         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
26006         file.
26007         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
26008         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
26009         New file.
26010         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
26011         New file.
26012         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
26013         New file.
26014         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
26015         New file.
26016         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
26017         New file.
26018         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
26019         New file.
26020         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
26021         New file.
26022         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
26023         New file.
26024         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
26025         New file.
26026         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
26027         New file.
26028         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
26029         New file.
26030         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
26031         New file.
26032         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
26033         New file.
26034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
26035         file.
26036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
26037         New file.
26038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
26039         New file.
26040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
26041         file.
26042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
26043         New file.
26044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
26045         New file.
26046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
26047         file.
26048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
26049         New file.
26050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26051         New file.
26052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
26053         New file.
26054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
26055         New file.
26056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
26057         New file.
26058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
26059         New file.
26060         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
26061         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
26062         file.
26063         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
26064         New file.
26065         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
26066         file.
26067         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
26068         file.
26069         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
26070         file.
26071         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
26072         file.
26073         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
26074         file.
26075         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
26076         New file.
26077         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
26078         file.
26079         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
26080         file.
26081         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
26082         New file.
26083         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
26084         file.
26085         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
26086         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
26087         file.
26088         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
26089         New file.
26090         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
26091         file.
26092         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
26093         file.
26094         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
26095         file.
26096         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
26097         file.
26098         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
26099         file.
26100         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
26101         New file.
26102         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
26103         file.
26104         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
26105         file.
26106         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
26107         New file.
26108         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
26109         file.
26110         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
26111         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
26112         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
26113         file.
26114         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
26115         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
26116         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
26117         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
26118         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
26119         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
26120         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
26121         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
26122         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
26123         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
26124         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
26125         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
26126         file.
26127         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
26128         New file.
26129         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
26130         file.
26131         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
26132         file.
26133         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
26134         file.
26135         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
26136         file.
26137         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
26138         file.
26139         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
26140         New file.
26141         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
26142         New file.
26143         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
26144         file.
26145         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
26146         New file.
26147         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
26148         file.
26149         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
26150         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
26151         file.
26152         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
26153         New file.
26154         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
26155         file.
26156         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
26157         file.
26158         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
26159         file.
26160         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
26161         file.
26162         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
26163         file.
26164         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
26165         New file.
26166         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
26167         New file.
26168         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
26169         file.
26170         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
26171         New file.
26172         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
26173         file.
26174
26175 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26176
26177         * conform/conformtest.pl: Fix typo in handling typed-constant from
26178         allow-header.
26179
26180 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26181
26182         * README: Cut down references to pre-2.6 Linux kernels and
26183         Linuxthreads.  Update lists of configurations in libc and ports
26184         and sort alphabetically.  Say "or newer" with Linux kernel version
26185         requirements.
26186
26187         * config.h.in [IS_IN_build]: Allow compiling without optimization.
26188
26189 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
26190
26191         [BZ #887]
26192         * math/libm-test.inc (logb_test_downward): New test to expose
26193         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
26194         rounding mode.
26195
26196 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26197
26198         [BZ #14027]
26199         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
26200         to be done.
26201         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
26202         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
26203
26204 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
26205
26206         * sysdeps/unix/i386/brk.S: Remove file.
26207         * sysdeps/unix/i386/dl-brk.S: Likewise.
26208         * sysdeps/unix/i386/pipe.S: Likewise.
26209         * sysdeps/unix/i386/sigreturn.S: Likewise.
26210         * sysdeps/unix/i386/syscall.S: Likewise.
26211         * sysdeps/unix/i386/vfork.S: Likewise.
26212         * sysdeps/unix/i386/wait.S: Likewise.
26213
26214         * sysdeps/unix/common/tcsendbrk.c: Move to ...
26215         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
26216
26217         * configure.in (arm*-none*): Do not allow without
26218         --enable-hacker-mode.
26219         (netbsd*): Remove case setting base_os.
26220         (386bsd*): Likewise.
26221         (freebsd*): Likewise.
26222         (bsdi*): Likewise.
26223         (osf*): Likewise.
26224         (sunos*): Likewise.
26225         (ultrix*): Likewise.
26226         (newsos*): Likewise.
26227         (dynix*): Likewise.
26228         (*bsd*): Likewise.
26229         (sysv*): Likewise.
26230         (isc*): Likewise.
26231         (esix*): Likewise.
26232         (sco*): Likewise.
26233         (minix*): Likewise.
26234         (irix4*): Likewise.
26235         (irix6*): Likewise.
26236         (solaris[2-9]*): Likewise.
26237         (none): Likewise.
26238         * configure: Regenerated.
26239
26240 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26241
26242         [BZ #11521]
26243         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
26244         overflow or cancellation in calculating denominator.
26245         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
26246         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
26247         down expression to avoid unexpected rounding in newer GCCs.
26248         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
26249
26250 2012-04-26  David S. Miller  <davem@davemloft.net>
26251
26252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
26253         long-double compat symbols.
26254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
26255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
26256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
26257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
26258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
26259         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
26260         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
26261         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
26262         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
26263         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
26264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
26265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
26266         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
26267
26268 2012-04-25  David S. Miller  <davem@davemloft.net>
26269
26270         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
26271         HWCAP_* values only after the memory barriers have been defined.
26272         (atomic_full_barrier): Define.
26273         (atomic_read_barrier): Define.
26274         (atomic_write_barrier): Define.
26275
26276 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
26277
26278         * shlib-versions: Add libgcc_s version information.
26279         * sysdeps/generic/libgcc_s.h: Remove.
26280         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
26281         libgcc_s.h.
26282         * sysdeps/gnu/unwind-resume.c: Likewise.
26283         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
26284
26285 2012-04-25  David S. Miller  <davem@davemloft.net>
26286
26287         * sysdeps/unix/sparc/brk.S: Delete.
26288         * sysdeps/unix/sparc/dl-brk.S: Delete.
26289         * sysdeps/unix/sparc/pipe.S: Delete.
26290         * sysdeps/unix/sparc/sysdep.S: Delete.
26291         * sysdeps/unix/sparc/sysdep.h: Delete.
26292         * sysdeps/unix/sparc/vfork.S: Delete.
26293         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
26294         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
26295         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
26296         ret_ERRVAL, r0, r1, MOVE): Define.
26297         (JUMPTARGET): Remove.
26298         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
26299         sysdeps/unix/sparc/sysdep.h
26300         (ENTRY, END): Remove.
26301         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26302
26303 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
26304
26305         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
26306         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
26307         -DIS_IN_build.
26308
26309         * timezone/README: Update upstream location and email address for
26310         tzcode and tzdata.
26311         * timezone/zdump.c: Update from tzcode 2012b.
26312         * timezone/zic.c: Likewise.
26313
26314         * configure.in (libc_cv_as_needed): Remove test.
26315         * configure: Regenerated.
26316         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
26317         conditional definition.
26318         [$(have-as-needed) != yes] (no-as-needed): Likewise.
26319         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
26320         * config.make.in (have-as-needed): Remove variable.
26321
26322 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
26323             Paul Pluzhnikov  <ppluzhnikov@google.com>
26324
26325         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
26326         strings correctly.
26327
26328 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
26329
26330         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
26331         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
26332         * sysdeps/sh/strlen.S: Likewise.
26333
26334 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26335
26336         * sysdeps/unix/fork.S: Remove file.
26337         * sysdeps/unix/i386/fork.S: Likewise.
26338         * sysdeps/unix/sparc/fork.S: Likewise.
26339
26340         * sysdeps/unix/system.c: Remove file.
26341         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
26342
26343         * sysdeps/unix/getegid.S: Remove file.
26344         * sysdeps/unix/geteuid.S: Likewise.
26345
26346 2012-04-24  Roland McGrath  <roland@hack.frob.com>
26347
26348         * scripts/check-localplt.awk: New file.
26349         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
26350         of diff.
26351         * scripts/data/localplt-generic.data: Add a comment.
26352
26353         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
26354         NODE when __dir_mkfile failed.
26355         * sysdeps/mach/hurd/symlinkat.c: Likewise.
26356         Reported by Ludovic Courtès <ludo@gnu.org>.
26357
26358 2012-04-24  Andreas Jaeger  <aj@suse.de>
26359
26360         * Makerules (common-clean): Also remove gen-as-const-headers
26361         files.
26362
26363 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26364
26365         * Makerules (native-compile): Do not change working directory for
26366         build.  Use $(OUTPUT_OPTION) in command.
26367         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
26368
26369 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26370
26371         [BZ #13886]
26372         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
26373         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
26374         * math/libm-test.inc (floor_test): Add more tests.
26375         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
26376
26377 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26378
26379         * sysdeps/unix/getdents.c: Remove file.
26380         * sysdeps/unix/sysv/getdents.c: Likewise.
26381         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
26382
26383         * sysdeps/unix/syscalls.list (madvise): Add syscall from
26384         sysdeps/unix/mman/syscalls.list.
26385         (mmap): Likewise.
26386         (mprotect): Likewise.
26387         (msync): Likewise.
26388         (munmap): Likewise.
26389         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
26390         * sysdeps/unix/mman/syscalls.list: Remove.
26391         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
26392
26393         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
26394         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
26395         * configure: Regenerated.
26396         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
26397         $(libgcc_s_suffix).
26398         * config.make.in (libgcc_s_suffix): Remove variable.
26399
26400 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
26401
26402         * sysdeps/unix/sysv/gethostname.c: Move to ...
26403         * sysdeps/posix/gethostname.c: ... here.
26404
26405         * sysdeps/unix/execve.S: Remove file.
26406
26407         * sysdeps/unix/_exit.S: Remove file.
26408
26409 2012-04-23  Andreas Jaeger  <aj@suse.de>
26410
26411         [BZ #13739]
26412         * manual/Makefile: Remove make dist support, there's no
26413         need for a stand-alone documentation tar ball.
26414         (TEXI2DVI): Define always, it's not in Makeconfig.
26415         (dist): Removed.
26416         (tar-it): Removed.
26417         (edition): Removed.
26418         (glibc-doc-$(edition).tar): Removed
26419         (%.Z): Removed.
26420         (%.gz): Removed.
26421         (%.uu): Removed.
26422         (ETAGS): Remove, it's in Makeconfig.
26423         (move-if-change): Remove, it's in Makeconfig.
26424
26425 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
26426
26427         [BZ #13970]
26428         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
26429         (strtod, strtof, strtold, strtol, strtoul, strtoq)
26430         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
26431         (strtod_l, strtof_l, strtold_l): Remove __wur.
26432         It is not necessarily an error to ignore strtol's return value.
26433         One can reliably look at the stored endptr to decide whether
26434         the number had valid syntax.
26435
26436 2012-04-21  Andreas Jaeger  <aj@suse.de>
26437
26438         [BZ #13739]
26439         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
26440
26441 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
26442
26443         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
26444         * sysdeps/unix/sysv/Versions: Remove file.
26445
26446 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
26447
26448         [BZ #13927]
26449         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26450
26451 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
26452
26453         [BZ #7064]
26454         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
26455         version from __vm86.
26456
26457 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
26458
26459         * sysdeps/unix/common/lxstat.c: Remove file.
26460         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
26461
26462         * sysdeps/unix/sysv/Makefile: Remove file.
26463
26464         * sysdeps/unix/sysv/direct.h: Remove file.
26465
26466         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
26467         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
26468         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
26469         * sysdeps/unix/sysv/bits/signum.h: Likewise.
26470         * sysdeps/unix/sysv/bits/stat.h: Likewise.
26471         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
26472         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
26473
26474         * sysdeps/unix/sysv/setrlimit.c: Remove file.
26475
26476         * sysdeps/unix/xmknod.c: Remove file.
26477         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
26478
26479         * sysdeps/unix/sysv/settimeofday.c: Remove file.
26480
26481         * sysdeps/unix/sysv/i386/time.S: Remove file.
26482
26483         * sysdeps/unix/fxstat.c: Remove file.
26484         * sysdeps/unix/xstat.c: Likewise.
26485         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
26486
26487         * sysdeps/unix/sysv/sigaction.c: Remove file.
26488
26489         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
26490         (sysdep_headers): Remove variable.
26491         [termio.h not in sysdep_headers] (generated): Likewise.
26492         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
26493         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
26494         * sysdeps/unix/sysv/tcdrain.c: Likewise.
26495         * sysdeps/unix/sysv/tcflow.c: Likewise.
26496         * sysdeps/unix/sysv/tcflush.c: Likewise.
26497         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
26498         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
26499         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
26500         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
26501         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
26502
26503         * sysdeps/unix/siglist.c: Remove file.
26504
26505         * sysdeps/unix/getppid.S: Remove file.
26506
26507         * sysdeps/unix/mkdir.c: Remove file.
26508         * sysdeps/unix/rmdir.c: Likewise.
26509
26510 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
26511
26512         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
26513         ERR_MAX value.
26514         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
26515         errlist-compat value.
26516
26517 2012-04-18  David S. Miller  <davem@davemloft.net>
26518
26519         * sysdeps/generic/memcopy.h (reg_char): Delete.
26520         * debug/strcat_chk.c: Use char, not reg_char.
26521         * debug/strcpy_chk.c: Likewise.
26522         * debug/strncat_chk.c: Likewise.
26523         * debug/strncpy_chk.c: Likewise.
26524         * string/memchr.c: Likewise.
26525         * string/memrchr.c: Likewise.
26526         * string/rawmemchr.c: Likewise.
26527         * string/strcat.c: Likewise.
26528         * string/strchr.c: Likewise.
26529         * string/strchrnul.c: Likewise.
26530         * string/strcmp.c: Likewise.
26531         * string/strcpy.c: Likewise.
26532         * string/strncat.c: Likewise.
26533         * string/strncmp.c: Likewise.
26534         * string/strncpy.c: Likewise.
26535
26536 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26537
26538         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
26539         __builtin_memcopy is called when src and dest ranges are known to not
26540         overlap.
26541
26542 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26543
26544         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
26545         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
26546         fwd_align_merge macro call.
26547         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
26548         bwd_align_merge macro call.
26549         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
26550
26551 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26552
26553         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
26554         bwd_align_merge macros.
26555         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
26556         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
26557         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
26558
26559 2012-04-18  David S. Miller  <davem@davemloft.net>
26560
26561         * sysdeps/sparc/sparc64/memcopy.h: Delete.
26562
26563 2012-04-18  Andreas Jaeger  <aj@suse.de>
26564
26565         [BZ# 6794]
26566         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
26567         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
26568         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
26569
26570         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
26571         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
26572         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
26573
26574         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
26575         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
26576         Adjust for changed ldbl-128 files.
26577
26578         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
26579         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
26580         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
26581
26582 2012-04-17  David S. Miller  <davem@davemloft.net>
26583
26584         * sysdeps/sparc/sparc32/memcopy.h: Delete.
26585
26586 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
26587
26588         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
26589         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
26590         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
26591         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
26592         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
26593         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
26594
26595 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26596
26597         [BZ #6794]
26598         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
26599         * math/libm-test.inc: Add ilogb errno and exception tests.
26600         * math/w_ilogb.c: New file: ilogb wrapper.
26601         * math/w_ilogbf.c: New file: ilogbf wrapper.
26602         * math/w_ilogbl.c: New file: ilogbl wrapper.
26603         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
26604         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
26605         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
26606         exception being thrown with 0.0 as argument.
26607         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
26608         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
26609         exception being thrown with 0.0 as argument.
26610         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
26611         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
26612         exception being thrown with 0.0 as argument.
26613         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
26614         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
26615         exception being thrown with 0.0 as argument.
26616         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
26617         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
26618         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
26619         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
26620         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
26621         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
26622         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
26623         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
26624         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
26625
26626 2012-04-17  Petr Baudis  <pasky@ucw.cz>
26627
26628         * include/sys/uio.h: Change __vector to __iovec to avoid clash
26629         with altivec.
26630
26631 2012-04-16  Marek Polacek  <polacek@redhat.com>
26632
26633         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
26634
26635 2012-04-16  Marek Polacek  <polacek@redhat.com>
26636
26637         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
26638         operands of fdivp instruction.
26639
26640 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
26641
26642         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
26643         * elf/tst-auditmod3b.c: Likewise.
26644         * elf/tst-auditmod4b.c: Likewise.
26645         * elf/tst-auditmod5b.c: Likewise.
26646         * elf/tst-auditmod6b.c: Likewise.
26647         * elf/tst-auditmod6c.c: Likewise.
26648         * elf/tst-auditmod7b.c: Likewise.
26649         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
26650         * sysdeps/x86_64/preconfigure.in: Likewise.
26651         * sysdeps/x86_64/preconfigure: Regenerated.
26652
26653 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
26654
26655         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
26656         __ILP32__.
26657
26658 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
26659
26660         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26661         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
26662
26663 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
26664
26665         [BZ #13973]
26666         * locale/iso-639.def: Fix gl language name. Spotted by
26667         Yaron Shahrabani.
26668
26669 2012-04-12  Roland McGrath  <roland@hack.frob.com>
26670
26671         [BZ #2074]
26672         * libio/libio.h (__io_write_fn): Update comment.
26673
26674 2012-04-12  Petr Baudis  <pasky@ucw.cz>
26675
26676         [BZ #2074]
26677         * stdio.texi (Hook Functions): The user provided writer function
26678         is not allowed to return -1.
26679
26680 2012-04-11  David S. Miller  <davem@davemloft.net>
26681
26682         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26683
26684 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
26685
26686         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
26687         Add a leading slash to rtkaio.
26688
26689 2012-04-11  Jim Meyering  <meyering@redhat.com>
26690
26691         [BZ #11959]
26692         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
26693         It is not necessarily an error to ignore fwrite's return
26694         value.  One can reliably use ferror to test for errors after
26695         the fact.
26696
26697 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
26698
26699         * bits/types.h (__snseconds_t): New type.
26700         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
26701
26702         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
26703         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
26704         (__SNSECONDS_T_TYPE): Likewise.
26705         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
26706         (__SNSECONDS_T_TYPE): Likewise.
26707         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
26708         (__SNSECONDS_T_TYPE): Likewise.
26709
26710 2012-04-10  Andreas Jaeger  <aj@suse.de>
26711
26712         [BZ #2636]
26713         * manual/time.texi (Processor Time): Return type of times is
26714         elapsed real time since an arbitrary point in the past.
26715         (CPU Time): Move CLK_TCK from here...
26716         (Processor Time): ...to here.  Correct description.
26717         * manual/conf.texi (Constants for Sysconf): Correct description of
26718         _SC_CLK_TCK.
26719
26720 2012-04-10  David S. Miller  <davem@davemloft.net>
26721
26722         [BZ #13967]
26723         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
26724         where the is a gap between DT_REL(A) and DT_JMPREL.
26725
26726 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
26727
26728         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
26729         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
26730         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
26731
26732 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26733
26734         * elf/dl-support.c (_dl_inhibit_cache): New variable.
26735         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
26736         (dl_main): Handle --inhibit-cache.
26737         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
26738         _dl_inhibit_cache.
26739         * elf/dl-load.c (_dl_map_object): Use it.
26740         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
26741
26742 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
26743
26744         [BZ #13872]
26745         * sysdeps/i386/fpu/e_powl.S (p78): New object.
26746         (__ieee754_powl): Saturate large exponents rather than testing for
26747         overflow of y*log2(x).
26748         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
26749         * math/libm-test.inc (pow_test): Do not permit spurious overflow
26750         exceptions.
26751
26752         [BZ #11521]
26753         * math/s_ctan.c: Include <float.h>.
26754         (__ctan): Avoid internal overflow or cancellation in calculating
26755         denominator.
26756         * math/s_ctanf.c: Likewise.
26757         * math/s_ctanl.c: Likewise.
26758         * math/s_ctanh.c: Likewise.
26759         * math/s_ctanhf.c: Likewise.
26760         * math/s_ctanhl.c: Likewise.
26761         * math/libm-test.inc (ctan_test): Add more tests.
26762         (ctanh_test): Likewise.
26763         * sysdeps/i386/fpu/libm-test-ulps: Update.
26764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26765
26766 2012-04-09  Andreas Jaeger  <aj@suse.de>
26767
26768         [BZ #6894]
26769         * manual/filesys.texi (Directory Entries): Mention that d_namlen
26770         is an optional BSD extension.
26771
26772         [BZ #10254]
26773         * manual/stdio.texi (Opening Streams): Document additional fopen
26774         parameters.
26775
26776 2012-04-09  Roland McGrath  <roland@hack.frob.com>
26777
26778         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
26779         %eax without telling the compiler.
26780
26781 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
26782
26783         [BZ # 13963]
26784         * manual/install.texi: Use sourceware.org.
26785
26786 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
26787
26788         [BZ #13873]
26789         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
26790         (__ieee754_pow): Generate overflow and underflow using huge*huge
26791         and tiny*tiny rather than just returning constant infinity or zero
26792         for large exponents.
26793         * math/libm-test.inc (pow_test): Require overflow exceptions for
26794         applicable cases of large exponents.
26795
26796         [BZ #706]
26797         * sysdeps/i386/fpu/e_pow.S (p10): New object.
26798         (__ieee754_pow): Use iterative multiplication algorithm only for
26799         integer exponents with absolute value below 1024.  Check for odd
26800         integer exponents when using algorithm for real exponents.
26801         * math/libm-test.inc (pow_test): Add more tests.
26802         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26803
26804 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
26805
26806         [BZ #13705]
26807         * math/libm-test.inc (exp_test): Do not allow overflow exception
26808         on underflow test.
26809
26810 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
26811
26812         [BZ #13705]
26813         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
26814         instead of __kernel_standard_f.
26815
26816 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
26817
26818         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
26819         * sysdeps/x86_64/memset_chk.S: Likewise.
26820
26821 2012-04-08  Andreas Jaeger  <aj@suse.de>
26822
26823         [BZ #10153]
26824         * manual/startup.texi (Environment Access): Describe return value
26825         for putenv and setenv.
26826
26827         [BZ #6895]
26828         * manual/filesys.texi (Directory Entries): Add description for
26829         DT_LNK.
26830
26831         [BZ #6890]
26832         * manual/filesys.texi (Directory Entries): Clarify that it's file
26833         system not operating system in the description of DT_UNKNOWN.
26834
26835         [BZ #6578]
26836         * manual/syslog.texi (closelog): Fix reference, it's openlog.
26837
26838 2012-04-08  Stephen Compall  <s11@member.fsf.org>
26839
26840         [BZ #6649]
26841         * manual/llio.texi (Opening and Closing Files): Add cross
26842         reference to explain mode argument.
26843
26844 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
26845
26846         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
26847         * sysdeps/x86_64/memset_chk.S: Likewise.
26848
26849 2012-04-07  David S. Miller  <davem@davemloft.net>
26850
26851         * elf/elf.h (R_SPARC_WDISP10): Define.
26852         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
26853         R_SPARC_SIZE32.
26854         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
26855         R_SPARC_SIZE64 and R_SPARC_H34.
26856
26857 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
26858
26859         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
26860         conditions and remove no longer applicable assertion.
26861
26862 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
26863
26864         * bits/byteswap.h: Include <features.h>.
26865         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
26866         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
26867
26868 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
26869
26870         * bits/byteswap.h (__bswap_16): Removed.
26871         Include <bits/byteswap-16.h> to get __bswap_16.
26872         * sysdeps/i386/bits/byteswap.h: Likewise.
26873         * sysdeps/s390/bits/byteswap.h: Likewise.
26874         * sysdeps/x86_64/bits/byteswap.h: Likewise.
26875         * bits/byteswap-16.h: New file.
26876         * sysdeps/i386/bits/byteswap-16.h: Likewise.
26877         * sysdeps/s390/bits/byteswap-16.h: Likewise.
26878         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
26879         * string/Makefile (headers): Add bits/byteswap-16.h.
26880
26881 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26882
26883         [BZ #13895]
26884         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
26885         extra indirection.
26886         * nss/Makefile (tests-static, tests): Add tst-nss-static.
26887         * nss/tst-nss-static.c: New.
26888
26889 2012-04-06  Robert Millan  <rmh@gnu.org>
26890
26891         [BZ #6486]
26892         * manual/llio.texi (File Position Primitive): lseek
26893         refers to WHENCE when it really means OFFSET.
26894
26895 2012-04-06  Andreas Jaeger  <aj@suse.de>
26896
26897         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
26898         strncmp declarations.
26899
26900         * abilist/libc.abilist: Add __poll and __ppoll.
26901
26902 2012-04-05  David S. Miller  <davem@davemloft.net>
26903
26904         * scripts/check-local-headers.sh: Accept a host triplet in the
26905         path matched by the exclude regexp.
26906
26907         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
26908         definition.
26909         * sysdeps/powerpc/powerpc32/dl-machine.h
26910         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
26911         * sysdeps/s390/s390-32/dl-machine.h
26912         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
26913         * sysdeps/sparc/sparc32/dl-machine.h
26914         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
26915         * sysdeps/sparc/sparc64/dl-machine.h
26916         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
26917
26918         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
26919         lazy binding.
26920         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
26921         undefined symbol errors.
26922
26923         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
26924         DT_NEEDED entries.
26925
26926 2012-04-05  Michael Matz  <matz@suse.de>
26927
26928         [BZ #13592]
26929         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
26930
26931 2012-04-05  Andreas Jaeger  <aj@suse.de>
26932
26933         [BZ #13908]
26934         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
26935         comment.
26936
26937 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26938
26939         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
26940         which ROUND is no valid rounding mode.
26941
26942 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26943
26944         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
26945         read again.
26946         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
26947
26948 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26949
26950         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
26951         an exception using FPU order intentionally.
26952
26953 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26954
26955         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
26956         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
26957         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
26958         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
26959
26960 2012-04-05  Simon Josefsson  <simon@josefsson.org>
26961
26962         [BZ #12340]
26963         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
26964         EINVAL when BUFLEN is too smal.
26965
26966 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
26967
26968         [BZ #13553]
26969         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
26970         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
26971
26972 2012-04-03  Andreas Jaeger  <aj@suse.de>
26973
26974         [BZ #13938]
26975         * manual/setjmp.texi (System V contexts): Fix sentence.
26976
26977         [BZ #13926]
26978         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
26979         New macro for this case.
26980         [!__GNUC__] (__bswap_64): New inline function for this case.
26981         * sysdeps/x86_64/bits/byteswap.h: Likewise.
26982         * bits/byteswap.h: Likewise.
26983         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
26984         ull, guard with __GLIBC_HAVE_LONG_LONG.
26985
26986         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
26987         __GLIBC_HAVE_LONG_LONG.
26988
26989         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
26990         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
26991
26992 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26993
26994         [BZ #13691]
26995         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
26996         inptr and inend, rather than using last_ch.
26997
26998 2012-04-02  David S. Miller  <davem@davemloft.net>
26999
27000         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
27001         * stdio-common/printf-parse.h (read_int): Change return type to
27002         'int', return -1 on INT_MAX overflow.
27003         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
27004         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
27005         overflows INT_MAX.  Check for overflow of in-format-string precision
27006         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
27007         SIZE_MAX not INT_MAX for integer overflow test.
27008         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
27009         skip the construct in the format string but do not record anything.
27010         * stdio-common/bug22.c: Adjust to test both width/prevision
27011         INT_MAX overflow as well as total length INT_MAX overflow.  Check
27012         explicitly for proper errno values.
27013
27014 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
27015
27016         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
27017         CHAR_MAX.
27018         * string/test-strcmp.c [! WIDE]: Likewise.
27019         * time/tst-mktime2.c: Likewise for INT_MAX.
27020         * string/test-string.h: #include <sys/param.h> for MIN.
27021
27022         * csu/init-first.c (__libc_init_first): Call __ctype_init.
27023         * sysdeps/i386/init-first.c (init): Likewise.
27024         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
27025         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
27026         * sysdeps/sh/init-first.c (init): Likewise.
27027
27028 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
27029
27030         * po/ru.po: Update from translation team.
27031         * po/vi.po: Likewise.
27032
27033 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
27034
27035         * resolv/nss_dns/dns-host.c: Merge copyright years.
27036
27037 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27038
27039         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
27040         Optimize memcpy with prefetch if
27041         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
27042         src, dst pointers have unequal 16 byte alignments.
27043
27044 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
27045
27046         [BZ #13928]
27047         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
27048         from a CNAME entry and return the minimum ttl for the query.
27049         (gaih_getanswer_slice): Likewise.
27050
27051 2012-03-30  Jeff Law  <law@redhat.com>
27052
27053         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
27054         due to long keys.
27055         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
27056         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
27057
27058         * resolv/nss_dns/dns-host.c: Update copyright year.
27059
27060 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
27061
27062         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
27063         requests to save a system call.  Fix check that all bytes are sent.
27064
27065         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
27066         comments for sendmmsg.
27067
27068 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27069
27070         [BZ #13691]
27071         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
27072         with only 1 character between 0x0041 and 0x01b0.
27073         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
27074         * wcsmbs/tst-mbsnrtowcs.c: New file.
27075
27076 2012-03-29  David S. Miller  <davem@davemloft.net>
27077
27078         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
27079         small copies by hand.
27080
27081 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27082
27083         [BZ #13761]
27084         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
27085         _nss_compat_initgroups_dyn): Fall back to malloc/free
27086         for large group memberships.
27087
27088 2012-03-28  David S. Miller  <davem@davemloft.net>
27089
27090         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
27091         that branches into memcpy.
27092         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
27093         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
27094         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
27095         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
27096         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
27097         bits.
27098         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
27099         implementation too.
27100         * sysdeps/sparc/mempcpy.S: New file.
27101
27102         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
27103         the IFUNC routine in the libc case.
27104         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
27105
27106         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
27107         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
27108         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
27109         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
27110         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
27111         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
27112         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
27113         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
27114
27115         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
27116         loop to 256 bytes instead of 64 bytes and fix test signedness.
27117
27118         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
27119         * sysdeps/sparc/sparc32/Makefile: rather than here...
27120         * sysdeps/sparc/sparc64/Makefile: and here.
27121
27122 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
27123
27124         * malloc/mallocbug.c: Avoid warnings about unused variables.
27125
27126 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
27127
27128         [BZ #13760]
27129         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
27130         in the right place. Discard and retry query if response is
27131         larger than input buffer size.
27132
27133 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
27134
27135         [BZ #369]
27136         [BZ #2678]
27137         [BZ #3866]
27138         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
27139         x for large integer exponent.
27140         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
27141         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
27142         sign of result as needed afterwards.
27143         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
27144         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
27145         result for underflowing pow the same as for overflow.
27146         (__kernel_standard_l): Handle powl overflow and underflow here
27147         rather than calling __kernel_standard.
27148         * math/libm-test.inc (pow_test): Add more tests.
27149
27150         [BZ #3868]
27151         [BZ #13879]
27152         [BZ #13910]
27153         [BZ #13911]
27154         [BZ #13912]
27155         [BZ #13913]
27156         [BZ #13915]
27157         [BZ #13916]
27158         [BZ #13917]
27159         [BZ #13918]
27160         [BZ #13919]
27161         [BZ #13920]
27162         [BZ #13921]
27163         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
27164         * sysdeps/ieee754/k_standard.c: Include <float.h>.
27165         (__kernel_standard_l): New function.
27166         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
27167         __kernel_standard.
27168         * math/w_acosl.c (__acosl): Likewise.
27169         * math/w_asinl.c (__asinl): Likewise.
27170         * math/w_atan2l.c (__atan2l): Likewise.
27171         * math/w_atanhl.c (__atanhl): Likewise.
27172         * math/w_coshl.c (__coshl): Likewise.
27173         * math/w_exp10l.c (__exp10l): Likewise.
27174         * math/w_exp2l.c (__exp2l): Likewise.
27175         * math/w_fmodl.c (__fmodl): Likewise.
27176         * math/w_hypotl.c (__hypotl): Likewise.
27177         * math/w_j0l.c (__j0l, __y0l): Likewise.
27178         * math/w_j1l.c (__j1l, __y1l): Likewise.
27179         * math/w_jnl.c (__jnl, __ynl): Likewise.
27180         * math/w_lgammal.c (__lgammal): Likewise.
27181         * math/w_log10l.c (__log10l): Likewise.
27182         * math/w_log2l.c (__log2l): Likewise.
27183         * math/w_logl.c (__logl): Likewise.
27184         * math/w_powl.c (__powl): Likewise.
27185         * math/w_remainderl.c (__remainderl): Likewise.
27186         * math/w_scalbl.c (sysv_scalbl): Likewise.
27187         * math/w_sinhl.c (__sinhl): Likewise.
27188         * math/w_sqrtl.c (__sqrtl): Likewise.
27189         * math/w_tgammal.c (__tgammal): Likewise.
27190         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
27191         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
27192         * math/libm-test.inc (acos_test): Add more tests.
27193         (acosh_test): Likewise.
27194         (asin_test): Likewise.
27195         (atanh_test): Likewise.
27196         (exp_test): Likewise.
27197         (exp10_test): Likewise.
27198         (exp2_test): Likewise.
27199         (expm1_test): Likewise.
27200         (lgamma_test): Likewise.
27201         (log_test): Likewise.
27202         (log10_test): Likewise.
27203         (log1p_test): Likewise.
27204         (log2_test): Likewise.
27205         (pow_test): Do not allow some spurious overflow exceptions.
27206         (sqrt_test): Add more tests.
27207         (tgamma_test): Likewise.
27208         (y0_test): Likewise.
27209         (y1_test): Likewise.
27210         (yn_test): Likewise.
27211
27212 2012-03-27  Anton Blanchard  <anton@samba.org>
27213
27214         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
27215         MAP_HUGETLB.
27216         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27217         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27218         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27219
27220 2012-03-27  David S. Miller  <davem@davemloft.net>
27221
27222         * conform/Makefile: Run run-conformtest.sh using $(BASH).
27223
27224         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
27225         have-as-vis3 check.
27226
27227 2012-03-27  Andreas Jaeger  <aj@suse.de>
27228
27229         * sysdeps/x86_64/elf/configure.in: Moved to ...
27230         * sysdeps/x86_64/configure.in: ... here.
27231         * sysdeps/x86_64/elf/start.S: Moved to ...
27232         * sysdeps/x86_64/start.S: ... here.
27233         * sysdeps/x86_64/elf/configure: Delete.
27234
27235         * sysdeps/x86_64/configure.in: Merge contents from
27236         sysdeps/i386/configure.in (without i686 check).
27237
27238         * sysdeps/i386/elf/Versions: Merge into ...
27239         * sysdeps/i386/Versions: ... this.
27240         * sysdeps/i386/elf/Versions: Delete file.
27241         * sysdeps/i386/elf/start.S: Moved to ...
27242         * sysdeps/i386/start.S: ...here.
27243         * sysdeps/i386/elf/configure.in: Merge into...
27244         * sysdeps/i386/configure.in: ...here.
27245         * sysdeps/i386/elf/configure.in: Delete file.
27246         * sysdeps/i386/elf/configure: Delete file.
27247
27248         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
27249         * debug/backtracesyms.c: ... here.
27250         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
27251         * debug/backtracesymsfd.c: ... here.
27252         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
27253         * sysdeps/generic/ifunc-sel.h: ... here.
27254
27255         * sysdeps/unix/i386/start.c: Delete file.
27256         * sysdeps/unix/sparc/start.c: Delete file.
27257         * sysdeps/unix/start.c: Delete file.
27258
27259         * sysdeps/sh/elf/configure.in: Moved to ...
27260         * sysdeps/sh/configure.in: ... here.
27261         * sysdeps/sh/elf/start.S: Moved to ...
27262         * sysdeps/sh/start.S: ... here.
27263         * sysdeps/sh/elf/configure: Delete file.
27264
27265         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
27266         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
27267         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
27268         * sysdeps/powerpc/powerpc64/entry.h: ... here.
27269         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
27270         * sysdeps/powerpc/powerpc64/start.S: here.
27271         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
27272         * sysdeps/powerpc/powerpc64/Makefile: ... this.
27273         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
27274         * sysdeps/powerpc/powerpc64/configure.in: ... this.
27275         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
27276
27277         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
27278         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
27279         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
27280         * sysdeps/powerpc/powerpc32/start.S: ... here.
27281         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
27282         * sysdeps/powerpc/powerpc32/configure.in: ... this.
27283         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
27284
27285         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
27286         * sysdeps/powerpc/ifunc-sel.h: ... here.
27287         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
27288         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
27289
27290         * sysdeps/sparc/elf/configure.in: Moved to ...
27291         * sysdeps/sparc/configure.in: ... here.
27292         * sysdeps/sparc/elf/configure: Delete file.
27293         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
27294         * sysdeps/sparc/sparc32/start.S: ... here.
27295         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
27296         * sysdeps/sparc/sparc64/start.S: ... here.
27297         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
27298         * sysdeps/sparc/sparc32/Makefile: ... this.
27299         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
27300         * sysdeps/sparc/sparc64/Makefile: ... this.
27301
27302         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
27303         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
27304         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
27305         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
27306         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
27307         * sysdeps/s390/s390-32/setjmp.S: ... here.
27308         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
27309         * sysdeps/s390/s390-32/configure.in: ... here.
27310         * sysdeps/s390/s390-32/elf/configure: Delete file.
27311         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
27312         * sysdeps/s390/s390-32/start.S: ... here.
27313
27314         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
27315         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
27316         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
27317         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
27318         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
27319         * sysdeps/s390/s390-64/setjmp.S: ... here.
27320         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
27321         * sysdeps/s390/s390-64/configure.in: ... here
27322         * sysdeps/s390/s390-64/elf/configure: Delete file.
27323         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
27324         * sysdeps/s390/s390-64/start.S: ... here.
27325         * sysdeps/s390/s390-64/elf/configure: Delete.
27326
27327         * configure.in: Remove support for elf directories in sysdeps.
27328
27329         * configure: Regenerated.
27330         * sysdeps/i386/configure: Regenerated.
27331         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27332         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27333         * sysdeps/s390/s390-32/configure: Regenerated.
27334         * sysdeps/s390/s390-64/configure: Regenerated.
27335         * sysdeps/sh/configure: Regenerated.
27336         * sysdeps/sparc/configure: Regenerated.
27337         * sysdeps/x86_64/configure: Regenerated.
27338
27339 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
27340
27341         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27342
27343         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
27344         denormal result into account.
27345
27346 2012-03-25  Roland McGrath  <roland@hack.frob.com>
27347
27348         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
27349         Reported by Allan McRae <allan@archlinux.org>.
27350
27351 2012-03-23  Jeff Law  <law@redhat.com>
27352
27353         * nss/getnssent.c (__nss_getent): Fix typo.
27354
27355 2012-03-23  David S. Miller  <davem@davemloft.net>
27356
27357         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27358
27359 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
27360
27361         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
27362         to pad to uint64_t for each field.
27363         (dl_tls_index): Replace unsigned long with uint64_t.
27364
27365 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
27366         Paul Pluzhnikov  <ppluzhnikov@google.com>
27367
27368         [BZ #6528]
27369         * grp/Makefile (otherlibs): Don't set it.
27370         * inet/Makefile (otherlibs): Likewise.
27371         * login/Makefile (otherlibs): Likewise.
27372         * nscd/Makefile (otherlibs): Likewise.
27373         * posix/Makefile (otherlibs): Likewise.
27374         * pwd/Makefile (otherlibs): Likewise.
27375         * rt/Makefile (otherlibs): Likewise.
27376         * sunrpc/Makefile (otherlibs): Likewise.
27377         * nss/Makefile (otherlibs): Likewise.
27378         Add libnss_files to routines and static-only-routines.
27379         ($(objpfx)getent): Remove rule.
27380         * resolv/Makefile: Add libnss_dns and libresolv to routines and
27381         static-only-routines.
27382
27383 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27384
27385         [BZ #13892]
27386         * math/s_cexp.c: Include <float.h>.
27387         (__cexp): Handle exp result overflowing not necessarily
27388         overflowing both real and imaginary parts of result.
27389         * math/s_cexpf.c: Likewise.
27390         * math/s_cexpl.c: Likewise.
27391         * math/libm-test.inc (cexp_test): Add more tests.
27392         * sysdeps/i386/fpu/libm-test-ulps: Update.
27393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27394
27395 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27396
27397         * include/link.h (ELFW): New macro.
27398         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
27399         Replace ELF64_R_TYPE with ELFW(R_TYPE).
27400
27401 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27402
27403         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
27404         with uint64_t.
27405
27406 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27407
27408         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
27409         declaration.
27410         (struct La_x32_retval): Likewise.
27411
27412 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27413
27414         * sysdeps/x86_64/preconfigure.in: New file.
27415         * sysdeps/x86_64/preconfigure: New generated file.
27416
27417 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27418
27419         [BZ #13824]
27420         * math/e_exp2l.c: Include <float.h>.
27421         (__ieee754_exp2l): Handle overflow and underflow cases
27422         separately.  Only pass fractional part of argument to
27423         __ieee754_expl.
27424         * math/libm-test.inc (exp2_test): Add more tests.
27425
27426         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
27427         negating x to take absolute value.
27428         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
27429         Likewise.
27430         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
27431         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
27432         Likewise.
27433         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
27434         computing low part if x was negated.
27435         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
27436
27437 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27438
27439         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
27440         la_x32_gnu_pltexit.
27441         (pltexit): Cast int_retval to ptrdiff_t.
27442         * elf/tst-auditmod3b.c: Likewise.
27443         * elf/tst-auditmod4b.c: Likewise.
27444         * elf/tst-auditmod5b.c: Likewise.
27445         * elf/tst-auditmod6b.c: Likewise.
27446         * elf/tst-auditmod6c.c: Likewise.
27447         * elf/tst-auditmod7b.c: Likewise.
27448
27449         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
27450         and x32_gnu_pltexit.
27451
27452         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
27453         __ELF_NATIVE_CLASS.
27454         (La_x32_regs): New macro.
27455         (La_x32_retval): Likewise.
27456         (la_x32_gnu_pltenter): New function prototype.
27457         (la_x32_gnu_pltexit): Likewise.
27458
27459 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
27460
27461         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
27462         exponent.
27463
27464         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27465
27466         * configure.in (libc_cv_cc_nofma): Check for option to disable
27467         generation of FMA instructions.
27468         * configure: Regenerate.
27469         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
27470         * sysdeps/ieee754/dbl-64/Makefile: New file.
27471         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27472         Remove brandred-fma4.
27473         (CFLAGS-brandred-fma4.c): Remove.
27474         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
27475         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
27476         define.
27477         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
27478         define.
27479
27480 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27481
27482         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
27483         LLONG_MAX != LONG_MAX.
27484         (_itoa_word): Use _ITOA_WORD_TYPE on value.
27485         (_fitoa_word): Likewise.
27486         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
27487         LLONG_MAX != LONG_MAX.
27488         * stdio-common/_itowa.h: Include <_itoa.h>.
27489         (_itowa_word): Use _ITOA_WORD_TYPE on value.
27490         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
27491         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
27492         only if not defined.
27493         (_ITOA_WORD_TYPE): Likewise.
27494         (_itoa_word): Use _ITOA_WORD_TYPE on value.
27495         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
27496
27497 2012-03-21  David S. Miller  <davem@davemloft.net>
27498
27499         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27500
27501 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27502
27503         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
27504         of x86_64 when setting libc_cv_slibdir, libdir and
27505         libc_cv_localedir.
27506         * sysdeps/unix/sysv/linux/configure: Regenerated.
27507
27508 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27509
27510         * manual/lang.texi (Old Varargs): Remove section.
27511         (How Variadic): Update menu.
27512         (va_start): Do not mention varargs.h.
27513
27514 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
27515             Joseph Myers  <joseph@codesourcery.com>
27516
27517         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
27518         link test.
27519         * configure: Regenerated.
27520
27521 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
27522
27523         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
27524         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
27525         conformtest.pl
27526
27527 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27528
27529         * NOTES: Remove.
27530         * Makefile (files-for-dist): Remove NOTES.
27531         (NOTES): Remove rule.
27532         * README: Don't refer to NOTES.
27533         * manual/creature.texi: Don't include macros.texi.
27534         * manual/intro.texi (creature.texi): Remove comment referring to
27535         NOTES.
27536
27537         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
27538         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
27539         * configure: Regenerated.
27540         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
27541         LIBC_TRY_CC_OPTION.
27542         (libc_cv_as_i686): Likewise.
27543         (libc_cv_cc_avx): Likewise.
27544         (libc_cv_cc_sse2avx): Likewise.
27545         (libc_cv_cc_fma4): Likewise.
27546         (libc_cv_cc_novzeroupper): Likewise.
27547         * sysdeps/i386/configure: Regenerated.
27548
27549         [BZ #13883]
27550         * sysdeps/i386/fpu/s_cexp.S: Remove.
27551         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
27552         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
27553         * math/libm-test.inc (cexp_test): Add more tests.
27554         * sysdeps/i386/fpu/libm-test-ulps: Update.
27555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27556
27557 2012-03-21  Allan McRae  <allan@archlinux.org>
27558
27559         * timezone/Makefile: Do not install iso3166.tab and zone.tab
27560
27561 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27562
27563         [BZ #13871]
27564         * math/w_exp2.c: Do not include <float.h>.
27565         (o_threshold, u_threshold): Remove.
27566         (__exp2): Calculate result before checking finiteness and calling
27567         __kernel_standard.
27568         * math/w_exp2f.c: Likewise.
27569         * math/w_exp2l.c: Likewise.
27570         * math/libm-test.inc (exp2_test): Require overflow exception for
27571         1e6 input.
27572
27573         [BZ #3866]
27574         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
27575         range of signed 64-bit integers before using fistpll.  Remove
27576         checks for whether integers fit in mantissa bits.
27577         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
27578         the range of signed 32-bit integers before using fistpl.  Remove
27579         checks for whether integers fit in mantissa bits.
27580         * sysdeps/i386/fpu/e_powl.S (p64): New object.
27581         (__ieee754_powl): Test for y outside the range of signed 64-bit
27582         integers before using fistpll.  Reduce 64-bit values to 63-bit
27583         ones as needed.
27584         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
27585         divide-by-zero is raised for zero to large negative powers.
27586         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
27587         (__ieee754_powl): Test for y outside the range of signed 64-bit
27588         integers before using fistpll.  Reduce 64-bit values to 63-bit
27589         ones as needed.
27590         * math/libm-test.inc (pow_test): Add more tests.
27591
27592 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27593
27594         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
27595         <stdio-common/_itoa.h>.
27596         * debug/segfault.c: Likewise.
27597         * elf/dl-cache.c: Likewise.
27598         * elf/dl-minimal.c: Likewise.
27599         * elf/dl-misc.c: Likewise.
27600         * elf/dl-sysdep.c: Likewise.
27601         * elf/dl-version.c: Likewise.
27602         * elf/rtld.c: Likewise.
27603         * hurd/hurdsock.c: Likewise.
27604         * hurd/lookup-retry.c: Likewise.
27605         * malloc/malloc.c: Likewise.
27606         * malloc/mtrace.c: Likewise.
27607         * nscd/nscd_getgr_r.c: Likewise.
27608         * nscd/nscd_getpw_r.c: Likewise.
27609         * nscd/nscd_getserv_r.c: Likewise.
27610         * posix/getopt_init.c: Likewise.
27611         * posix/wordexp.c: Likewise.
27612         * stdio-common/_itoa.c: Likewise.
27613         * stdio-common/printf_fphex.c: Likewise.
27614         * stdio-common/vfprintf.c: Likewise.
27615         * string/_strerror.c: Likewise.
27616         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
27617         * sysdeps/i386/i686/hp-timing.h: Likewise.
27618         * sysdeps/mach/_strerror.c: Likewise.
27619         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
27620         * sysdeps/mach/hurd/sethostid.c: Likewise.
27621         * sysdeps/mach/hurd/xmknodat.c: Likewise.
27622         * sysdeps/mach/xpg-strerror.c: Likewise.
27623         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
27624         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
27625         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
27626         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
27627         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
27628         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
27629         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
27630         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
27631         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
27632         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
27633         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
27634         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
27635         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
27636         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
27637         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
27638         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
27639         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
27640         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
27641         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
27642         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
27643         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
27644
27645         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
27646
27647         * stdio-common/_itoa.h: Moved to ...
27648         * sysdeps/generic/_itoa.h: Here.
27649
27650         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
27651
27652         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
27653         instead of "_itoa.h" and "_itowa.h".
27654         * stdio-common/vfprintf.: Likewise.
27655
27656 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27657
27658         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
27659         <bits/wordsize.h>.
27660         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
27661         (__signbit): Likwise.
27662         (llrintf): Likwise.
27663         (llrint): Likwise.
27664
27665 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27666
27667         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
27668         __WORDSIZE != 64.
27669
27670 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
27671
27672         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
27673         OVERFLOW_EXCEPTION_OK.
27674         * math/libm-test.inc ("Philosophy"): Update comment about
27675         exception testing.
27676         (OVERFLOW_EXCEPTION): Define.
27677         (OVERFLOW_EXCEPTION_OK): Likewise.
27678         (INVALID_EXCEPTION_OK): Renumber.
27679         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
27680         (IGNORE_ZERO_INF_SIGN): Likewise.
27681         (test_exceptions): Handle FE_OVERFLOW.
27682         (exp10_test): Expect overflow exceptions.
27683         (exp2_test): Likewise.
27684         (expm1_test): Likewise.
27685         (nextafter_test): Likewise.
27686         (pow_test): Likewise.
27687         (scalbn_test): Likewise.
27688         (scalbln_test): Likewise.
27689
27690 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27691
27692         * sysdeps/x86_64/bits/atomic.h
27693         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
27694         64bit integer.
27695         (atomic_exchange_acq): Likewise.
27696         (__arch_exchange_and_add_body): Likewise.
27697         (__arch_add_body): Likewise.
27698         (atomic_add_negative): Likewise.
27699         (atomic_add_zero): Likewise.
27700
27701 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27702
27703         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
27704         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
27705
27706 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27707
27708         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
27709         Check __x86_64__ instead of __WORDSIZE.
27710
27711 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27712
27713         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
27714
27715 2012-03-19  David S. Miller  <davem@davemloft.net>
27716
27717         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27718
27719         * sysdeps/sparc/fpu/fenv_private.h: New file.
27720         * sysdeps/sparc/fpu/math_private.h: Use it.
27721         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
27722         Remove.
27723         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
27724         (libc_feholdexcept_setroundl): Remove.
27725         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
27726         Remove.
27727         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
27728         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
27729
27730 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27731
27732         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
27733         int64_t instead of long int.
27734         (INSERT_WORDS64): Likwise.
27735
27736 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27737
27738         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
27739         _Unwind_GetCFA return to _Unwind_Ptr first.
27740
27741 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
27742
27743         [BZ #13629]
27744         * math/s_clog.c: Include <float.h>.
27745         (__clog): Scale large or subnormal inputs.
27746         * math/s_clogf.c: Likewise.
27747         * math/s_clogl.c: Likewise.
27748         * math/s_clog10.c: Include <float.h>.
27749         (M_LOG10_2): Define.
27750         (__clog10): Scale large or subnormal inputs.
27751         * math/s_clog10f.c: Likewise.
27752         * math/s_clog10l.c: Likewise.
27753         * math/libm-test.inc (clog_test): Add more tests.
27754         (clog10_test): Likewise.
27755         * sysdeps/i386/fpu/libm-test-ulps: Update.
27756         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27757
27758         [BZ #11451]
27759         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
27760         x and y.
27761         * math/libm-test.inc (atan2_test): Add another test.
27762
27763         * Makerules (common-objdir-compile): Remove.
27764         * sysdeps/unix/Makefile (config-generated): Do not add
27765         $(unix-generated) to variable.
27766         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
27767         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
27768         Remove rule.
27769         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
27770         Likewise.
27771         [generic bits/local_lim.h] (before-compile): Do not append to
27772         variable.
27773         [generic bits/local_lim.h] (common-generated): Likewise.
27774         [generic sys/param.h] (before-compile): Do not append to variable.
27775         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
27776         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
27777         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
27778         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
27779         include.
27780         [generic sys/param.h] (sys/param.h-includes): Remove variable.
27781         [generic sys/param.h] (sys/param.h-includes): Remove rule.
27782         [generic sys/param.h] ($(addprefix
27783         $(common-objpfx),$(sys/param.h-includes))): Likewise.
27784         [generic sys/param.h] (common-generated): Do not append to
27785         variable.
27786         [generic sys/param.h] (sysdep_headers): Likewise.
27787         [generic bits/errno.h] (before-compile): Do not append to
27788         variable.
27789         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
27790         rule.
27791         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
27792         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
27793         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
27794         [generic bits/errno.h] (common-generated): Do not append to
27795         variable.
27796         [generic bits/ioctls.h] (before-compile): Do not append to
27797         variable.
27798         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
27799         rule.
27800         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
27801         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
27802         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
27803         rule.
27804         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
27805         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
27806         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
27807         [generic bits/ioctls.h] (common-generated): Do not append to
27808         variable.
27809         [generic sys/syscall.h] (syscall.h): Remove variable.
27810         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
27811         rule.
27812         [generic sys/syscall.h] (before-compile): Do not append to
27813         variable.
27814         [generic sys/syscall.h] (common-generated): Likewise.
27815         * sysdeps/unix/errnos-tmpl.c: Remove file.
27816         * sysdeps/unix/errnos.awk: Likewise.
27817         * sysdeps/unix/ioctls-tmpl.c: Likewise.
27818         * sysdeps/unix/ioctls.awk: Likewise.
27819         * sysdeps/unix/mk-local_lim.c: Likewise.
27820         * sysdeps/unix/snarf-ioctls: Likewise.
27821
27822 2012-03-19  Richard Henderson  <rth@twiddle.net>
27823
27824         * sysdeps/i386/fpu/fenv_private.h: New file.
27825         * sysdeps/i386/fpu/math_private.h: Use it.
27826         (math_opt_barrier, math_force_eval): Remove.
27827         (libc_feholdexcept_setround_53bit): Remove.
27828         (libc_feupdateenv_53bit): Remove.
27829         * sysdeps/x86_64/fpu/math_private.h: Likewise.
27830         (math_opt_barrier, math_force_eval): Remove.
27831         (libc_feholdexcept): Remove.
27832         (libc_feholdexcept_setround): Remove.
27833         (libc_fetestexcept, libc_fesetenv): Remove.
27834         (libc_feupdateenv_test): Remove.
27835         (libc_feupdateenv, libc_feholdsetround): Remove.
27836         (libc_feresetround): Remove.
27837
27838         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
27839         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
27840
27841         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
27842         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
27843         (libc_feupdateenv_testl): New.
27844         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
27845         (libc_feupdateenv_testf): New.
27846         (libc_feupdateenv): Use libc_feupdateenv_test.
27847         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
27848         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
27849
27850         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
27851         (libc_feholdsetroundf, libc_feholdsetroundl): New.
27852         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
27853         (libc_feresetround_noex): New.
27854         (libc_feresetround_noexf): New.
27855         (libc_feresetround_noexl): New.
27856         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
27857         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
27858         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
27859         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
27860         SET_RESTORE_ROUND.
27861         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
27862         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
27863         (__cos): Likewise.
27864         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
27865         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
27866         SET_RESTORE_ROUND_NOEX.
27867         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
27868         SET_RESTORE_ROUND_NOEXF.
27869         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
27870         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
27871         (libc_feholdsetroundf): New.
27872         (libc_feresetround, libc_feresetroundf): New.
27873
27874         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
27875         (libc_feholdexcept_setround_53bit): Convert from macro to function.
27876         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
27877
27878         * sysdeps/generic/math_private.h: Include <fenv.h>.
27879         (default_libc_feholdexcept): New.
27880         (default_libc_feholdexcept_setround): New.
27881         (default_libc_fesetenv, default_libc_feupdateenv): New.
27882         (libc_feholdexcept): Only define if undefined.
27883         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
27884         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
27885         (libc_feholdexcept_setroundl): Likewise.
27886         (libc_feholdexcept_setround_53bit): Likewise.
27887         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
27888         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
27889         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
27890         (libc_feupdateenv_53bit): Likewise.
27891         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
27892         (libc_feholdexcept): Convert from macro to inline function.
27893         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
27894         (libc_fesetenv, libc_feupdateenv): Likewise.
27895
27896         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
27897         not previously defined.
27898         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
27899         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
27900         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
27901         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
27902         * sysdeps/ieee754/flt-32/math_private.h: New file.
27903         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
27904         math_private.h below SET_FLOAT_WORD.
27905         (__isnan, __isinf_ns, __finite): Remove.
27906         (__isnanf, __isinf_nsf, __finitef): Remove.
27907
27908 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
27909
27910         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27911
27912 2012-03-17  David S. Miller  <davem@davemloft.net>
27913
27914         [BZ #6471]
27915         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
27916         for 2.16.
27917
27918 2012-03-16  David S. Miller  <davem@davemloft.net>
27919
27920         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
27921         warnings.
27922
27923         [BZ #6471]
27924         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
27925         properly.
27926         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
27927         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
27928         sysdep_routines when subdir is sysvipc.
27929         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
27930         __getshmlba helper.
27931
27932         * sysdeps/sparc/fpu/libm-test/ulps: Update.
27933
27934 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27935
27936         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
27937         [__LP64__].
27938
27939 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27940
27941         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
27942         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
27943         (__lround): Renamed to ...
27944         (__llround): This.  Replace long int with long long int.
27945         Define lround functions as aliases of llround functions.
27946         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
27947
27948 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27949
27950         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
27951         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
27952         adresses to uintptr_t.  Replace "long int" and "unsigned long
27953         int" with "greg_t" on va_arg.
27954
27955 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27956
27957         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
27958         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
27959
27960         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
27961         Move e_machine check before EI_CLASS check.  Handle x32
27962         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
27963         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
27964         SKIP_EM_IA_64 and include
27965         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
27966
27967         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
27968         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
27969         (add_system_dir): New macro.
27970
27971         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
27972         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
27973
27974 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
27975
27976         [BZ #2551]
27977         [BZ #2552]
27978         [BZ #2553]
27979         [BZ #2554]
27980         [BZ #2562]
27981         [BZ #2563]
27982         [BZ #2565]
27983         [BZ #2566]
27984         [BZ #2576]
27985         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
27986         (y0): Likewise.
27987         * math/w_j0f.c (j0f): Likewise.
27988         (y0f): Likewise.
27989         * math/w_j0l.c (__j0l): Likewise.
27990         (__y0l): Likewise.
27991         * math/w_j1.c (j1): Likewise.
27992         (y1): Likewise.
27993         * math/w_j1f.c (j1f): Likewise.
27994         (y1f): Likewise.
27995         * math/w_j1l.c (__j1l): Likewise.
27996         (__y1l): Likewise.
27997         * math/w_jn.c (jn): Likewise.
27998         (yn): Likewise.
27999         * math/w_jnf.c (jnf): Likewise.
28000         (ynf): Likewise.
28001         * math/w_jnl.c (__jnl): Likewise.
28002         (__ynl): Likewise.
28003         * math/libm-test.inc (j0_test): Add more tests.
28004         (j1_test): Likewise.
28005         (jn_test): Likewise.  Add trailing semicolon to existing test.
28006         (y0_test): Likewise.
28007         (y1_test): Likewise.
28008         * sysdeps/i386/fpu/libm-test-ulps: Update.
28009         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28010
28011         [BZ #13851]
28012         [BZ #13854]
28013         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
28014         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
28015         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
28016         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
28017         (__tanl): Set errno for infinite argument.
28018         * sysdeps/i386/fpu/mptan.c: Remove.
28019         * sysdeps/i386/fpu/s_tan.S: Likewise.
28020         * sysdeps/i386/fpu/s_tanl.S: Likewise.
28021         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
28022         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
28023         * math/libm-test.inc (tan_test): Add more tests and enable more
28024         tests for double and long double.
28025         * sysdeps/i386/fpu/libm-test-ulps: Update.
28026         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28027
28028 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
28029
28030         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
28031         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
28032
28033 2012-03-16  Roland McGrath  <roland@hack.frob.com>
28034
28035         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
28036         * configure.in: Use it for both main tree and add-ons.
28037         * configure: Regenerated.
28038
28039 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28040
28041         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
28042
28043 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28044
28045         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
28046         in comment.
28047
28048         [BZ #13851]
28049         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
28050         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
28051         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
28052         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
28053         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
28054         infinite argument.
28055         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
28056         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
28057         != 0 for prec == 2.
28058         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
28059         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
28060         * sysdeps/i386/fpu/s_cosl.S: Likewise.
28061         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
28062         * sysdeps/i386/fpu/s_sinl.S: Likewise.
28063         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
28064         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
28065         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
28066         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
28067         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
28068         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
28069         * math/libm-test.inc (cos_test): Add more tests and enable more
28070         tests for long double.
28071         (sin_test): Likewise.
28072         (sincos_test): Likewise.
28073         * sysdeps/i386/fpu/libm-test-ulps: Update.
28074         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28075
28076 2012-03-16  David S. Miller  <davem@davemloft.net>
28077
28078         * sysdeps/sparc/fpu/math_private.h: New file.
28079
28080 2012-03-15  David S. Miller  <davem@davemloft.net>
28081
28082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
28083         file.
28084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
28085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
28086         file.
28087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
28088         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
28089         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
28090         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
28091         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
28092         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
28093         sysdep routines.
28094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28095
28096         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
28097         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
28098
28099         * sysdeps/sparc/sparc-ifunc.h: New file.
28100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
28101         sparc-ifunc.h
28102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
28103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28104         Likewise.
28105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
28106         Likewise.
28107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
28108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
28109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
28110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
28111         Likewise.
28112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
28113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
28114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
28115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
28116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
28117         Likewise.
28118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
28119         Likewise.
28120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
28121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
28122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
28123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
28124         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
28125         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
28126         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
28127         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
28128         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
28129         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
28130         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
28131         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
28132         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
28133         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
28134         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
28135         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
28136         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
28137         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
28138         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
28139         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
28140         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
28141         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
28142         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
28143         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
28144
28145 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28146
28147         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
28148         scaling.
28149         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28150
28151 2012-03-15  Andreas Jaeger  <aj@suse.de>
28152
28153         [BZ #13852]
28154         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
28155         ieee754/flt-32 implementation for sin, cos and sincos.
28156         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
28157         * sysdeps/i386/fpu/s_cosf.S: Likewise.
28158         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
28159         * sysdeps/i386/fpu/s_sinf.S: Likewise.
28160         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
28161         ieee754/flt-32 implementation for tan.
28162
28163         * math/libm-test.inc (cos_test): Enable some large input tests for
28164         float as well
28165         (sin_test): Likewise.
28166         (sincos_test): Likewise.
28167         (tan_test): Add tests for large input.
28168
28169         * sysdeps/i386/fpu/libm-test-ulps: Update.
28170
28171 2012-03-15  Andreas Jaeger  <aj@suse.de>
28172
28173         [BZ #13658]
28174         * math/libm-test.inc (cos_test): Add more test cases.
28175         (sin_test): Likewise.
28176         (sincos_test): Likewise.
28177
28178 2012-03-15  Andreas Jaeger  <aj@suse.de>
28179
28180         [BZ #13837]
28181         * math/libm-test.inc (cos_test): Add a test case for large input
28182         value.
28183         (sin_test): Likewise.
28184         (sincos_test): Likewise.
28185
28186 2012-03-15  Andreas Jaeger  <aj@suse.de>,
28187         Joseph Myers  <joseph@codesourcery.com>
28188
28189         [BZ #13658]
28190         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
28191         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
28192         * sysdeps/i386/fpu/branred.c: Likewise.
28193         * sysdeps/i386/fpu/dosincos.c: Likewise.
28194         * sysdeps/i386/fpu/mpa.c: Likewise.
28195         * sysdeps/i386/fpu/s_cos.S: Likewise.
28196         * sysdeps/i386/fpu/s_sin.S: Likewise.
28197         * sysdeps/i386/fpu/s_sincos.S: Likewise.
28198         * sysdeps/i386/fpu/sincos32.c: Likewise.
28199
28200         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
28201         Define.
28202         (libc_feupdateenv_53bit): Define.
28203         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
28204         Define.
28205         (libc_feupdateenv_53bit): Define.
28206
28207         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
28208         53 bit (without extend i386 double precision).
28209
28210         * math/libm-test.inc (sincos_test): Add tests for large input.
28211         (sin): Likewise.
28212         (cos): Likewise.
28213
28214         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28215
28216 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28217
28218         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28219
28220 2012-03-15  David S. Miller  <davem@davemloft.net>
28221
28222         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
28223         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
28224         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
28225         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
28226         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
28227         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
28228         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
28229         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
28230         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
28231         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
28232         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
28233         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
28234         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
28235         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
28236         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
28237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
28238         file.
28239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
28240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
28241         file.
28242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
28243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
28244         file.
28245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
28246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
28247         file.
28248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
28249         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
28250         fmin/fmax sysdep routines.
28251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28252
28253 2012-03-14  David S. Miller  <davem@davemloft.net>
28254
28255         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
28256         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
28257         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
28258         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
28259         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
28260         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
28261         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
28262         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
28263         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
28264         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
28265         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
28266         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
28267         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
28268         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
28269         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
28270         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
28271         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
28272         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
28273         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
28274         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
28275         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
28276         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
28277         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
28278         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
28279         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
28280         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
28281         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
28282         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
28283         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
28284         routines.
28285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
28286         file.
28287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
28288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
28289         file.
28290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
28291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
28292         file.
28293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
28294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
28295         file.
28296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
28297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
28298         file.
28299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
28300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
28301         file.
28302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
28303         file.
28304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
28305         file.
28306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
28307         file.
28308         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
28309         New file.
28310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
28311         file.
28312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
28313         file.
28314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
28315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
28316         file.
28317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
28318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
28319         file.
28320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
28321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
28322         file.
28323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
28324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
28325         VIS3 routines.
28326
28327         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
28328         New file.
28329
28330         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28331
28332         * sysdeps/sparc/configure.in: New file.
28333         * sysdeps/sparc/configure: Generate.
28334         * configure.in (libc_cv_sparc_as_vis3): Substitute.
28335         * configure: Regenerate.
28336         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
28337         * config.make.in (have-as-vis3): New.
28338         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
28339         available use -Av9d instead of -Av9a.
28340         * sysdeps/sparc/sparc64/Makefile: Likewise.
28341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
28342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
28343         New file.
28344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
28345         file.
28346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
28347         New file.
28348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
28349         file.
28350         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
28351         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
28352         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
28353         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
28354         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
28355
28356         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
28357         fzeros/fnegs to load 0x80000000 into a float register instead of
28358         using the stack.
28359         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
28360
28361 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28362
28363         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28364         bits/syscall.h.
28365         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
28366         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
28367         ($(inst_includedir)/bits/syscall.h): Remove rule.
28368         ($(objpfx)bits/syscall.d): Include instead of
28369         $(objpfx)syscall-list.d.
28370         (generated): Change syscall-list.h and syscall-list.d to
28371         bits/syscall.h and bits/syscall.d.
28372
28373 2012-03-14  Roland McGrath  <roland@hack.frob.com>
28374
28375         [BZ #13846]
28376         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
28377
28378 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28379
28380         [BZ #13841]
28381         * math/s_csqrt.c: Include <float.h>.
28382         (__csqrt): Scale large or subnormal inputs.
28383         * math/s_csqrtf.c: Likewise.
28384         * math/s_csqrtl.c: Likewise.
28385         * math/libm-test.inc (csqrt_test): Add more tests.
28386         * sysdeps/i386/fpu/libm-test-ulps: Update.
28387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28388
28389         [BZ #13840]
28390         * math/libm-test.inc (hypot_test): Add more tests.
28391
28392 2012-03-13  David S. Miller  <davem@davemloft.net>
28393
28394         [BZ #13840]
28395         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
28396         double-precision for the calculation instead of scaling.
28397
28398 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
28399
28400         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
28401         manipulate bits before adding and subtracting TWO52[sx].
28402         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
28403         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28404         Likewise.
28405         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
28406
28407 2012-03-13  David S. Miller  <davem@davemloft.net>
28408
28409         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
28410         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
28411         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
28412         rtld-global-offsets.h
28413         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
28414
28415         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
28416         large parameters.
28417
28418         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
28419
28420         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
28421         'err' in the ifdef scope in which it is actually used.
28422
28423         * nss/nss_db/db-init.c: Include string.h
28424
28425 2012-03-12  David S. Miller  <davem@davemloft.net>
28426
28427         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
28428         masking out of the most significant byte of random value used.
28429         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28430         Fix coding style in previous change.
28431
28432         * sysdeps/unix/sysv/linux/kernel-features.h
28433         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
28434         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
28435         expression.
28436         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
28437         later.
28438
28439 2012-03-11  David S. Miller  <davem@davemloft.net>
28440
28441         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
28442         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
28443         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
28444         for 'resultvar' otherwise things get truncated on 64-bit.
28445
28446         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28447         Fix masking out of the most significant byte of random value used.
28448
28449         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28450
28451 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
28452
28453         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28454
28455 2012-03-09  David S. Miller  <davem@davemloft.net>
28456
28457         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
28458         variables with appropriate CPP guards.
28459         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
28460         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
28461         on resulting framesize and the management of the outregs buffer for pltexit.
28462         Preserve floating point return values across _dl_call_pltexit call.
28463         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
28464         framesize and the management of the outregs buffer for pltexit.
28465         Preserve floating point return values across _dl_call_pltexit
28466         call.
28467         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
28468         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
28469         (print_exit): Fix format string for return register value.
28470
28471 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
28472
28473         * sunrpc/Makefile (others): Add rpcgen.
28474         ($(objpfx)rpcgen): Remove special build rule and dependency on
28475         libc.
28476         * sunrpc/rpcgen.c: New file.
28477
28478 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
28479
28480         [BZ #13673]
28481         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
28482         * stdio-common/bug-vfprintf-nargs.c: Likewise.
28483         * sysdeps/i386/crti.S: Likewise.
28484         * sysdeps/i386/crtn.S: Likewise.
28485         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
28486         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
28487         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
28488         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
28489         * sysdeps/sh/crti.S: Likewise.
28490         * sysdeps/sh/crtn.S: Likewise.
28491         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
28492
28493         [BZ #13673]
28494         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
28495         with URL.
28496         * locale/programs/locfile-kw.gperf: Likewise.
28497         * locale/programs/charmap-kw.h: Regenerated.
28498         * locale/programs/locfile-kw.h: Likewise.
28499
28500         [BZ #13673]
28501         * intl/plural.y: Replace FSF snail mail address with URL.
28502         * intl/plural.c: Regenerated.
28503
28504 2012-03-09  Richard Henderson  <rth@twiddle.net>
28505
28506         * include/math_private.h: Remove file.
28507         * math/math_private.h: Move file ...
28508         * sysdeps/generic/math_private.h: ... here.
28509
28510         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
28511         * sysdeps/powerpc/fpu/math_private.h: Likewise.
28512         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28513
28514         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
28515         and <math_private.h>.
28516         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
28517         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
28518         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
28519         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
28520         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
28521         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
28522         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
28523         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28524         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
28525         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28526         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28527         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
28528         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
28529         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28530         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
28531         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
28532         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28533         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
28534         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
28535         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
28536         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28537         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
28538         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
28539         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28540         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
28541         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
28542         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
28543         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28544         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28545         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
28546         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
28547         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28548         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
28549         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
28550         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
28551         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
28552         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
28553         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
28554         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
28555         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28556         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
28557         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
28558         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
28559         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
28560         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
28561         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
28562         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
28563         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
28564         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
28565         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
28566         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
28567         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
28568         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
28569         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
28570         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
28571         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
28572         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28573         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
28574         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
28575         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
28576         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
28577         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
28578         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28579         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
28580         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
28581         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
28582         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
28583         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
28584         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
28585         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
28586         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
28587         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28588         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
28589         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28590         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
28591         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
28592         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
28593         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
28594         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
28595         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
28596         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
28597         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
28598         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
28599         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
28600         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
28601         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
28602         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
28603         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
28604         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
28605         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
28606         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
28607         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
28608         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28609         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
28610         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
28611         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
28612         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28613         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
28614         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
28615         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
28616         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
28617         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
28618         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
28619         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
28620         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
28621         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
28622         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
28623         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
28624         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
28625         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
28626         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
28627         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
28628         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
28629         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
28630         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
28631         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28632         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
28633         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
28634         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
28635         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
28636         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
28637         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
28638         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28639         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
28640         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
28641         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
28642         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
28643         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
28644         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
28645         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
28646         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
28647         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
28648         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
28649         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
28650         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
28651         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
28652         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
28653         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
28654         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
28655         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
28656         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28657         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
28658         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
28659         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
28660         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
28661         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
28662         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
28663         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
28664         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
28665         * sysdeps/ieee754/k_standard.c: Likewise.
28666         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
28667         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
28668         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
28669         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
28670         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
28671         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
28672         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
28673         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
28674         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
28675         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
28676         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
28677         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
28678         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
28679         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
28680         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
28681         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
28682         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
28683         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
28684         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
28685         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
28686         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
28687         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
28688         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
28689         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
28690         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
28691         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
28692         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
28693         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
28694         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
28695         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
28696         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
28697         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
28698         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
28699         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
28700         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
28701         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
28702         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
28703         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
28704         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
28705         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
28706         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
28707         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
28708         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
28709         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
28710         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
28711         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
28712         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
28713         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
28714         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
28715         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
28716         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
28717         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
28718         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
28719         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
28720         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
28721         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
28722         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
28723         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
28724         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
28725         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
28726         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
28727         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
28728         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
28729         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
28730         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
28731         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
28732         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
28733         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
28734         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
28735         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
28736         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
28737         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
28738         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
28739         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
28740         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
28741         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
28742         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
28743         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
28744         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
28745         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
28746         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
28747         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
28748         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
28749         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
28750         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
28751         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
28752         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
28753         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
28754         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
28755         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
28756         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
28757         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
28758         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
28759         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
28760         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
28761         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
28762         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
28763         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
28764         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
28765         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
28766         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
28767         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
28768         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
28769         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
28770         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
28771         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
28772         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
28773         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
28774         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
28775         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
28776         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
28777         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
28778         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
28779         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
28780         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
28781         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28782         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
28783         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
28784         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28785         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
28786         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
28787         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
28788         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
28789         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
28790         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
28791         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
28792         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
28793         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
28794         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
28795         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
28796         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
28797         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
28798         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
28799         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
28800         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
28801         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
28802         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
28803         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
28804         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
28805         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
28806         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
28807         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
28808         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
28809         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
28810         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
28811         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
28812         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
28813         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
28814         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
28815         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
28816         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
28817         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
28818         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
28819         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
28820         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
28821         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
28822         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
28823         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
28824         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
28825         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
28826         * sysdeps/ieee754/s_lib_version.c: Likewise.
28827         * sysdeps/ieee754/s_matherr.c: Likewise.
28828         * sysdeps/ieee754/s_signgam.c: Likewise.
28829         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
28830         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
28831         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
28832         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
28833         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
28834         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
28835         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
28836         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
28837         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
28838         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
28839         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
28840         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
28841         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
28842         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
28843         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
28844         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
28845         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
28846         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
28847         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
28848         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
28849         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
28850
28851 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
28852
28853         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
28854         * sunrpc/rpc_main.c: Likewise.
28855         * sunrpc/rpc_svcout.c: Likewise.
28856
28857 2012-03-09  David S. Miller  <davem@davemloft.net>
28858
28859         * include/math_private.h: New file.
28860
28861 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
28862
28863         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
28864         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
28865         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
28866         from <bits/socket_type.h>.
28867         (enum __socket_type): Don't define here.
28868         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
28869         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28870         bits/socket_type.h.
28871
28872         [BZ #13566]
28873         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
28874         checking __USE_GNU.
28875
28876         * Makerules ($(inst_includedir)/%.h): New rule.
28877         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
28878         (install-others): Remove variable setting.
28879         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
28880
28881 2012-03-08  Richard Henderson  <rth@twiddle.net>
28882
28883         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
28884         from macro to inline function; merge with the
28885         !__LIBC_INTERNAL_MATH_INLINES version.
28886         (__ieee754_sqrtf): Likewise.
28887
28888         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
28889         to inline function.
28890         (__rintf, __floor, __floorf): Likewise.
28891
28892         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
28893         macro to inline function.
28894         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
28895
28896         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
28897         not <math/math_private.h>.
28898
28899 2012-03-08  David S. Miller  <davem@davemloft.net>
28900
28901         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
28902         copyright year.
28903         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
28904
28905 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
28906
28907         * resolv/gai_misc.c (handle_requests): Fix struct timespec
28908         normalization.
28909         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
28910         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
28911
28912 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
28913
28914         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
28915         be defined individually, they must be defined as a block.  Define
28916         S for printing a string instead of hidint the different by using a
28917         macro for adding the 'l'.
28918         * stdio-common/tst-fphex-wide.c: Adjust.
28919
28920 2012-03-07  Marek Polacek  <polacek@redhat.com>
28921
28922         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
28923
28924 2012-03-08  Marek Polacek  <polacek@redhat.com>
28925
28926         [BZ #13806]
28927         * stdio-common/Makefile (tests): Add tst-fphex-wide.
28928         * stdio-common/tst-fphex.c: Define a few macros to make the
28929         test reusable.  Use them.
28930         * stdio-common/tst-fphex-wide.c: New file.
28931
28932 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
28933
28934         [BZ #6911]
28935         * manual/macros.texi (gnusystems): New macro.
28936         (nongnusystems): Likewise.
28937         (gnulinuxhurdsystems): Likewise.
28938         (gnuhurdsystems): Likewise..
28939         (gnulinuxsystems): Likewise.
28940         * manual/charset.texi: Use new macros or @theglibc{} to refer to
28941         variants of the GNU system, not "GNU system".
28942         * manual/conf.texi: Likewise.
28943         * manual/errno.texi: Likewise.  Update example of errno macro
28944         expansion.
28945         * manual/filesys.texi: Likewise.
28946         (getumask): Document as specific to GNU/Hurd.
28947         * manual/install.texi: Likewise.  Reword some references to
28948         GNU/Linux.
28949         * manual/intro.texi: Likewise.
28950         * manual/io.texi: Likewise.
28951         (File Name Portability): Detail which constraints are inapplicable
28952         to all GNU systems and which are only inapplicable to GNU/Hurd.
28953         * manual/job.texi: Likewise.
28954         * manual/llio.texi: Likewise.
28955         (O_NOCTTY): Document as present on GNU/Linux.
28956         * manual/maint.texi: Likewise.
28957         * manual/memory.texi: Likewise.
28958         * manual/pattern.texi: Likewise.
28959         * manual/pipe.texi: Likewise.
28960         * manual/process.texi: Likewise.
28961         * manual/resource.texi: Likewise.
28962         (RUSAGE_CHILDREN): Remove statement about specifying a particular
28963         child on GNU/Hurd.
28964         * manual/setjmp.texi: Likewise.
28965         * manual/signal.texi: Likewise.
28966         * manual/startup.texi: Likewise.
28967         * manual/stdio.texi: Likewise.
28968         * manual/terminal.texi: Likewise.
28969         (ONLCR): Document as POSIX.
28970         (OXTABS): Document availability on GNU/Linux as XTABS.
28971         (ONOEOT): Document availability separately from other bits.
28972         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
28973         * manual/time.texi: Likewise.
28974         * manual/users.texi: Likewise.
28975         * INSTALL: Regenerated.
28976         * sysdeps/gnu/errlist.c: Regenerated.
28977
28978         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
28979         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
28980         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
28981         puts.
28982         * configure: Regenerated.
28983
28984 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
28985
28986         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
28987         default includes instead of AC_HEADER_CHECK.
28988         * sysdeps/i386/configure: Regenerated.
28989
28990         [BZ #10716]
28991         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
28992         * math/s_cacoshf.c (__cacoshf): Likewise.
28993         * math/s_cacoshl.c (__cacoshl): Likewise.
28994         * math/s_casinh.c (__casinh): Set signs of result from argument.
28995         * math/s_casinhf.c (__casinhf): Likewise.
28996         * math/s_casinhl.c (__casinhl): Likewise.
28997         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
28998         (casinh_test): Add more tests.
28999         * sysdeps/i386/fpu/libm-test-ulps: Update.
29000         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29001
29002 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
29003
29004         * po/zh_TW.po: Update from translation team.
29005
29006         * login/Makefile (distribute): Remove variable.
29007         * catgets/Makefile: Likewise.
29008         * mach/Makefile: Likewise.
29009         * malloc/Makefile: Likewise.
29010         * misc/Makefile: Likewise.
29011         * iconv/Makefile: Likewise.
29012         * nscd/Makefile: Likewise.
29013         * hurd/Makefile: Likewise.
29014         * manual/Makefile: Likewise.
29015         * locale/Makefile: Likewise.
29016         * intl/Makefile: Likewise.
29017         * conform/Makefile: Likewise.
29018         * nss/Makefile: Likewise.
29019         * time/Makefile: Likewise.
29020         * soft-fp/Makefile: Likewise.
29021         * dirent/Makefile: Likewise.
29022         * gmon/Makefile: Likewise.
29023         * po/Makefile: Likewise.
29024         * rt/Makefile: Likewise.
29025         * socket/Makefile: Likewise.
29026         * math/Makefile: Likewise.
29027         * signal/Makefile: Likewise.
29028         * debug/Makefile: Likewise.
29029         * elf/Makefile: Likewise.
29030         * timezone/Makefile: Likewise.
29031         * stdlib/Makefile: Likewise.
29032         * iconvdata/Makefile: Likewise.
29033         * sunrpc/Makefile: Likewise.
29034         * io/Makefile: Likewise.
29035         * argp/Makefile: Likewise.
29036         * inet/Makefile: Likewise.
29037         * hesiod/Makefile: Likewise.
29038         * grp/Makefile: Likewise.
29039         * csu/Makefile: Likewise.
29040         * wctype/Makefile: Likewise.
29041         * crypt/Makefile: Likewise.
29042         * libio/Makefile: Likewise.
29043         * string/Makefile: Likewise.
29044         * nis/Makefile: Likewise.
29045         * resolv/Makefile: Likewise.
29046         * stdio-common/Makefile: Likewise.
29047         * wcsmbs/Makefile: Likewise.
29048         * dlfcn/Makefile: Likewise.
29049         * posix/Makefile: Likewise.
29050
29051         [BZ #6959]
29052         * timezone/Makefile: Don't install timezone files, just the programs
29053         and scripts.
29054
29055 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
29056
29057         * nss/databases.def: Add missing gshadow entry.
29058
29059         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
29060
29061 2012-03-06  Marek Polacek  <polacek@redhat.com>
29062
29063         [BZ #13726]
29064         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
29065         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
29066         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
29067         * stdio-common/tst-long-dbl-fphex.c: New file.
29068
29069 2012-03-06  David S. Miller  <davem@davemloft.net>
29070
29071         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
29072         (set_obp_int): New function.
29073         (get_obp_int): New function.
29074         (__get_clockfreq_via_dev_openprom): Likewise.
29075         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
29076         Avoid unused variable warnings on 'val' and use builtin_expect.
29077         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
29078         __builtin_expect.
29079         (INLINE_CLONE_SYSCALL): Likewise.
29080
29081 2012-03-05  David S. Miller  <davem@davemloft.net>
29082
29083         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29084
29085 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
29086
29087         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29088
29089         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
29090         only for |x| >= 40.
29091         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29092
29093 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
29094
29095         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
29096         Replace gettimeofday with __vdso_gettimeofday.
29097
29098         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29099         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
29100         __vdso_clock_gettime and __vdso_getcpu.
29101
29102         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
29103         time with __vdso_time.
29104
29105 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29106
29107         * manual/lang.texi (size_t): Note types to which size_t may be
29108         equivalent with the GNU C Library, but do not describe when
29109         differences between them are significant.
29110
29111 2012-03-05  Andreas Jaeger  <aj@suse.de>
29112
29113         * sysdeps/i386/fpu/libm-test-ulps: Update.
29114
29115 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29116
29117         [BZ #3976]
29118         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
29119         (__ieee754_pow): Save and restore rounding mode and use
29120         round-to-nearest for main computations.
29121         * math/libm-test.inc (pow_test_tonearest): New function.
29122         (pow_test_towardzero): Likewise.
29123         (pow_test_downward): Likewise.
29124         (pow_test_upward): Likewise.
29125         (main): Call the new functions.
29126         * sysdeps/i386/fpu/libm-test-ulps: Update.
29127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29128
29129         [BZ #3976]
29130         * math/libm-test.inc (cosh_test_tonearest): New function.
29131         (cosh_test_towardzero): Likewise.
29132         (cosh_test_downward): Likewise.
29133         (cosh_test_upward): Likewise.
29134         (sinh_test_tonearest): Likewise.
29135         (sinh_test_towardzero): Likewise.
29136         (sinh_test_downward): Likewise.
29137         (sinh_test_upward): Likewise.
29138         (main): Call the new functions.
29139         * sysdeps/i386/fpu/libm-test-ulps: Update.
29140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29141
29142 2012-03-05  Tom de Vries  <tom@codesourcery.com>
29143
29144         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
29145         default stack guard is set in last bytes.
29146         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
29147
29148 2012-03-05  Kees Cook  <keescook@chromium.org>
29149
29150         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
29151
29152         [BZ #13656]
29153         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
29154         possibly allocate from heap instead of stack.
29155         * stdio-common/bug-vfprintf-nargs.c: New file.
29156         * stdio-common/Makefile (tests): Add nargs overflow test.
29157
29158 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
29159
29160         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29161
29162 2012-03-03  Marek Polacek  <polacek@redhat.com>
29163
29164         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
29165         * math/math_private.h: Likewise.
29166         * stdlib/tst-strtod.c: Likewise.
29167         * sysdeps/i386/i486/bits/atomic.h: Likewise.
29168         * sysdeps/x86_64/bits/atomic.h: Likewise.
29169
29170 2012-03-02  David S. Miller  <davem@davemloft.net>
29171
29172         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
29173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
29174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
29175         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
29176         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
29177         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
29178         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
29179         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
29180
29181 2012-03-02  Roland McGrath  <roland@hack.frob.com>
29182
29183         [BZ #13792]
29184         * manual/examples/README: New file, says the example source files
29185         can be used under GPL>=2.
29186         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
29187         line containing just "*/".
29188         * manual/examples/add.c: Add copyright header (GPL>=2).
29189         * manual/examples/argp-ex1.c: Likewise.
29190         * manual/examples/argp-ex2.c: Likewise.
29191         * manual/examples/argp-ex3.c: Likewise.
29192         * manual/examples/argp-ex4.c: Likewise.
29193         * manual/examples/atexit.c: Likewise.
29194         * manual/examples/db.c: Likewise.
29195         * manual/examples/dir.c: Likewise.
29196         * manual/examples/dir2.c: Likewise.
29197         * manual/examples/execinfo.c: Likewise.
29198         * manual/examples/filecli.c: Likewise.
29199         * manual/examples/filesrv.c: Likewise.
29200         * manual/examples/fmtmsgexpl.c: Likewise.
29201         * manual/examples/genpass.c: Likewise.
29202         * manual/examples/inetcli.c: Likewise.
29203         * manual/examples/inetsrv.c: Likewise.
29204         * manual/examples/isockad.c: Likewise.
29205         * manual/examples/longopt.c: Likewise.
29206         * manual/examples/memopen.c: Likewise.
29207         * manual/examples/memstrm.c: Likewise.
29208         * manual/examples/mkfsock.c: Likewise.
29209         * manual/examples/mkisock.c: Likewise.
29210         * manual/examples/mygetpass.c: Likewise.
29211         * manual/examples/pipe.c: Likewise.
29212         * manual/examples/popen.c: Likewise.
29213         * manual/examples/rprintf.c: Likewise.
29214         * manual/examples/search.c: Likewise.
29215         * manual/examples/select.c: Likewise.
29216         * manual/examples/setjmp.c: Likewise.
29217         * manual/examples/sigh1.c: Likewise.
29218         * manual/examples/sigusr.c: Likewise.
29219         * manual/examples/stpcpy.c: Likewise.
29220         * manual/examples/strdupa.c: Likewise.
29221         * manual/examples/strftim.c: Likewise.
29222         * manual/examples/strncat.c: Likewise.
29223         * manual/examples/subopt.c: Likewise.
29224         * manual/examples/swapcontext.c: Likewise.
29225         * manual/examples/termios.c: Likewise.
29226         * manual/examples/testopt.c: Likewise.
29227         * manual/examples/testpass.c: Likewise.
29228         * manual/examples/timeval_subtract.c: Likewise.
29229
29230         [BZ #13792]
29231         * manual/time.texi (Elapsed Time): Move timeval_subtract example
29232         function to ...
29233         * manual/timeval_subtract.c.texi: ... here, new file.
29234
29235 2012-03-02  David S. Miller  <davem@davemloft.net>
29236
29237         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
29238
29239 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
29240
29241         [BZ #3976]
29242         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
29243         (__sin): Save and restore rounding mode and use round-to-nearest
29244         for all computations.
29245         (__cos): Save and restore rounding mode and use round-to-nearest
29246         for all computations.
29247         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
29248         <fenv.h>.
29249         (tan): Save and restore rounding mode and use round-to-nearest for
29250         all computations.
29251         * math/libm-test.inc (cos_test_tonearest): New function.
29252         (cos_test_towardzero): Likewise.
29253         (cos_test_downward): Likewise.
29254         (cos_test_upward): Likewise.
29255         (sin_test_tonearest): Likewise.
29256         (sin_test_towardzero): Likewise.
29257         (sin_test_downward): Likewise.
29258         (sin_test_upward): Likewise.
29259         (tan_test_tonearest): Likewise.
29260         (tan_test_towardzero): Likewise.
29261         (tan_test_downward): Likewise.
29262         (tan_test_upward): Likewise.
29263         (main): Call the new functions.
29264         * sysdeps/i386/fpu/libm-test-ulps: Update.
29265         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29266
29267         [BZ #10135]
29268         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
29269         small n, then large n, before computing and testing k+n.
29270         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
29271         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
29272         Likewise.
29273         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
29274         Likewise.
29275         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
29276         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
29277         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
29278         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
29279         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
29280         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
29281         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
29282         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
29283         * math/libm-test.inc (scalbn_test): Add more tests.
29284         (scalbln_test): Likewise.
29285
29286         * manual/filesys.texi (mode_t): Describe constraints on size and
29287         signedness, not exact equivalence to a particular type.
29288         (ino_t): Likewise.
29289         (ino64_t): Likewise.
29290         (dev_t): Likewise.
29291         (nlink_t): Likewise.
29292         (blkcnt_t): Likewise.
29293         (blkcnt64_t): Likewise.
29294         * manual/llio.texi (off_t): Likewise.
29295
29296         [BZ #3976]
29297         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
29298         (__ieee754_exp): Save and restore rounding mode and use
29299         round-to-nearest for all computations.
29300         * math/libm-test.inc (exp_test_tonearest): New function.
29301         (exp_test_towardzero): Likewise.
29302         (exp_test_downward): Likewise.
29303         (exp_test_upward): Likewise.
29304         (main): Call the new functions.
29305         * sysdeps/i386/fpu/libm-test-ulps: Update.
29306         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29307
29308 2012-03-01  Chris Demetriou  <cgd@google.com>
29309
29310         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
29311         have predictable order.
29312
29313 2012-03-01  David S. Miller  <davem@davemloft.net>
29314
29315         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
29316
29317         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
29318         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
29319         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
29320         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
29321
29322         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
29323         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
29324         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
29325         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
29326         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
29327         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
29328         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
29329         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
29330         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
29331
29332         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29333
29334         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
29335         * sysdeps/sparc/fpu/libm-test-ulps: to here.
29336         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
29337
29338         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
29339         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29340         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
29341         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
29342         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
29343         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
29344         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
29345         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29346         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
29347         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
29348         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
29349         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29350         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
29351         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
29352         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
29353         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29354         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
29355         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
29356         * sysdeps/sparc/elf/configure: Regenerated.
29357
29358 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
29359
29360         * configure.in (AS, LD): Require binutils 2.20 or later.
29361         * configure: Regenerated.
29362         * manual/install.texi (Tools for Compilation): Give binutils 2.20
29363         as required minimum version.
29364         * INSTALL: Regenerated.
29365
29366         [BZ #2541]
29367         [BZ #4108]
29368         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
29369         before squaring exponent.
29370         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
29371         bottom long double and 27 bits of top long double before squaring
29372         exponent.
29373         * math/libm-test.inc (erfc_test): Add more tests.
29374         * sysdeps/i386/fpu/libm-test-ulps: Update.
29375         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29377
29378 2012-03-01  Kai Tietz  <ktietz@redhat.com>
29379
29380         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
29381         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
29382         containing bit-fields.
29383         * soft-fp/extended.h (_FP_UNION_E): Likewise.
29384         * soft-fp/single.h (_FP_UNION_S): Likewise.
29385         * soft-fp/double.h (_FP_UNION_D): Likewise.
29386
29387 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29388
29389         [BZ #13786]
29390         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
29391         not include ../strcmp.S.
29392         [USE_AS_STRNCASECMP_L]: Likewise.
29393         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
29394         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
29395         * sysdeps/i386/i686/multiarch/strncase_l-c.c
29396         (__strncasecmp_l_ia32): Define as alias to
29397         __strncasecmp_l_nonascii.
29398
29399         [BZ #5794]
29400         * math/libm-test.inc (expm1_test): Add test for bug 5794.
29401         * sysdeps/i386/fpu/libm-test-ulps: Update.
29402         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29403
29404         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
29405         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29406
29407 2012-02-29  Jeff Law  <law@redhat.com>
29408
29409         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
29410         out of bounds read.
29411
29412 2012-02-29  Marek Polacek  <polacek@redhat.com>
29413
29414         [BZ #13706]
29415         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
29416         * elf/Makefile: Add rules to run tst-unused-dep.out.
29417
29418 2012-02-28  David S. Miller  <davem@davemloft.net>
29419
29420         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
29421         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
29422         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
29423         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
29424         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
29425         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
29426
29427 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29428
29429         * math/libm-test.inc (llround_test): Move one test from
29430         lround_test.  Use TEST_f_L in moved test.
29431         (lround_test): Move misplaced test to llround_test.  Add testcase
29432         from bug 2561.
29433
29434 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
29435
29436         * sysdeps/x86_64/fpu/e_expf.S: New file.
29437         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
29438
29439 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
29440
29441         [BZ #13637]
29442         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
29443         of remain_len that may cause incomplete multi-byte character and
29444         false match.
29445         * posix/bug-regex33.c: New file.
29446         * posix/Makefile (tests): Add bug-regex33.
29447
29448 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
29449
29450         * manual/macros.texi: New file.
29451         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
29452         * manual/libc.texinfo: Include macros.texi.
29453         * manual/creatute.texi: Likewise.
29454         * manual/install.texi: Likewise.
29455         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
29456         @glibcadj{} in references to the GNU C Library.
29457         * manual/charset.texi: Likewise.
29458         * manual/conf.texi: Likewise.
29459         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
29460         when not using those macros.
29461         * manual/creature.texi: Likewise.
29462         * manual/crypt.texi: Likewise.
29463         * manual/errno.texi: Likewise.
29464         * manual/filesys.texi: Likewise.
29465         * manual/header.texi: Likewise.
29466         * manual/install.texi: Likewise.
29467         * manual/intro.texi: Likewise.
29468         * manual/io.texi: Likewise.
29469         * manual/job.texi: Likewise.
29470         * manual/lang.texi: Likewise.
29471         * manual/libc.texiinfo: Likewise.
29472         * manual/llio.texi: Likewise.
29473         * manual/locale.texi: Likewise.
29474         * manual/maint.texi: Likewise.
29475         * manual/math.texi: Likewise.
29476         * manual/memory.texi: Likewise.
29477         * manual/message.texi: Likewise.
29478         * manual/nss.texi: Likewise.
29479         * manual/pattern.texi: Likewise.
29480         * manual/process.texi: Likewise.
29481         * manual/resource.texi: Likewise.
29482         * manual/search.texi: Likewise.
29483         * manual/setjmp.texi: Likewise.
29484         * manual/signal.texi: Likewise.
29485         * manual/socket.texi: Likewise.
29486         * manual/startup.texi: Likewise.
29487         * manual/stdio.texi: Likewise.
29488         * manual/string.texi: Likewise.
29489         * manual/sysinfo.texi: Likewise.
29490         * manual/syslog.texi: Likewise.
29491         * manual/terminal.texi: Likewise.
29492         * manual/time.texi: Likewise.
29493         * manual/users.texi: Likewise.
29494         * INSTALL: Regenerated.
29495         * NOTES: Regenerated.
29496         * sysdeps/gnu/errlist.c: Regenerated.
29497
29498 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
29499
29500         * include/dirent.h: Include <dirstream.h> before
29501         <dirent/dirent.h>.
29502
29503 2012-02-28  David S. Miller  <davem@davemloft.net>
29504
29505         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
29506         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
29507         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
29508         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
29509
29510 2012-02-27  David S. Miller  <davem@davemloft.net>
29511
29512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
29513         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
29514         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
29515         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
29516
29517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
29518         frame pointer instead of stack pointer relative arg slot.
29519         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
29520         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
29521         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
29522
29523 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
29524
29525         [BZ #3992]
29526         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
29527
29528 2012-02-27  David S. Miller  <davem@davemloft.net>
29529
29530         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
29531         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
29532         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
29533         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
29534         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
29535         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
29536         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
29537         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
29538
29539 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
29540
29541         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
29542         later.  Allow versions 5-9.
29543         * configure: Regenerated.
29544         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
29545         required minimum version and 4.6 as recommended version.  Do not
29546         mention bugs in GCC 2.7 and 2.8.
29547         * INSTALL: Regenerated.
29548
29549 2012-02-27  David S. Miller  <davem@davemloft.net>
29550
29551         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
29552         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
29553         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
29554         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
29555         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
29556         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
29557         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
29558         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
29559
29560         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
29561         manipulate bits before adding and subtracting TWO112[sx].
29562         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
29563
29564 2012-02-27  Roland McGrath  <roland@hack.frob.com>
29565
29566         [BZ #13775]
29567         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
29568         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
29569         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
29570         being in POSIX, because they are in 1003.1-2008.
29571
29572         * rt/tst-aio.c: Include <fcntl.h>.
29573         * rt/tst-aio7.c: Likewise.
29574         * rt/tst-aio64.c: Likewise.
29575
29576         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
29577
29578 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
29579
29580         * manual/install.texi (--with-headers): Describe headers as
29581         interface headers, not private headers.
29582         (Specific advice for GNU/Linux systems): Describe use of headers
29583         from "make headers_install", not private headers from older
29584         kernels.
29585         * INSTALL: Regenerated.
29586         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
29587         Change to 2.6.19.
29588         * sysdeps/unix/sysv/linux/configure: Regenerated.
29589
29590         * manual/llio.texi (fclean): Remove documentation.
29591
29592         * manual/Makefile (libc-texi-generated): New variable.  Include
29593         version.texi.
29594         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
29595         $(libc-texi-generated), not duplicated list of files.
29596         (version.texi, stamp-version): New rules.
29597         (realclean): Remove $(libc-texi-generated), not individual files
29598         from that list.  Do not remove dir-add.texinfo.
29599         * manual/libc.texinfo: Comment out uses of edition numbers and
29600         references to printed manual.  Remove last-updated dates.
29601         (EDITION): Comment out.
29602         (ISBN): Likewise.
29603         (VERSION, UPDATED): Remove.
29604         (version.texi): Include.
29605
29606 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
29607
29608         * sysdeps/posix/spawni.c: Include <signal.h>.
29609         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
29610         * sysdeps/pthread/aio_fsync.c: Likewise.
29611
29612 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
29613
29614         * conform/Makefile (tests): Run only when not cross-compiling and
29615         when fast-check is not defined.
29616
29617         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
29618         * conform/data/limits.h-data: Fixes for POSIX2008.
29619         * conform/run-conformtest.sh: Run all tests.
29620         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
29621         headers.
29622         * include/bits/dlfcn.h: Likewise.
29623         * include/langinfo.h: Likewise.
29624         * include/monetary.h: Likewise.
29625         * include/sys/poll.h: Likewise.
29626
29627         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
29628         for __USE_GNU.
29629         * posix/spawn.h: Define __need_sigset_t.
29630         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
29631         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
29632         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
29633         to get sigevent_t only.
29634         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
29635         only for __USE_GNU.
29636         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
29637         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
29638         process_vm_writev only for __USE_GNU.
29639         * termios/termios.h: Declare tcgetsid also for POSIX2008.
29640
29641         * conform/Makefile: For now ignore errors from run-conformtest.
29642         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
29643         POSIX to avoid namespace pollution.  Don't prepend headers.
29644         * conform/data/aio.h-data: Fixes for POSIX testing.
29645         * conform/data/fcntl.h-data: Likewise.
29646         * conform/data/glob.h-data: Likewise.
29647         * conform/data/grp.h-data: Likewise.
29648         * conform/data/pthread.h-data: Likewise.
29649         * conform/data/pwd.h-data: Likewise.
29650         * conform/data/signal.h-data: Likewise.
29651         * conform/data/spawn.h-data: Likewise.
29652         * conform/data/stdio.h-data: Likewise.
29653         * conform/data/stdlib.h-data: Likewise.
29654         * conform/data/stropts.h-data: Likewise.
29655         * conform/data/sys/mman.h-data: Likewise.
29656         * conform/data/sys/stat.h-data: Likewise.
29657         * conform/data/sys/types.h-data: Likewise.
29658         * conform/data/sys/wait.h-data: Likewise.
29659         * conform/data/time.h-data: Likewise.
29660         * conform/data/unistd.h-data: Likewise.
29661         * conform/data/utime.h-data: Likewise.
29662
29663         * io/sys/stat.h: fchmod was always in POSIX.
29664         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
29665         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
29666         * rt/aio.h: Define __need_timespec before including <time.h>.
29667         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
29668         struct.  Add forward declaration of pthread_attr_t and use it in
29669         sigevent.
29670         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
29671         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
29672         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
29673         always remove CLK_TCK definition.
29674
29675 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
29676
29677         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
29678
29679 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
29680
29681         * conform/run-conformtest.sh: New file.
29682         * conform/Makefile: Run run-conformtest for tests.
29683         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
29684         support.
29685
29686         * conform/data/uchar.h-data: New file.
29687         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
29688         * conform/data/arpa/inet.h-data: Likewise.
29689         * conform/data/assert.h-data: Likewise.
29690         * conform/data/complex.h-data: Likewise.
29691         * conform/data/cpio.h-data: Likewise.
29692         * conform/data/ctype.h-data: Likewise.
29693         * conform/data/dirent.h-data: Likewise.
29694         * conform/data/dlfcn.h-data: Likewise.
29695         * conform/data/errno.h-data: Likewise.
29696         * conform/data/fcntl.h-data: Likewise.
29697         * conform/data/float.h-data: Likewise.
29698         * conform/data/fmtmsg.h-data: Likewise.
29699         * conform/data/fnmatch.h-data: Likewise.
29700         * conform/data/ftw.h-data: Likewise.
29701         * conform/data/glob.h-data: Likewise.
29702         * conform/data/grp.h-data: Likewise.
29703         * conform/data/iconv.h-data: Likewise.
29704         * conform/data/inttypes.h-data: Likewise.
29705         * conform/data/langinfo.h-data: Likewise.
29706         * conform/data/libgen.h-data: Likewise.
29707         * conform/data/limits.h-data: Likewise.
29708         * conform/data/locale.h-data: Likewise.
29709         * conform/data/math.h-data: Likewise.
29710         * conform/data/monetary.h-data: Likewise.
29711         * conform/data/mqueue.h-data: Likewise.
29712         * conform/data/ndbm.h-data: Likewise.
29713         * conform/data/net/if.h-data: Likewise.
29714         * conform/data/netdb.h-data: Likewise.
29715         * conform/data/netinet/in.h-data: Likewise.
29716         * conform/data/nl_types.h-data: Likewise.
29717         * conform/data/poll.h-data: Likewise.
29718         * conform/data/pthread.h-data: Likewise.
29719         * conform/data/pwd.h-data: Likewise.
29720         * conform/data/regex.h-data: Likewise.
29721         * conform/data/sched.h-data: Likewise.
29722         * conform/data/search.h-data: Likewise.
29723         * conform/data/semaphore.h-data: Likewise.
29724         * conform/data/setjmp.h-data: Likewise.
29725         * conform/data/signal.h-data: Likewise.
29726         * conform/data/spawn.h-data: Likewise.
29727         * conform/data/stdarg.h-data: Likewise.
29728         * conform/data/stdio.h-data: Likewise.
29729         * conform/data/stdlib.h-data: Likewise.
29730         * conform/data/string.h-data: Likewise.
29731         * conform/data/strings.h-data: Likewise.
29732         * conform/data/stropts.h-data: Likewise.
29733         * conform/data/sys/ipc.h-data: Likewise.
29734         * conform/data/sys/mman.h-data: Likewise.
29735         * conform/data/sys/msg.h-data: Likewise.
29736         * conform/data/sys/resource.h-data: Likewise.
29737         * conform/data/sys/select.h-data: Likewise.
29738         * conform/data/sys/sem.h-data: Likewise.
29739         * conform/data/sys/shm.h-data: Likewise.
29740         * conform/data/sys/socket.h-data: Likewise.
29741         * conform/data/sys/stat.h-data: Likewise.
29742         * conform/data/sys/statvfs.h-data: Likewise.
29743         * conform/data/sys/time.h-data: Likewise.
29744         * conform/data/sys/timeb.h-data: Likewise.
29745         * conform/data/sys/times.h-data: Likewise.
29746         * conform/data/sys/types.h-data: Likewise.
29747         * conform/data/sys/uio.h-data: Likewise.
29748         * conform/data/sys/un.h-data: Likewise.
29749         * conform/data/sys/utsname.h-data: Likewise.
29750         * conform/data/sys/wait.h-data: Likewise.
29751         * conform/data/syslog.h-data: Likewise.
29752         * conform/data/tar.h-data: Likewise.
29753         * conform/data/termios.h-data: Likewise.
29754         * conform/data/utime.h-data: Likewise.
29755         * conform/data/utmpx.h-data: Likewise.
29756         * conform/data/varargs.h-data: Likewise.
29757         * conform/data/wchar.h-data: Likewise.
29758         * conform/data/wctype.h-data: Likewise.
29759         * conform/data/wordexp.h-data: Likewise.
29760
29761         * include/stropts.h: New file.
29762         * include/uchar.h: New file.
29763         * include/aio.h: Changes to allow conformtest.pl to use the headers.
29764         * include/assert.h: Likewise.
29765         * include/ctype.h: Likewise.
29766         * include/dirent.h: Likewise.
29767         * include/dlfcn.h: Likewise.
29768         * include/fcntl.h: Likewise.
29769         * include/fnmatch.h: Likewise.
29770         * include/glob.h: Likewise.
29771         * include/grp.h: Likewise.
29772         * include/libio.h: Likewise.
29773         * include/locale.h: Likewise.
29774         * include/math.h: Likewise.
29775         * include/net/if.h: Likewise.
29776         * include/netdb.h: Likewise.
29777         * include/netinet/in.h: Likewise.
29778         * include/pthread.h: Likewise.
29779         * include/pwd.h: Likewise.
29780         * include/regex.h: Likewise.
29781         * include/sched.h: Likewise.
29782         * include/search.h: Likewise.
29783         * include/setjmp.h: Likewise.
29784         * include/signal.h: Likewise.
29785         * include/stdio.h: Likewise.
29786         * include/stdlib.h: Likewise.
29787         * include/string.h: Likewise.
29788         * include/sys/cdefs.h: Likewise.
29789         * include/sys/mman.h: Likewise.
29790         * include/sys/msg.h: Likewise.
29791         * include/sys/resource.h: Likewise.
29792         * include/sys/select.h: Likewise.
29793         * include/sys/socket.h: Likewise.
29794         * include/sys/stat.h: Likewise.
29795         * include/sys/statvfs.h: Likewise.
29796         * include/sys/time.h: Likewise.
29797         * include/sys/times.h: Likewise.
29798         * include/sys/uio.h: Likewise.
29799         * include/sys/utsname.h: Likewise.
29800         * include/sys/wait.h: Likewise.
29801         * include/termios.h: Likewise.
29802         * include/time.h: Likewise.
29803         * include/ulimit.h: Likewise.
29804         * include/unistd.h: Likewise.
29805         * include/utime.h: Likewise.
29806         * include/wchar.h: Likewise.
29807         * include/wctype.h: Likewise.
29808         * include/wordexp.h: Likewise.
29809
29810         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
29811
29812         * time/time.h: TIME_UTC must be a macro.
29813         Make timespec_get available for ISO C11 only as well.
29814
29815 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
29816
29817         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
29818         Reported by Peng Haitao <penght@cn.fujitsu.com>.
29819
29820 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
29821
29822         * configure.in: Use -o not -a in test for unsupported multi-arch.
29823
29824 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
29825
29826         * manual/texinfo.tex: Update to version 2012-01-19.16.
29827
29828 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
29829
29830         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
29831
29832 2012-02-24  Roland McGrath  <roland@hack.frob.com>
29833
29834         [BZ #13738]
29835         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
29836         * manual/fdl-1.3.texi: New file.
29837         * manual/fdl-1.1.texi: File removed.
29838
29839         [BZ #13738]
29840         * manual/libc.texinfo (FDL_VERSION): New @set.
29841         Use it for mention of FDL in cover text.
29842         (Documentation License): Use it in @include file name.
29843
29844 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29845             Roland McGrath  <roland@hack.frob.com>
29846
29847         [BZ #5461]
29848         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
29849         not LONG_LONG_MAX and LONG_LONG_MIN.
29850         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
29851         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
29852         name.
29853         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
29854
29855 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29856
29857         [BZ #2547]
29858         [BZ #11365]
29859         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
29860         manipulate bits before adding and subtracting TWO23[sx].
29861         * math/libm-test.inc (nearbyint_test): Add more tests.
29862
29863 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29864
29865         [BZ #2548]
29866         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
29867         bits before adding and subtracting TWO23[sx].
29868         * math/libm-test.inc (rint_test): Add more tests.
29869         (rint_test_tonearest): Likewise.
29870         (rint_test_towardzero): Likewise.
29871         (rint_test_downward): Likewise.
29872         (rint_test_upward: Likewise.
29873
29874 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29875
29876         [BZ #10110]
29877         * include/stdc-predef.h: New file.  Extracted from features.h.
29878         * include/features.h: Include stdc-predef.h.
29879         * Makefile (headers): Add stdc-predef.h.
29880         * CONFORMANCE (Compiler limitations): Update.
29881
29882 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29883
29884         * manual/libc.texinfo (VERSION, UPDATED): Revert.
29885
29886 2012-02-21  David S. Miller  <davem@davemloft.net>
29887
29888         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
29889         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
29890
29891 2012-02-20  David S. Miller  <davem@davemloft.net>
29892
29893         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
29894         using a normal save/restore sequence, rather than allocating a
29895         dummy stack frame just to store a frame pointer and restore.
29896         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29897
29898 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
29899
29900         * manual/install.texi: Fix stray word in line-wrapped comment.
29901
29902 2012-02-20  David S. Miller  <davem@davemloft.net>
29903
29904         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
29905         both binutils and gcc support GOTDATA.
29906
29907         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
29908         "rd %pc" in the PIC register setup sequences.
29909
29910         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
29911         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
29912         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
29913         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
29914         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
29915         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
29916         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
29917         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29918         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
29919         (SYSCALL_ERROR_HANDLER): Likewise.
29920         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
29921         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
29922         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
29923         (SYSCALL_ERROR_HANDLER): Likewise.
29924
29925         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
29926         (HAVE_GCC_GOTDATA): New.
29927         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
29928         relocation support in both binutils and gcc.
29929         * sysdeps/sparc/elf/configure: Regenerate.
29930
29931         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
29932         * sysdeps/sparc/sparc32/elf/configure: Delete.
29933         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
29934         * sysdeps/sparc/sparc64/elf/configure: Delete.
29935         * sysdeps/sparc/elf/configure.in: New file.
29936         * sysdeps/sparc/elf/configure: Generate.
29937
29938         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
29939         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
29940         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
29941         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
29942         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
29943
29944 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
29945
29946         * manual/install.texi: Do not mention specific glibc version
29947         numbers.
29948         * manual/libc.texinfo (VERSION, UPDATED): Update.
29949         (@copying): Use @copyright{} and range of years.
29950
29951 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
29952
29953         [BZ #13695]
29954         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
29955         [crti.S not in sysdirs] (generated): Do not append.
29956         [crti.S not in sysdirs] (omit-deps): Likewise.
29957         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
29958         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
29959         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
29960         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
29961         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
29962         Likewise.
29963         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
29964         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
29965         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
29966         * csu/defs.awk: Remove file.
29967         * sysdeps/generic/initfini.c: Likewise.
29968         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
29969         variable.
29970         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
29971         Likewise.
29972
29973 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
29974
29975         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
29976         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
29977         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
29978         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
29979         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
29980         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
29981         <bits/epoll.h>.
29982         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
29983         (__EPOLL_PACKED): Define to empty if not defined by
29984         <bits/epoll.h>.
29985         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
29986         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29987         bits/epoll.h.
29988
29989 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
29990
29991         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
29992         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
29993         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
29994         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
29995         <bits/timerfd.h>.
29996         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
29997         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29998         bits/timerfd.h.
29999
30000 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30001
30002         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
30003         in C locale.
30004         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30005         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
30006         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
30007         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30008
30009 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
30010
30011         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30012         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30013
30014 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
30015
30016         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
30017         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
30018         defined.
30019         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
30020         Likewise.
30021         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
30022         entry for 2.16.
30023
30024 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
30025
30026         * math/w_acos.c: Use non-signaling floating-point comparisons.
30027         * math/w_acosf.c: Likewise.
30028         * math/w_acosh.c: Likewise.
30029         * math/w_acoshf.c: Likewise.
30030         * math/w_acoshl.c: Likewise.
30031         * math/w_acosl.c: Likewise.
30032         * math/w_asin.c: Likewise.
30033         * math/w_asinf.c: Likewise.
30034         * math/w_asinl.c: Likewise.
30035         * math/w_atanh.c: Likewise.
30036         * math/w_atanhf.c: Likewise.
30037         * math/w_atanhl.c: Likewise.
30038         * math/w_exp2.c: Likewise.
30039         * math/w_exp2f.c: Likewise.
30040         * math/w_exp2l.c: Likewise.
30041         * math/w_j0.c: Likewise.
30042         * math/w_j0f.c: Likewise.
30043         * math/w_j0l.c: Likewise.
30044         * math/w_j1.c: Likewise.
30045         * math/w_j1f.c: Likewise.
30046         * math/w_j1l.c: Likewise.
30047         * math/w_jn.c: Likewise.
30048         * math/w_jnf.c: Likewise.
30049         * math/w_log.c: Likewise.
30050         * math/w_log10.c: Likewise.
30051         * math/w_log10f.c: Likewise.
30052         * math/w_log10l.c: Likewise.
30053         * math/w_log2.c: Likewise.
30054         * math/w_log2f.c: Likewise.
30055         * math/w_log2l.c: Likewise.
30056         * math/w_logf.c: Likewise.
30057         * math/w_logl.c: Likewise.
30058         * math/w_sqrt.c: Likewise.
30059         * math/w_sqrtf.c: Likewise.
30060         * math/w_sqrtl.c: Likewise.
30061         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
30062         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
30063         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
30064         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30065         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30066
30067 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30068
30069         [BZ #9739]
30070         * manual/string.texi (strnlen): Use correct parameter name in
30071         equivalent expression.
30072
30073 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30074
30075         [BZ #11174]
30076         * manual/users.texi (seteuid): Consistently use neweuid for
30077         argument name.
30078
30079 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30080
30081         [BZ #13704]
30082         * manual/nss.texi (Services in the NSS configuration): Correct
30083         list of services in example configuration file.
30084
30085 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
30086
30087         [BZ #11322]
30088         * manual/arith.texi: Remove statements about negative zero
30089         behaving identically to zero.
30090
30091 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30092
30093         [BZ #5993]
30094         * manual/install.texi: Do not document upgrading from libc5.
30095
30096 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30097
30098         [BZ #4596]
30099         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
30100
30101 2012-02-18  David S. Miller  <davem@davemloft.net>
30102
30103         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
30104         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
30105         %o7 across the call.
30106         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
30107         instead.
30108         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
30109         SETUP_PIC_REG_LEAF.
30110         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30111         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
30112         * sysdeps/sparc/crtn.S: Likewise.
30113
30114 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
30115
30116         * aout/Makefile: Remove.
30117
30118 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
30119
30120         [BZ #13058]
30121         * manual/examples/argp-ex1.c (main): Format definition in GNU
30122         style.
30123         * manual/examples/argp-ex2.c (main): Likewise.
30124         * manual/examples/argp-ex3.c (main): Likewise.
30125         * manual/examples/argp-ex4.c (main): Likewise.
30126         * manual/examples/longopt.c (main): Use new-style prototype
30127         definition.
30128         * manual/examples/strncat.c (main): Specify return type and use
30129         (void) for arguments.
30130         * manual/examples/subopt.c (main): Use char **argv argument.
30131
30132 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30133
30134         [BZ #5077]
30135         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
30136         rounding modes.
30137
30138 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
30139
30140         [BZ #6907]
30141         * manual/string.texi (strchr): Change when strchrnul is
30142         recommended.
30143
30144 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
30145
30146         [BZ #174]
30147         * manual/locale.texi (setlocale): Document LOCPATH.
30148
30149 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30150
30151         [BZ #10210]
30152         * manual/process.texi (execle): Move @dots{} before last argument.
30153
30154 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
30155
30156         [BZ #12047]
30157         * manual/charset.texi (Generic Charset Conversion): Fix typo
30158         (LC_TYPE -> LC_CTYPE).
30159
30160 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
30161
30162         [BZ #5805]
30163         * manual/arith.texi (scalbn): Use @var{} on parameter names.
30164         (scalbnf): Likewise.
30165         (scalbnl): Likewise.
30166         (scalbln): Likewise.
30167         (scalblnf): Likewise.
30168         (scalblnl): Likewise.
30169         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
30170         (vwarnx): Likewise.
30171         (verr): Likewise.
30172         (verrx): Likewise.
30173         * manual/filesys.texi (telldir): Use braces around return type.
30174         * manual/llio.texi (mmap): Add space after comma.
30175         (mmap64): Likewise.
30176         * manual/math.texi (jn): Use @var{} on parameter names.
30177         (jnf): Likewise.
30178         (jnl): Likewise.
30179         (yn): Likewise.
30180         (ynf): Likewise.
30181         (ynl): Likewise.
30182         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
30183         line.
30184         * manual/resource.texi (ulimit): Use @dots{} instead of literal
30185         "...".
30186         (sched_get_priority_min): Remove semicolon on @deftypefun line.
30187         (sched_get_priority_max): Likewise.
30188         * manual/signal.texi (sigvec): Add space after comma.
30189         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
30190         names.
30191         (if_indextoname): Likewise.
30192         (if_freenameindex): Likewise.
30193         (sendto): Use ',' instead of '.' in prototype.
30194         * manual/startup.texi (syscall): Use @dots{} instead of literal
30195         "...".
30196         * manual/stdio.texi (__fpending): Separate initial words of
30197         paragraph from @deftypefun line.
30198         * manual/syslog.texi (syslog): Use @dots{} instead of literal
30199         "...".
30200         (vsyslog): Use @var{} on parameter names.
30201         * manual/terminal.texi (stty): Use @var{} on parameter names.
30202         * manual/users.texi (getutmp): Use @var{} on parameter names.
30203         (getutmpx): Likewise.
30204
30205 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30206
30207         [BZ #6884]
30208         * manual/stdio.texi (fopen): Fix typos in description of
30209         ",ccs=STRING".
30210
30211 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
30212
30213         [BZ #4026]
30214         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
30215         get clock_id definition.
30216
30217 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
30218
30219         [BZ #4822]
30220         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
30221         (madvise): Cast every argument to void on its own.
30222
30223 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30224
30225         [BZ #9902]
30226         * manual/startup.texi (Exit Status): Fix typo.
30227
30228 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30229
30230         [BZ #10140]
30231         * manual/examples/argp-ex1.c: Include <stdlib.h>.
30232         * manual/examples/argp-ex2.c: Likewise.
30233         * manual/examples/argp-ex3.c: Likewise.
30234
30235 2012-02-16  Richard Henderson  <rth@redhat.com>
30236
30237         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
30238         * sysdeps/s390/s390-32/initfini.c: Remove.
30239         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
30240         * sysdeps/s390/s390-64/initfini.c: Remove.
30241
30242 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30243
30244         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
30245         compiler output for sysdeps/generic/initfini.c.
30246         * sysdeps/sh/elf/initfini.c: Remove file.
30247
30248 2012-02-16  David S. Miller  <davem@davemloft.net>
30249
30250         [BZ #11494]
30251         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
30252
30253         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
30254         * sysdeps/sparc/crti.S: New file.
30255         * sysdeps/sparc/crtn.S: New file.
30256         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
30257         * sysdeps/sparc/sparc64/Makefile: Likewise.
30258
30259 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
30260
30261         [BZ #3335]
30262         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
30263
30264 2012-02-15  Roland McGrath  <roland@hack.frob.com>
30265
30266         [BZ #4822]
30267         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
30268
30269         * mach/devstream.c (cookie_io_functions_t): Macro removed.
30270         (write, read, close): Likewise.
30271         Patch by Aurelien Jarno <aurelien@aurel32.net>.
30272
30273 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
30274
30275         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
30276         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
30277         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
30278         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
30279         <bits/signalfd.h>.
30280         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
30281         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30282         bits/signalfd.h.
30283
30284 2012-02-14  Marek Polacek  <polacek@redhat.com>
30285
30286         * sysdeps/x86_64/crti.S: New file.
30287         * sysdeps/x86_64/crtn.S: New file.
30288         * sysdeps/x86_64/elf/initfini.c: Remove file.
30289
30290 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30291
30292         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
30293         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
30294         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
30295         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
30296         <bits/inotify.h>.
30297         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
30298         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30299         bits/inotify.h.
30300
30301 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30302
30303         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
30304         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
30305         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
30306         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
30307         <bits/eventfd.h>.
30308         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
30309         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30310         bits/eventfd.h.
30311
30312 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
30313
30314         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
30315         __feraiseexcept instead of feraiseexcept.
30316
30317         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
30318         nanosleep invocations.
30319         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
30320         strings, and add error checking for a nanosleep invocations.
30321
30322 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
30323
30324         Replace FSF snail mail address with URLs, as per GNU coding standards.
30325         Most of the snail mail addresses were wrong anyway, and omitting
30326         them makes the source code easier to maintain.  Almost all of the
30327         changes are to license notices and to locale LC_IDENTIFICATION
30328         addresses, except for this one:
30329         * manual/libc.texinfo: In "Published by", give the FSF's URL,
30330         not its snail mail address.
30331
30332 2012-02-09  Richard Henderson  <rth@twiddle.net>
30333
30334         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
30335         of kernel-features.h.
30336
30337         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
30338
30339 2012-02-08  Marek Polacek  <polacek@redhat.com>
30340
30341         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
30342         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
30343         * sysdeps/gnu/_G_config.h: Likewise.
30344         * sysdeps/generic/_G_config.h: Likewise.
30345
30346 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
30347
30348         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
30349         tests.
30350         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30351
30352         * sysdeps/powerpc/powerpc32/crti.S: New file.
30353         * sysdeps/powerpc/powerpc32/crtn.S: New file.
30354         * sysdeps/powerpc/powerpc64/crti.S: New file.
30355         * sysdeps/powerpc/powerpc64/crtn.S: New file.
30356
30357         * Makeconfig (have-initfini): Don't set.
30358         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
30359         * configure.in (nopic_initfini): Don't substitute.
30360         * config.h.in (HAVE_INITFINI): Don't #undef.
30361         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
30362         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
30363
30364 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
30365
30366         Support crti.S and crtn.S provided directly by architectures.
30367         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
30368         [crti.S in sysdirs] (omit-deps): Likewise.
30369         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
30370         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
30371         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
30372         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
30373         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
30374         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
30375         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
30376         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
30377         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
30378         compiler output for sysdeps/generic/initfini.c.
30379         * sysdeps/i386/elf/Makefile: Remove file.
30380         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
30381
30382 2012-02-07  Marek Polacek  <polacek@redhat.com>
30383
30384         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
30385         * sysdeps/gnu/_G_config.h: Likewise.
30386         * sysdeps/mach/hurd/_G_config.h: Likewise.
30387
30388 2012-02-07  Marek Polacek  <polacek@redhat.com>
30389
30390         * math/Makefile (tests): Add tst-CMPLX2.
30391         * math/tst-CMPLX2.c: New file.
30392
30393 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
30394
30395         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30396
30397         * math/libm-test.inc (jn_test): Add missing L suffix.
30398
30399 2012-02-06  Marek Polacek  <polacek@redhat.com>
30400
30401         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
30402         * sysdeps/i386/fpu/e_powf.S: Likewise.
30403         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
30404         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
30405         * sysdeps/i386/fpu/e_acosh.S: Likewise.
30406         * sysdeps/i386/fpu/e_pow.S: Likewise.
30407         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
30408         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
30409         * sysdeps/i386/fpu/s_expm1.S: Likewise.
30410         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
30411         * sysdeps/i386/fpu/e_log2.S: Likewise.
30412         * sysdeps/i386/fpu/e_log2l.S: Likewise.
30413         * sysdeps/i386/fpu/e_scalb.S: Likewise.
30414         * sysdeps/i386/fpu/e_powl.S: Likewise.
30415         * sysdeps/i386/fpu/s_log1p.S: Likewise.
30416         * sysdeps/i386/fpu/e_log10f.S: Likewise.
30417         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
30418         * sysdeps/i386/fpu/e_logl.S: Likewise.
30419         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
30420         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
30421         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
30422         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
30423         * sysdeps/i386/fpu/e_log2f.S: Likewise.
30424         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
30425         * sysdeps/i386/fpu/e_log.S: Likewise.
30426         * sysdeps/i386/fpu/s_cexp.S: Likewise.
30427         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
30428         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
30429         * sysdeps/i386/fpu/e_logf.S: Likewise.
30430         * sysdeps/i386/fpu/e_log10l.S: Likewise.
30431         * sysdeps/i386/fpu/e_atanh.S: Likewise.
30432         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
30433         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
30434         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
30435         * sysdeps/i386/fpu/e_log10.S: Likewise.
30436         * sysdeps/i386/fpu/s_frexp.S: Likewise.
30437         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
30438         * sysdeps/i386/fpu/s_asinh.S: Likewise.
30439         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
30440         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
30441         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
30442         * sysdeps/i386/asm-syntax.h: Likewise.
30443         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
30444         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
30445         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
30446         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
30447         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
30448         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
30449         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
30450         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
30451         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
30452         * sysdeps/powerpc/sysdep.h: Likewise.
30453         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
30454         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30455
30456 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
30457
30458         [BZ #411]
30459         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
30460
30461 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
30462
30463         * sysdeps/i386/sysdep.h: Include <features.h>.
30464         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
30465         version.
30466
30467 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
30468
30469         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
30470         Define.
30471         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
30472         LOAD_PIC_REG_STR.
30473
30474 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30475
30476         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
30477         (SETUP_PIC_REG): Use GET_PC_THUNK.
30478         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
30479         macro.
30480
30481 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30482
30483         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
30484         for non-PIC compilation.
30485         (SETUP_PIC_REG): Add .p2align directive.
30486         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
30487         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
30488         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
30489         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
30490         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
30491         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
30492         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
30493         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30494         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
30495         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
30496         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
30497         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
30498         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
30499         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
30500         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
30501         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
30502         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
30503         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
30504         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
30505         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
30506         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
30507         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
30508         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
30509         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
30510         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
30511         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
30512         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
30513         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
30514         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
30515         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
30516         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
30517         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
30518         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
30519         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
30520         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
30521         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
30522         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
30523         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
30524         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
30525         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
30526         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
30527
30528 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30529
30530         * math/tst-CMPLX.c: Include <stdio.h>.
30531
30532 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
30533
30534         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
30535         float.
30536         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
30537         * sysdeps/sparc/bits/mathdef.h: Likewise.
30538
30539 2012-01-31  Marek Polacek  <polacek@redhat.com>
30540
30541         * libio/libio.h: Don't define _PARAMS.
30542         * locale/programs/config.h: Don't define PARAMS.
30543         * stdlib/strtol_l.c: Likewise.
30544         (__strtol_l): Remove PARAMS from the prototype.
30545
30546 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
30547
30548         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
30549         names.  Just use the correct names.  Remove unnecessary wrapper
30550         functions.
30551         * malloc/arena.c: Likewise.
30552         * malloc/hooks.c: Likewise.
30553
30554         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
30555         ARENA_TEST says not to.  Simplify test for creation of a new arena.
30556         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
30557
30558 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
30559
30560         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
30561         into tail calls.
30562         (update_get_addr): New function.
30563         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
30564         GET_ADDR_MODULE parameter.
30565
30566 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
30567
30568         * crypt/cert.c: Remove __STDC__ conditionals.
30569         * crypt/crypt-entry.c: Likewise.
30570         * crypt/crypt_util.c: Likewise.
30571         * libio/filedoalloc.c: Likewise.
30572         * libio/fileops.c: Likewise.
30573         * libio/genops.c: Likewise.
30574         * libio/iofclose.c: Likewise.
30575         * libio/iofdopen.c: Likewise.
30576         * libio/iofopen.c: Likewise.
30577         * libio/iofopen64.c: Likewise.
30578         * libio/iogetdelim.c: Likewise.
30579         * libio/iopopen.c: Likewise.
30580         * libio/obprintf.c: Likewise.
30581         * libio/oldfileops.c: Likewise.
30582         * libio/oldiofclose.c: Likewise.
30583         * libio/oldiofdopen.c: Likewise.
30584         * libio/oldiofopen.c: Likewise.
30585         * libio/oldiopopen.c: Likewise.
30586         * libio/wfiledoalloc.c: Likewise.
30587         * libio/wgenops.c: Likewise.
30588         * locale/programs/xmalloc.c: Likewise.
30589         * misc/syslog.c: Likewise.
30590         * stdio-common/xbug.c: Likewise.
30591         * string/memchr.c: Likewise.
30592         * string/memcmp.c: Likewise.
30593         * string/memrchr.c: Likewise.
30594         * string/rawmemchr.c: Likewise.
30595         * sysdeps/posix/getcwd.c: Likewise.
30596         * time/strftime_l.c: Likewise.
30597
30598 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
30599
30600         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
30601         * config.make.in (config-cflags-sse2avx): Define.
30602         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
30603         Fix typo.
30604
30605 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
30606
30607         * scripts/config.guess: Update from upstream config git repository.
30608         * scripts/config.sub: Likewise.
30609
30610 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
30611
30612         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
30613         (EM_NUM): Update.
30614         (R_TILEPRO_*, R_TILEGX_*): New macros.
30615
30616         * scripts/firstversions.awk: Fix bug in version range handling.
30617
30618         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
30619
30620         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
30621
30622         * include/sys/epoll.h: New file.
30623         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
30624         libc_hidden_def.
30625
30626 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
30627
30628         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
30629         Avoid unnecessary __WORDSIZE == 64 test.
30630         (fmaxf): Use VEX format if possible.
30631         (fmax): Likewise.
30632         (fminf): Likewise.
30633         (fmin): Likewise.
30634
30635         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
30636         * math/math_private.h: Remove libc_fegetround* and
30637         libc_fesetround*.
30638         * sysdeps/i386/configure.in: Check for -msse2avx.
30639         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
30640         also if SSE2AVX is defined.
30641         Remove libc_fegetround* and libc_fesetround*.
30642         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
30643         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
30644         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
30645         of HAS_YMM_USABLE.
30646         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
30647         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
30648         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
30649         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
30650         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
30651
30652         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
30653
30654 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30655
30656         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
30657         size is not set.
30658         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
30659
30660 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
30661
30662         [BZ #13618]
30663         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
30664         relocation.
30665         * Makeconfig (libm): Define.
30666         * elf/Makefile: Add rules to build and run tst-relsort1.
30667         * elf/tst-relsort1.c: New file.
30668         * elf/tst-relsort1mod1.c: New file.
30669         * elf/tst-relsort1mod2.c: New file.
30670
30671 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
30672
30673         * math/s_ldexp.c: Remove __STDC__ conditionals.
30674         * math/s_ldexpf.c: Likewise.
30675         * math/s_ldexpl.c: Likewise.
30676         * math/s_nextafter.c: Likewise.
30677         * math/s_nexttowardf.c: Likewise.
30678         * math/s_significand.c: Likewise.
30679         * math/s_significandf.c: Likewise.
30680         * math/s_significandl.c: Likewise.
30681         * math/w_jnl.c: Likewise.
30682         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
30683         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
30684         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
30685         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
30686         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
30687         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
30688         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
30689         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
30690         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
30691         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
30692         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
30693         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
30694         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
30695         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
30696         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
30697         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
30698         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
30699         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
30700         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
30701         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
30702         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
30703         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
30704         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
30705         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
30706         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
30707         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
30708         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
30709         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
30710         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
30711         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
30712         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
30713         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
30714         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
30715         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
30716         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
30717         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
30718         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
30719         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
30720         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
30721         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
30722         * sysdeps/ieee754/k_standard.c: Likewise.
30723         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
30724         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
30725         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
30726         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
30727         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
30728         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
30729         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
30730         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
30731         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
30732         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
30733         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
30734         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
30735         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
30736         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
30737         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
30738         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
30739         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
30740         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
30741         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
30742         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
30743         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30744         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
30745         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
30746         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
30747         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
30748         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
30749         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
30750         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
30751         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
30752         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
30753         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
30754         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
30755         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
30756         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
30757         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
30758         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
30759         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
30760         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
30761         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
30762         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
30763         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
30764         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
30765         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
30766         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
30767         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
30768         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
30769         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
30770         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
30771         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
30772         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
30773         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
30774         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
30775         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
30776         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
30777         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
30778         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
30779         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
30780         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
30781         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
30782         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
30783         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
30784         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
30785         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
30786         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
30787         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
30788         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
30789         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
30790         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
30791         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
30792         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
30793         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
30794         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
30795         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
30796         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
30797         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
30798         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
30799         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
30800         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
30801         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
30802         * sysdeps/ieee754/s_matherr.c: Likewise.
30803         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
30804         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
30805         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
30806         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
30807
30808 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
30809
30810         * crypt/md5.h: Remove __STDC__ conditionals.
30811         * libio/libioP.h: Likewise.
30812         * locale/programs/config.h: Likewise.
30813         * sysdeps/generic/sysdep.h: Likewise.
30814         * sysdeps/i386/asm-syntax.h: Likewise.
30815         * sysdeps/s390/asm-syntax.h: Likewise.
30816         * sysdeps/unix/sysdep.h: Likewise.
30817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
30818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30819
30820 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
30821
30822         * libio/libio.h: Remove __STDC__ conditionals.
30823         * malloc/obstack.h: Likewise.
30824         * math/complex.h: Likewise.
30825         * math/math.h: Likewise.
30826         * sysdeps/generic/_G_config.h: Likewise.
30827         * sysdeps/gnu/_G_config.h: Likewise.
30828         * sysdeps/mach/hurd/_G_config.h: Likewise.
30829         * sysdeps/powerpc/bits/mathdef.h: Likewise.
30830         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
30831         * sysdeps/sparc/bits/mathdef.h: Likewise.
30832
30833 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
30834
30835         [BZ #13583]
30836         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
30837         Clean up HAS_* macros.
30838         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
30839         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
30840         possible.
30841         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
30842         HAS_AVX.
30843         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
30844         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
30845         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
30846         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
30847         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
30848
30849 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
30850
30851         * elf/tst-unique3.cc (gets): Remove declaration.
30852         * elf/tst-unique3lib.cc (gets): Likewise.
30853         * elf/tst-unique3lib2.cc (gets): Likewise.
30854         * elf/tst-unique4.cc (gets): Likewise.
30855
30856 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
30857
30858         * include/stdio.h: Add C++ protection.  Add gets declarations and
30859         definitions.
30860         * debug/tst-chk1.c: Don't declare gets here.
30861         * stdio-common/tst-gets.c: Likewise.
30862
30863 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
30864
30865         * posix/glob: Remove directory.
30866
30867 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
30868
30869         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
30870
30871 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
30872
30873         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
30874         of the non-standard EPFNOSUPPORT.
30875
30876 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30877
30878         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
30879         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
30880         ANYWHERE set to 1 only on KERN_NO_SPACE error.
30881
30882 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
30883
30884         * wcsmbs/uchar.h: Test __STDC_VERSION__.
30885
30886 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
30887
30888         * nscd/aicache.c (addhstaiX): Do not cache negative results of
30889         transient errors.
30890         * nscd/grpcache.c (cache_addgr): Likewise.
30891         * nscd/hstcache.c (cache_addhst): Likewise.
30892         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30893         * nscd/pwdcache.c (cache_addpw): Likewise.
30894         * nscd/servicescache.c (cache_addserv): Likewise.
30895
30896 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
30897
30898         * malloc/malloc.c: Various cleanups.
30899         * malloc/hooks.c: Likewise.
30900
30901         * stdlib/Makefile (tests): Add bug-fmtmsg1.
30902         * stdlib/bug-fmtmsg1.c: New file.
30903
30904         * stdlib/fmtmsg.c (init): Add missing unlock.
30905         Patch by Peng Haitao <penght@cn.fujitsu.com>.
30906
30907 2012-01-12  Marek Polacek  <polacek@redhat.com>
30908
30909         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
30910         and _GNU_SOURCE.
30911
30912 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
30913
30914         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
30915         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
30916         macro to ensure uniqueness of label name.
30917         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
30918         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
30919
30920 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
30921
30922         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
30923
30924         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
30925         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
30926         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30927         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
30928
30929 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
30930
30931         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
30932
30933         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
30934         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
30935         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
30936
30937         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
30938
30939         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
30940         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
30941         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
30942         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
30943
30944         * math/bits/math-finite.h: Add ldexp support.
30945
30946 2012-01-10  Marek Polacek  <polacek@redhat.com>
30947
30948         * locale/programs/localedef.h (show_archive_content): Add noreturn
30949         attribute.
30950
30951 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
30952
30953         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
30954
30955 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
30956
30957         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
30958
30959         * io/Makefile (headers): Add bits/poll2.h.
30960
30961 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
30962
30963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
30964         typo #include statement.
30965
30966 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
30967
30968         * include/sys/cdefs.h: Define __attribute_alloc_size.
30969         * catgets/gencat.c: Add alloc_size attribute and apply consistently
30970         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
30971         * elf/pldd.c: Likewise.
30972         * iconv/iconv_charmap.c: Likewise.
30973         * iconv/iconvconfig.c: Likewise.
30974         * iconv/strtab.c: Likewise.
30975         * locale/programs/locale.c: Likewise.
30976         * locale/programs/localedef.h: Likewise.
30977         * locale/programs/simple-hash.c: Likewise.
30978         * nscd/nscd.h: Likewise.
30979         * nss/makedb.c: Likewise.
30980         * sysdeps/generic/ldconfig.h: Likewise.
30981         * locale/programs/localedef.c: Remove xmalloc prototype.
30982         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
30983
30984 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
30985
30986         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
30987         appropriate.
30988
30989 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
30990
30991         * math/Makefile (tests): Add tst-CMPLX.
30992         * math/tst-CMPLX.c: New file.
30993
30994         * math/complex.h (CMPLXL): Fix typo.
30995
30996         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
30997         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
30998         GLIBC_2.16.
30999         * debug/tst-chk1.c: Add poll and ppoll tests.
31000         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
31001         * include/sys/poll.h: Add hidden proto for ppoll.
31002         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
31003         * sysdeps/mach/hurd/ppoll.c: Likewise.
31004         * io/ppoll.c: Likewise.
31005         * debug/poll_chk.c: New file.
31006         * debug/ppoll_chk.c: New file.
31007         * include/bits/poll2.h: New file.
31008         * io/bits/poll2.h: New file.
31009
31010         [BZ #1350]
31011         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
31012
31013         * configure.in: static is always set to yes.  Remove.
31014         * config.make.in: Don't set build-static.
31015         * Makeconfig: Remove use of build-static.
31016         * dlfcn/Makefile: Likewise.
31017         * elf/Makefile: Likewise.
31018         * math/Makefile: Likewise.
31019         * misc/Makefile: Likewise.
31020         * nptl/Makefile: Likewise.
31021         * sysdeps/mach/hurd/Makefile: Likewise.
31022
31023         * configure.in: PWD_P is not used anymore.
31024         * config.make.in: Remove PWD_P entry.
31025
31026         * configure.in: Remove last remnants of RANLIB.
31027         No need to check for signed size_t anymore.
31028         Don't set libc_commonpagesize and libc_relro_required here for Alpha
31029         and IA-64.
31030         Remove __builtin_expect test because we require at least gcc 3.4.
31031         * aclocal.m4: Likewise.
31032
31033         * wcsmbs/mbrtoc16.c: Implement using towc function.
31034         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
31035         * wcsmbs/wcsmbsload.c: Likewise.
31036         * iconv/gconv_simple.c: Likewise.
31037         * iconv/gconv_int.h: Likewise.
31038         * iconv/gconv_builtin.h: Likewise.
31039         * iconv/iconv_prog.c: Remove CHAR16 handling.
31040
31041         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
31042
31043         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
31044
31045         * configure.in: Remove --with-elf and --enable-bounded options.
31046         Dont set base_machine for ia64.  More non-ELF conditions removed.
31047         Remove testing and setting of leading underscore information.
31048         * config.make.in (build-bounded): Set to no.
31049         * config.h.in: Remove NO_UNDERSCORES entry.
31050         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
31051         them.
31052         * csu/start.c: Remove !NO_UNDERSCORE code.
31053         * locale/localeinfo.h: Likewise.
31054         * sysdeps/generic/machine-gmon.h: Likewise.
31055         * sysdeps/generic/sysdep.h: Likewise.
31056         * sysdeps/i386/sysdep.h: Likewise.
31057         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31058         * sysdeps/mach/sysdep.h: Likewise.
31059         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31060         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31061         * sysdeps/sh/sysdep.h: Likewise.
31062         * sysdeps/sparc/sparc32/alloca.S: Likewise.
31063         * sysdeps/unix/i386/sysdep.S: Likewise.
31064         * sysdeps/unix/sparc/start.c: Likewise.
31065         * sysdeps/unix/sparc/sysdep.S: Likewise.
31066         * sysdeps/unix/sparc/sysdep.h: Likewise.
31067         * sysdeps/unix/start.c: Likewise.
31068         * sysdeps/unix/x86_64/sysdep.S: Likewise.
31069         * sysdeps/x86_64/sysdep.h: Likewise.
31070
31071 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
31072
31073         [BZ #13553]
31074         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
31075         for non-gcc.
31076         * argp/argp-fmtstream.h: Use const instead __const.
31077         * argp/argp.h: Likewise.
31078         * assert/assert.h: Likewise.
31079         * bits/fenv.h: Likewise.
31080         * bits/sched.h: Likewise.
31081         * bits/sigset.h: Likewise.
31082         * bits/sigthread.h: Likewise.
31083         * catgets/nl_types.h: Likewise.
31084         * conform/data/pthread.h-data: Likewise.
31085         * crypt/crypt-private.h: Likewise.
31086         * crypt/crypt.h: Likewise.
31087         * crypt/crypt_util.c: Likewise.
31088         * ctype/ctype.h: Likewise.
31089         * debug/execinfo.h: Likewise.
31090         * debug/mbsnrtowcs_chk.c: Likewise.
31091         * debug/mbsrtowcs_chk.c: Likewise.
31092         * debug/wcsnrtombs_chk.c: Likewise.
31093         * debug/wcsrtombs_chk.c: Likewise.
31094         * debug/wcstombs_chk.c: Likewise.
31095         * dirent/dirent.h: Likewise.
31096         * dlfcn/dlfcn.h: Likewise.
31097         * elf/neededtest4.c: Likewise.
31098         * grp/grp.h: Likewise.
31099         * gshadow/gshadow.h: Likewise.
31100         * iconv/gconv.h: Likewise.
31101         * iconv/gconv_int.h: Likewise.
31102         * iconv/gconv_simple.c: Likewise.
31103         * iconv/iconv.h: Likewise.
31104         * iconv/loop.c: Likewise.
31105         * iconv/skeleton.c: Likewise.
31106         * include/aio.h: Likewise.
31107         * include/aliases.h: Likewise.
31108         * include/argz.h: Likewise.
31109         * include/arpa/inet.h: Likewise.
31110         * include/assert.h: Likewise.
31111         * include/dirent.h: Likewise.
31112         * include/dlfcn.h: Likewise.
31113         * include/execinfo.h: Likewise.
31114         * include/fcntl.h: Likewise.
31115         * include/fenv.h: Likewise.
31116         * include/glob.h: Likewise.
31117         * include/grp.h: Likewise.
31118         * include/libintl.h: Likewise.
31119         * include/mntent.h: Likewise.
31120         * include/netdb.h: Likewise.
31121         * include/pwd.h: Likewise.
31122         * include/rpc/netdb.h: Likewise.
31123         * include/sched.h: Likewise.
31124         * include/search.h: Likewise.
31125         * include/shadow.h: Likewise.
31126         * include/signal.h: Likewise.
31127         * include/stdio.h: Likewise.
31128         * include/stdlib.h: Likewise.
31129         * include/string.h: Likewise.
31130         * include/sys/socket.h: Likewise.
31131         * include/sys/stat.h: Likewise.
31132         * include/sys/statfs.h: Likewise.
31133         * include/sys/statvfs.h: Likewise.
31134         * include/sys/syslog.h: Likewise.
31135         * include/sys/time.h: Likewise.
31136         * include/sys/uio.h: Likewise.
31137         * include/time.h: Likewise.
31138         * include/unistd.h: Likewise.
31139         * include/utmp.h: Likewise.
31140         * include/wchar.h: Likewise.
31141         * include/wctype.h: Likewise.
31142         * inet/aliases.h: Likewise.
31143         * inet/arpa/inet.h: Likewise.
31144         * inet/netinet/ether.h: Likewise.
31145         * inet/netinet/in.h: Likewise.
31146         * intl/libintl.h: Likewise.
31147         * io/bits/fcntl2.h: Likewise.
31148         * io/fcntl.h: Likewise.
31149         * io/ftw.h: Likewise.
31150         * io/sys/poll.h: Likewise.
31151         * io/sys/stat.h: Likewise.
31152         * io/sys/statfs.h: Likewise.
31153         * io/sys/statvfs.h: Likewise.
31154         * io/utime.h: Likewise.
31155         * libio/bits/stdio.h: Likewise.
31156         * libio/bits/stdio2.h: Likewise.
31157         * libio/libio.h: Likewise.
31158         * libio/libioP.h: Likewise.
31159         * libio/stdio.h: Likewise.
31160         * locale/lc-ctype.c: Likewise.
31161         * locale/locale.h: Likewise.
31162         * login/utmp.h: Likewise.
31163         * malloc/arena.c: Likewise.
31164         * malloc/malloc.c: Likewise.
31165         * malloc/malloc.h: Likewise.
31166         * malloc/mcheck.c: Likewise.
31167         * malloc/mtrace.c: Likewise.
31168         * math/bits/mathcalls.h: Likewise.
31169         * math/fenv.h: Likewise.
31170         * math/math_private.h: Likewise.
31171         * misc/bits/error.h: Likewise.
31172         * misc/bits/syslog.h: Likewise.
31173         * misc/err.h: Likewise.
31174         * misc/error.h: Likewise.
31175         * misc/fstab.h: Likewise.
31176         * misc/mntent.h: Likewise.
31177         * misc/regexp.h: Likewise.
31178         * misc/search.h: Likewise.
31179         * misc/sgtty.h: Likewise.
31180         * misc/sys/mman.h: Likewise.
31181         * misc/sys/syslog.h: Likewise.
31182         * misc/sys/uio.h: Likewise.
31183         * misc/sys/xattr.h: Likewise.
31184         * misc/ttyent.h: Likewise.
31185         * nis/rpcsvc/ypclnt.h: Likewise.
31186         * nss/nss.h: Likewise.
31187         * posix/bits/unistd.h: Likewise.
31188         * posix/fnmatch.h: Likewise.
31189         * posix/glob.h: Likewise.
31190         * posix/sched.h: Likewise.
31191         * posix/spawn.h: Likewise.
31192         * posix/sys/wait.h: Likewise.
31193         * posix/unistd.h: Likewise.
31194         * posix/wordexp.h: Likewise.
31195         * pwd/pwd.h: Likewise.
31196         * resolv/netdb.h: Likewise.
31197         * resource/sys/resource.h: Likewise.
31198         * rt/aio.h: Likewise.
31199         * rt/bits/mqueue2.h: Likewise.
31200         * rt/mqueue.h: Likewise.
31201         * shadow/shadow.h: Likewise.
31202         * signal/signal.h: Likewise.
31203         * socket/send.c: Likewise.
31204         * socket/sendto.c: Likewise.
31205         * socket/sys/socket.h: Likewise.
31206         * stdio-common/printf.h: Likewise.
31207         * stdlib/bits/stdlib.h: Likewise.
31208         * stdlib/fmtmsg.h: Likewise.
31209         * stdlib/monetary.h: Likewise.
31210         * stdlib/stdlib.h: Likewise.
31211         * stdlib/ucontext.h: Likewise.
31212         * streams/stropts.h: Likewise.
31213         * string/argz.h: Likewise.
31214         * string/bits/string2.h: Likewise.
31215         * string/string.h: Likewise.
31216         * string/strings.h: Likewise.
31217         * sunrpc/rpc/auth.h: Likewise.
31218         * sunrpc/rpc/auth_des.h: Likewise.
31219         * sunrpc/rpc/clnt.h: Likewise.
31220         * sunrpc/rpc/netdb.h: Likewise.
31221         * sunrpc/rpc/pmap_clnt.h: Likewise.
31222         * sunrpc/rpc/xdr.h: Likewise.
31223         * sysdeps/generic/inttypes.h: Likewise.
31224         * sysdeps/generic/net/if.h: Likewise.
31225         * sysdeps/generic/sys/swap.h: Likewise.
31226         * sysdeps/gnu/net/if.h: Likewise.
31227         * sysdeps/gnu/utmpx.h: Likewise.
31228         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
31229         * sysdeps/i386/i486/bits/string.h: Likewise.
31230         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
31231         * sysdeps/s390/bits/string.h: Likewise.
31232         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
31233         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
31234         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
31235         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
31236         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
31237         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
31238         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
31239         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
31240         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
31241         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31242         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
31243         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
31244         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
31245         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
31246         * sysdeps/unix/sysv/linux/readv.c: Likewise.
31247         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
31248         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
31249         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
31250         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
31251         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
31252         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31253         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
31254         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
31255         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
31256         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
31257         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
31258         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
31259         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31260         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
31261         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
31262         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
31263         * sysvipc/sys/ipc.h: Likewise.
31264         * sysvipc/sys/msg.h: Likewise.
31265         * sysvipc/sys/sem.h: Likewise.
31266         * sysvipc/sys/shm.h: Likewise.
31267         * termios/termios.h: Likewise.
31268         * time/sys/time.h: Likewise.
31269         * time/time.h: Likewise.
31270         * wcsmbs/bits/wchar2.h: Likewise.
31271         * wcsmbs/uchar.h: Likewise.
31272         * wcsmbs/wchar.h: Likewise.
31273         * wctype/wctype.h: Likewise.
31274
31275         [BZ #13551]
31276         * Makeconfig: Remove all but ELF support including AIX support.
31277         * Makerules: Likewise.
31278         * config.h.in: Likewise.
31279         * config.make.in: Likewise.
31280         * configure: Likewise.
31281         * configure.in: Likewise.
31282         * csu/Makefile: Likewise.
31283         * csu/version.c: Likewise.
31284         * debug/Makefile: Likewise.
31285         * dlfcn/Makefile: Likewise.
31286         * elf/Makefile: Likewise.
31287         * extra-lib.mk: Likewise.
31288         * iconv/Makefile: Likewise.
31289         * include/libc-symbols.h: Likewise.
31290         * include/shlib-compat.h: Likewise.
31291         * resolv/Makefile: Likewise.
31292         * resolv/res_libc.c: Likewise.
31293         * rt/Makefile: Likewise.
31294         * sysdeps/i386/asm-syntax.h: Likewise.
31295         * sysdeps/i386/sysdep.h: Likewise.
31296         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31297         * sysdeps/mach/sysdep.h: Likewise.
31298         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
31299         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
31300         * sysdeps/s390/asm-syntax.h: Likewise.
31301         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31302         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31303         * sysdeps/sh/sysdep.h: Likewise.
31304         * sysdeps/unix/sparc/sysdep.h: Likewise.
31305         * sysdeps/wordsize-32/divdi3.c: Likewise.
31306         * sysdeps/x86_64/sysdep.h: Likewise.
31307
31308         * argp/Versions: Remove _argp_unlock_xxx.
31309
31310         [BZ #13559]
31311         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
31312         * abilist/libBrokenLocale.abilist: Likewise.
31313         * abilist/libanl.abilist: Likewise.
31314         * abilist/libc.abilist: Likewise.
31315         * abilist/libcrypt.abilist: Likewise.
31316         * abilist/libdl.abilist: Likewise.
31317         * abilist/libm.abilist: Likewise.
31318         * abilist/libnsl.abilist: Likewise.
31319         * abilist/libpthread.abilist: Likewise.
31320         * abilist/libresolv.abilist: Likewise.
31321         * abilist/librt.abilist: Likewise.
31322         * abilist/libthread_db.abilist: Likewise.
31323         * abilist/libutil.abilist: Likewise.
31324         * abilist/libnss_db.abilist: New file.
31325
31326         * scripts/abilist.awk: Add support for indirect functions.
31327
31328         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
31329
31330         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
31331
31332         * shlib-versions: Remove entries for ports architectures.
31333
31334         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
31335         files in ports.
31336         * elf/stackguard-macros.h: Remove support for IA-64.
31337         * elf/tst-auditmod1.c: Likewise.
31338         * sysdeps/generic/ldsodefs.h: Likewise.
31339
31340         * sysdeps/unix/sysv/linux/configure.in: Ports should define
31341         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
31342         configure files.
31343
31344         [BZ #13552]
31345         * configure.in: Remove --enable-omitfp support.
31346         * FAQ.in: Adjust.
31347         * config.make.in: Likewise.
31348         * Makeconfig: Likewise.
31349         * manual/install.texi: Likewise.
31350
31351         In case anyone cares, the IA-64 architecture could move to ports.
31352         * sysdeps/ia64/*: Removed.
31353         * sysdeps/unix/sysv/linux/ia64/*: Removed.
31354         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
31355
31356         [BZ #13555]
31357         * configure.in: Remove entries for unsupported architectures.
31358
31359         [BZ #13533]
31360         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
31361         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
31362         routines.
31363         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
31364         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
31365         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
31366         fall back to using wcrtomb.
31367         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
31368         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
31369         renaming.
31370         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
31371         * wcsmbs/tst-c16c32-1.c: New file.
31372
31373         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
31374         local variable.
31375
31376         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
31377
31378         * elf/tst-unique3.cc: Add explicit declaration of gets.
31379         * elf/tst-unique3lib.cc: Likewise.
31380         * elf/tst-unique3lib2.cc: Likewise.
31381         * elf/tst-unique4.cc: Likewise.
31382
31383         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
31384
31385 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
31386
31387         [BZ #13566]
31388         * assert/assert.h (static_assert): Don't define for C++.
31389         * libio/stdio.h (gets): Do declare for C++ <= C++11.
31390         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
31391
31392 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
31393
31394         * iconv/loop.c (single loop): Fix assertion in storing of
31395         remaining bytes.
31396
31397         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
31398
31399 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
31400
31401         * posix/getconf.c: Update copyright year.
31402         * nss/getent.c: Likewise.
31403         * nss/makedb.c: Likewise.
31404         * iconv/iconvconfig.c: Likewise.
31405         * iconv/iconv_prog.c: Likewise.
31406         * elf/ldconfig.c: Likewise.
31407         * elf/pldd.c: Likewise.
31408         * elf/sotruss.ksh: Likewise.
31409         * catgets/gencat.c: Likewise.
31410         * csu/version.c: Likewise.
31411         * elf/ldd.bash.in: Likewise.
31412         * elf/sprof.c (print_version): Likewise.
31413         * locale/programs/locale.c: Likewise.
31414         * locale/programs/localedef.c: Likewise.
31415         * login/programs/pt_chown.c: Likewise.
31416         * nscd/nscd.c (print_version): Likewise.
31417         * debug/xtrace.sh: Likewise.
31418         * malloc/memusage.sh: Likewise.
31419         * malloc/mtrace.pl: Likewise.
31420         * debug/catchsegv.sh: Likewise.
31421
31422 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
31423
31424         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
31425         pure attribute.
31426
31427 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
31428
31429         [BZ #13533]
31430         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
31431         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
31432         transformations.
31433         * iconv/gconv_int.h: Likewise.
31434         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
31435         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
31436         from libc for GLIBC_2.16.
31437         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
31438         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
31439         * wcsmbs/uchar.h: Really define mbstate_t.
31440         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
31441         * wcsmbs/c16rtomb.c: New file.
31442         * wcsmbs/mbrtoc16.c: New file.
31443         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
31444         for C/POSIX locale.
31445         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
31446         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
31447
31448         * wcsmbs/wchar.h: Add missing __restrict.
31449
31450 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
31451
31452         [BZ #13532]
31453         * time/Makefile (routines): Add timespec_get.
31454         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
31455         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
31456         timespec for ISO C11.
31457         * time/timespec_get.c: New file.
31458         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
31459         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
31460
31461         [BZ #13531]
31462         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
31463         * stdlib/stdlib.h: Declare aligned_alloc.
31464         * Versions.def: Add GLIBC_2.16 for libc.
31465         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
31466
31467         [BZ 13527]
31468         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
31469         ISO C11.
31470
31471         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
31472         code.
31473
31474         [BZ #13528]
31475         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
31476
31477         [BZ #13529]
31478         * assert/assert.h (static_assert): Define.
31479
31480         * version.h: Update for 2.16 development version.
31481
31482         [BZ #13526]
31483         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
31484         _ISOC11_SOURCE.
31485
31486         * version.h (RELEASE): Bump for 2.15 release.
31487         * include/features.h (__GLIBC_MINOR__): Bump to 15.
31488
31489         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
31490         Patch by Marek Polacek <mpolacek@redhat.com>.
31491
31492         * bits/byteswap.h: Protect long long constants with __extension__.
31493         * sysdeps/i386/bits/byteswap.h: Likewise.
31494         * sysdeps/ia64/bits/byteswap.h: Likewise.
31495         * sysdeps/s390/bits/byteswap.h: Likewise.
31496         * sysdeps/x86_64/bits/byteswap.h: Likewise.
31497
31498 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31499
31500         [BZ #13540]
31501         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
31502         destination buffer.
31503         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
31504
31505 2011-12-23  Marek Polacek  <polacek@redhat.com>
31506
31507         * elf/dl-addr.c (determine_info): Add inline keyword.
31508         * elf/tst-auditmod4b.c (check_avx): Likewise.
31509         * elf/tst-auditmod6b.c (check_avx): Likewise.
31510         * elf/tst-auditmod6c.c (check_avx): Likewise.
31511         * elf/tst-auditmod7b.c (check_avx): Likewise.
31512
31513 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
31514
31515         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
31516         !__SSE_MATH__.
31517
31518 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31519
31520         [BZ #13540]
31521         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
31522         processing for last bytes.
31523
31524 2011-08-06  Bruno Haible  <bruno@clisp.org>
31525
31526         [BZ #13061]
31527         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
31528         U+0385, not to U+1FEE.
31529
31530         [BZ #13062]
31531         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
31532         entry for U+00A5 U+0301.
31533
31534 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
31535
31536         [BZ #13166]
31537         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
31538         buffer for the output is too small.
31539
31540         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
31541         optimization.
31542
31543         [BZ #13185]
31544         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
31545         SSE flags if possible.
31546
31547 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31548
31549         [BZ #13540]
31550         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
31551         processing for last bytes.
31552
31553 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
31554
31555         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
31556         (syscall-list-default-options, syscall-list-default-condition)
31557         (syscall-list-includes): Define.
31558         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
31559         list of ABIs and options and #if conditions for each ABI.  Do not
31560         handle common syscalls between ABIs specially.
31561         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
31562         Remove.
31563         (syscall-list-variants, syscall-list-32bit-options)
31564         (syscall-list-32bit-condition, syscall-list-64bit-options)
31565         (syscall-list-64bit-condition): Define.
31566         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
31567         (syscall-list-variants, syscall-list-32bit-options)
31568         (syscall-list-32bit-condition, syscall-list-64bit-options)
31569         (syscall-list-64bit-condition): Define.
31570         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
31571         Remove.
31572         (syscall-list-variants, syscall-list-32bit-options)
31573         (syscall-list-32bit-condition, syscall-list-64bit-options)
31574         (syscall-list-64bit-condition): Define.
31575         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
31576         Remove.
31577         (syscall-list-variants, syscall-list-32bit-options)
31578         (syscall-list-32bit-condition, syscall-list-64bit-options)
31579         (syscall-list-64bit-condition): Define.
31580
31581 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
31582
31583         * locale/iso-639.def: Add brx entry.
31584
31585         [BZ #13328]
31586         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
31587         Proposed by Mariusz_Cukr <marcukr@op.pl>.
31588
31589         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
31590         __feraiseexcept_renamed.
31591
31592 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
31593
31594         [BZ #13538]
31595         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
31596         EPOLLET with unsigned values.
31597         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31598         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31599
31600         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
31601         to large cancellation.
31602         * math/s_cacoshf.c: Likewise.
31603         * math/s_cacoshl.c: Likewise.
31604
31605 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
31606
31607         [BZ #13305]
31608         [BZ #12786]
31609         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
31610         * math/s_cacoshf.c: Likewise.
31611         * math/s_cacoshl.c: Likewise.
31612
31613 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
31614
31615         [BZ #13439]
31616         * iconv/gconv.h: Define __GCONV_SWAP.
31617         * iconvdata/unicode.c: The swap bit must be stored in __flags.
31618         * iconvdata/utf-16.c: Likewise.
31619         * iconvdata/utf-32.c: Likewise.
31620
31621 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
31622
31623         [BZ #13524]
31624         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
31625         numerator after shifting it by one limb.
31626
31627 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
31628
31629         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
31630         under [__USE_EXTERN_INLINES].
31631
31632 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
31633
31634         [BZ #13446]
31635         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
31636
31637 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31638
31639         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
31640         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
31641         optimized code.
31642         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
31643         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
31644         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
31645         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
31646         for strncasecmp/strncasecmp_l compilation.
31647         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
31648         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
31649
31650 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
31651
31652         [BZ #13484]
31653         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
31654         of __asm__.
31655
31656 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
31657
31658         [BZ #13506]
31659         * time/tzfile.c (__tzfile_read): Check values from file header.
31660
31661 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
31662
31663         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
31664         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
31665         * powerpc/powerpc32/dl-start.S: Likewise.
31666         * powerpc/powerpc32/elf/start.S: Likewise.
31667         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
31668         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
31669         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
31670         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
31671         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
31672         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
31673         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
31674         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
31675         * powerpc/powerpc32/fpu/s_round.S: Likewise.
31676         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
31677         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
31678         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
31679         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
31680         * powerpc/powerpc32/memset.S: Likewise.
31681         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
31682         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
31683         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
31684         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
31685         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
31686         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
31687         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
31688         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
31689         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
31690         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
31691         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
31692         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
31693         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
31694
31695 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31696
31697         * math/libm-test.inc: Added more nearbyint tests.
31698         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
31699         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
31700         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
31701         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
31702
31703 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
31704
31705         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
31706         FD_CLOEXEC.
31707
31708 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31709
31710         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
31711         Add wcscpy-ssse3 wcscpy-c.
31712         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
31713         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
31714         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
31715         * sysdeps/x86_64/wcschr.S: New file.
31716         * sysdeps/x86_64/wcsrchr.S: New file.
31717         * string/test-strcmp.c: Remove checking of wcscmp function for
31718         wrong alignments.
31719         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
31720         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
31721         wcsrchr-sse2 wcsrchr-c.
31722         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
31723         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
31724         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
31725         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
31726         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
31727         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
31728         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
31729         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
31730         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
31731         * wcsmbc/wcschr.c (WCSCHR): New macro.
31732
31733 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31734
31735         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
31736         * wcsmbs/test-wcsrchr.c: New file.
31737         * string/test-strrchr.c: Add wcsrchr support.
31738         (WIDE): New macro.
31739         * wcsmbs/test-wcscpy.c: New file.
31740         * string/test-strcpy.c: Add wcscpy support.
31741         (WIDE): New macro.
31742
31743 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
31744
31745         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
31746         the inner loop.
31747
31748 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
31749
31750         [BZ #13472]
31751         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
31752
31753 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
31754
31755         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
31756         Minor optimizations.
31757
31758         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
31759         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
31760         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31761
31762 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
31763
31764         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
31765         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
31766         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
31767         for gcc to avoid warnings.
31768         * inet/Makefile (tests): Add tst-checks.
31769         * inet/tst-checks.c: New file.
31770
31771         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
31772         warning.
31773
31774         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
31775         __wmemcmp_sse2.
31776
31777         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
31778         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
31779
31780         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
31781
31782 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
31783
31784         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
31785         problem.
31786
31787         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
31788
31789 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
31790
31791         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
31792         conditional on GCC version.
31793         (__arch_compare_and_exchange_val_8_acq)
31794         (__arch_compare_and_exchange_val_16_acq)
31795         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
31796         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
31797         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
31798
31799 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
31800
31801         * sysdeps/sh/backtrace.c: New file.
31802
31803 2011-12-02  Andreas Schwab  <schwab@redhat.com>
31804
31805         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
31806         parenthesis.
31807
31808 2011-12-01  Andreas Schwab  <schwab@redhat.com>
31809
31810         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
31811         falling back to utime.
31812
31813 2011-11-30  Andreas Schwab  <schwab@redhat.com>
31814
31815         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
31816         expectations for float.
31817
31818 2011-11-29  Andreas Schwab  <schwab@redhat.com>
31819
31820         * locale/weight.h (findidx): Add parameter len.
31821         * locale/weightwc.h (findidx): Likewise.
31822         * posix/fnmatch_loop.c (FCT): Adjust caller.
31823         * posix/regcomp.c (build_equiv_class): Likewise.
31824         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
31825         * posix/regexec.c (check_node_accept_bytes): Likewise.
31826         * string/strcoll_l.c (STRCOLL): Likewise.
31827         * string/strxfrm_l.c (STRXFRM): Likewise.
31828
31829 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
31830
31831         * Makefile.in: Remove CVSOPT handling.
31832         * configure.in: Remove use of AC_REVISION.
31833         * iconvdata/Makefile (distribute): No need to filter out CVS.
31834         * scripts/list-sources.sh: Remove CVS, subversion and monotone
31835         handling.
31836
31837 2011-11-16  Andreas Schwab  <schwab@redhat.com>
31838
31839         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
31840         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
31841         [USE_AS_STRNCASECMP_L]: Likewise.
31842         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
31843         NO_TLS_DIRECT_SEG_REFS.
31844         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
31845         Fix argument offsets for non-PIC.
31846         [USE_AS_STRNCASECMP_L]: Likewise.
31847         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
31848         NO_TLS_DIRECT_SEG_REFS.
31849
31850 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
31851
31852         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
31853         O_CLOEXEC.
31854         * locale/loadlocale.c (_nl_load_locale): Likewise.
31855
31856 2011-11-15  Andreas Schwab  <schwab@redhat.com>
31857
31858         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
31859         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
31860         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
31861         (SYSCALL_GETTIME): Set errno on error.
31862
31863         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
31864         count references to noai6ai_cached.
31865
31866 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
31867
31868         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
31869
31870         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
31871         FD_CLOEXEC for /proc/self/maps.
31872
31873         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
31874         FD_CLOEXEC for /proc/meminfo.
31875
31876         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
31877         gai.conf.
31878
31879         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
31880         FD_CLOEXEC for given file.
31881
31882         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
31883
31884         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
31885         FD_CLOEXEC for /etc/hosts.
31886         (_gethtent): Likewise.
31887
31888         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
31889
31890         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
31891         cancellation and set FD_CLOEXEC for /etc/netgroup.
31892
31893         * nss/nss_files/files-key.c (search): Don't allow cancellation when
31894         reading /etc/publickey.
31895
31896         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
31897         allow cancellation when reading /etc/group.
31898
31899         * nss/nss_files/files-alias.c (internal_setent): Don't allow
31900         cancellation.
31901         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
31902
31903         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
31904         when using data file.
31905
31906         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
31907
31908         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
31909         (write_nis_obj): Use "c" and "e" in fopen.
31910
31911         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
31912
31913         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
31914
31915         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
31916
31917         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
31918
31919         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
31920         locale.alias.
31921
31922         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
31923
31924         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
31925
31926         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
31927
31928         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
31929         file parsing and set FD_CLOEXEC.
31930
31931 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
31932
31933         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
31934
31935 2011-11-14  Andreas Schwab  <schwab@redhat.com>
31936
31937         * malloc/arena.c (arena_get2): Don't call reused_arena when
31938         _int_new_arena failed.
31939
31940 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
31941
31942         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
31943         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
31944         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
31945         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31946         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31947         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
31948         to compile strcasecmp and strncasecmp.
31949         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
31950         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
31951
31952         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
31953
31954 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
31955
31956         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
31957         locale-defines.sym to gen-as-const-headers.
31958         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
31959         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
31960         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
31961         to compile strcasecmp and strncasecmp.
31962         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
31963         strcasecmp_l and strncasecmp_l.
31964         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
31965         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
31966         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
31967         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
31968         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
31969         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
31970         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
31971         * sysdeps/i386/i686/multiarch/strncase.S: New file.
31972         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
31973         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
31974         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
31975
31976 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
31977
31978         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
31979         result of SYSDEP_GETTIME_CPU to retval.
31980         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
31981         parameter list to macro.  Remove trailing semicolon.  Adjust users.
31982
31983         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
31984         variable.
31985
31986         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
31987         mantissa words.
31988         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
31989
31990         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
31991         from unused variable.
31992
31993         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
31994         DWARF definitions.
31995         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
31996         for assembling.
31997
31998         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
31999         over namespaces.
32000
32001         * sunrpc/rpc_prot.c (rejected): Fix case value.
32002
32003         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
32004         unsigned long long int to avoid warnings in shift.
32005
32006         * posix/regex_internal.c (re_string_reconstruct): Actually use result
32007         of use of trans.
32008         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
32009         variable tmp.
32010
32011         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
32012         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
32013         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
32014
32015         * nis/nis_table.c (nis_list): Use variable of correct type for
32016         result of __follow_path call.
32017
32018 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32019
32020         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
32021         of math functions ceil, trunc, floor, round, and sqrt, when
32022         avaliable on the platform.
32023         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
32024         name clash.
32025         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
32026         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
32027         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
32028
32029 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
32030
32031         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
32032         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
32033
32034 2011-11-11  Roland McGrath  <roland@hack.frob.com>
32035
32036         * include/unistd.h: Fix __readlink return type.
32037         Reported by Chris Metcalf <cmetcalf@tilera.com>.
32038
32039 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
32040
32041         * stdlib/ucontext.h: Undo last change for makecontext.
32042
32043 2011-11-11  Andreas Schwab  <schwab@redhat.com>
32044
32045         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
32046
32047         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
32048         * setjmp/setjmp.h: Mark functions as non-leaf.
32049         * setjmp/bits/setjmp2.h: Likewise.
32050         * stdlib/ucontext.h: Likewise.
32051
32052 2011-11-10  Andreas Schwab  <schwab@redhat.com>
32053
32054         * malloc/arena.c (_int_new_arena): Don't increment narenas.
32055         (reused_arena): Don't check arena limit.
32056         (arena_get2): Atomically check arena limit.
32057
32058 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
32059
32060         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
32061         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
32062
32063         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
32064         instructions.
32065
32066 2011-11-07  Andreas Schwab  <schwab@redhat.com>
32067
32068         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
32069         handler when locking.
32070
32071         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
32072         Fix size of allocated buffer.
32073
32074 2011-11-04  Andreas Schwab  <schwab@redhat.com>
32075
32076         [BZ #10103]
32077         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
32078         declarations for long double functions.
32079         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
32080
32081         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
32082
32083 2011-11-03  Andreas Schwab  <schwab@redhat.com>
32084
32085         * nscd/nscd.c (main): Don't start AVC thread until credentials are
32086         installed.
32087
32088         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
32089         is disabled.
32090
32091 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32092
32093         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
32094
32095 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
32096
32097         * include/alloca.h (stackinfo_alloca_round): Define.
32098         (extend_alloca): Use it.
32099         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
32100         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
32101         here.
32102
32103         * scripts/check-local-headers.sh: Ignore libaudit.h.
32104
32105         * nscd/Makefile (extra-objs): Make recursively expanded.
32106
32107 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
32108
32109         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
32110         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
32111
32112         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
32113         * posix/tst-rfc3484-2.c: Likewise.
32114         * posix/tst-rfc3484-3.c: Likewise.
32115
32116         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
32117         process_vm_writev.
32118         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
32119         process_vm_writev.
32120         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
32121         process_vm_writev from libc using GLIBC_2.15 version.
32122
32123         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
32124
32125 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
32126
32127         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
32128         stack usage.
32129
32130 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
32131
32132         [BZ #13367]
32133         * nss/getent.c (initgroups_keys): Show error message in case no group
32134         names are given.
32135
32136         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
32137         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
32138         __bump_nl_timestamp.
32139         * nscd/connections (nscd_init): When host database is served open
32140         netlink socket and request notification about configuration changes.
32141         (main_loop_poll): Track netlink file descriptor and bump timestamp
32142         in case data becomes available.
32143         (main_loop_epoll): Likewise.
32144         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
32145         (database_pers_head): Add extra_data fileds.
32146         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
32147         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
32148         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
32149         Adjust caller.
32150         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
32151         in6ai data, call __free_in6ai.
32152         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
32153         Add -DHAVE_NETLINK.
32154         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
32155         interface information.  Reuse previous data if netlink timestamp
32156         is not changed.
32157         (__bump_nl_timestamp): New function.
32158         (__free_in6ai): New function.
32159
32160 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
32161
32162         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
32163         close_not_cancel_no_status here.
32164         (__check_pf): Reorganize code a bit to not call close twice if OOM.
32165
32166 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32167
32168         [BZ #13276]
32169         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
32170         return value.
32171
32172         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
32173         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
32174         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
32175
32176 2011-07-03  Andreas Jaeger  <aj@suse.de>
32177
32178         [BZ #10709]
32179         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
32180         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
32181         * math/libm-test.inc (sin_test): Add test case.
32182
32183 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32184
32185         [BZ #13337]
32186         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
32187         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32188
32189         * elf/chroot_canon.c (chroot_canon): Cleanups.
32190
32191         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
32192
32193         [BZ #13335]
32194         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
32195         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32196
32197         * string/test-strchr.c: Make usable for strchrnul testing.
32198         * string/test-strchrnul.c: New file.
32199         * string/Makefile (strop-tests): Add strchrnul.
32200
32201         * po/it.po: Update from translation team.
32202         * po/es.po: Likewise.
32203
32204 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
32205
32206         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
32207         the three constants needed as parameters.  Drop the others.
32208         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
32209         __m128i_strloadu_tolower.
32210         Create and initialize variable zero and use it in all the places
32211         where _mm_setzero_si128 was used.
32212
32213         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
32214         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
32215         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
32216         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
32217         anymore.
32218         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
32219         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
32220         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
32221         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
32222         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
32223         __mpranred, __mptan.
32224         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
32225         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
32226         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
32227         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
32228         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
32229         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
32230         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
32231         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
32232         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
32233
32234 2011-10-28  Andreas Schwab  <schwab@redhat.com>
32235
32236         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
32237         redefine if SHARED.
32238         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
32239
32240         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
32241         wide char related routines to wcsmbs subdir.
32242
32243 2011-10-27  Andreas Schwab  <schwab@redhat.com>
32244
32245         [BZ #13344]
32246         * misc/sys/cdefs.h (__THROWNL): Define.
32247         * posix/unistd.h: Use __THREADNL instead of __THREAD
32248         for memory synchronization functions.
32249
32250 2011-10-26  Roland McGrath  <roland@hack.frob.com>
32251
32252         [BZ #13349]
32253         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
32254         doesn't exist.
32255         * manual/stdio.texi (Obstack Streams): Node removed.
32256
32257 2011-10-26  Andreas Schwab  <schwab@redhat.com>
32258
32259         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
32260         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32261         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32262
32263         * math/math_private.h (math_force_eval): Allow non-addressable
32264         arguments.
32265         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
32266
32267 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32268
32269         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
32270         file is not needed.
32271
32272         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
32273         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32274         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32275         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32276         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32277         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32278         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32279         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
32280         Add AVX variants.
32281         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
32282         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
32283         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
32284         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
32285         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
32286         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
32287         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
32288         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
32289         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
32290         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
32291         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
32292         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
32293         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
32294         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
32295         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
32296         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
32297         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
32298         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
32299         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
32300
32301         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
32302         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
32303
32304         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
32305         place.  Use VEX encoding when compiling for AVX.
32306
32307 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32308
32309         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
32310         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
32311
32312         * string/test-strchr.c (do_test): Don't generate NUL bytes.
32313
32314 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32315
32316         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
32317         useless if() expression.
32318         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
32319         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
32320         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
32321         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
32322         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
32323         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32324         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
32325         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
32326         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
32327         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
32328         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
32329         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
32330         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
32331         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
32332         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
32333         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32334         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
32335         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
32336         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
32337
32338         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
32339
32340 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32341
32342         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
32343         condition.
32344         * elf/dl-fini.c (_dl_sort_fini): Likewise.
32345
32346 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32347
32348         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
32349         .text section.  Avoid duplicate constants.
32350         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
32351         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32352         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
32353         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32354         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32355         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32356         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32357         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32358         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
32359         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
32360         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
32361         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
32362         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
32363         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
32364         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
32365         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
32366         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
32367         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
32368         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
32369         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32370         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
32371         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
32372         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
32373         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
32374         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
32375         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
32376         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
32377         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
32378         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
32379         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
32380         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
32381         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
32382         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
32383         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
32384         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
32385         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
32386         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
32387         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
32388         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
32389         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
32390         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
32391         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
32392         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
32393         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
32394         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
32395
32396 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
32397
32398         * sysdeps/x86_64/dla.h: Move to ...
32399         * sysdeps/x86_64/fpu/dla.h: ...here.
32400         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
32401         situations.  Use __builtin_fma only for gcc 4.6 and up.
32402
32403         * config.make.in: Add have-mfma4 entry.
32404         * configure.in: Substitute libc_cv_cc_fma4.
32405         * math/Makefile (dbl-only-routines): Add sincostab.
32406         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
32407         Use __sincostab not sincos.
32408         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
32409         name is a macro.
32410         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32411         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32412         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32413         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
32414         using __copysign.
32415         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
32416         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
32417         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
32418         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
32419         and __inv.
32420         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
32421         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
32422         __copysign.
32423         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
32424         define aliases when function name is a macro.
32425         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
32426         sysdeps/ieee754/dbl-64/sincos.tbl.
32427         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
32428         fma4-enabled routines.
32429         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
32430         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
32431         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
32432         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
32433         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
32434         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
32435         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
32436         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
32437         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
32438         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
32439         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
32440         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
32441         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
32442         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
32443         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
32444         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
32445         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
32446         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
32447         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
32448         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
32449         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
32450         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
32451         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
32452         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
32453         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
32454         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
32455         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
32456         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
32457         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
32458         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
32459
32460         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
32461         rename.
32462         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32463         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32464         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32465         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32466         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32467         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32468         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32469         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32470
32471 2011-10-24  Andreas Schwab  <schwab@redhat.com>
32472
32473         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
32474
32475 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32476
32477         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
32478
32479         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
32480         prediction.
32481         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
32482
32483         * string/strnlen.c: Don't define STRNLEN, reverse logic.
32484         Remove unused variable magic_bits.
32485         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
32486
32487         * string/strnlen.c: Define and use STRNLEN macro.
32488         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
32489         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
32490         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
32491         * wcsmbs/wcslen.c: Define and use WCSLEN.
32492         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
32493         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
32494         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
32495         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
32496         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
32497         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
32498         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
32499
32500 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32501
32502         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32503         strnlen-sse2-no-bsf.
32504         Rename strlen-no-bsf to strlen-sse2-no-bsf.
32505         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
32506         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
32507         Add strnlen support.
32508         (USE_AS_STRNLEN): New macro.
32509         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
32510         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
32511         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
32512         * sysdeps/x86_64/wcslen.S: New file.
32513
32514 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
32515
32516         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
32517         XMM-moves are used for copying on small sizes.
32518
32519 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32520
32521         * wcsmbs/Makefile (strop-tests): Add wcschr.
32522         * wcsmbs/test-wcschr.c: New file.
32523         * string/test-strchr.c: Update.
32524         Add wcschr support.
32525         (WIDE): New macro.
32526
32527 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32528
32529         * wcsmbs/Makefile (strop-tests): Add wcslen.
32530         * wcsmbs/test-wcslen.c: New file.
32531         * string/test-strlen.c: Update.
32532         Add wcslen support.
32533         (WIDE): New macro.
32534
32535 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32536
32537         * po/it.po: Update from translation team.
32538
32539 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32540
32541         * sysdeps/x86_64/wcscmp.S: Update.
32542         Fix wrong comparison semantics.
32543         wcscmp shall use signed comparison not unsigned.
32544         Don't use substraction to avoid overflow bug.
32545         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
32546         * wcsmbc/wcscmp.c: Likewise.
32547         * string/test-strcmp.c: Likewise.
32548         Add new tests to check cases with negative values.
32549
32550 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32551
32552         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
32553         * sysdeps/x86_64/dla.h: ...here.  New file.
32554         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
32555         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32556         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32557         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32558         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32559         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
32560         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32561         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32562         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32563
32564 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
32565
32566         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
32567         __ynl_finite aliases.
32568
32569 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
32570
32571         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32572
32573         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
32574         define DLA_FMA.
32575         [DLA_FMA] (EMULV): Use DLA_FMA.
32576         [DLA_FMA] (MUL12): Use EMULV.
32577         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
32578         that are not needed.
32579         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32580         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32581         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32582         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32583         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32584         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32585         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32586
32587 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
32588
32589         * math/s_nan.c: Undef __nan.
32590         * math/s_nanf.c: Undef __nanf.
32591         * math/s_nanl.c: Undef __nanl.
32592         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
32593         "math_private.h".
32594
32595 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
32596
32597         * math/s_catan.c: Add branch predictions.
32598         * math/s_catanf.c: Likewise.
32599         * math/s_catanh.c: Likewise.
32600         * math/s_catanhf.c: Likewise.
32601         * math/s_catanhl.c: Likewise.
32602         * math/s_catanl.c: Likewise.
32603         * math/s_cexp.c: Likewise.
32604         * math/s_cexpf.c: Likewise.
32605         * math/s_cexpl.c: Likewise.
32606         * math/s_clog.c: Likewise.
32607         * math/s_clog10.c: Likewise.
32608         * math/s_clog10f.c: Likewise.
32609         * math/s_clog10l.c: Likewise.
32610         * math/s_clogf.c: Likewise.
32611         * math/s_clogl.c: Likewise.
32612         * math/s_csqrt.c: Likewise.
32613         * math/s_csqrtf.c: Likewise.
32614         * math/s_csqrtl.c: Likewise.
32615         * math/s_ctanf.c: Likewise.
32616         * math/s_ctanh.c: Likewise.
32617         * math/s_ctanhf.c: Likewise.
32618         * math/s_ctanhl.c: Likewise.
32619         * math/s_ctanl.c: Likewise.
32620
32621         * math/math_private.h: Define __nan, __nanf, __nanl.
32622         * math/s_cacosh.c: Include <math_private.h>.
32623         * math/s_cacoshl.c: Likewise.
32624         * math/s_casinh.c: Likewise.
32625         * math/s_casinhf.c: Likewise.
32626         * math/s_casinhl.c: Likewise.
32627         * math/s_ccos.c: Rely entire on ccosh.
32628         * math/s_ccosf.c: Rely entire on ccoshf.
32629         * math/s_ccosl.c: Rely entirely on ccoshl.
32630         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
32631         Remove tests for FE_INVALID.
32632         * math/s_ccoshf.c: Likewise.
32633         * math/s_ccoshl.c: Likewise.
32634         * math/s_csin.c: Likewise.
32635         * math/s_csinf.c: Likewise.
32636         * math/s_csinh.c Likewise.
32637         * math/s_csinhf.c: Likewise.
32638         * math/s_csinhl.c: Likewise.
32639         * math/s_csinl.c: Likewise.
32640         * math/s_ctan.c: Likewise.
32641         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
32642         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
32643         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
32644
32645 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
32646
32647         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
32648         compilation problems.
32649
32650         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
32651         __builtin_expect.
32652
32653 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
32654
32655         * sysdeps/i386/configure.in: Test for -mfma4 option.
32656         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
32657         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
32658         COMMON_CPUID_INDEX_80000001.
32659         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
32660         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
32661         use it if FMA3 is not supported.
32662         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
32663
32664         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
32665         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
32666
32667 2011-10-20  Andreas Schwab  <schwab@redhat.com>
32668
32669         [BZ #12892]
32670         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
32671         it would create a cycle with a link time dependency.
32672
32673 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
32674
32675         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
32676         instruction.
32677         * string/Makefile (strop-tests): Add rawmemchr.
32678         * string/test-rawmemchr.c: New file.
32679
32680         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
32681         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
32682         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
32683         when compiling str{,n}casecmp and when AVX is available.  Hook up
32684         new optimized code in initializers.
32685
32686 2011-10-19  Andreas Schwab  <schwab@redhat.com>
32687
32688         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
32689         __feraiseexcept instead of feraiseexcept.
32690
32691 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
32692
32693         * math/math_private.h: Define defaults for libc_fetestexcept and
32694         libc_feupdateenv.
32695         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
32696         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
32697         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
32698         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
32699         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
32700         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
32701         libc_fetestexcept and libc_feupdateenv.
32702
32703         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
32704         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
32705         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
32706         * sysdeps/x86_64/fpu/math_private.h: Define special version of
32707         libc_feholdexcept_setround.
32708
32709         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
32710         Add s_nearbyint-c and s_nearbyintf-c.
32711         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
32712         nearbyintf inlines.
32713         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
32714         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
32715         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
32716         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
32717
32718         * math/math_private.h: Define defaults for libc_fegetround,
32719         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
32720         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
32721         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
32722         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
32723         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
32724         standard functions.
32725         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
32726         Remove comments and hacks for old compiler versions.
32727         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
32728         libc_fegetround, libc_fesetround, libc_feholdexcept, and
32729         libc_feholdexceptl.
32730
32731 2011-10-18  Andreas Schwab  <schwab@redhat.com>
32732
32733         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
32734         (__feraiseexcept_renamed): Add __NTH.
32735         (feraiseexcept): Add __NTH.  Rename local variables to fix
32736         namespace violations.
32737
32738 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
32739
32740         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
32741
32742         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
32743
32744         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
32745         recently added interfaces.
32746         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
32747
32748         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
32749         about macro parameter expansion.
32750
32751         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
32752         __NO_MATH_INLINES is defined.  Cleanups.
32753
32754         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
32755         and __floorf is target has SSE4.1.
32756         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
32757         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
32758         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
32759         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
32760
32761         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
32762         name.
32763         (floorf): Likewise.
32764
32765         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
32766
32767 2011-10-17  Andreas Schwab  <schwab@redhat.com>
32768
32769         * misc/sys/cdefs.h: Fix last change.
32770
32771         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
32772         database lookup.
32773
32774 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
32775
32776         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
32777
32778         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
32779         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
32780         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
32781         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
32782         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
32783         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
32784         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
32785         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
32786         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
32787         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
32788         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
32789         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
32790         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
32791         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
32792         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
32793         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
32794         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
32795         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
32796         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
32797         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
32798         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
32799         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
32800
32801         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
32802         ceil, ceilf, floor, floorf.
32803
32804         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
32805         Perform IRELATIVE relocations last.
32806
32807         * elf/do-rel.h: Add another parameter nrelative, replacing the
32808         local variable with the same name.  Change name of the function
32809         to end in Rel or Rela (uppercase).
32810         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
32811         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
32812         elf_dynamic_do_##reloc function.
32813
32814 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
32815
32816         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
32817         is sufficient, at least on modern CPUs.
32818
32819         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
32820
32821         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
32822         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
32823
32824         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
32825         __expl_finite.
32826         * math/bits/math-finite.h: Add entries for exp.
32827         * math/e_expl.c: Add __*_finite alias.
32828         * sysdeps/i386/fpu/e_exp.S: Likewise.
32829         * sysdeps/i386/fpu/e_expf.S: Likewise.
32830         * sysdeps/i386/fpu/e_expl.c: Likewise.
32831         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32832         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
32833         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
32834         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
32835         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
32836         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
32837         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
32838
32839         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
32840         is sufficient, at least on modern CPUs.
32841
32842         * ctype/ctype-info.c (__ctype_init): Define.
32843         * include/ctype.h (__ctype_init): Declare.
32844         (__ctype_b_loc): The variable is always initialized.
32845         (__ctype_toupper_loc): Likewise.
32846         (__ctype_tolower_loc): Likewise.
32847         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
32848         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
32849
32850 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
32851
32852         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
32853
32854         * configure.in: Also look in $cxxmachine/include for C++ system
32855         headers.
32856
32857 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32858
32859         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
32860         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
32861         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
32862         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
32863         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
32864         (USE_AS_WMEMCMP): New macro.
32865         Fixing indents.
32866         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
32867         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
32868         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
32869         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
32870         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32871         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
32872         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
32873         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
32874         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
32875         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
32876         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
32877         (USE_AS_WMEMCMP): New macro.
32878         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
32879         * sysdeps/string/test-memcmp.c: Update.
32880         Fix simple_wmemcmp.
32881         Add new tests.
32882         * wcsmbs/wmemcmp.c: Update.
32883         (WMEMCMP): New macro.
32884         Fix overflow bug.
32885
32886 2011-10-12  Andreas Jaeger  <aj@suse.de>
32887
32888         [BZ #13268]
32889         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
32890
32891 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
32892
32893         * libio/iofwide.c (do_length): Avoid warning.
32894
32895         * ctype/ctype.h (__isctype_f): Add missing __THROW.
32896
32897 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
32898
32899         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
32900
32901         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
32902         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
32903         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
32904         * sysdeps/i386/i686/fpu/e_log.S: New file.
32905         * sysdeps/i386/i686/fpu/e_logf.S: New file.
32906         * sysdeps/i386/i686/fpu/e_logl.S: New file.
32907
32908         * ctype/ctype.h: Add support for inlined isXXX functions when
32909         compiling C++ code.
32910
32911 2011-10-14  Andreas Schwab  <schwab@redhat.com>
32912
32913         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
32914
32915         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
32916
32917 2011-10-13  Roland McGrath  <roland@hack.frob.com>
32918
32919         [BZ #13291]
32920         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
32921
32922 2011-10-13  Andreas Schwab  <schwab@redhat.com>
32923
32924         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
32925         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
32926         feraiseexcept.
32927
32928         * sysdeps/x86_64/memrchr.S: Check for zero size.
32929
32930         * string/stratcliff.c: Add memrchr tests.
32931
32932 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32933
32934         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32935         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
32936         rawmemchr-sse2 rawmemchr-sse2-bsf.
32937         * sysdeps/i386/i686/multiarch/memchr.S: New file.
32938         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
32939         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
32940         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
32941         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
32942         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
32943         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
32944         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
32945         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
32946         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
32947         * string/memrchr.c (MEMRCHR): New macro.
32948
32949 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
32950
32951         Add integration with gcc's -ffinite-math-only and optimize wrapper
32952         functions in libm.
32953         * Versions.def: Define GLIBC_2.15 version for libm.
32954         * math/Makefile (headers): Add bits/math-finite.h.
32955         * math/bits/math-finite.h: New file.
32956         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
32957         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
32958         * math/e_acoshl.c: Add __*_finite alias.
32959         * math/e_acosl.c: Likewise.
32960         * math/e_asinl.c: Likewise.
32961         * math/e_atan2l.c: Likewise.
32962         * math/e_atanhl.c: Likewise.
32963         * math/e_coshl.c: Likewise.
32964         * math/e_exp10.c: Likewise.
32965         * math/e_exp10f.c: Likewise.
32966         * math/e_exp10l.c: Likewise.
32967         * math/e_exp2l.c: Likewise.
32968         * math/e_fmodl.c: Likewise.
32969         * math/e_gammal_r.c: Likewise.
32970         * math/e_hypotl.c: Likewise.
32971         * math/e_j0l.c: Likewise.
32972         * math/e_j1l.c: Likewise.
32973         * math/e_jnl.c: Likewise.
32974         * math/e_lgammal_r.c: Likewise.
32975         * math/e_log10l.c: Likewise.
32976         * math/e_log2l.c: Likewise.
32977         * math/e_logl.c: Likewise.
32978         * math/e_powl.c: Likewise.
32979         * math/e_sinhl.c: Likewise.
32980         * math/e_sqrtl.c: Likewise.
32981         * math/e_scalb.c: Completely rewritten and optimized.
32982         * math/e_scalbf.c: Likewise.
32983         * math/e_scalbl.c: Likewise.
32984         * math/w_acos.c: Likewise.
32985         * math/w_acosf.c: Likewise.
32986         * math/w_acosl.c: Likewise.
32987         * math/w_acosh.c: Likewise.
32988         * math/w_acoshf.c: Likewise.
32989         * math/w_acoshl.c: Likewise.
32990         * math/w_asin.c: Likewise.
32991         * math/w_asinf.c: Likewise.
32992         * math/w_asinl.c: Likewise.
32993         * math/w_atan2.c: Likewise.
32994         * math/w_atan2f.c: Likewise.
32995         * math/w_atan2l.c: Likewise.
32996         * math/w_atanh.c: Likewise.
32997         * math/w_atanhf.c: Likewise.
32998         * math/w_atanhl.c: Likewise.
32999         * math/w_exp10.c: Likewise.
33000         * math/w_exp10f.c: Likewise.
33001         * math/w_exp10l.c: Likewise.
33002         * math/w_fmod.c: Likewise.
33003         * math/w_fmodf.c: Likewise.
33004         * math/w_fmodl.c: Likewise.
33005         * math/w_j0.c: Likewise.
33006         * math/w_j0f.c: Likewise.
33007         * math/w_j0l.c: Likewise.
33008         * math/w_j1.c: Likewise.
33009         * math/w_j1f.c: Likewise.
33010         * math/w_j1l.c: Likewise.
33011         * math/w_jn.c: Likewise.
33012         * math/w_jnf.c: Likewise.
33013         * math/w_log.c: Likewise.
33014         * math/w_logf.c: Likewise.
33015         * math/w_logl.c: Likewise.
33016         * math/w_log10.c: Likewise.
33017         * math/w_log10f.c: Likewise.
33018         * math/w_log10l.c: Likewise.
33019         * math/w_log2.c: Likewise.
33020         * math/w_log2f.c: Likewise.
33021         * math/w_log2l.c: Likewise.
33022         * math/w_pow.c: Likewise.
33023         * math/w_powf.c: Likewise.
33024         * math/w_powl.c: Likewise.
33025         * math/w_remainder.c: Likewise.
33026         * math/w_remainderf.c: Likewise.
33027         * math/w_remainderl.c: Likewise.
33028         * math/w_scalb.c: Likewise.
33029         * math/w_scalbf.c: Likewise.
33030         * math/w_scalbl.c: Likewise.
33031         * math/w_sqrt.c: Likewise.
33032         * math/w_sqrtf.c: Likewise.
33033         * math/w_sqrtl.c: Likewise.
33034         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
33035         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
33036         used.
33037         * math/math_private.h: Declare __kernel_standard_f.
33038         * math/w_cosh.c: Remove cruft and optimize a bit.
33039         * math/w_coshf.c: Likewise.
33040         * math/w_coshl.c: Likewise.
33041         * math/w_exp2.c: Likewise.
33042         * math/w_exp2f.c: Likewise.
33043         * math/w_exp2l.c: Likewise.
33044         * math/w_hypot.c: Likewise.
33045         * math/w_hypotf.c: Likewise.
33046         * math/w_hypotl.c: Likewise.
33047         * math/w_lgamma.c: Likewise.
33048         * math/w_lgamma_r.c: Likewise.
33049         * math/w_lgammaf.c: Likewise.
33050         * math/w_lgammaf_r.c: Likewise.
33051         * math/w_lgammal.c: Likewise.
33052         * math/w_lgammal_r.c: Likewise.
33053         * math/w_sinh.c: Likewise.
33054         * math/w_sinhf.c: Likewise.
33055         * math/w_sinhl.c: Likewise.
33056         * math/w_tgamma.c: Likewise.
33057         * math/w_tgammaf.c: Likewise.
33058         * math/w_tgammal.c: Likewise.
33059         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
33060         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
33061         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
33062         Minor optimizations.  Pretty printing.  Remove cruft.
33063         * sysdeps/i386/fpu/e_acosf.S: Likewise.
33064         * sysdeps/i386/fpu/e_acosh.S: Likewise.
33065         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
33066         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
33067         * sysdeps/i386/fpu/e_acosl.c: Likewise.
33068         * sysdeps/i386/fpu/e_asin.S: Likewise.
33069         * sysdeps/i386/fpu/e_asinf.S: Likewise.
33070         * sysdeps/i386/fpu/e_atan2.S: Likewise.
33071         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
33072         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
33073         * sysdeps/i386/fpu/e_atanh.S: Likewise.
33074         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
33075         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
33076         * sysdeps/i386/fpu/e_exp10.S: Likewise.
33077         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
33078         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
33079         * sysdeps/i386/fpu/e_exp2.S: Likewise.
33080         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
33081         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
33082         * sysdeps/i386/fpu/e_fmod.S: Likewise.
33083         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
33084         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
33085         * sysdeps/i386/fpu/e_hypot.S: Likewise.
33086         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
33087         * sysdeps/i386/fpu/e_log.S: Likewise.
33088         * sysdeps/i386/fpu/e_log10.S: Likewise.
33089         * sysdeps/i386/fpu/e_log10f.S: Likewise.
33090         * sysdeps/i386/fpu/e_log10l.S: Likewise.
33091         * sysdeps/i386/fpu/e_log2.S: Likewise.
33092         * sysdeps/i386/fpu/e_log2f.S: Likewise.
33093         * sysdeps/i386/fpu/e_log2l.S: Likewise.
33094         * sysdeps/i386/fpu/e_logf.S: Likewise.
33095         * sysdeps/i386/fpu/e_logl.S: Likewise.
33096         * sysdeps/i386/fpu/e_pow.S: Likewise.
33097         * sysdeps/i386/fpu/e_powf.S: Likewise.
33098         * sysdeps/i386/fpu/e_powl.S: Likewise.
33099         * sysdeps/i386/fpu/e_remainder.S: Likewise.
33100         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
33101         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
33102         * sysdeps/i386/fpu/e_scalb.S: Likewise.
33103         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
33104         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
33105         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
33106         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
33107         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
33108         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
33109         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
33110         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33111         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
33112         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33113         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
33114         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
33115         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
33116         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
33117         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
33118         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
33119         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
33120         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33121         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
33122         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
33123         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33124         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
33125         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
33126         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33127         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33128         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
33129         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
33130         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
33131         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
33132         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
33133         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
33134         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33135         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
33136         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
33137         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
33138         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
33139         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
33140         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33141         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
33142         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
33143         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
33144         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
33145         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
33146         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
33147         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
33148         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
33149         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
33150         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
33151         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
33152         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
33153         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
33154         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
33155         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
33156         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
33157         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
33158         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
33159         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
33160         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
33161         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33162         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
33163         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
33164         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
33165         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
33166         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
33167         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
33168         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
33169         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
33170         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
33171         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
33172         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
33173         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
33174         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
33175         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
33176         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
33177         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
33178         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
33179         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
33180         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
33181         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
33182         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
33183         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
33184         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
33185         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
33186         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
33187         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
33188         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
33189         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
33190         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
33191         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
33192         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
33193         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
33194         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33195         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
33196         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
33197         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
33198         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
33199         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
33200         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
33201         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
33202         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
33203         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
33204         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
33205         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
33206         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
33207         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
33208         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
33209         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
33210         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
33211         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
33212         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
33213         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
33214         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
33215         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
33216         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
33217         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
33218         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
33219         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
33220         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
33221         (__isnanf): Likewise.
33222         (__isinf_ns): Likewise.
33223         (__isinf_nsf): Likewise.
33224         (__finite): Likewise.
33225         (__finitef): Likewise.
33226         (__ieee754_sqrt): Define as macro.
33227         (__ieee754_sqrtf): Define as macro.
33228         (__ieee754_sqrtl): Define as macro.
33229         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
33230         inlined copy.
33231         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
33232         __FINITE_MATH_ONLY__ consistent.
33233         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
33234
33235 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
33236
33237         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
33238         of rawmemchr.
33239
33240         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
33241
33242 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
33243
33244         * po/ja.po: Update from translation team.
33245
33246 2011-10-08  Roland McGrath  <roland@hack.frob.com>
33247
33248         * locale/programs/locarchive.c (prepare_address_space): New function.
33249         (create_archive, enlarge_archive, open_archive): Use it.
33250
33251         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
33252         inside [SHARED], where it is used.
33253
33254         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
33255
33256         * nss/getent.c (netgroup_keys): Remove unused variable.
33257         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
33258
33259 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
33260
33261         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
33262         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
33263         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
33264         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
33265         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
33266         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
33267         * math/Makefile (libm-calls): Add s_isinf_ns.
33268         * math/divtc3.c: Use __isinf_nsl instead of isinf.
33269         * math/multc3.c: Likewise.
33270         * math/s_casin.c: Likewise.
33271         * math/s_casinf.c: Likewise.
33272         * math/s_casinl.c: Likewise.
33273         * math/s_ccos.c: Likewise.
33274         * math/s_ccosf.c: Likewise.
33275         * math/s_ccosl.c: Likewise.
33276         * math/s_ctan.c: Likewise.
33277         * math/s_ctanf.c: Likewise.
33278         * math/s_ctanh.c: Likewise.
33279         * math/s_ctanhf.c: Likewise.
33280         * math/s_ctanhl.c: Likewise.
33281         * math/s_ctanl.c: Likewise.
33282         * math/w_fmod.c: Likewise.
33283         * math/w_fmodf.c: Likewise.
33284         * math/w_fmodl.c: Likewise.
33285         * math/w_remainder.c: Likewise.
33286         * math/w_remainderf.c: Likewise.
33287         * math/w_remainderl.c: Likewise.
33288         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
33289         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
33290         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
33291         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
33292         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
33293         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
33294         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
33295         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
33296
33297         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
33298         of the number.
33299         * stdio-common/printf_fphex.c: Likewise.
33300         * stdio-common/printf_size.c: Likewise.
33301
33302         * math/e_exp10.c: Include math_private.h using <...> not "...".
33303         * math/e_exp10f.c: Likewise.
33304         * math/e_exp10l.c: Likewise.
33305         * math/e_exp2l.c: Likewise.
33306         * math/e_j0l.c: Likewise.
33307         * math/e_j1l.c: Likewise.
33308         * math/e_jnl.c: Likewise.
33309         * math/e_lgammal_r.c: Likewise.
33310         * math/e_rem_pio2l.c: Likewise.
33311         * math/e_scalb.c: Likewise.
33312         * math/e_scalbf.c: Likewise.
33313         * math/e_scalbl.c: Likewise.
33314         * math/k_cosl.c: Likewise.
33315         * math/k_sinl.c: Likewise.
33316         * math/k_tanl.c: Likewise.
33317         * math/s_cacoshf.c: Likewise.
33318         * math/s_catan.c: Likewise.
33319         * math/s_catanf.c: Likewise.
33320         * math/s_catanh.c: Likewise.
33321         * math/s_catanhf.c: Likewise.
33322         * math/s_catanhl.c: Likewise.
33323         * math/s_catanl.c: Likewise.
33324         * math/s_ccosh.c: Likewise.
33325         * math/s_ccoshf.c: Likewise.
33326         * math/s_ccoshl.c: Likewise.
33327         * math/s_cexp.c: Likewise.
33328         * math/s_cexpf.c: Likewise.
33329         * math/s_cexpl.c: Likewise.
33330         * math/s_clog.c: Likewise.
33331         * math/s_clog10.c: Likewise.
33332         * math/s_clog10f.c: Likewise.
33333         * math/s_clog10l.c: Likewise.
33334         * math/s_clogf.c: Likewise.
33335         * math/s_clogl.c: Likewise.
33336         * math/s_csin.c: Likewise.
33337         * math/s_csinf.c: Likewise.
33338         * math/s_csinh.c: Likewise.
33339         * math/s_csinhf.c: Likewise.
33340         * math/s_csinhl.c: Likewise.
33341         * math/s_csinl.c: Likewise.
33342         * math/s_csqrt.c: Likewise.
33343         * math/s_csqrtf.c: Likewise.
33344         * math/s_csqrtl.c: Likewise.
33345         * math/s_ctan.c: Likewise.
33346         * math/s_ctanf.c: Likewise.
33347         * math/s_ctanh.c: Likewise.
33348         * math/s_ctanhf.c: Likewise.
33349         * math/s_ctanhl.c: Likewise.
33350         * math/s_ctanl.c: Likewise.
33351         * math/s_ldexp.c: Likewise.
33352         * math/s_ldexpf.c: Likewise.
33353         * math/s_ldexpl.c: Likewise.
33354         * math/s_significand.c: Likewise.
33355         * math/s_significandf.c: Likewise.
33356         * math/s_significandl.c: Likewise.
33357         * math/w_acos.c: Likewise.
33358         * math/w_acosf.c: Likewise.
33359         * math/w_acosh.c: Likewise.
33360         * math/w_acoshf.c: Likewise.
33361         * math/w_acoshl.c: Likewise.
33362         * math/w_acosl.c: Likewise.
33363         * math/w_asin.c: Likewise.
33364         * math/w_asinf.c: Likewise.
33365         * math/w_asinl.c: Likewise.
33366         * math/w_atan2.c: Likewise.
33367         * math/w_atan2f.c: Likewise.
33368         * math/w_atan2l.c: Likewise.
33369         * math/w_atanh.c: Likewise.
33370         * math/w_atanhf.c: Likewise.
33371         * math/w_atanhl.c: Likewise.
33372         * math/w_cosh.c: Likewise.
33373         * math/w_coshf.c: Likewise.
33374         * math/w_coshl.c: Likewise.
33375         * math/w_dremf.c: Likewise.
33376         * math/w_exp10.c: Likewise.
33377         * math/w_exp10f.c: Likewise.
33378         * math/w_exp10l.c: Likewise.
33379         * math/w_exp2.c: Likewise.
33380         * math/w_exp2f.c: Likewise.
33381         * math/w_fmod.c: Likewise.
33382         * math/w_fmodf.c: Likewise.
33383         * math/w_fmodl.c: Likewise.
33384         * math/w_hypot.c: Likewise.
33385         * math/w_hypotf.c: Likewise.
33386         * math/w_hypotl.c: Likewise.
33387         * math/w_j0.c: Likewise.
33388         * math/w_j0f.c: Likewise.
33389         * math/w_j0l.c: Likewise.
33390         * math/w_j1.c: Likewise.
33391         * math/w_j1f.c: Likewise.
33392         * math/w_j1l.c: Likewise.
33393         * math/w_jn.c: Likewise.
33394         * math/w_jnf.c: Likewise.
33395         * math/w_jnl.c: Likewise.
33396         * math/w_lgamma.c: Likewise.
33397         * math/w_lgamma_r.c: Likewise.
33398         * math/w_lgammaf.c: Likewise.
33399         * math/w_lgammaf_r.c: Likewise.
33400         * math/w_lgammal.c: Likewise.
33401         * math/w_lgammal_r.c: Likewise.
33402         * math/w_log.c: Likewise.
33403         * math/w_log10.c: Likewise.
33404         * math/w_log10f.c: Likewise.
33405         * math/w_log10l.c: Likewise.
33406         * math/w_log2.c: Likewise.
33407         * math/w_log2f.c: Likewise.
33408         * math/w_log2l.c: Likewise.
33409         * math/w_logf.c: Likewise.
33410         * math/w_logl.c: Likewise.
33411         * math/w_pow.c: Likewise.
33412         * math/w_powf.c: Likewise.
33413         * math/w_powl.c: Likewise.
33414         * math/w_remainder.c: Likewise.
33415         * math/w_remainderf.c: Likewise.
33416         * math/w_remainderl.c: Likewise.
33417         * math/w_scalb.c: Likewise.
33418         * math/w_scalbf.c: Likewise.
33419         * math/w_scalbl.c: Likewise.
33420         * math/w_sinh.c: Likewise.
33421         * math/w_sinhf.c: Likewise.
33422         * math/w_sinhl.c: Likewise.
33423         * math/w_sqrt.c: Likewise.
33424         * math/w_sqrtf.c: Likewise.
33425         * math/w_sqrtl.c: Likewise.
33426         * math/w_tgamma.c: Likewise.
33427         * math/w_tgammaf.c: Likewise.
33428         * math/w_tgammal.c: Likewise.
33429
33430         * po/ja.po: Update from translation team.
33431
33432 2011-09-29  Andreas Jaeger  <aj@suse.de>
33433
33434         [BZ #13179]
33435         * sunrpc/netname.c (netname2host): Fix logic.
33436
33437         [BZ #6779]
33438         [BZ #6783]
33439         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
33440         correctly.
33441         * math/w_remainder.c (__remainder): Likewise.
33442         * math/w_remainderf.c (__remainderf): Likewise.
33443         * math/libm-test.inc (remainder_test): Add test cases.
33444
33445 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33446
33447         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
33448         sdiv_qrnnd.
33449
33450 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
33451
33452         * string/test-memcmp.c: Avoid unncessary #defines.
33453         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
33454
33455 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33456
33457         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
33458         Use new sse2 version for core i3 - i7 as it's faster
33459         than sse42 version.
33460         (bit_Prefer_PMINUB_for_stringop): New.
33461         * sysdeps/x86_64/rawmemchr.S: Update.
33462         Replace with faster SSE2 version.
33463         * sysdeps/x86_64/memrchr.S: New file.
33464         * sysdeps/x86_64/memchr.S: Update.
33465         Replace with faster SSE2 version.
33466
33467 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
33468
33469         * elf/dl-load.c (lose): Add cast to avoid warning.
33470
33471 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
33472
33473         * po/ca.po: Update from translation team.
33474
33475         * inet/getnetgrent_r.c: Hook up nscd.
33476         * nscd/Makefile (routines): Add nscd_netgroup.
33477         (nscd-modules): Add netgroupcache.
33478         (CFLAGS-netgroupcache.c): Define.
33479         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
33480         (cache_search): Add const to second parameter.
33481         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
33482         INNETGR.
33483         (dbs): Add netgrdb entry.
33484         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
33485         (verify_persistent_db): Handle netgrdb.
33486         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
33487         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
33488         GETFDNETGR.
33489         (netgroup_response_header): Define.
33490         (innetgroup_response_header): Define.
33491         (datahead): Add netgroup_response_header and innetgroup_response_header
33492         elements.
33493         * nscd/nscd.conf: Add entries for netgroup cache.
33494         * nscd/nscd.h (dbtype): Add netgrdb.
33495         (_PATH_NSCD_NETGROUP_DB): Define.
33496         (netgroup_iov_disabled): Declare.
33497         (xmalloc, xcalloc, xrealloc): Move declarations here.
33498         (cache_search): Adjust prototype.
33499         Add netgroup-related prototypes.
33500         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
33501         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
33502         (__nscd_innetgr): Declare.
33503         * nscd/selinux.c (perms): Use access_vector_t as element type and
33504         add netgroup-related initializers.
33505         * nscd/netgroupcache.c: New file.
33506         * nscd/nscd_netgroup.c: New file.
33507         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
33508         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
33509         For four parameters use innetgr.
33510         * nss/nss_files/files-init.c: Add definition and callback for netgr.
33511         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
33512         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
33513         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
33514
33515         * nscd/connections.c (register_traced_file): Don't register file
33516         for disabled databases.
33517
33518 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
33519
33520         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
33521
33522         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
33523         from tree and freeing node.
33524
33525 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
33526
33527         * nss/nsswitch.c (__nss_database_lookup): Handle
33528         nss_parse_service_list out of memory case.
33529
33530 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
33531
33532         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
33533         out of memory case.
33534
33535 2011-10-04  Andreas Schwab  <schwab@redhat.com>
33536
33537         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
33538         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
33539         pass it down.
33540         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
33541         elf_machine_rela, elf_machine_lazy_rel.
33542         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
33543         (ELF_DYNAMIC_DO_REL): Likewise.
33544         (ELF_DYNAMIC_DO_RELA): Likewise.
33545         (ELF_DYNAMIC_RELOCATE): Likewise.
33546         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
33547         to ELF_DYNAMIC_DO_REL.
33548         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
33549         (dl_main): In trace mode always set __RTLD_NOIFUNC.
33550         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
33551         elf_machine_rela.
33552         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
33553         skip_ifunc, don't call ifunc function if non-zero.
33554         (elf_machine_rela): Likewise.
33555         (elf_machine_lazy_rel): Likewise.
33556         (elf_machine_lazy_rela): Likewise.
33557         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
33558         (elf_machine_lazy_rel): Likewise.
33559         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
33560         Likewise.
33561         (elf_machine_lazy_rel): Likewise.
33562         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33563         Likewise.
33564         (elf_machine_lazy_rel): Likewise.
33565         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
33566         (elf_machine_lazy_rel): Likewise.
33567         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
33568         (elf_machine_lazy_rel): Likewise.
33569         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
33570         (elf_machine_lazy_rel): Likewise.
33571         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
33572         (elf_machine_lazy_rel): Likewise.
33573         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
33574         (elf_machine_lazy_rel): Likewise.
33575         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
33576         (elf_machine_lazy_rel): Likewise.
33577
33578 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
33579
33580         * nss/nss_files/files-init.c (_nss_files_init): Use static
33581         initialization for all the *_traced_file variables.
33582
33583 2011-09-28  Andreas Schwab  <schwab@redhat.com>
33584
33585         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33586
33587 2011-09-27  Roland McGrath  <roland@hack.frob.com>
33588
33589         [BZ #13226]
33590         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
33591
33592 2011-09-27  Andreas Schwab  <schwab@redhat.com>
33593
33594         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
33595         Reread the line before reparsing it.
33596
33597 2011-09-26  Andreas Schwab  <schwab@redhat.com>
33598
33599         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
33600
33601 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
33602             Maxim Kuvyrkov  <maxim@codesourcery.com>
33603             Joseph Myers  <joseph@codesourcery.com>
33604
33605         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
33606         if needed for __stack_chk_guard.
33607
33608 2011-09-19  Roland McGrath  <roland@hack.frob.com>
33609
33610         * sysdeps/posix/spawni.c (script_execute): Always define it.
33611         It will be optimized away if unused.
33612         (maybe_script_execute): New function.
33613         (__spawni): Call it.
33614
33615         * Makerules: Don't include tls.make.
33616         (config-tls): Always set to thread.
33617         * tls.make.c: File removed.
33618
33619 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
33620
33621         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
33622         * config.make.in (CPPFLAGS-config): New substituted variable.
33623
33624 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
33625
33626         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
33627
33628         [BZ #13192]
33629         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
33630         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
33631
33632 2011-09-15  Roland McGrath  <roland@hack.frob.com>
33633
33634         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
33635         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
33636         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
33637         (CALL_FAIL): Likewise.
33638         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
33639         (CALL_FAIL): Macro removed.
33640         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
33641
33642 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
33643
33644         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
33645         for __FINITE_MATH_ONLY__ == 1.
33646
33647 2011-09-15  Andreas Schwab  <schwab@redhat.com>
33648
33649         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
33650         __ieee754_sqrt instead of sqrt.
33651         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
33652         __ieee754_sqrtf instead of sqrtf.
33653         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
33654         __floorf instead of floorf.
33655         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
33656         __floorf, __truncf instead of floorf, truncf.
33657
33658 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
33659
33660         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
33661
33662         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
33663         __extern_always_inline.
33664         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
33665         32-bit.
33666
33667 2011-09-14  Andreas Schwab  <schwab@redhat.com>
33668
33669         * elf/rtld.c (dl_main): Also relocate in dependency order when
33670         doing symbol dependency testing.
33671
33672 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
33673
33674         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33675         Always define `refsym'.
33676
33677 2011-09-13  Andreas Schwab  <schwab@redhat.com>
33678
33679         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
33680         (__FD_ELT): Renamed from __FDELT.
33681         * misc/bits/select2.h (__FD_ELT): Likewise.
33682         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
33683         __FD_MASK instead of __FDELT, __FDMASK.
33684         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
33685         Likewise.
33686         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
33687         Likewise.
33688
33689         * elf/Makefile (gen-ldd): Fix pattern.
33690
33691         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
33692         (init_tls): Likewise.
33693
33694 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
33695
33696         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
33697
33698 2011-09-12  Andreas Schwab  <schwab@redhat.com>
33699
33700         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
33701         `struct cmsghdr *' instead of `void *'.
33702         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
33703         Likewise.
33704
33705 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
33706
33707         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
33708         if non-absolute.
33709         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
33710         ldd_rewrite_script.
33711
33712 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
33713
33714         * configure.in: Remove --with-tls option.
33715         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
33716         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
33717         out in case it is missing.
33718         * sysdeps/ia64/elf/configure.in: Likewise.
33719         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
33720         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
33721         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
33722         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
33723         * sysdeps/sh/elf/configure.in: Likewise.
33724         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
33725         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
33726         * sysdeps/x86_64/elf/configure.in: Likewise.
33727         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
33728         * sysdeps/mach/hurd/tls.h: Likewise.
33729
33730         [BZ #13067]
33731         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
33732
33733         [BZ #13090]
33734         * configure.in: Fix use of AC_INIT.
33735
33736         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
33737
33738 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
33739
33740         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
33741         __set_errno.
33742         * malloc/hooks.c: Likewise.
33743
33744         [BZ #11929]
33745         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
33746         variables statically.
33747         (narenas): Initialize.
33748         (list_lock): Initialize.
33749         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
33750         initializtion of main_arena and list_lock.  Small cleanups.
33751         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
33752         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
33753         Add initializers to main_arena and mp_.
33754         (malloc_state): Remove pagesize member.  Change all users to use
33755         GLRO(dl_pagesize).
33756
33757         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
33758         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
33759         is always initialized.
33760
33761         * malloc/malloc.c: Removed unused configurations and dead code.
33762         * malloc/arena.c: Likewise.
33763         * malloc/hooks.c: Likewise.
33764         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
33765
33766         * include/tls.h: Removed.  USE___THREAD must always be defined.
33767         * bits/libc-tsd.h: Don't handle !USE___THREAD.
33768         * elf/dl-libc.c: Likewise.
33769         * elf/dl-tsd.c: Likewise.
33770         * include/errno.h: Likewise.
33771         * include/netdb.h: Likewise.
33772         * include/resolv.h: Likewise.
33773         * inet/herrno-loc.c: Likewise.
33774         * inet/herrno.c: Likewise.
33775         * malloc/arena.c: Likewise.
33776         * malloc/hooks.c: Likewise.
33777         * malloc/malloc.c: Likewise.
33778         * resolv/res-state.c: Likewise.
33779         * resolv/res_libc.c: Likewise.
33780         * sysdeps/i386/dl-machine.h: Likewise.
33781         * sysdeps/ia64/dl-machine.h: Likewise.
33782         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
33783         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
33784         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
33785         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
33786         * sysdeps/sh/dl-machine.h: Likewise.
33787         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
33788         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
33789         * sysdeps/unix/i386/sysdep.S: Likewise.
33790         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
33791         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
33792         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
33793         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
33794         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
33795         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
33796         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
33797         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
33798         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
33799         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
33800         * sysdeps/unix/x86_64/sysdep.S: Likewise.
33801         * sysdeps/x86_64/dl-machine.h: Likewise.
33802         * tls.make.c: Likewise.
33803
33804         * configure.in: Remove --with-__thread option.  Make tests for
33805         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
33806         tls_model attribute fail if no support is available.  Remove
33807         USE_IN_LIBIO.
33808         * Makeconfig: Adjust for dropped configure option.  All features are
33809         now mandatory.
33810         * Makerules: Likewise.
33811         * Versions.def: Likewise.
33812         * argp/argp-fmtstream.c: Likewise.
33813         * argp/argp-fmtstream.h: Likewise.
33814         * argp/argp-help.c: Likewise.
33815         * assert/assert.c: Likewise.
33816         * config.h.in: Likewise.
33817         * config.make.in: Likewise.
33818         * configure: Likewise.
33819         * configure.in: Likewise.
33820         * csu/Versions: Likewise.
33821         * csu/init.c: Likewise.
33822         * elf/tst-audit2.c: Likewise.
33823         * elf/tst-tls10.c: Likewise.
33824         * elf/tst-tls10.h: Likewise.
33825         * elf/tst-tls11.c: Likewise.
33826         * elf/tst-tls12.c: Likewise.
33827         * elf/tst-tls14.c: Likewise.
33828         * elf/tst-tlsmod11.c: Likewise.
33829         * elf/tst-tlsmod12.c: Likewise.
33830         * elf/tst-tlsmod13.c: Likewise.
33831         * elf/tst-tlsmod13a.c: Likewise.
33832         * elf/tst-tlsmod14a.c: Likewise.
33833         * elf/tst-tlsmod15b.c: Likewise.
33834         * elf/tst-tlsmod16a.c: Likewise.
33835         * elf/tst-tlsmod16b.c: Likewise.
33836         * elf/tst-tlsmod7.c: Likewise.
33837         * elf/tst-tlsmod8.c: Likewise.
33838         * elf/tst-tlsmod9.c: Likewise.
33839         * gmon/gmon.c: Likewise.
33840         * grp/fgetgrent_r.c: Likewise.
33841         * grp/putgrent.c: Likewise.
33842         * hurd/fopenport.c: Likewise.
33843         * include/libc-symbols.h: Likewise.
33844         * include/tls.h: Likewise.
33845         * intl/gettextP.h: Likewise.
33846         * intl/loadinfo.h: Likewise.
33847         * locale/global-locale.c: Likewise.
33848         * locale/localeinfo.h: Likewise.
33849         * mach/devstream.c: Likewise.
33850         * malloc/arena.c: Likewise.
33851         * malloc/set-freeres.c: Likewise.
33852         * misc/err.c: Likewise.
33853         * misc/getttyent.c: Likewise.
33854         * misc/mntent_r.c: Likewise.
33855         * posix/getopt.c: Likewise.
33856         * posix/wordexp.c: Likewise.
33857         * pwd/fgetpwent_r.c: Likewise.
33858         * resolv/Versions: Likewise.
33859         * resolv/res_hconf.c: Likewise.
33860         * shadow/fgetspent_r.c: Likewise.
33861         * shadow/putspent.c: Likewise.
33862         * stdio-common/printf_fphex.c: Likewise.
33863         * stdio-common/tmpfile.c: Likewise.
33864         * stdlib/abort.c: Likewise.
33865         * stdlib/fmtmsg.c: Likewise.
33866         * sunrpc/auth_unix.c: Likewise.
33867         * sunrpc/clnt_perr.c: Likewise.
33868         * sunrpc/clnt_tcp.c: Likewise.
33869         * sunrpc/clnt_udp.c: Likewise.
33870         * sunrpc/clnt_unix.c: Likewise.
33871         * sunrpc/openchild.c: Likewise.
33872         * sunrpc/svc_simple.c: Likewise.
33873         * sunrpc/svc_tcp.c: Likewise.
33874         * sunrpc/svc_udp.c: Likewise.
33875         * sunrpc/svc_unix.c: Likewise.
33876         * sunrpc/xdr.c: Likewise.
33877         * sunrpc/xdr_array.c: Likewise.
33878         * sunrpc/xdr_rec.c: Likewise.
33879         * sunrpc/xdr_ref.c: Likewise.
33880         * sunrpc/xdr_stdio.c: Likewise.
33881
33882 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
33883
33884         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33885
33886 2011-07-03  Andreas Jaeger  <aj@suse.de>
33887
33888         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
33889         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
33890         regenerate with gen-libm-tests.pl.
33891
33892 2010-05-12  Petr Baudis  <pasky@suse.cz>
33893
33894         [BZ #11589]
33895         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
33896         around j0() zero points by switching to j1().
33897         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33898         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33899         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
33900         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33901
33902 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
33903
33904         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
33905         instead of 0.
33906         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
33907         instead of 0.
33908         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
33909         Patch in part by Pavel Roskin <proski@gnu.org>.
33910
33911         [BZ #13138]
33912         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
33913         realloc.
33914         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
33915         Free memory block if necessary.
33916
33917         [BZ #12847]
33918         * libio/genops.c (INTDEF): For string streams the _lock pointer can
33919         be NULL.  Don't lock in this case.
33920
33921 2011-09-09  Roland McGrath  <roland@hack.frob.com>
33922
33923         * elf/elf.h (ELFOSABI_GNU): New macro.
33924         (ELFOSABI_LINUX): Define to that.
33925
33926 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
33927
33928         * string/strncat.c (strncat): Undef the symbol in case it has been
33929         defined in bits/string.h.
33930
33931 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
33932
33933         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
33934
33935         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
33936         link map.
33937
33938 2011-08-17  Andreas Jaeger  <aj@suse.de>
33939
33940         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
33941
33942 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
33943             Ian Lance Taylor  <iant@google.com>
33944
33945         * math/libm-test.inc (lround_test): New testcase.
33946         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
33947
33948 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
33949
33950         * Makefile: Remove support for automatic cvs check-ins.
33951         * Makerules: Likewise.
33952         * config.make.in: Likewise.
33953         * configure.in: Likewise.
33954         * intl/Makefile: Likewise.
33955         * locale/Makefile: Likewise.
33956         * po/Makefile: Likewise.
33957         * posix/Makefile: Likewise.
33958         * sysdeps/gnu/Makefile: Likewise.
33959         * sysdeps/mach/hurd/Makefile: Likewise.
33960         * sysdeps/sparc/sparc32/Makefile: Likewise.
33961
33962         [BZ #13118]
33963         * posix/Makefile (bug-regex32-ENV): Define.
33964         Patch by John Stanley <jpsinthemix@verizon.net>.
33965
33966         * misc/Makefile (headers): Add bits/select2.h.
33967         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
33968         * misc/bits/select2.h: New file.
33969         * include/bits/select2.h: New file.
33970         * debug/Makefile (routines): Add fdelt_chk.
33971         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
33972         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
33973         FD_ISSET.
33974         * debug/fdelt_chk.c: New file.
33975
33976         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
33977         * wcsmbs/test-wmemcmp.c: Likewise.
33978         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
33979         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
33980
33981 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33982
33983         * string/Makefile (strop-tests): Add memcmp.
33984         * string/test-wmemcmp.c: New file.
33985         * string/test-memcmp.c: Add wmemcmp support.
33986
33987 2011-09-08  Roland McGrath  <roland@hack.frob.com>
33988
33989         [BZ #13153]
33990         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
33991         2011-07-19 change.
33992
33993         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
33994         garbage value in a __mach_port_mod_refs call in the cases of the
33995         task-self and thread-self ports.
33996
33997 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33998
33999         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
34000
34001 2011-09-08  Andreas Schwab  <schwab@redhat.com>
34002
34003         * elf/dl-load.c (lose): Check for non-null L.
34004
34005 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34006
34007         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
34008
34009         * elf/dl-libc.c (dlerror_run): Pass back error code from
34010         dl_catch_error.
34011
34012         [BZ #13123]
34013         * elf/dl-load.c (lose): Free l_origin if it is valid.
34014
34015         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
34016         names.
34017         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
34018         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34019         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34020         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34021         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
34022         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
34023
34024 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34025
34026         * sysdeps/powerpc/fpu/e_hypot.c: New file.
34027         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
34028         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
34029         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
34030         * sysdeps/powerpc/fpu/k_cosf.c: New file.
34031         * sysdeps/powerpc/fpu/k_sinf.c: New file.
34032         * sysdeps/powerpc/fpu/s_cosf.c: New file.
34033         * sysdeps/powerpc/fpu/s_sinf.c: New file.
34034         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
34035         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
34036
34037 2011-08-15  Alan Modra  <amodra@gmail.com>
34038
34039         [BZ #13092]
34040         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
34041         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
34042         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
34043         ppc_mcount to static-only-routines.
34044         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
34045         __mcount_internal.
34046         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
34047         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
34048
34049 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
34050
34051         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
34052         for finite and infinity parameters.
34053
34054 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
34055
34056         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
34057         and add nop instructions for throughput optimization.
34058         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
34059
34060 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
34061
34062         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
34063         aligned copy for power7 with vector-scalar instructions.
34064         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
34065
34066 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
34067
34068         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
34069         AVX check.
34070
34071 2011-09-07  Andreas Schwab  <schwab@redhat.com>
34072
34073         [BZ #13144]
34074         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
34075         last change.
34076
34077 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34078
34079         * sysdeps/unix/sysv/linux/x86_64/init-first.c
34080         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
34081         syscall wrapper around clock_gettime in __vdso_clock_gettime.
34082         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
34083         clock_gettime.
34084
34085 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34086
34087         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
34088         Forgot to demangle the pointer.
34089
34090         * sysdeps/i386/sysdep.h: Define atom_text_section.
34091         * sysdeps/x86_64/sysdep.h: Likewise.
34092         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
34093         section with atom_text_section.
34094         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34095         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34096         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
34097         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34098         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
34099
34100         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
34101         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
34102         already be defined.  Change to take two parameters and don't assign
34103         result to variable.  Adjust all users.
34104         Define INTERNAL_GETTIME if not already defined.
34105         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
34106         call.
34107         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
34108         HAVE_CLOCK_GETTIME_VSYSCALL.
34109         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
34110
34111         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
34112         gettimeofday vsyscall, just use time.
34113
34114 2011-09-06  Andreas Schwab  <schwab@redhat.com>
34115
34116         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
34117         <errno.h>.
34118
34119 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34120
34121         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
34122         syscall on x86-64.
34123         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
34124         syscall.
34125         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
34126         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
34127         syscall if possible.
34128
34129 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34130
34131         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
34132         e_ident.  Don't pass to find_mapsXX.
34133         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
34134
34135 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34136
34137         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34138         strchr-sse2-no-bsf strrchr-sse2-no-bsf
34139         * sysdeps/x86_64/multiarch/strchr.S: Update.
34140         Check bit_slow_BSF bit.
34141         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
34142         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
34143         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
34144
34145 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34146
34147         [BZ #13134]
34148         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
34149         before glibc 2.15.
34150         (tryshell): Define.
34151         (__spawni): Change last parameter to be flag.  Test
34152         SPAWN_XFLAGS_USE_PATH flag to use path or not.
34153         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
34154         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
34155         * posix/spawni.c: Likewise.
34156         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
34157         * posix/spawnp.c: Likewise.  Change normal version to use
34158         SPAWN_XFLAGS_USE_PATH.
34159         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
34160         SPAWN_XFLAGS_TRY_SHELL.
34161
34162         [BZ #13150]
34163         * posix/glob.h: Remove gcc 1.x support.
34164
34165         [BZ #13068]
34166         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
34167
34168 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34169
34170         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34171         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
34172         strrchr-sse2-bsf
34173         * sysdeps/i386/i686/multiarch/strchr.S: New file.
34174         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
34175         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
34176         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
34177         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
34178         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
34179
34180 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34181
34182         * sysdeps/x86_64/wcscmp.S: New file.
34183
34184         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
34185         wcscmp-c wcscmp-sse2
34186         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
34187         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
34188         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
34189         * wcsmbs/wcscmp.c: Allow renaming.
34190
34191 2011-09-05  David S. Miller  <davem@davemloft.net>
34192
34193         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
34194         stack slot, rather than the struct return pointer slot.
34195         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
34196         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
34197         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
34198         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
34199
34200 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34201
34202         * po/ja.po: Update from translation team.
34203
34204         [BZ #13144]
34205         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
34206         kernel in 64-bit binaries.
34207
34208 2011-09-01  David S. Miller  <davem@davemloft.net>
34209
34210         * elf/elf.h (HWCAP_SPARC_*): Move to..
34211         * sysdeps/sparc/sysdep.h: this new file and add new values.
34212         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
34213         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
34214         _DL_HWCAP_COUNT to 24.
34215         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
34216         entries.
34217         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
34218         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
34219         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
34220         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
34221         instead of magic constants.
34222         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
34223
34224 2011-08-31  David S. Miller  <davem@davemloft.net>
34225
34226         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
34227         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
34228         Reimplement to do errno handling inline.
34229         (SYSCALL_ERROR_HANDLER): New macro.
34230         (__SYSCALL_STRING): Do not do errno handling in asm.
34231         (__CLONE_SYSCALL_STRING): Delete.
34232         (__INTERNAL_SYSCALL_STRING): Delete.
34233         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
34234         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
34235         (PSEUDO): Reimplement to do errno handling inline.
34236         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
34237         (SYSCALL_ERROR_HANDLER): New macro.
34238         (__SYSCALL_STRING): Do not do errno handling in asm.
34239         (__CLONE_SYSCALL_STRING): Delete.
34240         (__INTERNAL_SYSCALL_STRING): Delete.
34241         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
34242         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
34243         i386.
34244         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
34245         (inline_syscall*): Add 'err' argument.
34246         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
34247         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
34248         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
34249         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
34250
34251         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
34252         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34253
34254 2011-08-30  Andreas Schwab  <schwab@redhat.com>
34255
34256         * elf/rtld.c (dl_main): Relocate objects in dependency order.
34257
34258 2011-08-29  Jiri Olsa <jolsa@redhat.com>
34259
34260         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
34261         directive.
34262
34263 2011-08-24  David S. Miller  <davem@davemloft.net>
34264
34265         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
34266
34267 2011-08-24  Andreas Schwab  <schwab@redhat.com>
34268
34269         * elf/Makefile: Add rules to build and run unload8 test.
34270         * elf/unload8.c: New file.
34271         * elf/unload8mod1.c: New file.
34272         * elf/unload8mod1x.c: New file.
34273         * elf/unload8mod2.c: New file.
34274         * elf/unload8mod3.c: New file.
34275
34276         * elf/dl-close.c (_dl_close_worker): Reset private search list if
34277         it wasn't used.
34278
34279 2011-08-23  David S. Miller  <davem@davemloft.net>
34280
34281         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
34282         subtract stack bias.
34283         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
34284         %sp not %fp in calculations.
34285         (_JMPBUF_UNWINDS_ADJ): Likewise.
34286
34287         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
34288         (aio_suspend): Call it to force an exception region around the
34289         AIO_MISC_WAIT() invocation.
34290
34291 2011-08-23  Andreas Schwab  <schwab@redhat.com>
34292
34293         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
34294         backslash.
34295
34296 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
34297
34298         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
34299         protection macro.
34300         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
34301         and <dl-machine.h>.
34302         (Elf64_FuncDesc): Remove.
34303
34304 2011-08-22  David S. Miller  <davem@davemloft.net>
34305
34306         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
34307         sigaltstack check, add missing cfi directives.
34308         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
34309         missing cfi directives, and sigaltstack handling.
34310
34311 2011-08-16  Andreas Schwab  <schwab@redhat.com>
34312
34313         [BZ #11724]
34314         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
34315         object is seen twice.
34316         * elf/dl-fini.c (_dl_sort_fini): Likewise.
34317
34318         * elf/Makefile (distribute): Add tst-initorder2.c.
34319         (tests): Add tst-initorder2.
34320         (modules-names): Add tst-initorder2a tst-initorder2b
34321         tst-initorder2c tst-initorder2d.  Add rules to build them.
34322         ($(objpfx)tst-initorder2.out): New rule.
34323         * elf/tst-initorder2.c: New file.
34324         * elf/tst-initorder2.exp: New file.
34325
34326 2011-08-22  Andreas Schwab  <schwab@redhat.com>
34327
34328         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
34329
34330         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
34331         dependencies back to end of function.
34332
34333         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
34334         $(elfobjdir)/ld.so.
34335
34336 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
34337
34338         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
34339         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
34340         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
34341         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
34342         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
34343         of __vdso_gettimeofday.
34344         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
34345         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
34346         attribute_hidden.
34347         (_libc_vdso_platform_setup): Remove initialization of
34348         __vdso_gettimeofday and __vdso_time.
34349
34350 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34351
34352         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
34353         and fgetc_unlocked.
34354         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
34355         getc_unlocked.
34356
34357         * elf/dl-open.c (add_to_global): Report additions to the global scope
34358         for LD_DEBUG=scopes.
34359         (dl_open_worker): Also print scope of newly loaded dependencies.
34360         (_dl_show_scope): Indicate if there is no scope.
34361
34362         [BZ #13114]
34363         * stdio-common/Makefile (tests): Add bug24.
34364         * stdio-common/bug24.c: New file.
34365
34366 2011-08-19  Andreas Jaeger  <aj@suse.de>
34367
34368         [BZ #13114]
34369         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
34370         non-existant file when using close-on-exec mode.
34371
34372 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34373
34374         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
34375         the very first instruction.
34376
34377         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
34378         the CFI state in the end.
34379         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
34380         inclusion of dl-trampoline.h.
34381         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
34382
34383 2011-08-19  Andreas Schwab  <schwab@redhat.com>
34384
34385         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
34386         expectations for long double.
34387
34388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
34389         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
34390
34391 2011-08-14  David S. Miller  <davem@davemloft.net>
34392
34393         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
34394         artificual limit depends upon the system page size.
34395
34396 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34397
34398         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
34399         * resolv/Makefile: Define CFLAGS-libresolv.
34400
34401 2011-08-17  Andreas Schwab  <schwab@redhat.com>
34402
34403         * nss/makedb.c (compute_tables): Make variables used in nested
34404         function static.
34405
34406 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34407
34408         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
34409         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
34410         if buffer was too small.
34411
34412         * elf/pldd.c (main): Attach to all threads in the process.
34413         Rewrite /proc handling to use *at functions.
34414
34415 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
34416
34417         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
34418         specifies first scope to show.
34419         (dl_open_worker): Update callers.  Move printing scope of new
34420         object to before the relocation.
34421         * elf/rtld.c (dl_main): Update _dl_show_scope call.
34422         * sysdeps/generic/ldsodefs.h: Update declaration.
34423
34424         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
34425         string for the scope number.
34426
34427 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
34428
34429         * nscd/servicescache.c (cache_addserv): Make sure written is always
34430         initialized.
34431
34432 2011-08-14  Roland McGrath  <roland@hack.frob.com>
34433
34434         * sysdeps/i386/i486/bits/atomic.h
34435         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
34436         statement expression, so as to suppress "set but not used" warning.
34437         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
34438
34439         * string/strncat.c (STRNCAT): Use prototype definition.
34440
34441         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
34442         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
34443         -Iprograms here.
34444         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
34445         (localedef-modules): Add localedef.
34446         (locale-modules): Add locale.
34447
34448         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
34449         * elf/rtld.c (dl_main): Invert order of assignment in last change,
34450         to avoid a warning.
34451
34452 2011-08-14  David S. Miller  <davem@davemloft.net>
34453
34454         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
34455         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
34456
34457 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
34458
34459         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
34460         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
34461         * elf/rtld.c (dl_main): Set l_name of vDSO.
34462         Call _dl_show_scope when DL_DEBUG_SCOPES.
34463         (process_dl_debug): Recognize scopes flag and also set it for all.
34464         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
34465         Declare _dl_show_scope.
34466
34467         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
34468         (do_dlopen): Pass caller_dlopen to dl_open.
34469         (__libc_dlopen_mode): Initialize caller_dlopen.
34470
34471         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
34472         of libc.  Make tolower call locale-independent.  Optimize a bit by
34473         using isdigit instead of isalnum.
34474         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
34475
34476 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
34477
34478         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
34479         was a dependency or dynamically loaded.
34480
34481 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
34482
34483         * intl/l10nflist.c: Allow architecture-specific pop function.
34484         * sysdeps/x86_64/l10nflist.c: New file.
34485
34486         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
34487         classification.
34488
34489 2011-08-10  Andreas Schwab  <schwab@redhat.com>
34490
34491         * include/dirent.h: Add libc_hidden_proto for scandirat and
34492         scandirat64.  Don't declare __scandirat64.
34493         * dirent/scandirat.c: Add libc_hidden_def.
34494         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
34495         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
34496
34497 2011-08-10  David S. Miller  <davem@davemloft.net>
34498
34499         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
34500         enum.
34501         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34502         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34503         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34504
34505 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
34506
34507         * Versions.def [libc]: Add GLIBC_2.15.
34508         * dirent/Makefile (routines): Add scandirat and scandirat64.
34509         * dirent/Versions [libc]: Export scandirat and scandirat64 for
34510         GLIBC_2.15.
34511         * dirent/dirent.h: Declare scandirat and scandirat64.
34512         * dirent/scandirat.c: New file.
34513         * dirent/scandirat64.c: New file.
34514         * sysdeps/wordsize-64/scandirat.c: New file.
34515         * sysdeps/wordsize-64/scandirat64.c: New file.
34516         * dirent/opendir.c: Define opendirat.
34517         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
34518         using scandirat.
34519         * dirent/scandir64.c: Adjust for scandir.c change.
34520         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
34521         __scandirat64, and __scandir_cancel_handler.
34522         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
34523         additional parameter and use openat instead of open (outside of ld.so).
34524         Add new __opendir as wrapper around __opendirat.
34525         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
34526         here without requiring old scandirat implementation.
34527
34528 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
34529
34530         * dirent/scandir.c (cancel_handler): Renamed to
34531         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
34532         defined.  Adjust users.
34533         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
34534         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
34535
34536 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
34537
34538         * string/test-string.h (IMPL): Use __STRING to expand name and then
34539         stringify it.
34540
34541         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
34542         of cleanups.
34543
34544 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34545
34546         * string/Makefile: Update.
34547         (strop-tests): Append strncat.
34548         * string/test-wcscmp.c: New file.
34549         New comprehensive test for wcscmp.
34550         * string/test-strcmp.c: Update.
34551         (WIDE): New define.
34552
34553 2011-07-22  Andreas Schwab  <schwab@redhat.com>
34554
34555         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
34556         line.
34557
34558 2011-07-26  Andreas Schwab  <schwab@redhat.com>
34559
34560         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
34561         encoding to ACE if AI_IDN.
34562
34563 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
34564
34565         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
34566         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
34567
34568 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34569
34570         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
34571         Fix overflow bug in strncat.
34572         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
34573
34574         * string/test-strncat.c: Update.
34575         Add new tests for checking overflow bugs.
34576
34577 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34578
34579         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34580         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
34581         * sysdeps/i386/i686/multiarch/strcat.S: New file.
34582         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
34583         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
34584         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
34585         * sysdeps/i386/i686/multiarch/strncat.S: New file.
34586         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
34587         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
34588
34589         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
34590         (USE_AS_STRCAT): Define.
34591         Add strcat and strncat support.
34592         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34593
34594 2011-07-25  Andreas Schwab  <schwab@redhat.com>
34595
34596         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
34597         __n bigger than INT_MAX+1.
34598         (__strncmp_g): Likewise.
34599
34600 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
34601
34602         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
34603         * libio/stido.h: Likewise.
34604
34605         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
34606         (AF_NFC): Define.
34607         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
34608         (AF_NFC): Define.
34609
34610         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
34611         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34612         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34613         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34614         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34615
34616         [BZ #13021]
34617         * scripts/test-installation.pl: Don't expect libnss_test1 to be
34618         installed.
34619
34620         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
34621         typo.
34622         (_dl_x86_64_save_sse): Likewise.
34623
34624 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
34625
34626         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
34627         OSXSAVE.
34628         (_dl_x86_64_save_sse): Likewise.
34629
34630         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
34631
34632         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
34633
34634 2011-07-21  Andreas Schwab  <schwab@redhat.com>
34635
34636         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
34637         change.
34638         (_dl_x86_64_save_sse): Use correct AVX check.
34639
34640 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34641
34642         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
34643         bug in strncpy/strncat.
34644         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
34645
34646 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
34647
34648         * string/tester.c (test_strcat): Add tests for different alignments
34649         of source and destination.
34650         (test_strncat): Likewise.
34651
34652 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
34653
34654         [BZ #12852]
34655         * posix/glob.c (glob): Check passed in values before using them in
34656         expressions to avoid some overflows.
34657         (glob_in_dir): Likewise.
34658
34659         [BZ #13007]
34660         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
34661         check for AVX enablement so that we don't crash with old kernels and
34662         new hardware.
34663         * elf/tst-audit4.c: Add same checks here.
34664         * elf/tst-audit6.c: Likewise.
34665
34666         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
34667
34668 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
34669
34670         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
34671
34672 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
34673
34674         * po/cs.po: Update from translation team.
34675         * po/bg.po: Likewise.
34676
34677 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
34678
34679         * misc/sys/cdefs.h: Add support for const attribute.
34680         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
34681         to gnu_dev_{major,minor,makedev} functions.
34682
34683 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
34684
34685         * intl/dcigettext.c (get_output_charset): Add missing bracket.
34686
34687 2011-07-20  Andreas Schwab  <schwab@redhat.com>
34688
34689         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
34690         strlen results.
34691
34692 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34693
34694         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
34695         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
34696         register in order to avoid conflicts with the soft frame pointer
34697         being held in r11 when necessary.
34698         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
34699         (INTERNAL_VSYSCALL_NCS): Likewise.
34700
34701 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
34702
34703         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
34704         * elf/dl-fini.c (_dl_fini): Adjust caller.
34705         * elf/dl-close.c (_dl_close_worker): Likewise.
34706         * sysdeps/generic/ldsodefs.h: Adjust declaration.
34707
34708 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
34709
34710         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
34711         "aux_cache->nlibs < 0".
34712
34713         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
34714         in the reload-count case.
34715
34716 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34717
34718         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34719         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
34720         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
34721         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
34722         * sysdeps/x86_64/multiarch/strcat.S: New file.
34723         * sysdeps/x86_64/multiarch/strncat.S: New file.
34724         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
34725         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
34726         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
34727         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
34728         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
34729         (USE_AS_STRCAT): Define.
34730         Add strcat and strncat support.
34731         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34732         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
34733         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
34734         * string/strncat.c: Update.
34735         (USE_AS_STRNCAT): Define.
34736         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34737         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
34738         and i7.
34739         * sysdeps/x86_64/multiarch/init-arch.h
34740         (bit_Prefer_PMINUB_for_stringop): New.
34741         (index_Prefer_PMINUB_for_stringop): Likewise.
34742         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
34743         bit_Prefer_PMINUB_for_stringop.
34744
34745 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
34746
34747         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
34748         buffer64.
34749         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
34750         of casting of buffer.
34751         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
34752         buffer32 and buffer64.
34753         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
34754         writes instead of casting of buffer.
34755         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
34756         buffer32.
34757         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
34758         casting of buffer.
34759
34760 2011-07-19  Andreas Schwab  <schwab@redhat.com>
34761
34762         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
34763
34764 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
34765
34766         * nscd/nscd.c (termination_handler): Don't do anything for a database
34767         if it has not yet been initialized.
34768
34769 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
34770
34771         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
34772
34773 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
34774
34775         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
34776
34777 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
34778
34779         * po/nl.po: Update from translation team.
34780         * po/sv.po: Likewise.
34781
34782 2011-07-16  Roland McGrath  <roland@hack.frob.com>
34783
34784         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
34785         now disallowed by GCC.
34786
34787         * configure.in (use-default-link): Default to yes if a test -shared
34788         link meets our qualifications.
34789         * configure: Regenerated.
34790
34791         * config.make.in (output-format): New variable.
34792         * configure.in: Check for ld --print-output-format support.
34793         * configure: Regenerated.
34794         * Makerules ($(common-objpfx)format.lds)
34795         [$(output-format) != unknown]: Just use $(output-format),
34796         instead of the linker-script munging.
34797
34798 2011-07-14  Roland McGrath  <roland@hack.frob.com>
34799
34800         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
34801         of $(common-objpfx)shlib.lds.
34802         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
34803
34804         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
34805         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
34806
34807         * configure.in (-z relro check): Adjust test code to add a large
34808         writable data section after it.
34809         * configure: Regenerated.
34810
34811 2011-07-11  Roland McGrath  <roland@hack.frob.com>
34812
34813         * configure.in (-z relro check): Fix test code to make the variable
34814         truly const.
34815         * configure: Regenerated.
34816
34817 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
34818
34819         * nscd/nscd.h (struct traced_file): Define.
34820         (struct database_dyn): Remove inotify_descr, reset_res, and filename
34821         elements.  Add traced_files.
34822         (inotify_fd): Declare.
34823         (register_traced_file): Declare.
34824         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
34825         (inotify_fd): Export.
34826         (resolv_conf_descr): Remove.
34827         (nscd_init): Move inotify descriptor creation to main.
34828         Don't register files for notification here.
34829         (register_traced_file): New function.
34830         (invalidate_cache): Don't use reset_res to determine whether to call
34831         res_init, go through the list of registered files.
34832         (main_loop_poll): The inotify descriptors are now stored in the
34833         structures for the traced files.
34834         (main_loop_epoll): Likewise
34835         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
34836         to __nss_disable_nscd.
34837         * nscd/cache.c (prune_cache): There is no single inotify descriptor
34838         for a database anymore.  Check the records for all the registered
34839         files instead.
34840         * nss/Makefile (libnss_files-routines): Add files-init.
34841         (libnss_db-routines): Add db-init.
34842         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
34843         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
34844         * nss/nss_db/db-init.c: New file.
34845         * nss/nss_files/files-init.c: New file.
34846         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
34847         __nss_lookup_function.
34848         (__nss_lookup_function): Call nss_load_library.
34849         (nss_load_all_libraries): New function.
34850         (__nss_disable_nscd): Take parameter with callback function for files
34851         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
34852         used for the cached services.
34853         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
34854         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
34855         options for features to all the files in nscd.
34856
34857         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
34858
34859 2011-07-10  Roland McGrath  <roland@hack.frob.com>
34860
34861         * csu/elf-init.c (__libc_csu_init): Comment typo.
34862
34863 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
34864
34865         * po/pl.po: Update from translation team.
34866         * po/ja.po: Likewise.
34867         * po/ru.po: Likewise.
34868         * po/ko.po: Likewise.
34869         * po/fr.po: Likewise.
34870
34871 2011-07-09  Roland McGrath  <roland@hack.frob.com>
34872
34873         * configure.in (.ctors/.dtors header and trailer check):
34874         Use an empirical test on a built program.
34875         * configure: Regenerated.
34876
34877         * configure.in (-z relro check): Use an empirical test on a built DSO.
34878         Detect, but do not require, on ia64.
34879         * configure: Regenerated.
34880
34881         * configure.in (READELF): Find it with AC_CHECK_TOOL.
34882         Update tests that use readelf to use $READELF instead.
34883         * configure: Regenerated.
34884
34885 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
34886
34887         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
34888         if the result is not used.
34889
34890 2011-07-05  Andreas Jaeger  <aj@suse.de>
34891
34892         [BZ#9696]
34893         * stdlib/tst-strtod.c: Add testcase.
34894
34895 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
34896
34897         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
34898         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
34899         The latter has a higher limit.  Take additional parameter to pass to
34900         the new function.
34901         (__pathconf): Pass file to __statfs_link_max.
34902         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
34903         __statfs_link_max.
34904         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
34905         __statfs_link_max.
34906
34907         [BZ #12868]
34908         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
34909         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
34910         Handle Lustre.
34911         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
34912         (__statfs_filesize_max): Likewise.
34913         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
34914
34915 2011-07-05  Andreas Jaeger  <aj@suse.de>
34916
34917         * resolv/res_comp.c (dn_skipname): Remove unused variable.
34918
34919 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
34920
34921         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
34922         `status' variable.
34923         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
34924         Likewise.
34925
34926 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
34927
34928         * Makefile (strop-tests): Add strncat.
34929         * string/test-strncat.c: New file.
34930
34931 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
34932
34933         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
34934
34935 2011-06-21  Andreas Jaeger  <aj@suse.de>
34936
34937         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
34938         Copy rule from iconvdata/Makefile.
34939
34940 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
34941
34942         [BZ #12922]
34943         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
34944         but no long options are defined, just return 'W'.
34945
34946 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
34947
34948         [BZ #9696]
34949         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
34950
34951 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
34952
34953         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
34954         netgroups to read.
34955         (innetgr): Likewise.
34956
34957 2011-07-05  Roland McGrath  <roland@hack.frob.com>
34958
34959         * config.make.in (install_root): Default to $(DESTDIR).
34960
34961 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
34962
34963         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
34964
34965 2011-07-02  Roland McGrath  <roland@hack.frob.com>
34966
34967         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
34968
34969         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
34970         containing directory rather than embedding absolute directory names.
34971
34972         * scripts/check-local-headers.sh: Rewritten using awk.
34973         Match by word, not by line.  Print error messages for matches.
34974         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
34975
34976         * Makerules [shlib-lds-flags empty]:
34977         ($(common-objpfx)libc_pic.opts): New target.
34978         ($(common-objpfx)libc_pic.os.clean): New target.
34979         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
34980
34981         * config.make.in (OBJCOPY): New variable.
34982         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
34983         * configure: Regenerated.
34984
34985         * config.make.in (use-default-link): New variable.
34986         * configure.in (use_default_link): Grok --with-default-link to set it.
34987         * configure: Regenerated.
34988         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
34989         (shlib-lds, shlib-lds-flags): Define to empty.
34990
34991         * Makerules (shlib-lds): New variable.
34992         (shlib-lds-flags): New variable.
34993         (build-shlib, build-moduile, build-module-asneeded): Use it.
34994         ($(common-objpfx)libc.so): Use $(shlib-lds).
34995         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
34996         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
34997
34998         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
34999         DT_FLAGS/DT_FLAGS_1 with zero flags.
35000
35001         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
35002         linker script munging.
35003
35004 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
35005
35006         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
35007         as 128-bit value.
35008         * crypt/sha512.c (sha512_process_block): Perform total addition using
35009         128-bit if possible.
35010         (__sha512_finish_ctx): Likewise.
35011         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
35012         as 64-bit value.
35013         * crypt/sha256.c (SWAP64): Define.
35014         (sha256_process_block): Perform total addition using 64-bit if
35015         possible.
35016         (__sha256_finish_ctx): Likewise.
35017
35018 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
35019
35020         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
35021         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35022         * nscd/hstcache.c (cache_addhst): Likewise.
35023         * nscd/grpcache.c (cache_addgr): Likewise.
35024         * nscd/aicache.c (addhstaiX): Likewise
35025         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
35026
35027 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
35028
35029         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
35030         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35031         * nscd/hstcache.c (cache_addhst): Likewise.
35032         * nscd/grpcache.c (cache_addgr): Likewise.
35033         * nscd/aicache.c (addhstaiX): Likewise
35034
35035 2011-07-01  Andreas Schwab  <schwab@redhat.com>
35036
35037         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
35038         domain only when needed.
35039
35040 2011-06-30  Andreas Schwab  <schwab@redhat.com>
35041
35042         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
35043         is always restored.
35044
35045 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
35046
35047         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
35048         are re-adding the entry.
35049         * nscd/servicescache.c (cache_addserv): Likewise.
35050
35051 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
35052
35053         * sysdeps/generic/dl-irel.h: fix protection against multiple
35054         inclusions.
35055         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
35056
35057 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
35058
35059         [BZ #12935]
35060         * malloc/memusage.sh: Fix quoting in message.
35061         * debug/xtrace.sh: Likewise.
35062
35063         * configure.in: Remove support for --experimental-malloc option, make
35064         it the default.
35065         * config.make.in: Likewise.
35066         * malloc/Makefile: Likewise.
35067
35068 2011-06-27  Andreas Schwab  <schwab@redhat.com>
35069
35070         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
35071         two-byte characters.
35072
35073 2011-06-27  Roland McGrath  <roland@hack.frob.com>
35074
35075         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
35076         AC_CACHE_CHECK invocation.
35077         * configure: Regenerated.
35078
35079         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
35080
35081 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
35082
35083         [BZ #12350]
35084         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
35085         bit from old_res_options.
35086
35087         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
35088
35089         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
35090         value type for setfct.
35091
35092 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
35093
35094         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35095         __gettimeofday instead of gettimeofday.
35096
35097 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
35098
35099         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
35100
35101 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
35102
35103         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
35104
35105         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
35106         info.
35107
35108 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35109
35110         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35111         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35112         strcpy-sse2-unaligned strncpy-sse2-unaligned
35113         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
35114         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
35115         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
35116         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
35117         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
35118         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
35119         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
35120         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
35121         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
35122         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
35123         (STRCPY): Support SSE2 and SSSE3 versions.
35124
35125 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
35126
35127         [BZ #12874]
35128         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
35129         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
35130         kernels which artificially limit size of requests.
35131
35132 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35133
35134         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35135         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35136         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
35137         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
35138         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
35139         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
35140         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
35141         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
35142         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
35143         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
35144         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
35145         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
35146         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
35147         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
35148         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
35149         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35150         Enable unaligned load optimization for Intel Core i3, i5 and i7
35151         processors.
35152         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
35153         Define.
35154         (index_Fast_Unaligned_Load): Define.
35155         (HAS_FAST_UNALIGNED_LOAD): Define.
35156
35157 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
35158
35159         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
35160
35161 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35162
35163         [BZ #12907]
35164         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
35165         until it is clear that the information is realy needed.
35166         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
35167
35168 2011-06-22  Andreas Schwab  <schwab@redhat.com>
35169
35170         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
35171
35172 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35173
35174         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35175         /sys/devices/system/cpu/online if it is usable.
35176
35177         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
35178         reading the information from the /proc filesystem to once a second.
35179
35180 2011-06-21  Andreas Jaeger  <aj@suse.de>
35181
35182         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
35183         NULL after inclusion of kernel headers.
35184
35185 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
35186
35187         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
35188         calls to internal_setent.
35189
35190         [BZ #12885]
35191         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
35192         addresses using gethostbyname4_r ignore IPv4 addresses.
35193
35194         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
35195         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
35196
35197         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
35198
35199 2011-06-20  David S. Miller  <davem@davemloft.net>
35200
35201         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
35202         inclusions.
35203         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
35204
35205         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
35206         (elf_irel): Use it.
35207         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
35208         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
35209         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
35210         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
35211         * sysdeps/x86_64/dl-irel.h: Likewise.
35212
35213         * elf/dl-runtime.c: Use elf_ifunc_invoke.
35214         * elf/dl-sym.c: Likewise.
35215
35216 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35217
35218         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
35219         need to dereference resplen2.
35220
35221 2011-06-14  Andreas Schwab  <schwab@redhat.com>
35222
35223         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
35224
35225 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35226
35227         * Makeconfig: Define vardbdir and inst_vardbdir.
35228         * nss/Makefile: Add rules to install db-Makefile.
35229
35230         * nss/nss_db/db-XXX.c: Cleanup.
35231
35232         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
35233         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
35234         GLIBC_PRIVATE.
35235         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
35236         * nss/makedb.c: Implement -g option to specify that value strings
35237         are generated and should not be added to table iterated over for
35238         get*ent calls.
35239         * nss/nss_db/db-initgroups.c: New file.
35240
35241         * nss/getent.c: Add support for initgroups lookups through getgrouplist
35242         interface.
35243
35244         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
35245         (internal_getgrouplist): Adjust to name change.
35246         Update use_initgroups_entry if this is not the first call.
35247         * nss/databases.def: Add initgroups entry.
35248
35249         * nss/makedb.c (compute_tables): Check result of multiple hash table
35250         sizes to minimize maximum chain length.
35251
35252 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
35253
35254         * Versions.def: Add entry for libnss_db.
35255         * shlib-versions: Likewise.
35256         * nss/Makefile: Add rules to build libnss_db.
35257         * nss/Versions: Add libnss_db information.  Organize libnss_files
35258         entries better.
35259         * nss/db-Makefile: Add gshadow support.  Change rules for the new
35260         makedb progra.  Some minor improvements to generate smaller files.
35261         * nss/nss_db/nss_db.h: Move NSS database header data structures to
35262         here from...
35263         * nss/makedb.c: ...here.
35264         Improve database format to be smaller and require less memory at
35265         runtime.
35266         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
35267         db anymore.
35268         * nss/nss_db/db-netgrp.c: Likewise.
35269         * nss/nss_db/db-open.c: Likewise.
35270         * nss/nss_files/flies-XXX.x: Adjust comments.
35271         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
35272         * nss/nss_files/files-grp.c: Likewise.
35273         * nss/nss_files/files-hosts.c: Likewise.
35274         * nss/nss_files/files-network.c: Likewise.
35275         * nss/nss_files/files-proto.c: Likewise.
35276         * nss/nss_files/files-pwd.c: Likewise.
35277         * nss/nss_files/files-rpc.c: Likewise.
35278         * nss/nss_files/files-service.c: Likewise.
35279         * nss/nss_files/files-sgrp.c: Likewise.
35280         * nss/nss_files/files-spwd.c: Likewise.
35281         * nss/nss_db/db-alias.c: Removed.
35282         * nss/nss_db/dummy-db.h: Removed.
35283
35284 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
35285
35286         * nss/makedb.c: Rewritten to not use database library.
35287         * nss/Makefile: Update to build new makedb program.
35288
35289 2011-06-14  Andreas Jaeger  <aj@suse.de>
35290
35291         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
35292         memset declaration.
35293
35294 2011-06-10  Andreas Schwab  <schwab@redhat.com>
35295
35296         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
35297         tmpbuf.
35298
35299 2011-06-10  Roland McGrath  <roland@hack.frob.com>
35300
35301         * Makerules (shlib.lds): Fail if the linker script comes out empty.
35302         * elf/Makefile ($(objpfx)ld.so): Likewise.
35303
35304         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
35305         Don't list ld.so twice in dependencies.
35306
35307         * posix/bug-regex31.c: Include <stdlib.h>.
35308
35309         * nscd/hstcache.c (cache_addhst): Remove unused variable.
35310
35311         * nis/nss_compat/compat-spwd.c
35312         (getspent_next_nss_netgr): Remove unused variable.
35313         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
35314
35315         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
35316         nonmembers" output to use the right array.
35317
35318         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
35319
35320         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
35321
35322         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
35323         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
35324         * catgets/gencat.c (read_input_file): Likewise.
35325         * locale/programs/locarchive.c (enlarge_archive): Likewise.
35326
35327         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
35328         variable definition inside #if's controlling its use.
35329
35330         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
35331
35332         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
35333
35334         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
35335
35336         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
35337         unreachable code.
35338
35339         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
35340
35341         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
35342         * configure: Regenerated.
35343
35344         * Makerules: Revert last change.
35345         * elf/Makefile: Likewise.
35346
35347 2011-06-09  Roland McGrath  <roland@hack.frob.com>
35348
35349         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
35350         * elf/Makefile ($(objpfx)librtld.os): Likewise.
35351         (reloc-link): Likewise.
35352
35353 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
35354
35355         * elf/Makefile: Add rules to build pldd.
35356         * elf/pldd.c: New file.
35357         * elf/pldd-xx.c: New file.
35358
35359 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
35360
35361         * version.h: Update for 2.15 development version.
35362
35363 2011-06-07  David S. Miller  <davem@davemloft.net>
35364
35365         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
35366         ifuncs.
35367         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
35368         elf_machine_lazy_rel): Likewise.
35369         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
35370         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
35371         elf_machine_lazy_rel): Likewise.
35372         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
35373         dl_hwcap via passed in argument.
35374         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
35375         Likewise.
35376
35377 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35378
35379         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
35380
35381 2011-06-06  Roland McGrath  <roland@hack.frob.com>
35382
35383         [BZ #12849]
35384         * manual/fdl-1.1.texi: New file, verbatim from:
35385         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
35386         * manual/lgpl-2.1.texi: New file, verbatim from:
35387         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
35388         * manual/Makefile (licenses): New variable, list those new file names.
35389         (texis): Use it.
35390         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
35391
35392         * manual/fdl.texi: File removed.
35393         * manual/lesser.texi: File removed.
35394         * manual/libc.texinfo (Copying, Documentation License):
35395         Use new @include file names, put @appendix directive before @include.
35396
35397 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
35398
35399         [BZ #12841]
35400         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
35401         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
35402         (mq_open): Add __NTH.
35403
35404 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
35405
35406         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35407         Assume Intel Core i3/i5/i7 processor if AVX is available.
35408
35409 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35410
35411         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
35412         typo.
35413
35414 2011-05-31  Andreas Schwab  <schwab@redhat.com>
35415
35416         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
35417         memory.  Use alloca_account.  Fix memory leak when retrying.
35418
35419 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35420
35421         * version.h (RELEASE): Bump for 2.14 release.
35422         * include/features.h (__GLIBC_MINOR__): Bump to 14.
35423
35424         * config.make.in (RANLIB): Remove entry.
35425
35426 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
35427
35428         * po/Makefile (po-sed-cmd): Add ksh to extensions.
35429         (libc.pot): Work around missing support for .ksh extension in xgettext.
35430
35431         [BZ #12684]
35432         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
35433         if both request failed.
35434         (send_dg): In case of server errors clear resplen or *resplen2.
35435
35436         [BZ #12454]
35437         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
35438         when there are multiple maps.
35439         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
35440         (_dl_fini): Remove test here.
35441
35442         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
35443
35444 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
35445
35446         [BZ #12350]
35447         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
35448         bit from old_res_options.
35449         (gaih_inet): Likewise.
35450
35451         [BZ #11099]
35452         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
35453         as signed.
35454
35455         * resolv/res_init.c (res_setoptions): Make the code more compact.
35456
35457         [BZ #11558]
35458         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
35459         set RES_USEVC.
35460
35461         [BZ #11634]
35462         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
35463
35464         * malloc/malloc.h: Mark malloc hook variables as deprecated.
35465
35466         [BZ #11781]
35467         * malloc/malloc.h: Declare malloc hook variables as volatile.
35468
35469         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
35470         in last patch.
35471
35472         [BZ #11799]
35473         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
35474         raise in the comment.
35475         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
35476         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
35477         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
35478
35479 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
35480
35481         [BZ #12811]
35482         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
35483         grow the buffers more if it already has to be sufficient.
35484         (build_wcs_upper_buffer): Likewise.
35485         * posix/regexec.c (check_matching): Likewise.
35486         (clean_state_log_if_needed): Likewise.
35487         (extend_buffers): Don't enlarge buffers beyond size of the input
35488         buffer.
35489         Patches mostly by Emil Wojak <emil@wojak.eu>.
35490         * posix/bug-regex32.c: New file.
35491         * posix/Makefile (tests): Add bug-regex32.
35492
35493         * locale/findlocale.c (_nl_find_locale): Return right away if
35494         _nl_explode_name failed.
35495         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
35496
35497         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
35498
35499         * debug/xtrace.sh: Unify messages.
35500         * malloc/memusage.sh: Likewise.
35501
35502         [BZ #12813]
35503         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
35504         time symbol from vDSO.  Substitute with vsyscall if not available.
35505         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
35506         __vdso_time.
35507
35508         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
35509         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
35510         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
35511         Add sendmmsg and internal_sendmmsg.
35512         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
35513         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
35514         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
35515
35516         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
35517         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
35518         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
35519
35520 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
35521
35522         [BZ #12813]
35523         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
35524         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
35525         available.
35526         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
35527         __vdso_getcpu.
35528
35529         [BZ #12814]
35530         * iconvdata/Makefile (tests): Add bug-iconv9.
35531         * iconvdata/bug-iconv9.c: New file.
35532
35533 2011-05-27  Andreas Schwab  <schwab@redhat.com>
35534
35535         [BZ #12814]
35536         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
35537
35538 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
35539
35540         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
35541         (struct user_regs_struct): Change intcs field back to cs.
35542
35543 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
35544
35545         * po/ja.po: Update from translation team.
35546
35547 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
35548
35549         [BZ #12795]
35550         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
35551         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
35552
35553 2011-05-20  Andreas Schwab  <schwab@redhat.com>
35554
35555         * stdlib/longlong.h: Update from GCC.
35556
35557 2011-05-23  Andreas Schwab  <schwab@redhat.com>
35558
35559         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
35560         parameter name.
35561         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
35562         Add parameter name.
35563         (__sysconf): Pass it down.
35564
35565 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
35566
35567         [BZ #12671]
35568         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
35569         some situations.
35570         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
35571         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
35572         add in in __libc_use_alloca calls.  Adjust callers.
35573         (glob): Use malloc in some situations.
35574
35575         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
35576         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
35577         pltexit.
35578
35579 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
35580
35581         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
35582         and CLOCK_BOOTTIME_ALARM.
35583
35584         [BZ #12782]
35585         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
35586         is returned.
35587
35588         * string/_strerror.c (__strerror_r): Print negative errors as signed
35589         numbers.
35590
35591         [BZ #12777]
35592         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
35593         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
35594         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
35595
35596         * configure.in: Fix typo in redirection and correct removal of test
35597         files in two cases.
35598
35599         [BZ #12788]
35600         * locale/setlocale.c (new_composite_name): Fix test to check for
35601         identical name of all categories.
35602
35603         [BZ #12792]
35604         * libio/filedoalloc.c (local_isatty): New function.
35605         (_IO_file_doallocate): Use local_isatty.
35606         * stdio-common/perror.c (perror): In case a new stream is used
35607         forward the stream error.
35608         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
35609         error flag.
35610
35611 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
35612
35613         [BZ #11869]
35614         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
35615         alloca.
35616         * include/alloca.h (extend_alloca_account): Define.
35617
35618         [BZ #11857]
35619         * posix/regex.h: Fix comments with documentation of user-accessible
35620         fields after compilation and describe correct free'ing of pattern
35621         after re_compile_pattern.
35622         Patch by Reuben Thomas <rrt@sc3d.org>.
35623
35624 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
35625
35626         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
35627         and -mno-altivec to prevent the compiler from using Altivec and/or
35628         VSX instructions when the corresponding registers are not available.
35629
35630 2011-05-19  Andreas Schwab  <schwab@redhat.com>
35631
35632         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
35633
35634 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
35635
35636         * libio/freopen.c (freopen): Use __dup2, not dup2.
35637         * libio/freopen64.c (freopen64): Likewise.
35638
35639 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
35640
35641         [BZ #12775]
35642         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
35643         * math/Makefile (tests): Add test-powl.
35644         (CFLAGS-test-powl.c): Define.
35645         * math/test-powl.c: New file.
35646
35647 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
35648
35649         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
35650
35651 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
35652
35653         [BZ #11837]
35654         * iconvdata/gb18030.c: Update to GB18020-2005.
35655
35656 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
35657
35658         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
35659         RE_SYNTAX_POSIX_AWK): Update to match recent development.
35660         Patch by Aharon Robbins <arnold@skeeve.com>.
35661
35662         [BZ #11892]
35663         * stdlib/putenv.c (putenv): Don't always create copy of the variable
35664         on the stack.
35665
35666         [BZ #11895]
35667         * misc/pselect.c (__pselect): Handle timeout value errors hidden
35668         through underflows.
35669
35670         [BZ #12766]
35671         * misc/error.c (error_at_line): Ensure file_name and old_file_name
35672         point to strings before performing equality test for error_one_per_line
35673         mode.
35674
35675         [BZ #11697]
35676         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
35677
35678         [BZ #11820]
35679         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
35680         (struct user_fpregs_struct): Avoid __uint*_t types.
35681
35682         [BZ #6420]
35683         * malloc/mtrace.c (tr_where): Add additional parameter to point to
35684         symbol info.  Use it instead of calling _dl_addr locally.
35685         (lock_and_info): New function.
35686         (tr_freehook): Call lock_and_info and pass symbol info as additional
35687         parameter to tr_where.
35688         (tr_mallochook): Likewise.
35689         (tr_reallochook): Likewise.
35690         (tr_memalignhook): Likewise.
35691
35692         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
35693         used and couldn't be at all thread-safe.
35694
35695 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
35696
35697         * libio/freopen.c (freopen): Don't close old file descriptor
35698         before the new one is opened.  Instead dup the new file descriptor
35699         to the old one after the new stream is created.
35700         * libio/freopen64.c (freopen64): Likewise.
35701         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
35702         * libio/fileops.c (_IO_new_file_close_it): Handle new
35703         _IO_FLAGS2_NOCLOSE flag.
35704         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
35705         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
35706         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
35707         _IO_FLAGS2_NOCLOSE flag.
35708         * include/unistd.h: Add hidden_proto for dup3.
35709         Define __have_dup3.
35710         * io/dup3.c: Define hidden symbol.
35711         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
35712
35713         [BZ #7101]
35714         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
35715         when an incomplete long option is used.
35716         * posix/tst-getopt_long1.c: New file.
35717         * posix/Makefile (tests): Add tst-getopt_long1.
35718
35719         [BZ #10138]
35720         * scripts/config.guess: Update from autoconf-2.68.
35721         * scripts/config.sub: Likewise.
35722
35723         [BZ #10157]
35724         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
35725         tests into ...
35726         (has_cpuclock): ...this.  New function.
35727         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
35728         macro here based on has_cpuclock code.
35729
35730         [BZ #10149]
35731         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
35732         First byte (not low byte) is now always NUL.
35733         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
35734
35735         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
35736         Use non-cancelable interfaces.
35737
35738         [BZ #9809]
35739         * locale/iso-639.def: Add entry for Sorani.
35740
35741         [BZ #11901]
35742         * include/stdlib.h: Move include protection to the right place.
35743         Define abort_msg_s.  Declare __abort_msg with it.
35744         * stdlib/abort.c (__abort_msg): Adjust type.
35745         * assert/assert.c (__assert_fail_base): New function.  Majority
35746         of code from __assert_fail.  Allocate memory for __abort_msg with
35747         mmap.
35748         (__assert_fail): Now call __assert_fail_base.
35749         * assert/assert-perr.c: Remove bulk of implementation.  Use
35750         __assert_fail_base.
35751         * include/assert.hL Declare __assert_fail_base.
35752         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
35753         mmap.
35754         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
35755
35756 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
35757
35758         [BZ #11952]
35759         [BZ #12453]
35760         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
35761         until all modules are registered in the DTV.
35762         * elf/Makefile: Add rules to build and run tst-tls19.
35763         * elf/tst-tls19.c: New file.
35764         * elf/tst-tls19mod1.c: New file.
35765         * elf/tst-tls19mod2.c: New file.
35766         * elf/tst-tls19mod3.c: New file.
35767         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
35768
35769         [BZ #12083]
35770         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
35771         correctly.
35772
35773         [BZ #12601]
35774         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
35775         two-byte sequence errors.
35776         * iconvdata/Makefile (tests): Add bug-iconv8.
35777         * iconvdata/bug-iconv8.c: New file.
35778
35779         [BZ #12626]
35780         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
35781         buf2 definition.
35782
35783         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
35784
35785         [BZ #12432]
35786         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
35787         (dummy_getcfa): New function.
35788         (init): Get _Unwind_GetCFA address, use dummy if not found.
35789         (backtrace_helper): In recursion check, also check whether CFA changes.
35790         (__backtrace): Completely initialize arg.
35791
35792         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
35793         storing incomplete byte sequence in state object.  Avoid testing for
35794         guaranteed too small input if we know there is enough data available.
35795
35796 2011-05-11  Andreas Schwab  <schwab@redhat.com>
35797
35798         * Makeconfig (+link-pie): Indent.
35799         * Rules (binaries-pie): Define if $(have-fpie) and
35800         $(build-shared).
35801         (binaries-shared): Also filter out $(binaries-pie).
35802         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
35803         * nscd/Makefile (others-pie): Add nscd.
35804         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
35805         ($(objpfx)nscd): Remove command override.
35806         * login/Makefile (others-pie): Add pt_chown.
35807         ($(objpfx)pt_chown): Remove command override.
35808         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
35809         remove command overrides.
35810
35811 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
35812
35813         * libio/tst_putwc.c: Fix error messages.
35814
35815         [BZ #12724]
35816         * libio/fileops.c (_IO_new_file_close_it): Always flush when
35817         currently writing and seek to current position when not.
35818         * libio/Makefile (tests): Add bug-fclose1.
35819         * libio/bug-fclose1.c: New file.
35820
35821 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
35822
35823         [BZ #12511]
35824         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
35825         don't set DF_1_NODELETE here.
35826         (do_lookup_x): When entering new entry test for copy relocation
35827         and if necessary set DF_1_NODELETE flag.
35828         * elf/tst-unique4.cc: New file.
35829         * elf/tst-unique4.h: New file.
35830         * elf/tst-unique4lib.cc: New file.
35831         * elf/Makefile: Add rules to build and run tst-unique4.
35832         Patch by Piotr Bury <pbury@goahead.com>.
35833
35834 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
35835
35836         [BZ #12052]
35837         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
35838
35839         [BZ #12625]
35840         * misc/mntent_r.c (addmntent): Flush the stream after the output
35841
35842         [BZ #12393]
35843         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
35844         (is_trusted_path_normalize): Skip initial colon.  Append slash
35845         to empty buffer.  Duplicate is_trusted_path code but allow
35846         constructed patch to be prefix.
35847         (is_dst): Allow $ORIGIN followed by /.
35848         (_dl_dst_substitute): Correct clearing of check_for_trusted.
35849         Correct testing of result of is_trusted_path_normalize
35850         (decompose_rpath): Fix warning.
35851
35852 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
35853
35854         [BZ #11257]
35855         * grp/initgroups.c (internal_getgrouplist): When we found the service
35856         list through the initgroups entry in nsswitch.conf do not always
35857         continue on a successful lookup.  Don't always use the
35858         __nss_group_database value if it is set.
35859         * nss/nsswitch.conf (initgroups): Change action for successful db
35860         lookup to continue for compatibility.
35861
35862 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
35863
35864         [BZ #11532]
35865         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
35866         and CP774 modules.
35867         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
35868         and CP774 modules.
35869         * iconvdata/tst-tables.sh: Likewise.
35870         * iconvdata/cp770.c: New file.
35871         * iconvdata/cp771.c: New file.
35872         * iconvdata/cp772.c: New file.
35873         * iconvdata/cp773.c: New file.
35874         * iconvdata/cp774.c: New file.
35875         * iconvdata/testdata/CP770: New file.
35876         * iconvdata/testdata/CP770..UTF8: New file.
35877         * iconvdata/testdata/CP771: New file.
35878         * iconvdata/testdata/CP771..UTF8: New file.
35879         * iconvdata/testdata/CP772: New file.
35880         * iconvdata/testdata/CP772..UTF8: New file.
35881         * iconvdata/testdata/CP773: New file.
35882         * iconvdata/testdata/CP773..UTF8: New file.
35883         * iconvdata/testdata/CP774: New file.
35884         * iconvdata/testdata/CP774..UTF8: New file.
35885
35886         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
35887         END CHARMAP line.
35888         * iconvdata/gen-8bit-gap.sh: Likewise.
35889         * iconvdata/gen-8bit.sh: Likewise.
35890
35891         * locale/iso-639.def: Add ary entry.
35892
35893         [BZ #11258]
35894         * locale/C-translit.h.in: Add U20A1 transliteration.
35895
35896         [BZ #12178]
35897         * locale/iso-639.def: Add wae entry.
35898         Patch by Kevin Bortis <bortis@translate-wae.ch>.
35899
35900         [BZ #12545]
35901         * locale/programs/localedef.c (construct_output_path): Use ssize_t
35902         for n.
35903
35904         [BZ #12711]
35905         * locale/C-translit.h.in: Add entry for U20B9.
35906         Patch by pravin.d.s@gmail.com.
35907
35908 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
35909
35910         [BZ #12713]
35911         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
35912         ENAMETOOLONG use generic getcwd.
35913         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
35914         in rtld.  Use *stat64.
35915         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
35916         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
35917         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
35918         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
35919         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
35920         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
35921         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
35922         __fstatat64 macros.
35923         * include/dirent.h: Add libc_hidden_proto for rewinddir.
35924         * dirent/rewinddir.c: Add libc_hidden_def.
35925         * sysdeps/mach/hurd/rewinddir.c: Likewise.
35926         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
35927
35928         * include/dirent.h (__alloc_dir): Add flags parameter.
35929         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
35930         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
35931         __alloc_dir.
35932         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
35933         from fdopendir if O_CLOEXEC is already set.
35934
35935 2011-03-15  Alan Modra  <amodra@gmail.com>
35936
35937         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
35938         l_tls_firstbyte_offset non-zero.  Save padding offset in
35939         l_tls_firstbyte_offset for later use.
35940         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
35941         freeing static tls block.
35942
35943 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
35944
35945         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
35946         where #ifdef was intended.  The intent is to prevent ARG_MAX from
35947         being defined by the kernel headers.
35948
35949 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
35950
35951         [BZ #12734]
35952         * resolv/resolv.h: Define RES_NOTLDQUERY.
35953         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
35954         no-tld-query and set RES_NOTLDQUERY.
35955         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
35956         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
35957         modern BIND to search name as TLD unless forbidden.
35958
35959 2011-05-07  Petr Baudis  <pasky@suse.cz>
35960             Ulrich Drepper  <drepper@gmail.com>
35961
35962         [BZ #12393]
35963         * elf/dl-load.c (fillin_rpath): Move trusted path check...
35964         (is_trusted_path): ...to here.
35965         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
35966         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
35967         using is_trusted_path_normalize() in setuid scripts.
35968
35969 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35970
35971         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
35972         __BEGIN/__END_DECLS.
35973
35974 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
35975
35976         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
35977         NSS_STATUS_NOTFOUND if no record was found.
35978
35979 2011-05-05  Andreas Schwab  <schwab@redhat.com>
35980
35981         * sunrpc/Makefile (headers): Add rpc/netdb.h.
35982         (headers-not-in-tirpc): Remove rpc/netdb.h
35983         * resolv/netdb.h: Revert last change.
35984
35985 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
35986
35987         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
35988         circular dependency between libgcc.a and libc.a.
35989
35990 2011-05-05  Andreas Schwab  <schwab@redhat.com>
35991
35992         * resolv/netdb.h: Don't include <rpc/netdb.h>.
35993         * nis/Makefile: Don't install rpcsvc/*.
35994         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
35995         instead of <rpc/types.h>.
35996         (MAXHOSTNAMELEN): Define.
35997
35998 2011-05-03  Andreas Schwab  <schwab@redhat.com>
35999
36000         * elf/ldconfig.c (add_dir): Don't crash on empty path.
36001
36002 2011-04-28  Maciej Babinski  <mbabinski@google.com>
36003
36004         [BZ #12714]
36005         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
36006         gethostbyname4_r when IPv6 results are possible.
36007
36008 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
36009
36010         [BZ #12723]
36011         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
36012         _PC_PIPE_BUF handling.
36013
36014 2011-04-30  Bruno Haible  <bruno@clisp.org>
36015
36016         [BZ #12717]
36017         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
36018         * resolv/netdb.h (getnameinfo): Change type of flags parameter
36019         to 'int'.
36020         * inet/getnameinfo.c (getnameinfo): Likewise.
36021
36022 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
36023
36024         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
36025         to groups setting in database lookup.
36026         * nss/nsswitch.conf: Add initgroups entry.
36027
36028 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
36029
36030         [BZ #12685]
36031         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
36032         mode string.
36033         Patch by Eric Blake <eblake@redhat.com>.
36034
36035 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
36036
36037         * sunrpc/Makefile (need-export-routines): Add svc_run.
36038         (routines): Remove svc_run.
36039         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
36040         * sunrpc/clnt_perr.c (clnt_perrno): Export.
36041         * sunrpc/svc_run.c (svc_run): Likewise.
36042         * sunrpc/svc_udp.c (svcudp_create): Likewise.
36043
36044 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
36045
36046         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
36047         problem in reallocation in last patch.
36048
36049 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
36050
36051         * sunrpc/Makefile: Move inclusion of Rules.
36052
36053 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36054
36055         * nss/nss_files/files-initgroups.c: New file.
36056         * nss/Makefile (libnss_files-routines): Add files-initgroups.
36057         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
36058         _nss_files_initgroups_dyn.
36059
36060 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
36061
36062         * elf/elf.h (R_ARM_IRELATIVE): Define.
36063
36064 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36065
36066         * po/ru.po: Update from translation team.
36067
36068 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36069
36070         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
36071         dependencies.
36072
36073 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
36074
36075         [BZ #12653]
36076         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
36077         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
36078         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
36079         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
36080         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
36081
36082 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
36083
36084         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
36085         differing bytes.
36086         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
36087         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
36088         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
36089
36090 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36091
36092         [BZ #12420]
36093         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
36094         storing it.
36095         * stdlib/bug-getcontext.c: New file.
36096         * stdlib/Makefile: Add rules to build and run bug-getcontext.
36097
36098 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36099
36100         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
36101         instructions into .machine "z9-109".
36102         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
36103         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
36104
36105 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36106
36107         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
36108         between environment variables and auxiliary vector.
36109
36110 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
36111
36112         * Makefile: Add rules to build linkobj/libc.so.
36113         * include/libc-symbols.h: Define libc_hidden_nolink.
36114         * include/rpc/auth.h: Mark functions which are to be hidden.
36115         * include/rpc/auth_des.h: Likewise.
36116         * include/rpc/auth_unix.h: Likewise.
36117         * include/rpc/clnt.h: Likewise.
36118         * include/rpc/des_crypt.h: Likewise.
36119         * include/rpc/key_prot.h: Likewise.
36120         * include/rpc/pmap_clnt.h: Likewise.
36121         * include/rpc/pmap_prot.h: Likewise.
36122         * include/rpc/pmap_rmt.h: Likewise.
36123         * include/rpc/rpc_msg.h: Likewise.
36124         * include/rpc/svc.h: Likewise.
36125         * include/rpc/svc_auth.h: Likewise.
36126         * include/rpc/xdr.h: Likewise.
36127         * nis/Makefile: Link all DSOs against linkobj/libc.so.
36128         * nss/Makefile: Likewise.
36129         * sunrpc/Makefile: Don't install headers.  Build library with normal
36130         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
36131         * sunrpc/auth_des.c: Hide exported symbols by default, export some
36132         for the compat linking library.  Remove use of INTDEF/INTUSE.
36133         * sunrpc/auth_none.c: Likewise.
36134         * sunrpc/auth_unix.c: Likewise.
36135         * sunrpc/authdes_prot.c: Likewise.
36136         * sunrpc/authuxprot.c: Likewise.
36137         * sunrpc/clnt_gen.c: Likewise.
36138         * sunrpc/clnt_perr.c: Likewise.
36139         * sunrpc/clnt_raw.c: Likewise.
36140         * sunrpc/clnt_simp.c: Likewise.
36141         * sunrpc/clnt_tcp.c: Likewise.
36142         * sunrpc/clnt_udp.c: Likewise.
36143         * sunrpc/clnt_unix.c: Likewise.
36144         * sunrpc/des_crypt.c: Likewise.
36145         * sunrpc/des_soft.c: Likewise.
36146         * sunrpc/get_myaddr.c: Likewise.
36147         * sunrpc/key_call.c: Likewise.
36148         * sunrpc/key_prot.c: Likewise.
36149         * sunrpc/netname.c: Likewise.
36150         * sunrpc/pm_getmaps.c: Likewise.
36151         * sunrpc/pm_getport.c: Likewise.
36152         * sunrpc/pmap_clnt.c: Likewise.
36153         * sunrpc/pmap_prot.c: Likewise.
36154         * sunrpc/pmap_prot2.c: Likewise.
36155         * sunrpc/pmap_rmt.c: Likewise.
36156         * sunrpc/publickey.c: Likewise.
36157         * sunrpc/rpc_cmsg.c: Likewise.
36158         * sunrpc/rpc_common.c: Likewise.
36159         * sunrpc/rpc_dtable.c: Likewise.
36160         * sunrpc/rpc_prot.c: Likewise.
36161         * sunrpc/rpc_thread.c: Likewise.
36162         * sunrpc/rtime.c: Likewise.
36163         * sunrpc/svc.c: Likewise.
36164         * sunrpc/svc_auth.c: Likewise.
36165         * sunrpc/svc_authux.c: Likewise.
36166         * sunrpc/svc_raw.c: Likewise.
36167         * sunrpc/svc_run.c: Likewise.
36168         * sunrpc/svc_simple.c: Likewise.
36169         * sunrpc/svc_tcp.c: Likewise.
36170         * sunrpc/svc_udp.c: Likewise.
36171         * sunrpc/svc_unix.c: Likewise.
36172         * sunrpc/svcauth_des.c: Likewise.
36173         * sunrpc/xcrypt.c: Likewise.
36174         * sunrpc/xdr.c: Likewise.
36175         * sunrpc/xdr_array.c: Likewise.
36176         * sunrpc/xdr_float.c: Likewise.
36177         * sunrpc/xdr_intXX_t.c: Likewise.
36178         * sunrpc/xdr_mem.c: Likewise.
36179         * sunrpc/xdr_rec.c: Likewise.
36180         * sunrpc/xdr_ref.c: Likewise.
36181         * sunrpc/xdr_sizeof.c: Likewise.
36182         * sunrpc/xdr_stdio.c: Likewise.
36183
36184 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
36185
36186         [BZ #12650]
36187         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
36188         * sysdeps/ia64/dl-tls.h: Likewise.
36189         * sysdeps/powerpc/dl-tls.h: Likewise.
36190         * sysdeps/s390/dl-tls.h: Likewise.
36191         * sysdeps/sh/dl-tls.h: Likewise.
36192         * sysdeps/sparc/dl-tls.h: Likewise.
36193         * sysdeps/x86_64/dl-tls.h: Likewise.
36194         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
36195
36196 2011-03-14  Andreas Schwab  <schwab@redhat.com>
36197
36198         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
36199         rpath element also skip the following colon.
36200         (expand_dynamic_string_token): Add is_path parameter and pass
36201         down to DL_DST_REQUIRED and _dl_dst_substitute.
36202         (decompose_rpath): Call expand_dynamic_string_token with
36203         non-zero is_path.  Ignore empty rpaths.
36204         (_dl_map_object_from_fd): Call expand_dynamic_string_token
36205         with zero is_path.
36206
36207 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
36208
36209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
36210         Make cancelable.
36211
36212 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
36213
36214         [BZ #12655]
36215         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
36216         Patch by Filipe David Manana <fdmanana@apache.org>.
36217
36218 2011-04-07  Andreas Schwab  <schwab@redhat.com>
36219
36220         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
36221         Maintain aligned stack.
36222         (CHECK_RSP): Remove unused macro.
36223
36224 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
36225
36226         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
36227         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
36228
36229 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
36230
36231         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
36232
36233         * include/features.h: Mention __USE_XOPEN2K8 in comment.
36234
36235 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
36236
36237         [BZ #12518]
36238         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
36239         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
36240         * sysdeps/x86_64/memmove.c: New file.
36241         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
36242         (memcpy): Renamed to ...
36243         (__new_memcpy): This.
36244         (memcpy): Provide GLIBC_2_14 memcpy.
36245         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
36246         (memcpy): Provide GLIBC_2_2_5 memcpy.
36247
36248 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36249
36250         [BZ #12631]
36251         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
36252
36253 2011-03-30  Andreas Schwab  <schwab@redhat.com>
36254
36255         * misc/syncfs.c: New file.
36256         * misc/Makefile (routines): Add syncfs.
36257         * posix/unistd.h: Declare syncfs.
36258         * sysdeps/unix/syscalls.list: Add syncfs.
36259
36260 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36261
36262         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
36263         open_by_handle_at.
36264         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
36265         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36266         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36267         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36268         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36269         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
36270         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36271
36272 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36273
36274         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
36275         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36276         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
36277         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36278         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36279         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36280         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36281
36282         * io/Makefile: Compile fallocate.c, fallocate64.c, and
36283         sync_file_range.c with -fexceptions.
36284         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
36285         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
36286         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
36287         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
36288         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
36289         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
36290         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
36291         sync_file_range as cancellation point
36292         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
36293         now a wrapper around __call_sync_file_range with cancellation handling.
36294         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
36295         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
36296         function name to __call_sync_file_range.
36297         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
36298         Add call_sync_file_range.
36299
36300 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36301
36302         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36303         bits/timex.h.
36304
36305 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36306
36307         * iconv/iconv.h: Fix typo in comment.
36308         * io/fcntl.h: Likewise.
36309         * libio/stdio.h: Likewise.
36310         * posix/spawn.h: Likewise.
36311         * posix/unistd.h: Likewise.
36312         * stdlib/stdlib.h: Likewise.
36313         * time/time.h: Likewise.
36314         * wcsmbs/wchar.h: Likewise.
36315
36316         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
36317         open_by_handle): Add.
36318         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
36319         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
36320         Augment a few comments.
36321         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36322         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36323         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36324         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36325         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36326         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
36327         open_by_handle.
36328
36329         * io/fcntl.h (AT_EMPTY_PATH): Define.
36330
36331 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
36332
36333         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
36334         * sysdeps/unix/sysv/linux/bits/time.h: New file.
36335         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
36336         to...
36337         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
36338         * Versions.def: Add GLIBC_2.14.
36339         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
36340         Export.
36341
36342 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
36343
36344         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
36345         round counter.
36346         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36347
36348 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36349
36350         [BZ #12597]
36351         * string/test-strncmp.c (do_page_test): New function.
36352         (check2): Likewise.
36353         (test_main): Call check2.
36354         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
36355
36356 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
36357
36358         [BZ #12587]
36359         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
36360         Handle cache information in CPU leaf 4.
36361         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36362
36363 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
36364
36365         [BZ #12583]
36366         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
36367         character representation.
36368         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
36369
36370 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
36371
36372         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
36373         END(__isnan) to END(__isnanf) to match function entry point/label
36374         EALIGN(__isnanf,...).
36375
36376 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
36377
36378         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
36379
36380 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
36381
36382         [BZ #12510]
36383         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
36384         copy from the symbol referenced in the relocation to initialize the
36385         used variable.
36386         Patch by Piotr Bury <pbury@goahead.com>.
36387         * elf/Makefile: Add rules to build and tst-unique3.
36388         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
36389         * elf/tst-unique3.cc: New file.
36390         * elf/tst-unique3.h: New file.
36391         * elf/tst-unique3lib.cc: New file.
36392         * elf/tst-unique3lib2.cc: New file.
36393
36394         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
36395
36396 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
36397
36398         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
36399         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
36400         to _start.
36401
36402 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
36403
36404         * elf/dl-load.c (_dl_map_object): If we are looking for the first
36405         to-be-loaded object along a path to loader is ld.so.
36406
36407 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36408             Ulrich Drepper  <drepper@gmail.com>
36409
36410         * sysdeps/x86_64/memset.S: After aligning destination, code
36411         branches to different locations depending on the value of
36412         misalignment, when multiarch is enabled. Fix this.
36413
36414 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36415
36416         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
36417         Set _x86_64_preferred_memory_instruction for AMD processsors.
36418         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36419         Set bit_Prefer_SSE_for_memop for AMD processors.
36420
36421 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
36422
36423         * libio/fmemopen.c (fmemopen): Optimize a bit.
36424
36425 2011-03-03  Andreas Schwab  <schwab@redhat.com>
36426
36427         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
36428
36429 2011-03-03  Roland McGrath  <roland@redhat.com>
36430
36431         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
36432
36433 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
36434
36435         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
36436         __bzero_ultra1 instead of __memset_ultra1.
36437
36438 2011-02-23  Andreas Schwab  <schwab@redhat.com>
36439             Ulrich Drepper  <drepper@gmail.com>
36440
36441         [BZ #12509]
36442         * include/link.h (struct link_map): Add l_orig_initfini.
36443         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
36444         returning unsuccessfully.
36445         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
36446         close of a file loaded at startup, restore the original l_initfini
36447         list.
36448         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
36449         list, store the pointer.
36450         * elf/Makefile ($(objpfx)noload-mem): New rule.
36451         (noload-ENV): Define.
36452         (tests): Add $(objpfx)noload-mem.
36453         * elf/noload.c: Include <memcheck.h>.
36454         (main): Call mtrace.  Close all opened handles.
36455
36456 2011-02-17  Andreas Schwab  <schwab@redhat.com>
36457
36458         [BZ #12454]
36459         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
36460         dependencies are missing.
36461
36462 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36463
36464         Fix __if_freereq crash: Unlike the generic version which uses free,
36465         Hurd needs munmap.
36466         * sysdeps/mach/hurd/ifreq.h: New file.
36467
36468 2011-01-27  Petr Baudis  <pasky@suse.cz>
36469             Ulrich Drepper  <drepper@gmail.com>
36470
36471         [BZ 12445]#
36472         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
36473         to extend_alloca().
36474         * stdio-common/bug23.c: New file.
36475         * stdio-common/Makefile (tests): Add bug23.
36476
36477 2010-09-28  Andreas Schwab  <schwab@redhat.com>
36478             Ulrich Drepper  <drepper@gmail.com>
36479
36480         [BZ #12489]
36481         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
36482         before performing relro protection.  At old place add assertion
36483         to make sure nothing changed.
36484
36485 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
36486             Glauber de Oliveira Costa  <glommer@gmail.com>
36487
36488         * elf/elf.h: Add new ARM TLS relocs.
36489
36490 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
36491
36492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
36493         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
36494         cast from r3.
36495         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
36496         'tests' variable.
36497         * sysdeps/wordsize-64/tst-writev.c: New file.
36498
36499 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
36500
36501         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
36502         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
36503         insns in _dl_start to prevent a TOC reference before relocs are
36504         resolved.
36505
36506 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
36507
36508         [BZ #12469]
36509         * Makeconfig: Remove RANLIB definition.
36510         * Makerules: Don't use RANLIB.
36511         * aclocal.m4: Remove ranlib test.
36512         * configure.in: No need to check for ranlib.
36513         * elf/rtld-Rules: Don't use RANLIB.
36514
36515 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36516
36517         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
36518         protection macro.
36519         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
36520         inclusion protection macro.
36521
36522         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
36523         SIGRTMIN and SIGRTMAX and print information in that case only when
36524         SIGRTMIN is defined.
36525
36526 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
36527
36528         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
36529         arginfo fn returning -1.
36530
36531         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
36532         and thousands string is zero terminated.
36533
36534 2011-02-03  Andreas Schwab  <schwab@redhat.com>
36535
36536         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
36537         sysdeps/unix/sysv/linux/bits/socket.h.
36538
36539 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36540
36541         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
36542         (__CPU_COUNT): Remove old macros.
36543         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
36544         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
36545         (__CPU_ALLOC, __CPU_FREE): Add macros.
36546         (__sched_cpualloc, __sched_cpufree): Add declarations.
36547
36548 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
36549
36550         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
36551         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
36552         * nscd/aicache.c (addhstaiX): Return timeout of added value.
36553         (readdhstai): Return value of addhstaiX call.
36554         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
36555         (addgrbyX): Return value returned by cache_addgr.
36556         (readdgrbyname): Return value returned by addgrbyX.
36557         (readdgrbygid): Likewise.
36558         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
36559         (addpwbyX): Return value returned by cache_addpw.
36560         (readdpwbyname): Return value returned by addhstbyX.
36561         (readdpwbyuid): Likewise.
36562         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
36563         (addservbyX): Return value returned by cache_addserv.
36564         (readdservbyname): Return value returned by addservbyX:
36565         (readdservbyport): Likewise.
36566         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
36567         (addhstbyX): Return value returned by cache_addhst.
36568         (readdhstbyname): Return value returned by addhstbyX.
36569         (readdhstbyaddr): Likewise.
36570         (readdhstbynamev6): Likewise.
36571         (readdhstbyaddrv6): Likewise.
36572         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
36573         (readdinitgroups): Return value returned by addinitgroupsX.
36574         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
36575         (prune_cache): Keep track of timeout value of re-added entries.
36576         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
36577         * nscd/nscd.h: Adjust prototypes of readd* functions.
36578
36579 2011-02-04  Roland McGrath  <roland@redhat.com>
36580
36581         * nis/nis_server.c (nis_servstate): Use the right name for 0.
36582         (nis_stats): Likewise.
36583         * nis/nis_modify.c (nis_modify): Likewise.
36584         * nis/nis_remove.c (nis_remove): Likewise.
36585         * nis/nis_add.c (nis_add): Likewise.
36586
36587         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
36588
36589         * posix/fnmatch_loop.c: Add some consts.
36590
36591         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
36592
36593 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
36594
36595         [BZ #12460]
36596         * config.make.in (config-cflags-novzeroupper): Define.
36597         * configure.in: Substitute libc_cv_cc_novzeroupper.
36598         * elf/Makefile (AVX-CFLAGS): Define.
36599         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
36600         (CFLAGS-tst-auditmod4a.c): Likewise.
36601         (CFLAGS-tst-auditmod4b.c): Likewise.
36602         (CFLAGS-tst-auditmod6b.c): Likewise.
36603         (CFLAGS-tst-auditmod6c.c): Likewise.
36604         (CFLAGS-tst-auditmod7b.c): Likewise.
36605         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
36606
36607 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
36608
36609         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
36610         function to the callback.
36611         Patch partly by Jiri Olsa <jolsa@redhat.com>.
36612
36613 2011-02-02  Andreas Schwab  <schwab@redhat.com>
36614
36615         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
36616         of errno.
36617
36618 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
36619
36620         [BZ #11724]
36621         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
36622         of constructors.
36623         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
36624         of destructors.
36625         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
36626
36627         [BZ #11724]
36628         * elf/Makefile: Add rules to build and run new test.
36629         * elf/tst-initorder.c: New file.
36630         * elf/tst-initorder.exp: New file.
36631         * elf/tst-initordera1.c: New file.
36632         * elf/tst-initordera2.c: New file.
36633         * elf/tst-initordera3.c: New file.
36634         * elf/tst-initordera4.c: New file.
36635         * elf/tst-initorderb1.c: New file.
36636         * elf/tst-initorderb2.c: New file.
36637         * elf/tst-order-a1.c: New file.
36638         * elf/tst-order-a2.c: New file.
36639         * elf/tst-order-a3.c: New file.
36640         * elf/tst-order-a4.c: New file.
36641         * elf/tst-order-b1.c: New file.
36642         * elf/tst-order-b2.c: New file.
36643         * elf/tst-order-main.c: New file.
36644         New test case by George Gensure <werkt0@gmail.com>.
36645
36646 2010-10-01  Andreas Schwab  <schwab@redhat.com>
36647
36648         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
36649         decoding ACE if AI_CANONIDN.
36650
36651 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
36652
36653         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
36654
36655 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
36656
36657         * version.h (RELEASE): Bump for 2.13 release.
36658         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
36659
36660         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
36661
36662         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
36663         MADV_NOHUGEPAGE.
36664         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
36665         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
36666         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36667         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36668         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36669         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
36670
36671         * posix/getconf.c: Update copyright year.
36672         * catgets/gencat.c: Likewise.
36673         * csu/version.c: Likewise.
36674         * debug/catchsegv.sh: Likewise.
36675         * debug/xtrace.sh: Likewise.
36676         * elf/ldconfig.c: Likewise.
36677         * elf/ldd.bash.in: Likewise.
36678         * elf/sprof.c (print_version): Likewise.
36679         * iconv/iconv_prog.c: Likewise.
36680         * iconv/iconvconfig.c: Likewise.
36681         * locale/programs/locale.c: Likewise.
36682         * locale/programs/localedef.c: Likewise.
36683         * malloc/memusage.sh: Likewise.
36684         * malloc/mtrace.pl: Likewise.
36685         * nscd/nscd.c (print_version): Likewise.
36686         * nss/getent.c: Likewise.
36687
36688         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
36689         PF_CAIF, and PF_ALG.
36690         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
36691
36692 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
36693
36694         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
36695         (modules-names): Use them.
36696         (ifunc-test-modules, ifunc-pie-tests): Define.
36697         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
36698         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
36699         (test-extras): Likewise.
36700         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
36701         $(compile-command.c).
36702         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
36703         (all-built-dso): Define.
36704         (check-textrel.out, check-execstack.out): Depend on it.
36705
36706         * configure.in: Don't override --enable-multi-arch.
36707
36708 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
36709
36710         [BZ #6812]
36711         * nscd/hstcache.c (tryagain): Define.
36712         (cache_addhst): Return tryagain not notfound for temporary errors.
36713         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
36714         failed.
36715
36716 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
36717
36718         [BZ #10563]
36719         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
36720         to make the syscall.
36721         * sysdeps/unix/sysv/linux/setgroups.c: New file.
36722
36723         [BZ #12378]
36724         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
36725         and fall back to matching as normal character if the string ends before
36726         the matching ']' is found.  This is what POSIX requires.
36727         * posix/testfnm.c: Adjust test result.
36728         * posix/globtest.sh: Adjust test result.  Add new test.
36729         * posix/tst-fnmatch.input: Likewise.
36730         * posix/tst-fnmatch2.c: Add new test.
36731
36732 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
36733
36734         * elf/Makefile (check-execstack): Revert last change.  Depend on
36735         check-execstack.h.
36736         (check-execstack.h): New target.
36737         (generated): Add check-execstack.h.
36738         * elf/check-execstack.c: Include "check-execstack.h".
36739         (main): Revert last change.
36740         (handle_file): Return zero if GNU_STACK is absent and
36741         DEFAULT_STACK_PERMS doesn't include PF_X.
36742
36743 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
36744
36745         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
36746         in child fails because the descriptor is already closed.
36747         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
36748         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
36749         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
36750
36751         [BZ #12397]
36752         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
36753         syscall.
36754
36755         [BZ #10484]
36756         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
36757         temporary buffer used to handle multi lookups locally.
36758         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
36759
36760 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
36761
36762         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
36763         loader is ld.so.
36764
36765 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
36766
36767         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
36768         alignment for SSE2.
36769
36770 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
36771
36772         [BZ #12394]
36773         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
36774         characters.  When rounding increased number of integer digits recompute
36775         number of groups.
36776         * stdio-common/tst-grouping.c: New file.
36777         * stdio-common/Makefile: Add rules to build and run tst-grouping.
36778
36779 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
36780
36781         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
36782         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
36783
36784         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
36785         void.
36786         * bits/select.h: Likewise.
36787
36788 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
36789
36790         * po/ja.po: Update from translation team.
36791
36792 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
36793
36794         [BZ #11155]
36795         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
36796         implementation just like for lxstat, fxstatat, et al.
36797
36798 2010-12-27  Jim Meyering  <meyering@redhat.com>
36799
36800         [BZ #12348]
36801         * posix/regexec.c (build_trtable): Return failure indication upon
36802         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
36803
36804 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
36805
36806         [BZ #12201]
36807         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
36808         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
36809         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
36810         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
36811
36812         [BZ #12207]
36813         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
36814
36815         [BZ #12204]
36816         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
36817         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
36818
36819 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
36820
36821         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
36822         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
36823         script has SORT_BY_INIT_PRIORITY.
36824         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
36825         NO_CTORS_DTORS_SECTIONS is defined.
36826         * elf/soinit.c: Likewise.
36827         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
36828         NO_CTORS_DTORS_SECTIONS is defined.
36829         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
36830         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
36831         * sysdeps/sh/init-first.c: Likewise.
36832         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
36833
36834 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
36835
36836         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
36837         always use the slow path.
36838
36839 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
36840
36841         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
36842         similar rule which adds the sysdep directories to the header search in
36843         order to pick up the correct platform stackinfo.h.
36844         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
36845         perform test if it is, otherwise return successfully without testing.
36846         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
36847         DEFAULT_STACK_PERMS define in stackinfo.h.
36848         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
36849         defined in stackinfo.h.
36850         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
36851         DEFAULT_STACK_PERMS defined in stackinfo.h.
36852         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
36853         * sysdeps/ia64/stackinfo.h: Likewise.
36854         * sysdeps/s390/stackinfo.h: Likewise.
36855         * sysdeps/sh/stackinfo.h: Likewise.
36856         * sysdeps/sparc/stackinfo.h: Likewise.
36857         * sysdeps/x86_64/stackinfo.h: Likewise.
36858         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
36859         PF_X for powerpc64.  Retain PF_X for powerpc32.
36860
36861 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
36862
36863         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
36864         accurately.
36865         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
36866         GETDENTS_64BIT_ALIGNED.
36867
36868 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
36869
36870         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
36871
36872 2010-12-10  Andreas Schwab  <schwab@redhat.com>
36873
36874         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
36875         _GNU_SOURCE.
36876
36877         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
36878         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
36879         Remove __restrict.
36880         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
36881         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
36882
36883 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
36884
36885         [BZ #11655]
36886         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
36887         are initialized.
36888
36889 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
36890
36891         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
36892
36893 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
36894
36895         * po/it.po: Update from translation team.
36896
36897 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
36898
36899         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
36900         unused codes.
36901
36902 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
36903
36904         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
36905
36906 2010-11-24  Andreas Schwab  <schwab@redhat.com>
36907
36908         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
36909         specially.
36910         (gaih_getanswer_slice): Likewise.
36911
36912 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
36913
36914         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
36915
36916 2010-05-31  Petr Baudis  <pasky@suse.cz>
36917
36918         [BZ #11149]
36919         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
36920         silently even in the chroot mode.
36921
36922 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
36923
36924         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
36925         last patch a bit.  Pretty printing
36926
36927 2010-05-31  Petr Baudis <pasky@suse.cz>
36928
36929         [BZ #10085]
36930         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
36931         initialization of skip_initgroups_dyn.
36932
36933 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
36934
36935         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
36936         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
36937
36938 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
36939
36940         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
36941
36942 2010-11-11  Andreas Schwab  <schwab@redhat.com>
36943
36944         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
36945         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
36946         (tst-fnmatch-ENV): Set MALLOC_TRACE.
36947         ($(objpfx)tst-fnmatch-mem): New rule.
36948         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
36949         * posix/tst-fnmatch.c (main): Call mtrace.
36950
36951 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
36952
36953         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36954         Support Intel processor model 6 and model 0x2c.
36955
36956 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
36957
36958         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
36959           signed comparison.
36960
36961 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
36962
36963         [BZ #12205]
36964         * string/test-strncasecmp.c (check_result): New function.
36965         (do_one_test): Use it.
36966         (check1): New function.
36967         (test_main): Use it.
36968         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
36969         Support strcasecmp and strncasecmp.
36970
36971 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
36972
36973         [BZ #12194]
36974         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
36975         * sysdeps/x86_64/bits/byteswap.h: Likewise.
36976
36977 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
36978
36979         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
36980         IFUNC support.
36981         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
36982         memset-x86-64.
36983         * sysdeps/x86_64/multiarch/bzero.S: New file.
36984         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
36985         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
36986         * sysdeps/x86_64/multiarch/memset.S: New file.
36987         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
36988         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36989         Set bit_Prefer_SSE_for_memop for Intel processors.
36990         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
36991         Define.
36992         (index_Prefer_SSE_for_memop): Define.
36993         (HAS_PREFER_SSE_FOR_MEMOP): Define.
36994
36995 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
36996
36997         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
36998         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
36999
37000 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
37001
37002         [BZ #12191]
37003         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37004         (__x86_64_raw_data_cache_size_half): Likewise.
37005         (__x86_64_raw_shared_cache_size): Likewise.
37006         (__x86_64_raw_shared_cache_size_half): Likewise.
37007
37008         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37009         (__x86_64_raw_data_cache_size_half): Likewise.
37010         (__x86_64_raw_shared_cache_size): Likewise.
37011         (__x86_64_raw_shared_cache_size_half): Likewise.
37012         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
37013         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
37014         and __x86_64_raw_shared_cache_size_half.  Round
37015         __x86_64_data_cache_size_half, __x86_64_data_cache_size
37016         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
37017         to multiple of 256 bytes.
37018
37019 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
37020
37021         [BZ #12167]
37022         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
37023         of inacessible symlinks.  Verify result of symlink before returning it.
37024         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37025         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
37026
37027 2010-10-28  Erich Ritz  <erichritz@gmail.com>
37028
37029         * math/math.h (isinf): Fix typo in comment.
37030
37031 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
37032
37033         * po/da.po: Update from translation team.
37034
37035 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
37036
37037         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
37038         is added to the list.
37039
37040 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37041             Ulrich Drepper  <drepper@gmail.com>
37042
37043         * elf/dl-object.c (_dl_new_object): Don't append the new object to
37044         the global list here.  Move code to...
37045         (_dl_add_to_namespace_list): ...here.  New function.
37046         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
37047         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
37048         * elf/dl-load.c (lose): Don't remove the element from the list.
37049         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
37050         (_dl_map_object): Likewise.
37051
37052 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
37053
37054         [BZ #12159]
37055         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
37056         into all bytes of SSE register.
37057         Patch by Richard Li <richardpku@gmail.com>.
37058
37059 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
37060
37061         [BZ #12140]
37062         * malloc/malloc.c (_int_free): Fill correct number of bytes when
37063         perturbing.
37064
37065 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
37066
37067         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
37068         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
37069         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
37070         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
37071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
37072         submachine.
37073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
37074
37075 2010-10-22  Andreas Schwab  <schwab@redhat.com>
37076
37077         * include/dlfcn.h (__RTLD_SECURE): Define.
37078         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
37079         mode & __RTLD_SECURE instead.
37080         (open_path): Rename preloaded parameter to secure.
37081         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
37082         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
37083         * elf/dl-deps.c (openaux): Likewise.
37084         * elf/rtld.c (struct map_args): Remove is_preloaded.
37085         (map_doit): Don't use it.
37086         (dl_main): Likewise.
37087         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
37088         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
37089
37090 2010-09-09  Andreas Schwab  <schwab@redhat.com>
37091
37092         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
37093         (sysd-rules-targets): Remove duplicates.
37094         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
37095         rtld-%.$o dependency.
37096
37097 2010-10-18  Andreas Schwab  <schwab@redhat.com>
37098
37099         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
37100         _dl_map_object do it.
37101
37102 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
37103
37104         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
37105         fast fma builtins, define the macros in the C99 standard.
37106         (FP_FAST_FMAF): Likewise.
37107         (FP_FAST_FMAL): Likewise.
37108         * sysdeps/x86_64/bits/mathdef.h: Likewise.
37109
37110         * bits/mathdef.h: Update copyright year.
37111         * sysdeps/powerpc/bits/mathdef.h: Likewise.
37112
37113 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
37114
37115         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
37116         builtins, define the macros in the C99 standard.
37117         (FP_FAST_FMAF): Likewise.
37118         (FP_FAST_FMAL): Likewise.
37119         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
37120         multiply/add.
37121         (FP_FAST_FMAF): Likewise.
37122
37123 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
37124
37125         [BZ #3268]
37126         * math/libm-test.inc (fma_test): Some new testcases.
37127         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
37128         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
37129         y and infinite z.  Do multiplication by C already in long double.
37130         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
37131         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
37132         y and infinite z.  Do bitwise or of inexact bit into u.d.
37133         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
37134         * sysdeps/i386/fpu/s_fmaf.S: Removed.
37135         * sysdeps/i386/fpu/s_fma.S: Removed.
37136         * sysdeps/i386/fpu/s_fmal.S: Removed.
37137
37138 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
37139
37140         [BZ #3268]
37141         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
37142         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
37143         computation is not scheduled after fetestexcept.  Fix value
37144         of minimum denormal long double.
37145
37146 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
37147
37148         [BZ #3268]
37149         * math/libm-test.inc (fma_test): Add some more tests.
37150         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
37151         correctly.
37152
37153 2010-10-15  Andreas Schwab  <schwab@redhat.com>
37154
37155         * scripts/data/localplt-s390-linux-gnu.data: New file.
37156         * scripts/data/localplt-s390x-linux-gnu.data: New file.
37157
37158 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
37159
37160         [BZ #3268]
37161         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
37162         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
37163         instead of dbl-64.
37164         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
37165         inlines.
37166         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
37167         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
37168         if one of x and y is very large and the other is subnormal.
37169         * sysdeps/s390/fpu/s_fmaf.c: New file.
37170         * sysdeps/s390/fpu/s_fma.c: New file.
37171         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
37172         * sysdeps/powerpc/fpu/s_fma.S: New file.
37173         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
37174         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
37175         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
37176
37177 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
37178
37179         [BZ #3268]
37180         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
37181         fma tests.
37182         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
37183         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
37184         * sysdeps/i386/i686/multiarch/s_fma.c: Include
37185         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
37186         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
37187         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
37188         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
37189
37190 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
37191
37192         [BZ #12078]
37193         * posix/regcomp.c (parse_branch): One more memory leak plugged.
37194         * posix/bug-regex31.input: Add test case.
37195
37196 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37197
37198         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
37199         * posix/bug-regex31.input: New file.
37200
37201         [BZ #12078]
37202         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
37203         (parse_sub_exp): Fix last change, use postorder.
37204
37205         * posix/bug-regex31.c: New file.
37206         * posix/Makefile: Add rules to build and run bug-regex31.
37207
37208         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
37209
37210         [BZ #12078]
37211         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
37212
37213         [BZ #12108]
37214         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
37215         to have entries in sys_siglist.
37216
37217         [BZ #12093]
37218         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
37219         be NULL.
37220
37221 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
37222
37223         [BZ #3268]
37224         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
37225         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
37226         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
37227         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
37228         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
37229         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
37230         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
37231         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
37232         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
37233         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
37234         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
37235         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
37236         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
37237         * math/ftestexcept.c (fetestexcept): Likewise.
37238         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
37239         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
37240         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
37241         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
37242         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
37243         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
37244         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
37245
37246 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37247
37248         [BZ #12107]
37249         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
37250         newline.
37251
37252 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
37253
37254         * string/bug-strstr1.c: New file.
37255         * string/Makefile: Add rules to build and run bug-strstr1.
37256
37257 2010-10-05  Eric Blake  <eblake@redhat.com>
37258
37259         [BZ #12092]
37260         * string/str-two-way.h (two_way_long_needle): Always clear memory
37261         when skipping input due to the shift table.
37262
37263 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
37264
37265         [BZ #12005]
37266         * malloc/mcheck.c: Handle large requests.
37267
37268         [BZ #12077]
37269         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
37270         for strncmp and strncasecmp.
37271         * string/stratcliff.c: Add tests for strcmp and strncmp.
37272         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
37273
37274 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37275
37276         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
37277         __set_fpscr.
37278
37279 2010-09-30  Andreas Jaeger  <aj@suse.de>
37280
37281         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
37282         (CGROUP_SUPER_MAGIC): Define.
37283         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37284         Handle btrfs and cgroup file systems.
37285         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
37286         Likewise.
37287
37288 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
37289
37290         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
37291         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
37292
37293 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37294
37295         [BZ #12067]
37296         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
37297         trying to locate the ELF header.
37298
37299 2010-09-27  Andreas Schwab  <schwab@redhat.com>
37300
37301         [BZ #11611]
37302         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
37303         Mask out sign-bit copies when constructing f_fsid.
37304
37305 2010-09-24  Petr Baudis <pasky@suse.cz>
37306
37307         * debug/stack_chk_fail_local.c: Add missing licence exception.
37308         * debug/warning-nop.c: Likewise.
37309
37310 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
37311
37312         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
37313         implementing getdents64 using getdents syscall, set d_type if
37314         __ASSUME_GETDENTS32_D_TYPE.
37315
37316 2010-09-16  Andreas Schwab  <schwab@redhat.com>
37317
37318         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
37319         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
37320
37321 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
37322
37323         [BZ #12037]
37324         * posix/unistd.h: Undo change of feature selection for ftruncate from
37325         2010-01-11.
37326
37327 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
37328
37329         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
37330         detection.
37331
37332 2010-09-20  Andreas Schwab  <schwab@redhat.com>
37333
37334         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
37335         fanotify_mark.
37336         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
37337
37338 2010-09-14  Andreas Schwab  <schwab@redhat.com>
37339
37340         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
37341         variables after CHECK_SP call.
37342         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
37343
37344 2010-09-13  Andreas Schwab  <schwab@redhat.com>
37345             Ulrich Drepper  <drepper@redhat.com>
37346
37347         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
37348         re-relocationg ld.so.
37349         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
37350         _dl_init_paths call.
37351         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
37352         here anymore.
37353
37354 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
37355
37356         * resolv/res_init.c (__res_vinit): Count the default server we added.
37357
37358 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
37359             Ulrich Drepper  <drepper@redhat.com>
37360
37361         [BZ #11968]
37362         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
37363         (____longjmp_chk): Use %ebx for saving value across system call.
37364         Add unwind info.
37365
37366 2010-09-06  Andreas Schwab  <schwab@redhat.com>
37367
37368         * manual/Makefile: Don't mix pattern rules with normal rules.
37369
37370 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
37371
37372         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
37373         operation.
37374         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
37375         * libio/iofopncook.c (_IO_cookie_init): Likewise.
37376         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
37377         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
37378         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
37379         Likewise.
37380
37381 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
37382
37383         [BZ #11979]
37384         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
37385         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
37386
37387 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
37388
37389         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
37390         * sysdeps/x86_64/addmul_1.S: Likewise.
37391         * sysdeps/x86_64/lshift.S: Likewise.
37392         * sysdeps/x86_64/mul_1.S: Likewise.
37393         * sysdeps/x86_64/rshift.S: Likewise.
37394         * sysdeps/x86_64/sub_n.S: Likewise.
37395         * sysdeps/x86_64/submul_1.S: Likewise.
37396
37397 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37398
37399         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
37400         Define __sched_param instead of SCHED_* and sched_param when
37401         <bits/sched.h> is included with __need_schedparam defined.
37402         * bits/sched.h [__need_schedparam]
37403         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
37404         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
37405         (__defined_schedparam): Define to 1.
37406         (__sched_param): New structure, identical to sched_param.
37407         (__need_schedparam): Undefine.
37408
37409 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
37410
37411         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
37412         (epoll_create1): Declare.
37413
37414         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
37415
37416 2010-08-31  Andreas Schwab  <schwab@redhat.com>
37417
37418         [BZ #7066]
37419         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
37420         shifting retval into place.
37421
37422 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
37423
37424         * nis/rpcsvc/nis.h: Update copyright notice.
37425         * nis/rpcsvc/nis.x: Likewise.
37426         * nis/rpcsvc/nis_callback.h: Likewise.
37427         * nis/rpcsvc/nis_callback.x: Likewise.
37428         * nis/rpcsvc/nis_object.x: Likewise.
37429         * nis/rpcsvc/nis_tags.h: Likewise.
37430         * nis/rpcsvc/yp.h: Likewise.
37431         * nis/rpcsvc/yp.x: Likewise.
37432         * nis/rpcsvc/ypupd.h: Likewise.
37433         * nis/yp_xdr.c: Likewise.
37434         * nis/ypupdate_xdr.c: Likewise.
37435
37436         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
37437         mainly the body of pmap_getport.  Add parameters to specify timeouts.
37438         (pmap_getport): Use __libc_rpc_getport.
37439         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
37440         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
37441         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
37442
37443 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
37444
37445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
37446         fanotify_mark.
37447
37448 2010-08-27  Roland McGrath  <roland@redhat.com>
37449
37450         * sysdeps/i386/i686/multiarch/Makefile
37451         (CFLAGS-varshift.c): New variable.
37452
37453 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
37454
37455         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
37456         * sysdeps/i386/i686/multiarch/varshift.c: New file.
37457
37458         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
37459
37460         * sysdeps/x86_64/strlen.S: Minimal code improvement.
37461
37462 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
37463
37464         * sysdeps/x86_64/strlen.S: Unroll the loop.
37465         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37466         strlen-sse2 strlen-sse2-bsf.
37467         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
37468         __strlen_no_bsf if bit_Slow_BSF is set.
37469         (__strlen_sse42): Removed.
37470         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
37471         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
37472
37473 2010-08-25  Roland McGrath  <roland@redhat.com>
37474
37475         * sysdeps/x86_64/multiarch/varshift.S: File removed.
37476         * sysdeps/x86_64/multiarch/varshift.c: New file.
37477         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
37478         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
37479         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
37480         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
37481
37482 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
37483
37484         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37485         strlen-sse2 strlen-sse2-bsf.
37486         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
37487         __strlen_sse2_bsf if bit_Slow_BSF is unset.
37488         (__strlen_sse2): Removed.
37489         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
37490         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
37491         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
37492         bit_Slow_BSF for Atom.
37493         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
37494         (index_Slow_BSF): Define.
37495         (HAS_SLOW_BSF): Define.
37496
37497 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
37498
37499         [BZ #10851]
37500         * resolv/res_init.c (__res_vinit): When no server address at all
37501         is given default to loopback.
37502
37503 2010-08-24  Roland McGrath  <roland@redhat.com>
37504
37505         * configure.in: Remove config-name.h generation.
37506         * configure: Regenerated.
37507         * config-name.in: File removed.
37508         * scripts/config-uname.sh: New file.
37509         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
37510         ($(objdir)config-name.h): New target.
37511
37512         * sunrpc/rpc_parse.h: Avoid nested comment.
37513
37514 2010-08-24  Richard Henderson  <rth@redhat.com>
37515             Ulrich Drepper  <drepper@redhat.com>
37516             H.J. Lu  <hongjiu.lu@intel.com>
37517
37518         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
37519         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
37520         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
37521         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
37522         _mm_alignr_epi8 with _mm_loadu_si128.
37523         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
37524         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
37525         (__m128i_shift_right): Removed.
37526         * sysdeps/i386/i686/multiarch/varshift.h: New file.
37527         * sysdeps/i386/i686/multiarch/varshift.S: New file.
37528         * sysdeps/x86_64/multiarch/varshift.h: New file.
37529         * sysdeps/x86_64/multiarch/varshift.S: New file.
37530
37531 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
37532
37533         * configure.in: Move assembler checks to before sysdep dir checking.
37534
37535 2010-08-20  Petr Baudis  <pasky@suse.cz>
37536
37537         * LICENSES: Sync the sunrpc license.
37538
37539 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
37540
37541         * sunrpc/auth_des.c: Update copyright notice once again.
37542         * sunrpc/auth_none.c: Likewise.
37543         * sunrpc/auth_unix.c: Likewise.
37544         * sunrpc/authdes_prot.c: Likewise.
37545         * sunrpc/authuxprot.c: Likewise.
37546         * sunrpc/bindrsvprt.c: Likewise.
37547         * sunrpc/clnt_gen.c: Likewise.
37548         * sunrpc/clnt_perr.c: Likewise.
37549         * sunrpc/clnt_raw.c: Likewise.
37550         * sunrpc/clnt_simp.c: Likewise.
37551         * sunrpc/clnt_tcp.c: Likewise.
37552         * sunrpc/clnt_udp.c: Likewise.
37553         * sunrpc/clnt_unix.c: Likewise.
37554         * sunrpc/des_crypt.c: Likewise.
37555         * sunrpc/des_soft.c: Likewise.
37556         * sunrpc/get_myaddr.c: Likewise.
37557         * sunrpc/getrpcport.c: Likewise.
37558         * sunrpc/key_call.c: Likewise.
37559         * sunrpc/key_prot.c: Likewise.
37560         * sunrpc/openchild.c: Likewise.
37561         * sunrpc/pm_getmaps.c: Likewise.
37562         * sunrpc/pm_getport.c: Likewise.
37563         * sunrpc/pmap_clnt.c: Likewise.
37564         * sunrpc/pmap_prot.c: Likewise.
37565         * sunrpc/pmap_prot2.c: Likewise.
37566         * sunrpc/pmap_rmt.c: Likewise.
37567         * sunrpc/rpc/auth.h: Likewise.
37568         * sunrpc/rpc/auth_unix.h: Likewise.
37569         * sunrpc/rpc/clnt.h: Likewise.
37570         * sunrpc/rpc/des_crypt.h: Likewise.
37571         * sunrpc/rpc/key_prot.h: Likewise.
37572         * sunrpc/rpc/netdb.h: Likewise.
37573         * sunrpc/rpc/pmap_clnt.h: Likewise.
37574         * sunrpc/rpc/pmap_prot.h: Likewise.
37575         * sunrpc/rpc/pmap_rmt.h: Likewise.
37576         * sunrpc/rpc/rpc.h: Likewise.
37577         * sunrpc/rpc/rpc_des.h: Likewise.
37578         * sunrpc/rpc/rpc_msg.h: Likewise.
37579         * sunrpc/rpc/svc.h: Likewise.
37580         * sunrpc/rpc/svc_auth.h: Likewise.
37581         * sunrpc/rpc/types.h: Likewise.
37582         * sunrpc/rpc/xdr.h: Likewise.
37583         * sunrpc/rpc_clntout.c: Likewise.
37584         * sunrpc/rpc_cmsg.c: Likewise.
37585         * sunrpc/rpc_common.c: Likewise.
37586         * sunrpc/rpc_cout.c: Likewise.
37587         * sunrpc/rpc_dtable.c: Likewise.
37588         * sunrpc/rpc_hout.c: Likewise.
37589         * sunrpc/rpc_main.c: Likewise.
37590         * sunrpc/rpc_parse.c: Likewise.
37591         * sunrpc/rpc_parse.h: Likewise.
37592         * sunrpc/rpc_prot.c: Likewise.
37593         * sunrpc/rpc_sample.c: Likewise.
37594         * sunrpc/rpc_scan.c: Likewise.
37595         * sunrpc/rpc_scan.h: Likewise.
37596         * sunrpc/rpc_svcout.c: Likewise.
37597         * sunrpc/rpc_tblout.c: Likewise.
37598         * sunrpc/rpc_util.c: Likewise.
37599         * sunrpc/rpc_util.h: Likewise.
37600         * sunrpc/rpcinfo.c: Likewise.
37601         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
37602         * sunrpc/rpcsvc/key_prot.x: Likewise.
37603         * sunrpc/rpcsvc/klm_prot.x: Likewise.
37604         * sunrpc/rpcsvc/mount.x: Likewise.
37605         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
37606         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
37607         * sunrpc/rpcsvc/rex.x: Likewise.
37608         * sunrpc/rpcsvc/rstat.x: Likewise.
37609         * sunrpc/rpcsvc/rusers.x: Likewise.
37610         * sunrpc/rpcsvc/sm_inter.x: Likewise.
37611         * sunrpc/rpcsvc/spray.x: Likewise.
37612         * sunrpc/rpcsvc/yppasswd.x: Likewise.
37613         * sunrpc/rtime.c: Likewise.
37614         * sunrpc/svc.c: Likewise.
37615         * sunrpc/svc_auth.c: Likewise.
37616         * sunrpc/svc_authux.c: Likewise.
37617         * sunrpc/svc_raw.c: Likewise.
37618         * sunrpc/svc_run.c: Likewise.
37619         * sunrpc/svc_simple.c: Likewise.
37620         * sunrpc/svc_tcp.c: Likewise.
37621         * sunrpc/svc_udp.c: Likewise.
37622         * sunrpc/svc_unix.c: Likewise.
37623         * sunrpc/svcauth_des.c: Likewise.
37624         * sunrpc/xcrypt.c: Likewise.
37625         * sunrpc/xdr.c: Likewise.
37626         * sunrpc/xdr_array.c: Likewise.
37627         * sunrpc/xdr_float.c: Likewise.
37628         * sunrpc/xdr_mem.c: Likewise.
37629         * sunrpc/xdr_rec.c: Likewise.
37630         * sunrpc/xdr_ref.c: Likewise.
37631         * sunrpc/xdr_sizeof.c: Likewise.
37632         * sunrpc/xdr_stdio.c: Likewise.
37633
37634         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
37635         handling.
37636
37637 2010-08-19  Andreas Schwab  <schwab@redhat.com>
37638
37639         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
37640
37641 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
37642
37643         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
37644         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
37645         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
37646         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
37647         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
37648         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
37649         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
37650         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
37651         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
37652         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
37653         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
37654         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
37655         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
37656         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
37657
37658 2010-07-26  Anton Blanchard  <anton@samba.org>
37659
37660         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
37661         * malloc/arena.c (heap_trim): Likewise.
37662
37663 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
37664
37665         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
37666         here.  Not...
37667         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
37668         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
37669
37670 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
37671
37672         * sysdeps/i386/elf/Makefile: New file.
37673
37674 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
37675
37676         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
37677         from fanotify_init.
37678         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
37679         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
37680
37681 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
37682
37683         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
37684         of strncasecmp_l.
37685         * sysdeps/multiarch/strcmp.S: Likewise.
37686
37687 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
37688
37689         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
37690         strncase_l-nonascii.
37691         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
37692         Add strncase_l-ssse3.
37693         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
37694         * sysdeps/x86_64/strcmp.S: Likewise.
37695         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
37696         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
37697         * sysdeps/x86_64/strncase.S: New file.
37698         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
37699         * sysdeps/x86_64/strncase_l.S: New file.
37700         * string/Makefile (strop-tests): Add strncasecmp.
37701         * string/test-strncasecmp.c: New file.
37702
37703         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
37704         warning.
37705
37706         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
37707         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
37708
37709 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
37710
37711         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
37712
37713 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
37714
37715         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
37716         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
37717         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
37718
37719 2010-05-01  Alan Modra  <amodra@gmail.com>
37720
37721         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
37722         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
37723         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
37724         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
37725         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
37726         tidying.  Don't tail-call __sigjmp_save for static lib.
37727         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
37728         save location.
37729         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
37730         (CALL_MCOUNT): Add eh info, and nop after bl.
37731         (TAIL_CALL_SYSCALL_ERROR): New macro.
37732         (PSEUDO_RET): Use it.
37733         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
37734         Correct save location of integer regs and cr.
37735         (_dl_profile_resolve): Correct cr save location.  Delete nops
37736         after bl when SHARED.  Reduce cfi size a little by better
37737         placement of cfi directives.
37738         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
37739         make a stack frame.  Instead use parm save area as a temp.
37740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
37741         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
37742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
37743         Don't make a stack frame for parent, use parm save area.
37744         Increase child stack frame to 112 bytes.  Don't save unused reg,
37745         and adjust reg usage.  Set up cfi on error recovery and
37746         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
37747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
37748         (__makecontext): Add dummy nop after jump to exit.
37749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
37750         Use correct parm save area and cr save, reduce stack frame.
37751         Correct cfi for possible PSEUDO_RET frame setup.
37752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
37753         Branch to local label emitted by PSEUDO_RET rather than
37754         __syscall_error.
37755
37756 2010-08-12  Andreas Schwab  <schwab@redhat.com>
37757
37758         [BZ #11904]
37759         * locale/programs/locale.c (print_assignment): New function.
37760         (show_locale_vars): Use it.
37761
37762 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
37763
37764         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
37765         field.
37766         (struct statfs64): Likewise.
37767         (_STATFS_F_FLAGS): Define.
37768         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
37769         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37770         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
37771         (ST_VALID): Define locally.
37772         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
37773         __statvfs_getflags, use the provided value.
37774         * sysdeps/unix/sysv/linux/kernel-features.h: Define
37775         __ASSUME_STATFS_F_FLAGS.
37776
37777         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
37778
37779         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
37780         Add sys/fanotify.h.
37781         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
37782         fanotify_mask for GLIBC_2.13.
37783         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
37784         fanotify_init and fanotify_mark.
37785         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
37786         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
37787
37788         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
37789         Add prlimit.
37790         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
37791         prlimit64 for GLIBC_2.13.
37792         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
37793         prlimit64.
37794         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
37795         syscall.
37796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
37797         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
37798         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
37799         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
37800         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
37801         add prlimit alias.
37802         * sysdeps/unix/sysv/linux/prlimit.c: New file.
37803
37804         [BZ #11903]
37805         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
37806         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
37807
37808         * nss/Makefile: Add rules to build and run tst-nss-test1.
37809         * shlib-versions: Add entry for libnss_test1.
37810         * nss/nss_test1.c: New file.
37811         * nss/tst-nss-test1.c: New file.
37812
37813         * nss/nsswitch.c (__nss_database_custom): Define new variable.
37814         (__nss_configure_lookup): Set appropriate entry in
37815         __nss_configure_lookup to true.
37816         * nss/nsswitch.h: Define enum with indeces of databases in
37817         databases and __nss_database_custom arrays.  Declare
37818         __nss_database_custom.
37819         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
37820         to avoid using nscd when custom rules are installed.
37821         * nss/getXXbyYY_r.c: Likewise.
37822         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
37823
37824         * nss/nss_files/files-parse.c: Whitespace fixes.
37825
37826 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
37827
37828         [BZ #11883]
37829         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
37830         * posix/fnmatch_loop.c: Likewise.
37831
37832 2010-07-17  Andi Kleen  <ak@linux.intel.com>
37833
37834         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
37835         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
37836         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
37837         * Versions.def [GLIBC_2.13]: Add.
37838
37839 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
37840
37841         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37842         Also fail if tpwd after pwuid call is NULL.
37843
37844 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37845
37846         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
37847         when converting to ms.
37848
37849 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37850
37851         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
37852         EOPNOTSUPP errors with ENOTTY.
37853         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
37854         EOPNOTSUPP errors with ENOTTY.
37855
37856 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
37857
37858         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
37859         Add strcasecmp_l-ssse3.
37860         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
37861         strcasecmp.
37862         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
37863         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
37864         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
37865
37866 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
37867
37868         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
37869
37870         * string/Makefile (strop-tests): Add strcasecmp.
37871         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
37872         strcasecmp_l-nonascii.
37873         (gen-as-const-headers): Add locale-defines.sym.
37874         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
37875         * sysdeps/x86_64/strcasecmp.S: New file.
37876         * sysdeps/x86_64/strcasecmp_l.S: New file.
37877         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
37878         * sysdeps/x86_64/locale-defines.sym: New file.
37879         * string/test-strcasecmp.c: New file.
37880
37881         * string/test-strcasestr.c: Test both ends of the range of characters.
37882         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
37883
37884 2010-07-29  Roland McGrath  <roland@redhat.com>
37885
37886         [BZ #11856]
37887         * manual/locale.texi (Yes-or-No Questions): Fix example code.
37888
37889 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
37890
37891         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
37892         for ld.so.
37893
37894 2010-07-27  Andreas Schwab  <schwab@redhat.com>
37895
37896         * manual/memory.texi (Malloc Tunable Parameters): Document
37897         M_PERTURB.
37898
37899 2010-07-26  Roland McGrath  <roland@redhat.com>
37900
37901         [BZ #11840]
37902         * configure.in (-fgnu89-inline check): Set and substitute
37903         gnu89_inline, not libc_cv_gnu89_inline.
37904         * configure: Regenerated.
37905         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
37906
37907 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
37908
37909         * string/test-strnlen.c: New file.
37910         * string/Makefile (strop-tests): Add strnlen.
37911         * string/tester.c (test_strnlen): Add a few more test cases.
37912         * string/tst-strlen.c: Better error reporting.
37913
37914         * sysdeps/x86_64/strnlen.S: New file.
37915
37916 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
37917
37918         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
37919         lower-latency instructions.
37920
37921 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
37922
37923         * string/test-strcasestr.c: New file.
37924         * string/test-strstr.c: New file.
37925         * string/Makefile (strop-tests): Add strstr and strcasestr.
37926         * string/str-two-way.h: Don't undefine MAX.
37927         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
37928
37929 2010-07-21  Andreas Schwab  <schwab@redhat.com>
37930
37931         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37932         strcasestr-nonascii.
37933         (CFLAGS-strcasestr-nonascii.c): Define.
37934         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
37935         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
37936         Remove unused attribute.
37937
37938 2010-07-20  Roland McGrath  <roland@redhat.com>
37939
37940         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
37941         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
37942         ld.so.cache was broken.  With it, there is no way to disable dsocaps
37943         like LD_HWCAP_MASK can disable hwcaps.
37944
37945 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
37946
37947         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
37948
37949 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
37950
37951         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
37952         call in strcasestr.
37953         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
37954         __strcasestr_sse42_nonascii.
37955         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
37956         strcasestr-nonascii.c.
37957         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
37958
37959 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
37960
37961         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
37962         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
37963         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
37964         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
37965
37966 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
37967
37968         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
37969         fcntl.
37970
37971 2010-07-06  Andreas Schwab  <schwab@redhat.com>
37972
37973         [BZ #11577]
37974         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
37975         dl_signal_cerror.
37976
37977 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
37978
37979         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
37980         _PC_PIPE_BUF using F_GETPIPE_SZ.
37981
37982 2010-07-05  Roland McGrath  <roland@redhat.com>
37983
37984         * manual/arith.texi (Rounding Functions): Fix rint description
37985         implicit in round description.
37986
37987 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
37988
37989         * elf/Makefile: Fix linking for a few tests to make recent linker
37990         happy.
37991
37992 2010-06-30  Andreas Schwab  <schwab@redhat.com>
37993
37994         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
37995         $(common-objpfx)libc_nonshared.a.
37996
37997 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
37998
37999         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
38000         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
38001         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38002         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38003         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
38004         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
38005         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38006         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
38008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
38009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
38010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
38012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
38014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
38015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
38016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
38017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
38019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
38021         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
38022         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
38023         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
38024         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
38025         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
38026         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
38027         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
38028         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
38029         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
38030         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
38031         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
38032         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
38033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
38034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
38035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
38036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
38037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
38038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
38039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
38040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
38041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
38042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
38043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
38044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
38045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
38046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
38047
38048 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
38049
38050         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
38051         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
38052         * string/memmove.c (memmove): Renamed to ...
38053         (MEMMOVE): ...this.  Default to memmove.
38054         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
38055         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
38056         (END_CHK): Define.
38057         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38058         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
38059         mempcpy-ssse3-back memmove-ssse3-back.
38060         * sysdeps/x86_64/multiarch/bcopy.S: New file .
38061         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
38062         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
38063         * sysdeps/x86_64/multiarch/memcpy.S: New file.
38064         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
38065         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
38066         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
38067         * sysdeps/x86_64/multiarch/memmove.c: New file.
38068         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
38069         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
38070         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
38071         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
38072         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
38073         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
38074         Define.
38075         (index_Fast_Copy_Backward): Define.
38076         (HAS_ARCH_FEATURE): Define.
38077         (HAS_FAST_REP_STRING): Define.
38078         (HAS_FAST_COPY_BACKWARD): Define.
38079
38080 2010-06-21  Andreas Schwab  <schwab@redhat.com>
38081
38082         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38083         Restore proper fallback handling.
38084
38085 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
38086
38087         [BZ #11701]
38088         * posix/group_member.c (__group_member): Correct checking loop.
38089
38090         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
38091         OOM in getpwuid_r correctly.  Return error number when the caller
38092         should return, otherwise -1.
38093         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
38094         call returning > 0 value.
38095         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
38096
38097 2010-06-07  Andreas Schwab  <schwab@redhat.com>
38098
38099         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
38100         libc_nonshared.a from targets in modules-names.
38101
38102 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
38103
38104         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
38105         requires it.
38106
38107 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
38108
38109         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
38110         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
38111         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
38112         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
38113
38114 2010-06-02  Andreas Schwab  <schwab@redhat.com>
38115
38116         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
38117
38118 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
38119
38120         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
38121         and F_GETPIPE_SZ.
38122         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
38123         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
38124         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
38125         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
38126         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
38127         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
38128
38129 2010-06-14  Roland McGrath  <roland@redhat.com>
38130
38131         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
38132
38133 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
38134
38135         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
38136         __REDIRECT followed by __THROW.
38137         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
38138         * posix/getopt.h (getopt): Likewise.
38139
38140 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38141
38142         * hurd/lookup-at.c (__file_name_lookup_at): Accept
38143         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
38144         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
38145         in AT_FLAGS.
38146         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
38147         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
38148
38149 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
38150
38151         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
38152
38153 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
38154
38155         [BZ #11640]
38156         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
38157         Properly check family and model.
38158
38159 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
38160
38161         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
38162
38163 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
38164
38165         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
38166
38167 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
38168
38169         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
38170         symbol reference.
38171
38172 2010-05-19  Andreas Schwab  <schwab@redhat.com>
38173
38174         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
38175         symbol reference.
38176
38177 2010-05-21  Andreas Schwab  <schwab@redhat.com>
38178
38179         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
38180         and internal_recvmmsg.
38181         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
38182         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
38183         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
38184         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
38185
38186         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
38187         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
38188         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
38189
38190 2010-05-20  Andreas Schwab  <schwab@redhat.com>
38191
38192         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
38193
38194 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
38195
38196         POWER7 optimizations.
38197         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
38198         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
38199
38200 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
38201
38202         * version.h: Update for 2.13 development version.
38203
38204 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
38205
38206         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
38207         exceptions.  Return 0.
38208
38209 2010-05-07  Roland McGrath  <roland@redhat.com>
38210
38211         * elf/ldconfig.c (main): Add a const.
38212
38213 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
38214
38215         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
38216         (args_options): Add no-idn option.
38217         (ahosts_keys_int): Add idn_flags to ai_flags.
38218         (parse_option): Handle 'i' option to clear idn_flags.
38219
38220         * malloc/malloc.c (_int_free): Possible race in the most recently
38221         added check.  Only act on the data if no current modification
38222         happened.
38223
38224 See ChangeLog.17 for earlier changes.